/* ============================================================
   DARMAR — industrial tech / dark system
   graphite + acid lime + condensed display type
   ============================================================ */

:root {
  --bg: #0B0C0A;
  --bg-2: #101210;
  --panel: #141613;
  --ink: #F2F3EC;
  --muted: #8A8F83;
  --line: rgba(242, 243, 236, 0.14);
  --line-soft: rgba(242, 243, 236, 0.08);
  --acid: #FFCD11;
  --display: "Anton", Impact, sans-serif;
  --sans: "Chakra Petch", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acid); color: #0B0C0A; }

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

a { color: inherit; }

.acid { color: var(--acid); font-style: normal; }
.acid-text { color: var(--acid); }
.stroke {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.stroke-acid {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--acid);
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--pad);
  height: 76px;
  border-bottom: 1px solid var(--line-soft);
  transition: height 0.35s ease, background-color 0.35s ease;
}
.site-head.is-scrolled {
  height: 60px;
  background: rgba(11, 12, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  width: 20px; height: 20px; flex: none;
  background:
    linear-gradient(var(--acid), var(--acid)) 0 100% / 100% 6px no-repeat,
    var(--ink);
}
.brand-word {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-word sup { font-size: 0.45em; font-family: var(--mono); }

.site-nav { display: flex; gap: 2.25rem; }
.nav-link {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 100%; height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::before { transform: scaleX(1); transform-origin: left; }

.head-right { display: flex; align-items: center; gap: 1.5rem; }
.head-phone { text-decoration: none; color: var(--muted); transition: color 0.25s ease; }
.head-phone:hover { color: var(--acid); }

/* ---------- buttons ---------- */

.btn-solid, .btn-ghost, .btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--acid);
  cursor: pointer;
  background: var(--acid);
  color: #0B0C0A;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  border-radius: 0;
  position: relative;
}
.btn-solid:hover { background: transparent; color: var(--acid); }
.btn-solid:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); background: transparent; }

.btn-dark { background: #0B0C0A; border-color: #0B0C0A; color: var(--acid); }
.btn-dark:hover { background: transparent; color: #0B0C0A; border-color: #0B0C0A; }

.btn-wa { padding: 0.6rem 1.2rem; }

.arr { display: inline-block; transition: transform 0.25s ease; }
.btn-solid:hover .arr, .btn-dark:hover .arr, .btn-ghost:hover .arr { transform: translateX(5px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(76px + 3rem) var(--pad) 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
}
.grid-lines i { border-left: 1px solid var(--line-soft); }
.grid-lines i:last-child { border-right: 1px solid var(--line-soft); }

.hero-hud {
  position: absolute;
  z-index: 3;
  color: var(--muted);
}
.hero-hud-tl { top: 100px; left: var(--pad); }
.hero-hud-tr { top: 100px; right: var(--pad); }

.hero-inner {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line-inner { display: inline-block; will-change: transform; }
.hero-title .stroke { -webkit-text-stroke-width: 2px; }

.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: end;
  margin-top: 1rem;
}

.hero-sub { grid-column: 1 / 6; padding-bottom: 2.5rem; }
.hero-lead { color: var(--muted); font-size: 0.95rem; max-width: 44ch; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero-media {
  position: relative;
  grid-column: 6 / 13;
  margin-top: -5rem;
}
.hero-frame {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px;
  position: relative;
}
.hero-frame::before {
  content: "";
  position: absolute;
  top: -8px; left: -8px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--acid);
  border-left: 2px solid var(--acid);
  z-index: 2;
}
.hero-frame img, .hero-frame video {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.08) brightness(0.92);
  will-change: transform;
}
.hero-frame [hidden] { display: none !important; }
#hero-video-toggle { position: absolute; right: 18px; bottom: 18px; z-index: 3; padding: 8px 12px; background: #0b0c0a; color: #fff; border: 1px solid #fff; cursor: pointer; }
.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  color: var(--muted);
}

.hero-ticker {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  background: rgba(11, 12, 10, 0.6);
  backdrop-filter: blur(8px);
}
.ticker-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 2rem 1.4rem 0;
  border-right: 1px solid var(--line);
}
.ticker-item + .ticker-item { padding-left: 2rem; }
.ticker-item:last-child { border-right: 0; }
.ticker-item .mono { color: var(--muted); }
.ticker-item strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.t-unit { font-size: 0.45em; color: var(--muted); letter-spacing: 0.08em; }

