/* ===== Fonts (self-hosted) ===== */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/bricolage-800-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/bricolage-800-latin.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: "Libre Franklin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/librefranklin-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/librefranklin-latin.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;
}

/* ===== Tokens ===== */
:root {
  --bg: #2F3324;
  --bg-deep: #24281b;
  --ink: #E8DCC2;
  --amber: #D9A441;
  --panel: #444A33;
  --muted: #B9AD92;
  --shadow: #1a1d13;
  --f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 4px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin-top: 0; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { color: #f3ead6; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--bg); padding: 10px 16px; font-weight: 700; border-radius: var(--r); }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ===== Buttons (stamp) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: 3px; border: 2px solid var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn--stamp { background: var(--amber); color: var(--bg); box-shadow: 4px 4px 0 var(--shadow), 4px 4px 0 2px var(--ink); }
.btn--stamp:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow), 5px 5px 0 2px var(--ink); }
.btn--stamp:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow), 1px 1px 0 2px var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); border-style: dashed; }
.btn--ghost:hover { background: var(--panel); }
.btn--dark.btn--stamp { box-shadow: 4px 4px 0 var(--bg); }
.btn--sm { min-height: 42px; padding: .5em 1em; font-size: .95rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 2px dashed var(--panel); }
.topbar { background: var(--bg-deep); font-size: .85rem; color: var(--muted); }
.topbar__in { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: var(--ink); font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.header__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; }
.brand__sub { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-desktop ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 600; border: 1px dashed transparent; border-radius: 3px; }
.nav-desktop a:hover { border-color: var(--muted); }
.nav-desktop a[aria-current="page"] { border-color: var(--amber); color: var(--amber); }

/* Drawer (mobile, from left, sand) */
.drawer { display: none; }
.drawer__toggle { list-style: none; cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; border: 2px dashed var(--ink); border-radius: 3px; position: relative; z-index: 62; background: var(--bg); }
.drawer__toggle::-webkit-details-marker { display: none; }
.drawer__icon, .drawer__icon::before, .drawer__icon::after { display: block; width: 22px; height: 2.5px; background: var(--ink); position: relative; transition: transform .2s ease; }
.drawer__icon::before, .drawer__icon::after { content: ""; position: absolute; left: 0; }
.drawer__icon::before { top: -7px; }
.drawer__icon::after { top: 7px; }
.drawer[open] .drawer__icon { background: transparent; }
.drawer[open] .drawer__icon::before { transform: translateY(7px) rotate(45deg); }
.drawer[open] .drawer__icon::after { transform: translateY(-7px) rotate(-45deg); }
.drawer[open]::before { content: ""; position: fixed; inset: 0; background: rgba(20, 22, 14, .7); z-index: 60; }
.drawer__panel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 61;
  width: min(80vw, 320px); overflow-y: auto;
  background: var(--ink); color: var(--bg);
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  border-right: 3px solid var(--amber);
  box-shadow: 6px 0 0 var(--shadow);
  animation: drawer-in .25s ease-out;
}
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.drawer__title { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 12px; border-bottom: 2px dashed var(--bg); padding-bottom: 8px; }
.drawer__panel ul { list-style: none; padding: 0; margin: 0 0 20px; }
.drawer__panel li { margin: 0; border-bottom: 1px dashed rgba(47, 51, 36, .35); }
.drawer__panel nav a { display: block; padding: 12px 2px; color: var(--bg); text-decoration: none; font-weight: 700; font-size: 1.08rem; }
.drawer__panel nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: #8a5f0e; }
.drawer__panel :focus-visible { outline-color: var(--bg); }
.drawer__contact p { margin: 12px 0 0; }
.drawer__contact p a { color: var(--bg); font-weight: 700; }

/* ===== Breadcrumbs / page head ===== */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 6px; color: var(--panel); }
.crumbs a { color: var(--ink); }
.page-head { border-bottom: 2px dashed var(--panel); padding-bottom: clamp(28px, 5vw, 48px); background: linear-gradient(transparent 0 0), repeating-linear-gradient(90deg, transparent 0 39px, rgba(68, 74, 51, .5) 39px 40px); }
.page-head h1 { margin-top: 18px; max-width: 22ch; }
.kicker { display: inline-block; margin: 26px 0 0; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1.5px dashed var(--amber); padding: 3px 10px; border-radius: 2px; }
.lede { font-size: 1.18rem; max-width: 62ch; color: var(--ink); margin: 0; }

