/* =========================================================
   Sklep - PC Serwis – motyw „PC SERWIS”
   Ciemne, chłodne szarości + jeden akcent: pomarańcz.
   ========================================================= */

:root {
  --canvas: #18191d;       /* tło główne */
  --panel: #1e1f24;        /* panel / pole */
  --card: #24262c;         /* karta */
  --card-hover: #2b2d34;   /* karta (hover) */
  --line: #383b43;         /* obramowanie */
  --ink: #f0f0f2;          /* tekst główny */
  --muted: #9ba0aa;        /* tekst przygaszony */
  --g1: #1c1d21;           /* szary 1 (ciemny) */
  --g2: #3a3d45;           /* szary 2 */
  --g3: #60646e;           /* szary 3 */
  --accent: #f97316;       /* pomarańcz */
  --accent-soft: #fda050;  /* pomarańcz jasny */
  --accent-deep: #d6500a;  /* pomarańcz ciemny */
  --accent-ink: #1a0f02;   /* tekst na pomarańczowym */
  --ok: #4ade80;
  --danger: #f87171;

  --grad: linear-gradient(135deg, var(--accent-soft), var(--accent));
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1); /* 1 − (1 − x)³ */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* „Segoe UI” + grubość 600 = krój Segoe UI Semibold (bez sztucznego pogrubienia) */
  --font-semi: "Segoe UI", "Segoe UI Semibold", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Nagłówki, przyciski i etykiety: Segoe UI Semibold */
body :is(h1, h2, h3, h4), .font-semi, .btn, .label, .eyebrow { font-family: var(--font-semi); font-weight: 600; }

::selection { background: rgba(249, 115, 22, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Etykiety sekcji: wersaliki, mały rozmiar, rozstrzelone ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-soft);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
}

.label {
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Przyciski (display ustawiamy klasami Tailwind) ---------- */
.btn {
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s var(--ease-out), filter 0.2s var(--ease-out), background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { cursor: progress; opacity: 0.75; }

.btn-primary {
  background: var(--grad);
  color: var(--accent-ink);
  box-shadow: 0 10px 28px -12px rgba(249, 115, 22, 0.8);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 12px 32px -10px rgba(249, 115, 22, 0.9); }

.btn-secondary {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--card-hover); border-color: var(--g3); }

.btn-sm { min-height: 2.5rem; padding: 0.5rem 0.875rem; font-size: 0.875rem; }

.link-accent {
  color: var(--accent-soft);
  font-family: var(--font-semi);
  font-weight: 600;
  transition: color 0.2s var(--ease-out);
}
.link-accent:hover { color: var(--ink); }

/* ---------- Karty, panele, „okna” ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.card:hover { background: var(--card-hover); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* Okno: rogi 16 px i miękki cień */
.window {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.75), 0 2px 0 rgba(255, 255, 255, 0.02) inset;
}