.hero-scroll {
  position: absolute;
  left: var(--pad);
  bottom: 1.2rem;
  color: var(--muted);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marquee-track .stroke { -webkit-text-stroke-width: 1.2px; }
.marquee-track i { color: var(--acid); font-style: normal; font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { padding: 8rem var(--pad); position: relative; }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: start;
}
.sec-index { grid-column: 1 / 3; color: var(--acid); }
.sec-head-main { grid-column: 1 / 10; }
.sec-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
}
.sec-note { max-width: 48ch; margin-top: 1.5rem; color: var(--muted); font-weight: 300; }
.sec-meta {
  grid-column: 11 / 13;
  text-align: right;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- karty maszyn (mc) ---------- */

.mc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-loading { grid-column: 1 / -1; color: var(--muted); }

.mc {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.mc:hover { border-color: var(--acid); transform: translateY(-4px); }

.mc-media {
  position: relative;
  display: block;
  background: #F2F3EC;
  aspect-ratio: 4 / 3;
  padding: 1.25rem;
  overflow: hidden;
}
.mc-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.mc:hover .mc-media img { transform: scale(1.04); }

.mc-badge {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  background: var(--acid);
  color: #0B0C0A;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
}

.mc-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
}
.mc-cat { color: var(--acid); }
.mc-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: 0.01em;
  min-height: 2.16em;
}
.mc-short { color: var(--muted); font-size: 0.85rem; font-weight: 300; }

.mc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mc-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 500;
}
.mc-chip i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mc-price-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.mc-price {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.mc-price small {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}
.mc-gross { color: var(--muted); }

.mc-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  background: var(--acid);
  color: #0B0C0A;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.mc:hover .mc-btn { background: var(--ink); }
.mc:hover .mc-btn .arr { transform: translateX(5px); }

/* ---------- strona kategorii ---------- */

.cat-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.cat-head-main { grid-column: 1 / 8; }
.cat-head-side { grid-column: 8 / 13; padding-bottom: 0.4rem; }
.cat-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
  margin: 1rem 0 1.5rem;
}
.cat-lead { font-size: 1.15rem; line-height: 1.5; max-width: 40ch; font-weight: 400; }
.cat-desc { color: var(--muted); font-weight: 300; font-size: 0.95rem; border-left: 2px solid var(--acid); padding-left: 1.25rem; }