/* ===== Sections ===== */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--panel { background: var(--panel); }
.section--deep { background: var(--bg-deep); }
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head p { color: var(--ink); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.section--panel .eyebrow { color: var(--ink); }

/* ===== Hero ===== */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); border-bottom: 2px dashed var(--panel); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lede { font-size: 1.15rem; max-width: 56ch; }
.hero__facts { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__facts li { margin: 0; font-size: .88rem; font-weight: 600; padding: 4px 10px; border: 1.5px dashed var(--muted); border-radius: 2px; }
.hero__figure { margin: 0; position: relative; background: var(--bg-deep); border: 2px solid var(--panel); border-radius: var(--r); padding: 12px; }
.hero__figure::before { content: "RYS. 01 — PAKOWARKA KOMOROWA"; position: absolute; top: -12px; left: 16px; background: var(--bg); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; padding: 2px 8px; }
.packer { display: block; width: 100%; height: auto; }
.legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.legend li { margin: 0; display: flex; gap: 10px; align-items: baseline; font-size: .95rem; }
.legend__n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: var(--bg); font-weight: 800; display: inline-grid; place-items: center; font-size: .85rem; }
.legend a { color: var(--ink); }

/* SVG callouts */
.callout__ring { fill: var(--amber); stroke: var(--shadow); stroke-width: 2.5; }
.callout__num { fill: var(--bg); font-family: var(--f-display); font-weight: 800; font-size: 24px; }
.callout__line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 5 4; }
.callout__dot { fill: var(--amber); stroke: var(--shadow); stroke-width: 1.5; }
.callout:hover .callout__ring, .callout:focus-visible .callout__ring { fill: var(--ink); }
.callout:focus-visible { outline: none; }
.callout:focus-visible .callout__ring { stroke: var(--ink); stroke-width: 5; }
.callout { opacity: 0; animation: callout-in .55s cubic-bezier(.2, .9, .3, 1.3) forwards; transform-box: fill-box; transform-origin: center; }
.callout--1 { animation-delay: .5s; }
.callout--2 { animation-delay: 1.1s; }
.callout--3 { animation-delay: 1.7s; }
@keyframes callout-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* ===== Tag cards (dashed, workshop labels) ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.tag-card {
  position: relative; padding: 26px 22px 20px 22px;
  border: 2px dashed var(--muted); border-radius: 4px 14px 4px 4px;
  background: var(--bg);
}
.section--panel .tag-card { background: var(--bg); }
.tag-card__hole { position: absolute; top: 14px; right: 16px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); background: var(--panel); }
.tag-card__no { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.tag-card__title a { color: var(--ink); text-decoration: none; }
.tag-card__title a:hover { text-decoration: underline; }
.tag-card p:last-child { margin-bottom: 0; }
.tag-card__more a { font-weight: 700; }
.tag-card:hover { border-color: var(--amber); }

/* ===== Work order ===== */
.work-order { background: var(--ink); color: var(--bg); border-radius: 3px; box-shadow: 8px 8px 0 var(--shadow); max-width: 900px; }
.work-order__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 3px double var(--bg); }
.work-order__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.work-order__meta { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; align-self: center; }
.work-order__list { list-style: none; padding: 0; margin: 0; }
.work-order__row { display: grid; grid-template-columns: 56px 1fr 30px; gap: 16px; align-items: start; padding: 18px 22px; border-bottom: 1px dashed rgba(47, 51, 36, .5); margin: 0; }
.work-order__row:last-child { border-bottom: 0; }
.work-order__num { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; border-right: 2px solid var(--bg); padding-right: 10px; }
.work-order__row h3 { font-size: 1.1rem; margin-bottom: 4px; }
.work-order__row p { margin: 0; }
.work-order__box { width: 24px; height: 24px; border: 2px solid var(--bg); border-radius: 2px; margin-top: 2px; }
.work-order a { color: #6b4a0c; font-weight: 700; }

/* ===== Lists / misc ===== */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber); transform: rotate(-45deg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.spec { border: 2px dashed var(--muted); padding: 20px 22px; border-radius: 3px; }
.spec h3 { color: var(--amber); }
.area { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.area li { margin: 0; border: 1.5px dashed var(--muted); padding: 4px 10px; border-radius: 2px; font-size: .95rem; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { border: 2px dashed var(--muted); border-radius: 3px; background: var(--bg); }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: 1.5rem; color: var(--amber); }
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] { border-color: var(--amber); }
.faq-item__a { padding: 0 18px 16px; }
.faq-item__a p:last-child { margin: 0; }

/* Final contact block */
.final { background: var(--amber); color: var(--bg); padding: clamp(40px, 6vw, 72px) 0; }
.final__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.final h2 { color: var(--bg); }
.final p { color: var(--bg); }
.final .btn--stamp { background: var(--bg); color: var(--ink); border-color: var(--bg); box-shadow: 4px 4px 0 var(--shadow); }
.final .btn--ghost { color: var(--bg); border-color: var(--bg); }
.final .btn--ghost:hover { background: rgba(47, 51, 36, .12); }
.final a:not(.btn) { color: var(--bg); font-weight: 700; }
.final :focus-visible { outline-color: var(--bg); }

/* ===== Articles ===== */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 88px); align-items: start; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.8em; padding-top: .6em; border-top: 2px dashed var(--panel); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul li::marker { color: var(--amber); }
.prose ol li::marker { color: var(--amber); font-weight: 700; }
.note { border-left: 4px solid var(--amber); background: var(--panel); padding: 14px 18px; border-radius: 0 3px 3px 0; margin: 1.4em 0; }
.note p:last-child { margin: 0; }
.note--warn { border-left-color: var(--ink); }
.note__label { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border: 1px dashed var(--muted); vertical-align: top; }
th { background: var(--panel); font-weight: 700; }
.cta-box { border: 2px solid var(--amber); padding: 20px 22px; margin: 2em 0; border-radius: 3px; background: var(--bg-deep); }
.cta-box__title { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; color: var(--amber); }
.article-aside { position: sticky; top: 120px; }
.article-aside__card { border: 2px dashed var(--muted); padding: 20px; border-radius: 3px; background: var(--panel); }
.article-aside__label { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; border-bottom: 2px dashed var(--muted); padding-bottom: 8px; }
.article-aside__card .ticks li { font-size: .95rem; }
.article-aside__card a:not(.btn) { color: var(--ink); }
.article-aside__alt, .article-aside__phone { margin: 14px 0 0; font-size: .95rem; }
.article-aside__phone a { font-weight: 700; }
.related { margin-top: 2.4em; border: 2px dashed var(--panel); padding: 18px 20px; border-radius: 3px; }
.related__title { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.related ul { margin: 0; }
.mini-ill { width: 120px; height: 80px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-deep); border-top: 3px solid var(--amber); padding: 48px 0 24px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer__brand { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.footer__head { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--ink); }
.footer__bottom { margin-top: 28px; padding-top: 16px; border-top: 1px dashed var(--panel); color: var(--muted); font-size: .85rem; }

/* Mobile bar */
.mobile-bar { display: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__grid, .two-col, .final__in { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-desktop, .header__cta { display: none; }
  .drawer { display: block; }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--bg-deep); border-top: 2px solid var(--amber);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mobile-bar a { display: grid; place-items: center; text-align: center; line-height: 1.15; padding: 4px 6px; min-height: 46px; font-weight: 700; text-decoration: none; border-radius: 3px; font-size: .95rem; }
  .mobile-bar__order { background: var(--amber); color: var(--bg); border: 2px solid var(--shadow); box-shadow: 3px 3px 0 var(--shadow); }
  .mobile-bar__call, .mobile-bar__wa { color: var(--ink); border: 1.5px dashed var(--ink); }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__in > span:first-child { display: none; }
  .work-order__row { grid-template-columns: 44px 1fr; padding: 16px; }
  .work-order__box { display: none; }
  .hero__figure { padding: 6px; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 1rem; }
  .brand__sub { font-size: .68rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .callout { opacity: 1; animation: none; }
  .drawer__panel { animation: none; }
}
body:has(.drawer[open]) .mobile-bar { display: none; }