/* Ikony: cienkie linie, przygaszone; pomarańczowe po najechaniu na kartę */
.icon-tile {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.card:hover .icon-tile,
.hover-accent:hover .icon-tile { color: var(--accent); border-color: rgba(249, 115, 22, 0.5); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  background: var(--grad);
  color: var(--accent-ink);
  font-family: var(--font-semi);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.chip-link { gap: 0.375rem; color: var(--ink); transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.chip-link span { color: var(--accent-soft); transition: transform 0.3s var(--ease-out); }
.chip-link:hover { border-color: var(--accent); }
.chip-link:hover span { transform: translateX(3px); }

/* ---------- Nagłówek z animowanym gradientem ---------- */
#site-header {
  background-color: var(--g1);
  background-image: linear-gradient(35deg, #1c1d21 0%, #3a3d45 32%, #e7620e 50%, #3a3d45 68%, #1c1d21 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
#site-header .brand,
#site-header .nav-link,
#site-header .header-phone { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); }

.nav-link {
  display: block;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-semi);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.nav-link:hover { background: rgba(24, 25, 29, 0.55); }
.nav-link[aria-current="true"],
.nav-link[aria-current="page"] { background: rgba(24, 25, 29, 0.7); color: var(--accent-soft); }

.header-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  color: var(--ink);
  transition: background-color 0.2s var(--ease-out), transform 0.12s var(--ease-out);
}
.header-btn:hover { background: rgba(24, 25, 29, 0.55); }
.header-btn:active { transform: scale(0.98); }

#mobile-menu { background: rgba(24, 25, 29, 0.97); }

/* ---------- Tło hero ---------- */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(240, 240, 242, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 72% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 72% 40%, #000 25%, transparent 75%);
}
.hero-glow {
  position: absolute;
  top: -12rem;
  right: -14rem;
  width: 46rem;
  height: 46rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), transparent 60%);
}

/* ---------- Animacja: gracz przy komputerze ---------- */
.gw-run   { animation: gw-run 2.4s linear infinite; }
.gw-far   { animation: gw-loop 14s linear infinite; }
.gw-near  { animation: gw-loop 7s linear infinite; }
.gw-jump  { animation: gw-jump 1.2s infinite; }
.gw-spin  { animation: gw-spin 1.1s linear infinite; }
.gw-head  { animation: gw-bob 1.2s ease-in-out infinite alternate; transform-origin: 300px 262px; }
.gw-mouse { animation: gw-mouse 1.2s ease-in-out infinite; }
.gw-key   { animation: gw-key 1.2s infinite; opacity: 0.15; }
.gw-pulse { animation: gw-pulse 2.4s ease-in-out infinite alternate; }
.gw-flick { animation: gw-flick 1.2s ease-in-out infinite alternate; }
.gw-steam { animation: gw-steam 3.2s ease-out infinite; opacity: 0; }
.gw-steam-2 { animation-delay: 1.6s; }

@keyframes gw-run   { to { transform: translateX(-280px); } }
@keyframes gw-loop  { to { transform: translateX(-284px); } }
@keyframes gw-spin  { to { transform: rotate(360deg); } }
@keyframes gw-bob   { to { transform: translateY(1.5px) rotate(-0.6deg); } }
@keyframes gw-jump {
  0%   { transform: translateY(-34px); animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0); }
  21%  { transform: translateY(0); animation-timing-function: linear; }
  79%  { transform: translateY(0); animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); }
  100% { transform: translateY(-34px); }
}
@keyframes gw-mouse {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(4px, -1px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(3px, 0); }
}
@keyframes gw-key {
  0%, 24% { opacity: 1; }
  25%, 100% { opacity: 0.15; }
}
@keyframes gw-pulse { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes gw-flick { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes gw-steam {
  0% { transform: translateY(4px); opacity: 0; }
  30% { opacity: 0.55; }
  100% { transform: translateY(-12px); opacity: 0; }
}

/*
 * Ekran monitora: 4 gry po 5 s, z płynnym przejściem.
 * Scena zaczyna się 0,4 s przed końcem poprzedniej (0 → 2% pojawienie, 25 → 27% zniknięcie).
 * Bez animacji (ograniczony ruch) widać tylko pierwszą grę.
 */
.gw-scene { animation: gw-scene 20s linear infinite; }
.gw-scene:not(.gw-s1) { opacity: 0; }
.gw-s1 { animation-delay: -0.4s; }
.gw-s2 { animation-delay: 4.6s; }
.gw-s3 { animation-delay: 9.6s; }
.gw-s4 { animation-delay: 14.6s; }
@keyframes gw-scene {
  0%   { opacity: 0; }
  2%   { opacity: 1; }
  25%  { opacity: 1; }
  27%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Wyścigi */
.gw-lane  { animation: gw-lane 0.45s linear infinite; }
.gw-steer { animation: gw-steer 1.8s ease-in-out infinite alternate; }
@keyframes gw-lane  { to { stroke-dashoffset: -20; } }
@keyframes gw-steer { from { transform: translateX(-18px); } to { transform: translateX(18px); } }

/* Strzelanka FPS */
.gw-strafe { animation: gw-strafe 2.2s ease-in-out infinite alternate; }
.gw-recoil { animation: gw-recoil 0.6s ease-out infinite; }
.gw-shot   { animation: gw-shot 0.6s steps(1) infinite; }
@keyframes gw-strafe { from { transform: translateX(-36px); } to { transform: translateX(36px); } }
@keyframes gw-recoil { 0% { transform: translate(2px, 5px); } 40%, 100% { transform: none; } }
@keyframes gw-shot   { 0% { opacity: 0.9; } 25%, 100% { opacity: 0; } }

/* Kosmiczna strzelanka */
.gw-stars   { animation: gw-stars 8s linear infinite; }
.gw-stars-2 { animation-duration: 14s; }
.gw-ship    { animation: gw-ship 2.6s ease-in-out infinite alternate; }
.gw-bullet  { animation: gw-bullet 0.9s linear infinite; }
.gw-bullet-2 { animation-delay: 0.45s; }
.gw-rock    { animation: gw-rock 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gw-stars  { to { transform: translateY(160px); } }
@keyframes gw-ship   { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@keyframes gw-bullet { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-120px); opacity: 0.2; } }
@keyframes gw-rock   { from { transform: translate(90px, -20px) rotate(0deg); } to { transform: translate(30px, 170px) rotate(360deg); } }

/* Konfigurator: część jeszcze niewybrana i nieaktywny przycisk zamówienia */
.bx-part.is-empty .bx-value { color: var(--accent-soft); font-weight: 400; }
.bx-part.is-empty .bx-cost { color: var(--muted); }
.bx-order.is-disabled { filter: saturate(0.35); opacity: 0.75; cursor: pointer; }

/* ---------- Raport serwisowy ---------- */
.diag-track {
  position: relative;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--g1);
}
.diag-before,
.diag-after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--before);
  border-radius: inherit;
}
.diag-before {
  background: repeating-linear-gradient(135deg, var(--g3) 0 4px, var(--g2) 4px 8px);
}
.diag-after {
  background: var(--g3);
  transition: width 1.6s var(--ease-out), background-color 1.2s var(--ease-out), box-shadow 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 180ms + 300ms);
}
.is-run .diag-after {
  width: var(--after);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-soft));
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.55);
}
.diag-check {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 150ms + 2s);
}
.is-run .diag-check { opacity: 1; transform: none; }

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent);
}
[data-state="running"] { color: var(--accent-soft); }
[data-state="running"] .status-dot { animation: gw-pulse 0.55s ease-in-out infinite alternate; }
[data-state="done"] { color: var(--ok); }
[data-state="done"] .status-dot,
[data-open="true"] .status-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }
[data-open="false"] .status-dot { background: var(--g3); }