.cat-feats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 3.5rem;
}
.cat-feats li {
  padding: 1.5rem 1.75rem 1.5rem 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cat-feats li + li { padding-left: 1.75rem; }
.cat-feats li:last-child { border-right: 0; padding-right: 0; }
.cat-feats .mono { color: var(--acid); }
.cat-feats strong { font-size: 1rem; font-weight: 600; }
.cat-feats p { color: var(--muted); font-size: 0.88rem; font-weight: 300; }

.cat-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cat-switch { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cat-switch-link {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.7rem 1.3rem;
  color: var(--muted);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.cat-switch-link:hover { border-color: var(--acid); color: var(--acid); }
.cat-switch-link.is-current { background: var(--acid); border-color: var(--acid); color: #0B0C0A; }

.cat-toolbar { display: flex; align-items: center; gap: 1.5rem; color: var(--muted); }
.cat-count { color: var(--ink); }
.cat-sort { display: flex; align-items: center; gap: 0.6rem; }
.cat-sort select, .admin-select {
  appearance: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23FFCD11'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 2.4rem 0.7rem 1rem;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.cat-sort select:hover, .cat-sort select:focus, .admin-select:focus { border-color: var(--acid); outline: none; }
.admin-select { width: 100%; font-family: var(--sans); font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 300; }

/* ---------- kafelki kategorii (home) ---------- */

.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 2rem 2rem 1.75rem;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.cat-tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.cat-tile:hover { border-color: var(--acid); transform: translateY(-4px); }
.cat-tile:hover::after { transform: scaleX(1); }
.cat-tile-num { color: var(--acid); }
.cat-tile-name {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
}
.cat-tile-lead { color: var(--muted); font-weight: 300; max-width: 30ch; }
.cat-tile-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.cat-tile-foot .arr { font-size: 1.4rem; color: var(--acid); }
.cat-tile:hover .arr { transform: translateX(6px); }

/* ---------- nav dropdown + burger ---------- */

.nav-drop { position: relative; }
.nav-caret { font-size: 0.6rem; margin-left: 0.2rem; display: inline-block; transition: transform 0.25s ease; }
.nav-drop:hover .nav-caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: -1.25rem;
  min-width: 260px;
  padding-top: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu::before {
  content: "";
  position: absolute;
  inset: 1.1rem 0 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  z-index: -1;
}
.nav-drop-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.nav-drop-item:last-child { border-bottom: 0; }
.nav-drop-item strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.02em; }
.nav-drop-item span { font-size: 0.8rem; color: var(--muted); font-weight: 300; }
.nav-drop-item:hover { background: rgba(255, 205, 17, 0.08); padding-left: 1.6rem; }
.nav-drop-item:hover strong { color: var(--acid); }

.nav-burger {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 42px; height: 42px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-burger i { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 0.25s ease; }
.nav-burger.is-open i:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.is-open i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- manifesto ---------- */

.manifesto { padding-top: 6rem; }

.chapter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 4rem 0;
  align-items: start;
  transition: background-color 0.3s ease;
}
.chapter:last-of-type { border-bottom: 1px solid var(--line); }
.chapter-num {
  grid-column: 1 / 4;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--acid);
}
.chapter-body { grid-column: 4 / 10; }
.chapter-alt .chapter-body { grid-column: 5 / 11; }
.chapter-alt .chapter-num { grid-column: 2 / 5; }
.chapter-body h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}
.chapter-body p { color: var(--muted); max-width: 56ch; font-weight: 300; }
.chapter-tag {
  grid-column: 11 / 13;
  justify-self: end;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.5rem 0.9rem;
}

/* ---------- order strip (acid) ---------- */

.order-strip {
  background: var(--acid);
  color: #0B0C0A;
  padding: 8rem var(--pad);
  position: relative;
  overflow: hidden;
}
.order-inner { max-width: 900px; position: relative; z-index: 2; }
.order-strip .overline { color: rgba(11, 12, 10, 0.6); margin-bottom: 2rem; }
.order-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
}
.order-title .q { color: transparent; -webkit-text-stroke: 2px #0B0C0A; }
.order-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px #0B0C0A; }
.order-lead { margin: 2rem 0 2.75rem; max-width: 46ch; color: rgba(11, 12, 10, 0.75); font-weight: 400; }
.order-big {
  position: absolute;
  right: -1rem;
  bottom: -4rem;
  font-family: var(--display);
  font-size: clamp(7rem, 18vw, 16rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(11, 12, 10, 0.18);
  user-select: none;
  pointer-events: none;
}

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem; }
.contact-info { grid-column: 1 / 6; }
.contact-big {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  margin-bottom: 3.5rem;
}

.contact-rows { list-style: none; }
.contact-rows li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}
.contact-rows li:hover { padding-left: 0.75rem; }
.contact-rows li:last-child { border-bottom: 1px solid var(--line); }
.contact-label { color: var(--muted); padding-top: 3px; }
.contact-value { text-decoration: none; font-size: 1.05rem; line-height: 1.5; font-weight: 300; }
a.contact-value { transition: color 0.25s ease; }
a.contact-value:hover { color: var(--acid); }

.contact-form {
  grid-column: 7 / 13;
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--panel);
  position: relative;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: -7px; right: -7px;
  width: 26px; height: 26px;
  border-top: 2px solid var(--acid);
  border-right: 2px solid var(--acid);
}
.form-note {
  background: rgba(216, 255, 52, 0.08);
  border-left: 3px solid var(--acid);
  color: var(--acid);
  padding: 0.85rem 1rem;
  margin-bottom: 1.75rem;
  text-transform: none;
  letter-spacing: 0.05em;
}
.field { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field label { color: var(--muted); }
.field input, .field textarea {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--acid);
  box-shadow: 0 1px 0 var(--acid);
}
.form-foot { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.form-status { color: var(--muted); }
.form-status.is-ok { color: var(--acid); }
.form-status.is-err { color: #FF5C47; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 5rem var(--pad) 2rem;
  background: var(--bg-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding-bottom: 4.5rem;
}
.foot-brand { grid-column: 1 / 6; }
.foot-word {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 243, 236, 0.35);
  user-select: none;
  transition: -webkit-text-stroke-color 0.4s ease;
}
.foot-word:hover { -webkit-text-stroke-color: var(--acid); }
.foot-tag { margin-top: 1.5rem; color: var(--muted); }
.foot-col { grid-column: span 2; display: flex; flex-direction: column; gap: 0.7rem; }
.foot-head { color: var(--muted); margin-bottom: 0.7rem; }
.foot-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  width: max-content;
  color: var(--ink);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.foot-link:hover { color: var(--acid); padding-left: 0.4rem; }
.foot-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  color: var(--muted);
}

/* ---------- whatsapp float ---------- */

.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--acid);
  color: #0B0C0A;
  border: 1px solid var(--acid);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.wa-float:hover { background: transparent; color: var(--acid); transform: translateY(-4px); }