/* ---------- Zakładki i przełączniki segmentowe ---------- */
.segmented {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.segmented.is-full { display: flex; width: 100%; }
.segmented.is-full button { flex: 1 1 0; padding-left: 0.5rem; padding-right: 0.5rem; }
.segmented-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 6px 18px -8px rgba(249, 115, 22, 0.9);
  pointer-events: none;
}
.segmented button {
  position: relative;
  z-index: 1;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--font-semi);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), transform 0.12s var(--ease-out);
}
.segmented button:hover { color: var(--ink); }
.segmented button:active { transform: scale(0.98); }
.segmented button[aria-selected="true"],
.segmented button[aria-pressed="true"] { color: var(--accent-ink); }

/* Zakładki gotowych zestawów */
.tab {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--font-semi);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), transform 0.12s var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab:active { transform: scale(0.98); }
.tab[aria-selected="true"] { background: var(--grad); color: var(--accent-ink); }

/* =========================================================
   Konfigurator – „karta zlecenia”
   Płaskie panele, cienkie linie, liczby w kroju monospace.
   Zamiast poświat: kreski, podkreślenia i ruch.
   ========================================================= */
:root {
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SFMono-Regular", ui-monospace, monospace;
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
}
.mono { font-family: var(--mono); }

.bx-kicker {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent-soft);
}
.bx-kicker span { color: var(--g3); margin: 0 0.25rem; }
.bx-small { color: var(--muted); font-size: 0.8125rem; }