/* ---------- configurator overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
  animation: ov-in 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
@keyframes ov-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.overlay-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 10, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--muted);
}
.overlay-close {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.overlay-close:hover { border-color: var(--acid); color: var(--acid); }

.overlay-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  padding: 3.5rem var(--pad) 5rem;
}
.ov-left { grid-column: 1 / 7; }
.ov-frame { border: 1px solid var(--line); padding: 8px; margin-bottom: 2.25rem; background: var(--panel); }
.ov-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: contrast(1.05); }
.ov-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.ov-desc { color: var(--muted); max-width: 56ch; margin-bottom: 2.75rem; font-weight: 300; }
.ov-specs { width: 100%; border-collapse: collapse; }
.ov-specs td {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  font-size: 0.9rem;
  font-weight: 300;
  vertical-align: top;
}
.ov-specs tr:last-child td { border-bottom: 1px solid var(--line); }
.ov-specs td:first-child {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  width: 42%;
  padding-top: 1rem;
}

.ov-right { grid-column: 8 / 13; }
.ov-sec-label { color: var(--muted); margin-bottom: 1rem; }
.ov-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
  cursor: pointer;
  transition: padding-left 0.25s ease;
}
.ov-option:last-of-type { border-bottom: 1px solid var(--line); }
.ov-option:hover { padding-left: 0.5rem; }
.ov-option-left { display: flex; align-items: center; gap: 1rem; }
.ov-check {
  width: 20px; height: 20px;
  flex: none;
  border: 1px solid var(--line);
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ov-option input { position: absolute; opacity: 0; pointer-events: none; }
.ov-option.is-on .ov-check { background: var(--acid); border-color: var(--acid); }
.ov-option.is-on .ov-check::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #0B0C0A;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.ov-option.is-on .ov-option-name { color: var(--acid); }
.ov-option-name { font-size: 0.95rem; font-weight: 300; transition: color 0.2s ease; }
.ov-option-price { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }

.ov-total { margin: 2.75rem 0; border-top: 2px solid var(--acid); padding-top: 1.5rem; }
.ov-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.ov-total-row strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--acid);
  letter-spacing: 0.01em;
}
.ov-brutto { color: var(--muted); }
.ov-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- reveal defaults ---------- */

[data-reveal] { opacity: 1; }

/* ---------- admin ---------- */

.admin-body { min-height: 100vh; display: flex; flex-direction: column; }
.admin-main { flex: 1; padding: calc(76px + 3rem) var(--pad) 5rem; }
.admin-wrap { max-width: 1100px; margin: 0 auto; }

.login-card {
  max-width: 420px;
  margin: 4rem auto;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 2.5rem;
}
.login-card h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.8rem; margin-bottom: 0.5rem; }
.login-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 2rem; font-weight: 300; }