.bx-intro { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 900px) { .bx-intro { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.bx-presets {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin-top: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.bx-presets button {
  padding: 0.625rem 0;
  min-height: 2.75rem;
  color: var(--muted);
  font-family: var(--font-semi);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}
.bx-presets button:hover,
.bx-presets button[aria-checked="true"] { color: var(--ink); }
.bx-presets-bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: opacity 0.2s var(--ease-out);
  pointer-events: none;
}

.bx { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 1024px) {
  .bx { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; }
  .bx-side { position: sticky; top: 5.5rem; align-self: start; }
}

/* Podgląd: ciemny stół z siatką jak na kartce technicznej */
.bx-stage {
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #16171a;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  overflow: hidden;
}
.bx-stage-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.bx-watt { color: var(--ink); font-variant-numeric: tabular-nums; }
.bx-led { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: bx-blink 2.4s steps(1) infinite; }
@keyframes bx-blink { 0%, 92% { opacity: 1; } 93%, 100% { opacity: 0.2; } }

.bx-render { aspect-ratio: 9 / 11; max-width: 380px; margin: 0 auto; padding: 1rem; }
.bx-render .rp { transition: opacity 0.25s var(--ease-out), filter 0.25s var(--ease-out); }
.bx-render[data-hl] .rp { opacity: 0.3; }
.bx-render[data-hl="gpu"] [data-rp="gpu"],
.bx-render[data-hl="cpu"] [data-rp="cpu"],
.bx-render[data-hl="ram"] [data-rp="ram"],
.bx-render[data-hl="disk"] [data-rp="disk"],
.bx-render[data-hl="board"] [data-rp="board"],
.bx-render[data-hl="psu"] [data-rp="psu"] { opacity: 1; filter: drop-shadow(0 0 5px rgba(249, 115, 22, 0.55)); }
.bx-render .r-ring { stroke-opacity: 0.55; }

/* Suma i licznik bębnowy */
.bx-total {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.bx-price {
  display: flex;
  align-items: baseline;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.bx-cur { margin-left: 0.4rem; font-size: 1.125rem; color: var(--muted); font-weight: 400; }
.odo { display: inline-flex; height: 1em; overflow: hidden; font-variant-numeric: tabular-nums; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-s { display: flex; flex-direction: column; transition: transform 0.75s var(--ease-snap); }
.odo-s > span, .odo-sep { display: block; height: 1em; line-height: 1em; }
.odo-sep { width: 0.3em; }
.bx-order { background: var(--accent); box-shadow: none; }
.bx-order:hover { background: var(--accent-soft); filter: none; box-shadow: none; }

/* Arkusz z listą części */
.bx-sheet { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.bx-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 1.25rem 1.125rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .bx-sheet-head { padding: 1.5rem 1.5rem 1.25rem; } }

.bx-link {
  color: var(--accent-soft);
  font-family: var(--font-semi);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: rgba(253, 160, 80, 0.35);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}
.bx-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

.bx-part { position: relative; border-bottom: 1px solid var(--line); }
.bx-part::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-snap);
}
.bx-part.is-open::before { transform: scaleY(1); }

.bx-row {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto 1rem;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4rem;
  padding: 0.875rem 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}
@media (min-width: 640px) { .bx-row { padding: 0.875rem 1.5rem; gap: 1rem; } }
.bx-row:hover { background: var(--card); }
.bx-no { font-family: var(--mono); font-size: 0.75rem; color: var(--g3); }
.bx-part.is-open .bx-no { color: var(--accent-soft); }
.bx-what { display: flex; flex-direction: column; min-width: 0; }
.bx-label { color: var(--muted); font-size: 0.8125rem; }
.bx-value { display: block; color: var(--ink); font-family: var(--font-semi); font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-cost { font-family: var(--mono); font-size: 0.875rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bx-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--g3);
  border-bottom: 2px solid var(--g3);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.35s var(--ease-snap), border-color 0.2s var(--ease-out);
}
.bx-row:hover .bx-caret { border-color: var(--ink); }
.bx-part.is-open .bx-caret { transform: translateY(2px) rotate(225deg); border-color: var(--accent-soft); }

/* Szuflada: animacja wysokości przez grid-template-rows */
.bx-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-snap); }
.bx-part.is-open .bx-drawer { grid-template-rows: 1fr; }
.bx-drawer-in { min-height: 0; overflow: hidden; }
.bx-drawer-body { padding: 0 1.25rem 1.25rem; }
@media (min-width: 640px) { .bx-drawer-body { padding: 0 1.5rem 1.5rem 4.25rem; } }
.bx-part:not(.is-open) .bx-drawer-body { visibility: hidden; transition: visibility 0s 0.5s; }

.bx-filters { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.75rem; }
.bx-filters button,
.cat-chip {
  min-height: 2rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.bx-filters button:hover,
.cat-chip:hover { color: var(--ink); border-color: var(--g3); }
.bx-filters button[aria-pressed="true"],
.cat-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }

.bx-opt-head,
.bx-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.75rem; align-items: center; }
.bx-opt-head { padding: 0 0.75rem 0.375rem; color: var(--g3); font-family: var(--mono); font-size: 0.6875rem; }
.bx-opt-head span:nth-child(2) { display: none; }
.bx-opt-head span:last-child { text-align: right; }
.bx-opts { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.bx-opt {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-top: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.bx-opt:first-child { border-top: 0; }
.bx-opt:hover { background: var(--card); }
.bx-opt[aria-checked="true"] { background: rgba(249, 115, 22, 0.08); box-shadow: inset 3px 0 0 var(--accent); }
.bx-opt.is-simple { grid-template-columns: minmax(0, 1fr) auto; }
.bx-opt .bx-meter { display: none; }
@media (min-width: 640px) {
  .bx-opt-head, .bx-opt { grid-template-columns: minmax(0, 1fr) 5.5rem 5.25rem 6rem; gap: 1rem; }
  .bx-opt-head span:nth-child(2), .bx-opt .bx-meter { display: inline-grid; }
}
.bx-opt-name { min-width: 0; color: var(--ink); font-family: var(--font-semi); font-weight: 600; font-size: 0.9375rem; }
.bx-opt-name small { display: block; margin-top: 0.125rem; color: var(--muted); font-family: var(--font); font-weight: 400; font-size: 0.75rem; line-height: 1.4; }
.bx-meter { grid-auto-flow: column; gap: 2px; }
.bx-meter i { display: block; width: 6px; height: 10px; background: var(--line); }
.bx-meter i.on { background: var(--accent-soft); }
.bx-opt[aria-checked="true"] .bx-meter i.on { background: var(--accent); }
.bx-opt-fps { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; white-space: nowrap; }
.bx-opt-fps b { color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.bx-opt-diff { color: var(--muted); font-family: var(--mono); font-size: 0.8125rem; text-align: right; white-space: nowrap; }
.bx-opt-diff.up { color: var(--accent-soft); }
.bx-opt-diff.down { color: var(--ok); }
.bx-opt[aria-checked="true"] .bx-opt-diff { color: var(--ink); }

.bx-part.is-entering .bx-opt,
.bx-part.is-entering .bx-filters,
.bx-part.is-entering .bx-opt-head { animation: bx-rise 0.5s var(--ease-snap) both; animation-delay: calc(var(--n, 0) * 22ms + 80ms); }
@keyframes bx-rise { from { opacity: 0; transform: translateY(8px); } }

/* Części dobrane automatycznie */
.bx-auto { padding: 1.125rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--g1); }
@media (min-width: 640px) { .bx-auto { padding: 1.25rem 1.5rem; } }
.bx-auto-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.125rem 1rem;
  align-items: baseline;
  margin: 0 -0.5rem;
  padding: 0.5rem;
  border-radius: 3px;
  font-size: 0.875rem;
}
.bx-auto-row + .bx-auto-row { border-top: 1px dashed var(--line); border-radius: 0; }
.bx-auto-label { grid-column: 1 / -1; color: var(--muted); font-size: 0.75rem; }
.bx-auto-name { color: var(--ink); }
.bx-auto-name small { margin-left: 0.5rem; color: var(--g3); font-family: var(--mono); font-size: 0.6875rem; }
.bx-auto-price { color: var(--muted); font-family: var(--mono); font-size: 0.8125rem; white-space: nowrap; }
@media (min-width: 640px) {
  .bx-auto-row { grid-template-columns: 7.5rem minmax(0, 1fr) auto; }
  .bx-auto-label { grid-column: auto; font-size: 0.8125rem; }
}
.bx-auto-row.is-changed { animation: bx-flash 1.4s var(--ease-out); }
@keyframes bx-flash { from { background: rgba(249, 115, 22, 0.18); } to { background: transparent; } }

/* Monitor i balans */
.bx-perf { padding: 1.25rem 1.25rem 1.5rem; }
@media (min-width: 640px) { .bx-perf { padding: 1.5rem; } }
.bx-mon { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.bx-mon-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 0.75rem 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), box-shadow 0.3s var(--ease-snap);
}
.bx-mon-cell + .bx-mon-cell { border-left: 1px solid var(--line); }
.bx-mon-cell:hover { background: var(--card); }
.bx-mon-cell[aria-checked="true"] { background: var(--card); box-shadow: inset 0 -3px 0 var(--accent); }
.bx-mon-res { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; }
.bx-mon-fps { color: var(--ink); font-family: var(--mono); font-size: 0.8125rem; }
.bx-mon-fps [data-fps] { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bx-mon-verdict { font-size: 0.75rem; }
.bx-mon-cell[data-level="ok"] .bx-mon-verdict { color: var(--accent-soft); }
.bx-mon-cell[data-level="compromise"] .bx-mon-verdict { color: var(--muted); }
.bx-mon-cell[data-level="weak"] .bx-mon-verdict { color: var(--danger); }
.bx-mon-cell[data-level="weak"] [data-fps] { color: var(--danger); }

.bx-scale {
  position: relative;
  height: 18px;
  background:
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--g2) 0 1px, transparent 1px 10%) 0 50% / 100% 10px no-repeat;
}
.bx-scale-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42.4%;
  width: 29.3%;
  background: rgba(74, 222, 128, 0.1);
  border-left: 1px solid rgba(74, 222, 128, 0.45);
  border-right: 1px solid rgba(74, 222, 128, 0.45);
}
.bx-scale-pin {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 1px;
  background: var(--ink);
  transition: background-color 0.3s var(--ease-out);
}
.bx-scale-pin[data-state="cpu"] { background: var(--danger); }
.bx-scale-pin[data-state="ok"] { background: var(--ok); }
.bx-scale-pin[data-state="gpu"] { background: var(--accent-soft); }
.bx-scale-cap { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; color: var(--g3); font-family: var(--mono); font-size: 0.6875rem; }
.bx-scale-cap span:nth-child(2) { display: none; }
@media (min-width: 640px) { .bx-scale-cap span:nth-child(2) { display: inline; } }

/* Paski FPS podzielone na segmenty */
.fps-bar { height: 6px; border-radius: 0; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); mask-image: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); }

/* =========================================================
   Animacje wejścia (assets/js/site.js)
   ========================================================= */
.js [data-rv] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-snap);
  transition-delay: calc(var(--rv, 0) * 70ms);
}
.js [data-rv].is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease-snap); transition-delay: calc(var(--wi, 0) * 40ms); }
.split.is-in .w > span { transform: none; }

/* =========================================================
   Podstrony kategorii (procesory, karty graficzne)
   ========================================================= */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--muted); font-family: var(--mono); font-size: 0.75rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--g3); }

.cat-switch { display: flex; gap: 1.75rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cat-switch a {
  position: relative;
  padding: 0.875rem 0;
  color: var(--muted);
  font-family: var(--font-semi);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}
.cat-switch a:hover { color: var(--ink); }
.cat-switch a[aria-current="page"] { color: var(--ink); }
.cat-switch a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.cat-switch small { margin-left: 0.375rem; color: var(--g3); font-family: var(--mono); font-weight: 400; }

.cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.cat-tools .cat-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.cat-tools .cat-group > span { margin-right: 0.25rem; color: var(--g3); font-family: var(--mono); font-size: 0.75rem; }
.cat-sort { min-height: 2rem; padding: 0.25rem 2rem 0.25rem 0.625rem; font-family: var(--mono); font-size: 0.75rem; border-radius: 4px; background-position: right 0.5rem center; background-size: 0.875rem; }

.cat-list { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.cat-row {
  display: grid;
  gap: 1rem 2rem;
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.cat-row:first-child { border-top: 0; }
@media (min-width: 640px) { .cat-row { padding: 1.5rem; } }
@media (min-width: 1024px) { .cat-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 11rem; align-items: center; } }
.cat-brand { color: var(--g3); font-family: var(--mono); font-size: 0.75rem; }
.cat-name { margin-top: 0.125rem; color: var(--ink); font-family: var(--font-semi); font-weight: 600; font-size: 1.125rem; }
.cat-desc { margin-top: 0.375rem; color: var(--muted); font-size: 0.875rem; line-height: 1.6; max-width: 46ch; }
.cat-specs { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem; }
.cat-specs li { padding: 0.125rem 0.5rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-family: var(--mono); font-size: 0.6875rem; }

.cat-metric + .cat-metric { margin-top: 0.875rem; }
.cat-metric-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.75rem; }
.cat-metric-top b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.cat-bar {
  position: relative;
  height: 8px;
  margin-top: 0.375rem;
  background: var(--line);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
  mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
}
.cat-bar > i {
  position: absolute;
  inset: 0;
  width: var(--w);
  background: var(--accent-soft);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-snap);
  transition-delay: 0.15s;
}
.cat-bar.is-alt > i { background: var(--g3); }
.cat-row.is-in .cat-bar > i, .no-js .cat-bar > i { transform: none; }

.cat-fps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 4px; }
.cat-fps > div { padding: 0.5rem 0.625rem; }
.cat-fps > div + div { border-left: 1px solid var(--line); }
.cat-fps dt { color: var(--g3); font-family: var(--mono); font-size: 0.6875rem; }
.cat-fps dd { color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 1rem; }
.cat-fps dd.weak { color: var(--danger); }