.admin-tabs { display: flex; gap: 0.6rem; margin-bottom: 2.5rem; }
.admin-tab {
  appearance: none; border: 1px solid var(--line); background: transparent;
  padding: 0.7rem 1.3rem; cursor: pointer; color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.admin-tab:hover { border-color: var(--acid); color: var(--acid); }
.admin-tab.is-active { background: var(--acid); border-color: var(--acid); color: #0B0C0A; }

.admin-table { width: 100%; border-collapse: collapse; margin-bottom: 3rem; }
.admin-table th {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 2px solid var(--acid);
}
.admin-table td { border-bottom: 1px solid var(--line); padding: 0.85rem 0.75rem 0.85rem 0; font-size: 0.9rem; vertical-align: middle; font-weight: 300; }
.admin-thumb { width: 64px; height: 48px; object-fit: cover; border: 1px solid var(--line); filter: grayscale(0.4); }
.row-btn {
  appearance: none; background: transparent; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 0.8rem; cursor: pointer; margin-right: 0.4rem; color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.row-btn:hover { border-color: var(--acid); color: var(--acid); }
.row-btn.danger:hover { border-color: #FF5C47; color: #FF5C47; }

.admin-form {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.admin-form .field { margin-bottom: 0; }
.admin-form .field-wide { grid-column: 1 / -1; }
.admin-form h3 { grid-column: 1 / -1; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; }
.admin-form textarea { min-height: 110px; font-family: var(--mono); font-size: 0.78rem; border: 1px solid var(--line); padding: 0.75rem; }
.admin-form textarea:focus { border-color: var(--acid); box-shadow: none; }
.admin-form .form-foot { grid-column: 1 / -1; }

.enq-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--acid);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
  background: var(--panel);
}
.enq-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.enq-name { font-weight: 600; }
.enq-meta { color: var(--muted); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; }
.enq-meta a { color: var(--acid); text-decoration: none; }
.enq-machine { font-size: 0.82rem; color: var(--acid); margin-bottom: 0.5rem; font-family: var(--mono); letter-spacing: 0.04em; }
.enq-msg { font-size: 0.92rem; white-space: pre-wrap; font-weight: 300; color: var(--ink); }

.admin-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap; }
.admin-topline h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero { justify-content: flex-start; }
  .hero-title { margin-bottom: 2rem; }
  .hero-bottom { display: block; }
  .hero-sub { max-width: 480px; padding-bottom: 2rem; }
  .hero-media { margin-top: 0; }
  .sec-index { grid-column: 1 / 3; }
  .sec-head-main { grid-column: 1 / 13; }
  .sec-meta { display: none; }
  .mc-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter-num { grid-column: 1 / 4; }
  .chapter-body, .chapter-alt .chapter-body { grid-column: 4 / 13; }
  .chapter-alt .chapter-num { grid-column: 1 / 4; }
  .chapter-tag { display: none; }
  .contact-info { grid-column: 1 / 13; }
  .contact-form { grid-column: 1 / 13; }
  .ov-left { grid-column: 1 / 13; }
  .ov-right { grid-column: 1 / 13; }
  .foot-brand { grid-column: 1 / 13; }
  .foot-col { grid-column: span 4; }
  .order-big { opacity: 0.5; }
  .cat-head-main { grid-column: 1 / 13; }
  .cat-head-side { grid-column: 1 / 13; }
  .cat-tiles { grid-template-columns: 1fr; }
  .cat-tile { min-height: 220px; }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > .nav-link { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-link::before { display: none; }
  .nav-drop-toggle { display: block; padding: 1rem 0; }
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; padding-top: 0; min-width: 0; }
  .nav-drop-menu::before { display: none; }
  .nav-drop-item { padding-left: 1rem; }
  .nav-burger { display: flex; }
  .btn-wa { display: none; }
  .cat-feats { grid-template-columns: 1fr; }
  .cat-feats li { border-right: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--line-soft); }
  .cat-feats li + li { padding-left: 0; }
  .cat-feats li:last-child { border-bottom: 0; }
  .cat-bar { flex-direction: column; align-items: stretch; }
  .cat-switch-link { flex: 1; text-align: center; padding: 0.7rem 0.5rem; }
  .cat-toolbar { justify-content: space-between; }
  .catalog-cta .btn-ghost { width: 100%; justify-content: space-between; }
  .cat-form { padding: 1.25rem; }
  .head-phone { display: none; }
  .hero { padding-top: calc(76px + 2rem); min-height: auto; }
  .hero-hud { display: none; }
  .hero-ticker { grid-template-columns: repeat(2, 1fr); }
  .ticker-item:nth-child(2) { border-right: 0; }
  .ticker-item { padding: 1.1rem 1rem 1.1rem 0; }
  .ticker-item + .ticker-item { padding-left: 1rem; }
  .section { padding: 5rem var(--pad); }
  .sec-index { display: none; }
  .sec-head-main { grid-column: 1 / 13; }
  .mc-grid { grid-template-columns: 1fr; }
  .chapter-num { grid-column: 1 / 13; font-size: 3rem; margin-bottom: 1.25rem; }
  .chapter-body, .chapter-alt .chapter-body { grid-column: 1 / 13; }
  .field-row { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .foot-col { grid-column: span 6; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-scroll { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- podstrony (katalog / maszyna) ---------- */

.page-main { padding: calc(76px + 4rem) var(--pad) 6rem; min-height: 70vh; }

.nav-link.is-current { color: var(--acid); }
.nav-link.is-current::before { transform: scaleX(1); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  margin-bottom: 3rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.25s ease; }
.breadcrumb a:hover { color: var(--acid); }

.catalog-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding-top: 2.5rem;
  color: var(--muted);
}

/* strona maszyny */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
}
.m-detail-left { grid-column: 1 / 7; }
.m-detail-right { grid-column: 8 / 13; }
.m-frame {
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--panel);
  margin-bottom: 2.25rem;
  position: relative;
}
.m-frame::before {
  content: "";
  position: absolute;
  top: -8px; left: -8px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--acid);
  border-left: 2px solid var(--acid);
  z-index: 2;
}
.m-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.m-desc { color: var(--muted); font-weight: 300; margin-bottom: 2.5rem; }
.m-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 0.85rem 0 1rem;
}
.m-shortline { color: var(--muted); font-weight: 300; margin-bottom: 2rem; }
.m-base-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  margin-bottom: 2.25rem;
  color: var(--muted);
}
.m-base-row strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.form-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  border-top: 1px solid var(--line);
  margin-top: 6rem;
  padding-top: 5rem;
}
.form-intro { grid-column: 1 / 6; }
.form-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 0.85rem 0 1.5rem;
}
.form-section .contact-form { grid-column: 7 / 13; }

/* admin: upload + checkbox */
.upload-row { display: flex; align-items: center; gap: 1rem; }
.upload-preview {
  width: 96px; height: 68px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
input[type="file"] {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  max-width: 260px;
}
input[type="file"]::file-selector-button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  margin-right: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
input[type="file"]::file-selector-button:hover { border-color: var(--acid); color: var(--acid); }
.check-field { display: flex; align-items: center; gap: 0.8rem; }
.check-field input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--acid);
  cursor: pointer;
}
.check-field label { color: var(--muted); cursor: pointer; }