.cat-buy { display: flex; flex-direction: column; gap: 0.5rem; }
@media (max-width: 1023px) { .cat-buy { flex-direction: row; flex-wrap: wrap; align-items: center; } .cat-buy .cat-price { margin-right: auto; } }
.cat-price { color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 1.375rem; }
.cat-price small { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.cat-empty { padding: 3rem 1.5rem; color: var(--muted); text-align: center; }

/* =========================================================
   Polityka prywatności
   ========================================================= */
.doc { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .doc { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; } .doc-toc { position: sticky; top: 6rem; align-self: start; } }
.doc-toc ol { border-left: 1px solid var(--line); }
.doc-toc a {
  display: flex;
  gap: 0.75rem;
  margin-left: -1px;
  padding: 0.375rem 0 0.375rem 1rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.doc-toc a span { color: var(--g3); font-family: var(--mono); font-size: 0.75rem; padding-top: 0.125rem; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a[aria-current="true"] { color: var(--ink); border-color: var(--accent); }
.doc-body { max-width: 70ch; }
.doc-body section { scroll-margin-top: 6rem; }
.doc-body section + section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.doc-body h2 { display: flex; gap: 0.875rem; align-items: baseline; color: var(--ink); font-size: 1.375rem; }
.doc-body h2 span { color: var(--accent-soft); font-family: var(--mono); font-weight: 400; font-size: 0.875rem; }
.doc-body p, .doc-body li { color: var(--muted); line-height: 1.75; }
.doc-body p { margin-top: 0.875rem; }
.doc-body ul { margin-top: 0.875rem; padding-left: 1.25rem; list-style: none; }
.doc-body ul li { position: relative; margin-top: 0.375rem; }
.doc-body ul li::before { content: ""; position: absolute; left: -1.125rem; top: 0.75em; width: 0.5rem; height: 1px; background: var(--accent); }
.doc-body strong { color: var(--ink); font-family: var(--font-semi); font-weight: 600; }
.doc-body a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:hover { color: var(--ink); }
.doc-table { width: 100%; margin-top: 1rem; border: 1px solid var(--line); border-collapse: collapse; font-size: 0.875rem; }
.doc-table th, .doc-table td { padding: 0.75rem 0.875rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); line-height: 1.6; }
.doc-table th { color: var(--ink); font-family: var(--font-semi); font-weight: 600; }
.doc-table thead th { background: var(--g1); color: var(--muted); font-family: var(--mono); font-weight: 400; font-size: 0.75rem; }
/* ---------- Koszyk ---------- */
.header-cart { position: relative; }
.cart-badge {
  position: absolute; top: 2px; right: 0; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
  border-radius: 999px; background: #f97316; color: #1a0f02; font-size: 0.7rem; font-weight: 700; line-height: 1.15rem; text-align: center;
}
.cart-badge[hidden] { display: none; }
.cart-toast {
  position: fixed; right: 1rem; top: 5rem; z-index: 95; display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 0.9rem 0.75rem 1.1rem; border: 1px solid #383b43; border-left: 3px solid #f97316; border-radius: 10px;
  background: #1e1f24; color: #f0f0f2; font-size: 0.9rem; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
}
.cart-toast[hidden] { display: none; }
.cart-toast.is-in { animation: cookie-in 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.qty { display: inline-flex; align-items: center; border: 1px solid #383b43; border-radius: 8px; overflow: hidden; }
.qty button { width: 2.25rem; height: 2.25rem; color: #f0f0f2; background: #24262c; font-size: 1.1rem; }
.qty button:hover:not(:disabled) { background: #2b2d34; }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty span { min-width: 2.25rem; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Status zamówienia ---------- */
.track-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 18rem; padding: 2rem; border: 1px dashed #383b43; border-radius: 14px; background: rgba(28, 29, 33, 0.5);
}
.track-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.track-step { position: relative; display: grid; grid-template-columns: 1.75rem 1fr; gap: 1rem; padding-bottom: 1.6rem; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { /* linia łącząca kroki */
  content: ''; position: absolute; left: calc(0.875rem - 1px); top: 1.75rem; bottom: 0; width: 2px; background: #383b43;
}
.track-step:last-child::before { display: none; }
.track-step.is-done::before { background: linear-gradient(#f97316, #d6500a); }
.track-dot {
  width: 1.75rem; height: 1.75rem; border-radius: 999px; display: grid; place-items: center;
  border: 2px solid #3a3d45; background: #1c1d21; color: #1a0f02;
}
.track-step.is-done .track-dot { background: #f97316; border-color: #f97316; }
.track-step.is-current .track-dot { border-color: #f97316; box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.18); }
.track-step.is-current .track-dot::after { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 999px; background: #f97316; animation: gw-pulse 1.2s ease-in-out infinite alternate; }
.track-title { color: #9ba0aa; font-weight: 600; line-height: 1.75rem; }
.track-step.is-done .track-title, .track-step.is-current .track-title { color: #f0f0f2; }
.track-text { margin-top: 0.15rem; font-size: 0.875rem; color: #9ba0aa; line-height: 1.55; }
.track-date { margin-top: 0.2rem; font-size: 0.75rem; color: #60646e; font-family: var(--mono, monospace); }
.track-parcel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 1.75rem; padding: 1rem 1.1rem; border: 1px solid #383b43; border-radius: 12px; background: #1c1d21; }
.track-cancel { padding: 1rem 1.1rem; border: 1px solid rgba(248, 113, 113, 0.4); border-radius: 12px; background: rgba(248, 113, 113, 0.08); }

/* ---------- Sklep ---------- */
.shop-card { display: flex; flex-direction: column; overflow: hidden; }
.shop-img { position: relative; aspect-ratio: 4 / 3; background: #1e1f24; border-bottom: 1px solid #383b43; display: grid; place-items: center; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-img .chip { position: absolute; left: 0.75rem; top: 0.75rem; }
/* Znaczek promocji na zdjęciu przedmiotu */
.shop-sale { position: absolute; right: 0.75rem; top: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: #f97316; color: #1a0f02; font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.shop-specs { margin-top: 1rem; display: grid; gap: 0.4rem; font-size: 0.875rem; }
.shop-specs div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #383b43; padding-bottom: 0.4rem; }
.shop-specs dt { color: #9ba0aa; white-space: nowrap; }
.shop-specs dd { color: #f0f0f2; text-align: right; }
.shop-stock { font-size: 0.8rem; }
.shop-stock.is-low { color: #fda050; }
.shop-stock.is-out { color: #f87171; }
.shop-tab[aria-selected="true"] { background: #f97316; border-color: #f97316; color: #1a0f02; }

/* Baner zgody na pliki cookies */
.cookie-banner {
  position: fixed; inset: auto 1rem 1rem; z-index: 90;
  max-width: 60rem; margin: 0 auto;
  background: var(--panel, #1e1f24); color: var(--ink, #f0f0f2);
  border: 1px solid var(--line, #383b43); border-top: 2px solid #f97316; border-radius: 12px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  animation: cookie-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.1rem 1.25rem; }
.cookie-text { flex: 1 1 26rem; font-size: 0.875rem; line-height: 1.55; color: var(--muted, #9ba0aa); }
.cookie-text strong { color: var(--ink, #f0f0f2); font-weight: 600; }
.cookie-text a { color: #fda050; text-decoration: underline; text-underline-offset: 2px; }
.cookie-title { color: var(--ink, #f0f0f2); font-weight: 600; margin-bottom: 0.25rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-link { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.cookie-link:hover { color: var(--ink, #f0f0f2); }
@keyframes cookie-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
@media print { .cookie-banner { display: none !important; } }

/* Wzór formularza odstąpienia – wygląda jak kartka do wydruku */
.doc-paper {
  position: relative;
  max-width: 44rem;
  margin-top: 1.5rem;
  padding: 2.75rem 3rem 2.25rem;
  background: #fbfaf7;
  color: #1f2024;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -12px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  line-height: 1.6;
}
.doc-paper::before { /* delikatny pasek u góry, jak na papierze firmowym */
  content: ''; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #fda050, #d6500a);
}
.doc-paper p { margin: 0; color: inherit; }
.doc-paper strong { color: #111; }
.doc-paper a { color: inherit; }
.paper-top { text-align: right; }
.paper-place { font-size: 0.9rem; }
.paper-hint { margin-top: 0.15rem !important; font-size: 0.72rem; color: #6b6e76 !important; }
.paper-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6e76 !important; margin-bottom: 0.35rem !important; }
.paper-from { margin-top: 1.5rem; max-width: 19rem; }
.paper-to { margin-top: 1.5rem; margin-left: auto; max-width: 17rem; }
.doc-paper .paper-title { margin: 2.25rem 0 1.25rem; text-align: center; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em; color: #111; line-height: 1.35; }
.doc-paper .paper-title span { font-size: 0.9rem; font-weight: 400; color: #4b4e56; }
.paper-text { margin-top: 1.25rem !important; }
.paper-line { height: 1.9rem; border-bottom: 1px dotted #8b8e96; }
.paper-iban { max-width: 30rem; }
.paper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin-top: 1rem; }
.paper-sign { margin: 2.5rem 0 0 auto; max-width: 17rem; text-align: center; }
.paper-foot { margin-top: 2rem !important; font-size: 0.75rem; color: #6b6e76 !important; }
@media (max-width: 640px) {
  .doc-paper { padding: 2rem 1.25rem 1.75rem; }
  .paper-grid { grid-template-columns: 1fr; }
}

/* Drukowanie samego formularza (przycisk „Wydrukuj formularz”) */
@media print {
  body.print-only-form * { visibility: hidden !important; }
  body.print-only-form .doc-paper, body.print-only-form .doc-paper * { visibility: visible !important; }
  body.print-only-form .doc-paper { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; box-shadow: none; padding: 1.5cm 1.8cm; }
  body.print-only-form { background: #fff !important; }
}
.doc-fill { padding: 0 0.25rem; border-radius: 3px; background: rgba(249, 115, 22, 0.12); color: var(--accent-soft); font-family: var(--mono); font-size: 0.875em; }

/* ---------- FPS ---------- */
.fps-card { position: relative; overflow: hidden; }
.fps-card::before {
  content: "";
  position: absolute;
  top: 0.875rem;
  bottom: 0.875rem;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad);
  opacity: var(--level, 0.6);
}
.fps-bar { height: 4px; overflow: hidden; border-radius: 4px; background: var(--g1); }
.fps-bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-soft));
}

/* ---------- Specyfikacja: siatka podzespołów ---------- */
.spec-grid { display: grid; grid-template-columns: 1fr; }
.spec-grid > * { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid > *:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-grid > *:nth-child(odd) { border-right: 0; }
  .spec-grid > *:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
}
.spec-grid > *:last-child { border-bottom: 0; }
@media (min-width: 640px) and (max-width: 1023px) { .spec-grid > *:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
@media (min-width: 1024px) { .spec-grid > *:nth-last-child(-n + 3) { border-bottom: 0; } }
.spec-cell { transition: background-color 0.25s var(--ease-out); }
.spec-cell:hover { background: var(--card-hover); }
.spec-cell .spec-icon { color: var(--muted); transition: color 0.25s var(--ease-out); }
.spec-cell:hover .spec-icon { color: var(--accent); }

/* ---------- Formularz ---------- */
.field-label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--ink);
  font-family: var(--font-semi);
  font-size: 0.875rem;
  font-weight: 600;
}
.field-label .req { color: var(--accent-soft); }

.field {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.field::placeholder { color: var(--g3); }
.field:hover { border-color: var(--g3); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22); }
.field[aria-invalid="true"] { border-color: var(--danger); }
.field[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22); }

select.field {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba0aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.125rem;
}
select.field option { background: var(--panel); color: var(--ink); }
textarea.field { min-height: 7.5rem; resize: vertical; }

.field-error {
  display: flex;
  gap: 0.375rem;
  align-items: flex-start;
  margin-top: 0.375rem;
  color: var(--danger);
  font-size: 0.8125rem;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), transform 0.12s var(--ease-out);
}
.choice span:hover { color: var(--ink); background: var(--card-hover); }
.choice span:active { transform: scale(0.98); }
.choice input:checked + span { border-color: var(--accent); background: rgba(249, 115, 22, 0.12); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="range"]:not(.stepper-input) { accent-color: var(--accent); height: 2.75rem; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(26, 15, 2, 0.3);
  border-top-color: var(--accent-ink);
  border-radius: 999px;
  animation: gw-spin 0.7s linear infinite;
}

/* ---------- Ikony, etykiety, przełączniki radio ---------- */
svg.ico,
svg.ico-lg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
svg.ico { stroke-width: 2; }
svg.ico-lg { stroke-width: 1.5; }
.label-accent { color: var(--accent-soft); }
.segmented button[aria-checked="true"] { color: var(--accent-ink); }

/* ---------- Ograniczenie ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gw *, .render-glow, .gw-spin { animation: none !important; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* Opinie z Google: pomarańczowe karty w pasku przesuwającym się w lewo (assets/js/reviews.js) */
.stars { display: inline-flex; gap: 0.125rem; }
.review-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--grad); color: var(--accent-ink); font-family: var(--font-semi); font-weight: 600;
}
.review-cta { padding: 1.25rem; border: 1px solid rgba(249, 115, 22, 0.35); border-radius: 12px; background: rgba(249, 115, 22, 0.07); }

.reviews-marquee { position: relative; container-type: inline-size; overflow: hidden; }
.reviews-marquee.is-moving {
  /* Karty łagodnie znikają przy krawędziach */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* Pomarańczowe światło na środku paska – miękkie, zanika do zera daleko przed krawędziami (bez prostokątnych brzegów) */
.reviews-stage {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 26% 38% at 50% 50%, rgba(249, 115, 22, 0.20), rgba(249, 115, 22, 0.07) 55%, rgba(249, 115, 22, 0) 100%);
  animation: reviews-breathe 4s ease-in-out infinite;
}.reviews-marquee:not(.is-moving) .reviews-stage { display: none; }
@keyframes reviews-breathe { 50% { opacity: 0.6; } }

.reviews-track { position: relative; display: flex; width: max-content; padding: 4.5rem 0; will-change: transform; }
/* Odstęp jako padding slajdu: obie połowy paska mają wtedy dokładnie tę samą szerokość */
.review-slide { --f: 1; display: flex; flex: none; box-sizing: border-box; width: calc((100cqw + 1.25rem) / 3); padding-right: 1.25rem; }
.reviews-marquee:not(.is-moving) .reviews-track { width: 100%; }
@media (max-width: 1023px) { .review-slide { width: calc((100cqw + 1.25rem) / 2); } }
@media (max-width: 639px) { .review-slide { width: calc(86cqw + 1rem); padding-right: 1rem; } }

@property --review-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.review-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; padding: 1.5rem;
  border: 1px solid rgba(249, 115, 22, calc(0.22 * (1 - var(--f)) + 0.06));
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(249, 115, 22, calc(0.05 + 0.22 * var(--f))), transparent 70%),
    var(--card);
  opacity: calc(0.5 + 0.5 * var(--f));
  transform: scale(calc(0.93 + 0.07 * var(--f))) translateY(calc(-6px * var(--f)));
  /* Poświata mieści się w marginesie paska (4,5 rem), więc nigdzie nie jest ucinana */
  box-shadow:
    0 0 40px -8px rgba(249, 115, 22, calc(0.5 * var(--f))),
    0 18px 40px -26px rgba(0, 0, 0, 0.85);
  transition: none;
}
/* Obracająca się pomarańczowa ramka – widoczna na karcie w środku */
.review-card::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background:
    conic-gradient(from var(--review-angle), rgba(253, 160, 80, 0) 0%, rgba(253, 160, 80, 0.9) 18%, #ffd9b8 25%, rgba(249, 115, 22, 0.9) 32%, rgba(249, 115, 22, 0) 50%),
    linear-gradient(rgba(249, 115, 22, 0.55), rgba(249, 115, 22, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--f);
  animation: review-spin 3.2s linear infinite;
  pointer-events: none;
}
@keyframes review-spin { to { --review-angle: 360deg; } }
/* Pomarańczowa linia u góry, rozjaśnia się na środku */
.review-card::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0), rgba(255, 210, 168, 0.9), rgba(249, 115, 22, 0));
  opacity: calc(0.15 + 0.6 * var(--f));
}
.review-card .stars { filter: drop-shadow(0 0 calc(6px * var(--f)) rgba(249, 115, 22, 0.9)); }
.review-card blockquote { color: #c9ccd3; }
.review-card .review-avatar { box-shadow: 0 0 calc(16px * var(--f)) rgba(249, 115, 22, calc(0.7 * var(--f))); }

/* Ograniczony ruch: bez animacji, opinie przewija się palcem / kółkiem */
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee.is-moving { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .reviews-marquee.is-moving .review-slide { scroll-snap-align: start; }
  .reviews-marquee.is-moving .review-slide[aria-hidden="true"] { display: none; }
  .reviews-stage, .review-card::after { animation: none; }
}