@media (max-width: 1020px) {
  .m-detail-left { grid-column: 1 / 13; }
  .m-detail-right { grid-column: 1 / 13; }
  .form-intro { grid-column: 1 / 13; }
  .form-section .contact-form { grid-column: 1 / 13; }
}

.admin-hint { color: var(--muted); margin-bottom: 1.5rem; text-transform: none; letter-spacing: 0.05em; }
.cat-form { margin-bottom: 1.5rem; }

.muted { color: var(--muted); }

/* ---------- filtry (strona kategorii) ---------- */

.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.cat-results { min-width: 0; }
.cat-filters {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.4rem 1.4rem 0.6rem;
}
.cf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; color: var(--muted); }
.cf-reset {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  padding: 0 0 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cf-reset:hover, .has-active .cf-reset { color: var(--acid); border-color: var(--acid); }
.cf-group { padding: 1.1rem 0 1.25rem; border-top: 1px solid var(--line-soft); }
.cf-label { color: var(--ink); margin-bottom: 1.1rem; }
.cf-range { position: relative; height: 22px; }
.cf-track { position: absolute; top: 9px; left: 0; right: 0; height: 3px; background: var(--line); }
.cf-fill { position: absolute; top: 0; bottom: 0; background: var(--acid); }
.cf-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}
.cf-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px; height: 18px;
  background: var(--bg);
  border: 2px solid var(--acid);
  cursor: grab;
  transition: background-color 0.2s ease;
}
.cf-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 14px; height: 14px;
  border-radius: 0;
  background: var(--bg);
  border: 2px solid var(--acid);
  cursor: grab;
}
.cf-range input[type="range"]:active::-webkit-slider-thumb { background: var(--acid); }
.cf-range input[type="range"]:focus-visible { outline: none; }
.cf-range input[type="range"]:focus-visible::-webkit-slider-thumb { background: var(--acid); }
.cf-vals { display: flex; justify-content: space-between; margin-top: 0.7rem; color: var(--ink); }
.cf-checks { display: flex; flex-direction: column; gap: 0.55rem; }
.cf-check { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; font-size: 0.9rem; font-weight: 300; }
.cf-check input { position: absolute; opacity: 0; pointer-events: none; }
.cf-box { width: 16px; height: 16px; border: 1px solid var(--line); flex: none; position: relative; transition: background-color 0.2s ease, border-color 0.2s ease; }
.cf-check input:checked + .cf-box { background: var(--acid); border-color: var(--acid); }
.cf-check input:checked + .cf-box::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 4px; height: 8px;
  border: solid #0B0C0A;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.cf-check:hover { color: var(--acid); }
.cf-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.7rem 1.2rem;
  cursor: pointer;
}
.cf-toggle:hover { border-color: var(--acid); color: var(--acid); }

/* ---------- porównywarka ---------- */

.mc-cmp {
  position: absolute;
  right: 0; bottom: 0;
  z-index: 2;
  background: rgba(11, 12, 10, 0.85);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mc-cmp:hover { color: var(--acid); }
.mc-cmp.is-on { background: var(--acid); color: #0B0C0A; }
#m-compare.is-on { border-color: var(--acid); color: var(--acid); }

.cmp-bar {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.8rem 0.8rem 0.8rem 1.4rem;
  background: rgba(20, 22, 19, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  animation: ov-in 0.35s ease;
}
.cmp-bar-text { font-size: 0.9rem; }
.cmp-bar.is-warn { border-color: var(--acid); }
.cmp-bar.is-warn .cmp-bar-text { color: var(--acid); }
.cmp-bar .btn-solid { padding: 0.65rem 1.1rem; }
.cmp-bar .btn-solid.is-disabled { opacity: 0.45; pointer-events: none; }
.cmp-bar-clear { appearance: none; background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 0.4rem; }
.cmp-bar-clear:hover { color: var(--acid); }

.cmp-wrap { overflow-x: auto; margin-bottom: 1rem; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; table-layout: fixed; }
.cmp-table th, .cmp-table td { border: 1px solid var(--line); padding: 1rem 1.1rem; vertical-align: top; text-align: left; font-weight: 300; font-size: 0.92rem; }
.cmp-table thead th { vertical-align: bottom; background: var(--panel); }
.cmp-table tbody th { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); width: 200px; background: var(--bg-2); font-weight: 500; padding-top: 1.15rem; }
.cmp-corner { width: 200px; color: var(--muted); }
.cmp-img { display: block; background: #F2F3EC; aspect-ratio: 4 / 3; padding: 1rem; margin-bottom: 1rem; }
.cmp-img img { width: 100%; height: 100%; object-fit: contain; }
.cmp-cat { color: var(--acid); display: block; margin-bottom: 0.4rem; }
.cmp-name { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.08; text-transform: uppercase; text-decoration: none; margin-bottom: 0.8rem; }
.cmp-name:hover { color: var(--acid); }
.cmp-remove { appearance: none; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 0.4rem 0.7rem; cursor: pointer; }
.cmp-remove:hover { border-color: #FF5C47; color: #FF5C47; }
.cmp-price strong { font-family: var(--display); font-size: 1.7rem; line-height: 1; display: block; }
.cmp-price.is-best strong { color: var(--acid); }
.cmp-best { display: block; margin-top: 0.4rem; color: var(--acid); }
.cmp-opts { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.cmp-opts li { display: flex; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--line-soft); padding-bottom: 0.3rem; }
.cmp-opts .mono { color: var(--muted); }
.cmp-cta { display: flex; flex-direction: column; gap: 0.6rem; }
.cmp-cta .btn-solid, .cmp-cta .btn-ghost { justify-content: center; }

@media (max-width: 1020px) {
  .cat-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .cat-filters { display: none; position: static; }
  .cat-filters.is-open { display: block; }
  .cf-toggle { display: inline-flex; }
  .cat-toolbar { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .cmp-bar { left: 1rem; right: 1rem; transform: none; justify-content: space-between; padding-left: 1rem; }
  .cmp-bar-text { font-size: 0.8rem; }
}

/* ---------- dostępność ---------- */

.mc-cat-row { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.avail { display: inline-block; padding: 0.3rem 0.6rem; font-size: 0.58rem; white-space: nowrap; }
.avail.is-stock { background: var(--acid); color: #0B0C0A; }
.avail.is-order { border: 1px solid var(--line); color: var(--muted); }
.m-avail { margin: -1.25rem 0 2.25rem; padding: 0.7rem 0; }
.m-avail.is-stock { color: var(--acid); }
.m-avail.is-order { color: var(--muted); }

/* ---------- galeria ---------- */

.m-zoom {
  appearance: none;
  border: 0;
  padding: 0;
  background: #F2F3EC;
  display: block;
  width: 100%;
  cursor: zoom-in;
  position: relative;
}
.m-zoom img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 1rem; }
.m-zoom-hint {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(11, 12, 10, 0.85);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.m-zoom:hover .m-zoom-hint, .m-zoom:focus-visible .m-zoom-hint { opacity: 1; }
.m-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: -1.25rem 0 2.25rem; }
.m-thumb {
  appearance: none;
  padding: 4px;
  width: 84px; height: 64px;
  background: #F2F3EC;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.m-thumb img { width: 100%; height: 100%; object-fit: contain; }
.m-thumb:hover { opacity: 1; }
.m-thumb.is-on { opacity: 1; border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 12, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  animation: ov-in 0.3s ease;
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #F2F3EC; padding: 1.5rem; cursor: default; }
.lb-close, .lb-nav {
  position: absolute;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 48px; height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.lb-close:hover, .lb-nav:hover { border-color: var(--acid); color: var(--acid); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-counter { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: var(--muted); }
body.lb-open { overflow: hidden; }
@media (max-width: 720px) {
  .lightbox { padding: 3.5rem 0.5rem; }
  .lightbox img { padding: 0.5rem; }
  .lb-nav { width: 40px; height: 40px; bottom: 1rem; top: auto; transform: none; }
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }
  .lb-counter { bottom: 1.6rem; }
}

/* ---------- admin: galeria + dostępność ---------- */

.gal-list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.8rem; }
.gal-item { position: relative; width: 112px; border: 1px solid var(--line); background: var(--bg-2); padding: 4px; }
.gal-item img { width: 100%; height: 72px; object-fit: contain; background: #F2F3EC; }
.gal-item-tools { display: flex; justify-content: space-between; margin-top: 4px; }
.gal-item-tools button {
  appearance: none; background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--mono); font-size: 0.6rem; padding: 0.2rem 0.4rem; cursor: pointer;
}
.gal-item-tools button:hover { border-color: var(--acid); color: var(--acid); }
.gal-item-tools button.danger:hover { border-color: #FF5C47; color: #FF5C47; }
.gal-add { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.gal-add input[type="url"] { flex: 1; min-width: 200px; }
.gal-progress { color: var(--muted); }

.foot-links { display: flex; flex-direction: column; gap: 0.7rem; }
.cat-new { border-color: var(--acid); }
.cat-form .danger-wrap { margin-left: auto; }

/* ---------- cookies + polityka ---------- */

.cookie-banner {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 120;
  max-width: 520px;
  background: rgba(20, 22, 19, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--acid);
  padding: 1.5rem;
  animation: ov-in 0.4s ease;
}
.cookie-title { font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; margin-bottom: 0.5rem; }
.cookie-text p { color: var(--muted); font-size: 0.9rem; font-weight: 300; }
.cookie-text a { color: var(--acid); }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.consent-field { margin-bottom: 1.5rem; align-items: flex-start; }
.consent-field input[type="checkbox"] { margin-top: 3px; flex: none; }
.consent-field label { font-size: 0.82rem; font-weight: 300; text-transform: none; letter-spacing: 0; line-height: 1.5; }
.consent-field a { color: var(--acid); }
.foot-btn { appearance: none; background: transparent; border: 0; padding: 0; cursor: pointer; font-family: var(--sans); text-align: left; }
.legal { max-width: 74ch; }
.legal h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; margin: 2.5rem 0 0.9rem; }
.legal p, .legal li { color: var(--muted); font-weight: 300; line-height: 1.7; }
.legal ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--acid); }
.legal code { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); }
.legal-actions { margin-top: 3rem; }
@media (max-width: 720px) {
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; padding: 1.1rem; }
  .cookie-actions .btn-ghost, .cookie-actions .btn-solid { flex: 1; justify-content: center; }
}

/* ---------- admin: treści ---------- */
.content-sec { padding: 0; margin-bottom: 0.75rem; }
.content-sec summary { cursor: pointer; padding: 1.1rem 1.4rem; font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.02em; list-style: none; display: flex; justify-content: space-between; }
.content-sec summary::after { content: "+"; color: var(--acid); }
.content-sec[open] summary::after { content: "–"; }
.content-sec summary::-webkit-details-marker { display: none; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; padding: 0.5rem 1.4rem 1.4rem; border-top: 1px solid var(--line-soft); }
.content-grid .field-wide { grid-column: 1 / -1; }
.content-grid textarea { min-height: 90px; font-family: var(--sans); }
.content-foot { margin-top: 1.5rem; gap: 1rem; }
@media (max-width: 720px) { .content-grid { grid-template-columns: 1fr; } }

/* ---------- podstrony + konfigurator ---------- */
.sub-page .cat-head { margin-bottom: 2.5rem; }
.order-strip-sub { margin-top: 3rem; }
.konf-strip .order-inner { max-width: 640px; }
.order-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1rem 0 3rem; }
.cat-feats-like { border: 1px solid var(--line); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; background: var(--panel); }
.cat-feats-like .mono { color: var(--acid); }
.cat-feats-like strong { font-size: 1rem; font-weight: 600; }
.cat-feats-like p { color: var(--muted); font-size: 0.88rem; font-weight: 300; }
.nav-link-acid { color: var(--acid); }

.konf { display: flex; flex-direction: column; gap: 1.5rem; max-width: 900px; }
.konf-step { border: 1px solid var(--line); background: var(--panel); padding: 1.75rem; }
.konf-h { font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; margin-bottom: 1.25rem; display: flex; gap: 0.8rem; align-items: baseline; }
.konf-h .mono { color: var(--acid); }
.konf-label { color: var(--ink); margin: 1.25rem 0 0.7rem; }
.konf-label .muted { color: var(--muted); text-transform: none; letter-spacing: 0; }
.konf-choice { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.konf-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; margin-bottom: 1.25rem; }
.pill-radio, .pill-check { position: relative; cursor: pointer; }
.pill-radio input, .pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.pill-radio span, .pill-check span {
  display: block; border: 1px solid var(--line); padding: 0.7rem 1.1rem; font-size: 0.9rem; font-weight: 400;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pill-radio:hover span, .pill-check:hover span { border-color: var(--acid); }
.pill-radio input:checked + span { background: var(--acid); border-color: var(--acid); color: #0B0C0A; font-weight: 600; }
.pill-check input:checked + span { border-color: var(--acid); color: var(--acid); background: rgba(255, 205, 17, 0.08); }
.pill-check input:checked + span::before { content: "✓ "; }
.pill-check.is-fixed { cursor: default; }
.pill-check.is-fixed span { color: var(--muted); border-style: dashed; background: transparent; }
.pill-radio input:focus-visible + span, .pill-check input:focus-visible + span { outline: 2px solid var(--acid); outline-offset: 2px; }
.konf .field-row { margin-top: 1rem; }
.konf-thanks { border: 1px solid var(--acid); padding: 2.5rem; max-width: 720px; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.konf-thanks .cat-title { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
@media (max-width: 720px) {
  .order-steps { grid-template-columns: 1fr; }
  .konf-step { padding: 1.25rem; }
}
