/* =========================================================
   ATRAX – serwis komputerów, laptopów i konsol
   Paleta przewodnia: biel + odcienie niebieskiego.
   Trendy 2026: bento grid, „floating minimalism”, szkło (glass),
   duża typografia, mikrointerakcje, tryb ciemny, dostępność.
   ========================================================= */

:root {
  --blue-50: #f0f7ff;
  --blue-100: #e0efff;
  --blue-200: #bfdcff;
  --blue-300: #8cc4ff;
  --blue-400: #4fa8ff;
  --blue-500: #1f8bff;
  --blue-600: #1f7ae0;
  --blue-700: #1557c0;
  --blue-800: #0f3f8f;
  --blue-900: #0b2a5b;
  --cyan: #22d3ee;
  --neon: #5ee7ff;
  --violet: #7c5cff;

  --bg: #f7fbff;
  --bg-2: #eef6ff;
  --surface: #ffffff;
  --surface-2: #f3f8ff;
  --glass: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .8);
  --text: #0b1b33;
  --text-2: #42577a;
  --muted: #6b7f9e;
  --border: #dbe7f6;
  --primary: var(--blue-600);
  --primary-2: var(--blue-500);
  --primary-ink: #ffffff;
  --shadow-sm: 0 2px 8px rgba(21, 87, 192, .06);
  --shadow: 0 10px 30px -10px rgba(21, 87, 192, .22);
  --shadow-lg: 0 30px 60px -20px rgba(21, 87, 192, .35);
  --glow: 0 0 0 1px rgba(79, 168, 255, .25), 0 10px 40px -10px rgba(34, 211, 238, .55);

  --hol-1: var(--blue-500);
  --hol-2: var(--cyan);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1280px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #060f22;
  --bg-2: #0a1830;
  --surface: #0e1f3d;
  --surface-2: #12274b;
  --glass: rgba(16, 36, 70, .55);
  --glass-border: rgba(120, 180, 255, .18);
  --text: #e8f2ff;
  --text-2: #b4c8e8;
  --muted: #8299bd;
  --border: #1d3561;
  --primary: var(--blue-500);
  --primary-2: var(--blue-400);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Reset / podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--primary); color: #fff; padding: .6em 1em; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 780px; }
.container--mid { max-width: 980px; }

/* ---------- Przyciski ---------- */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font); cursor: pointer; white-space: nowrap;
  background: var(--b); color: var(--text);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; box-shadow: 0 8px 24px -8px rgba(31, 122, 224, .7);
}
.btn-primary:hover { color: #fff; box-shadow: var(--glow); }
.btn-ghost { background: var(--glass); border-color: var(--border); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--primary); }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-success { background: #16a34a; color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .875rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .3em .8em; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--blue-100); color: var(--blue-800); border: 1px solid transparent;
}
[data-theme="dark"] .chip { background: rgba(79,168,255,.15); color: var(--blue-200); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.25); animation: pulse 2s infinite; }
.link-arrow { font-weight: 700; display: inline-flex; gap: .3em; transition: gap .2s; }
.link-arrow:hover { gap: .6em; }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* ---------- Pasek świąteczny ---------- */
.holiday-bar {
  background: linear-gradient(90deg, var(--hol-1), var(--blue-600), var(--hol-2));
  background-size: 200% 100%; animation: shimmer 8s linear infinite;
  color: #fff; text-align: center; font-weight: 700; font-size: .92rem;
  padding: .55em 1em; text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); flex-shrink: 0; }
.brand-logo { height: 46px; width: auto; }
.brand-spider { width: 46px; height: 46px; transition: transform .4s var(--ease); }
.brand:hover .brand-spider { transform: rotate(-8deg) scale(1.08); }
.brand-text { font: 800 1.45rem/1 var(--font-display); letter-spacing: .08em; display: flex; flex-direction: column; }
.brand-text small { font: 600 .62rem/1.4 var(--font); letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .3rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); }
.main-nav a { display: block; padding: .55em 1.05em; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.main-nav a:hover { color: var(--primary); background: var(--blue-50); }
[data-theme="dark"] .main-nav a:hover { background: rgba(79,168,255,.12); }
.main-nav a[aria-current="page"] { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; box-shadow: 0 6px 18px -6px rgba(31,122,224,.6); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle, .nav-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--glass); color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: transform .3s var(--ease), border-color .2s;
}
.theme-toggle:hover { transform: rotate(20deg); border-color: var(--blue-400); }
.theme-toggle svg { width: 20px; height: 20px; }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; color: var(--neon); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; align-items: center; justify-content: center; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Wiszący pająk ---------- */
.hanging-spider {
  position: absolute; right: clamp(12px, 6vw, 90px); top: 72px; z-index: 40;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  animation: dangle 6s ease-in-out infinite; transform-origin: top center;
}
.holiday .hanging-spider { top: 108px; }
.hanging-spider .thread { width: 1.5px; height: 90px; background: linear-gradient(var(--blue-300), var(--blue-500)); animation: thread 9s ease-in-out infinite; }
.spider-hang { width: 70px; height: 70px; margin-top: -6px; }

/* ---------- Animacje pająka ---------- */
.spider .core { animation: pulse 2.4s ease-in-out infinite; transform-origin: 100px 138px; }
.spider .antenna { animation: blink 3s infinite; }
.spider .eyes { animation: eyes 5s infinite; transform-origin: 100px 92px; }
.spider-hero .leg, .spider-build .leg { animation: wiggle 3s ease-in-out infinite; transform-origin: 100px 120px; }
.spider-hero .leg-1l, .spider-hero .leg-3r, .spider-build .leg-1l { animation-delay: -.8s; }
.spider-hero .leg-2r, .spider-hero .leg-0l { animation-delay: -1.6s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-bg, .hero-bg span { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .orb { border-radius: 50%; filter: blur(60px); opacity: .55; inset: auto; }
.orb-1 { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, var(--blue-300), transparent 65%); }
.orb-2 { width: 420px; height: 420px; left: -160px; bottom: -160px; background: radial-gradient(circle, var(--cyan), transparent 65%); opacity: .35 !important; }
.holiday .orb-1 { background: radial-gradient(circle, var(--hol-1), transparent 65%); opacity: .35; }
.grid-lines {
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 5rem); font-weight: 800; letter-spacing: -.035em;
  background: linear-gradient(120deg, var(--text) 30%, var(--blue-600) 65%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 60ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0; }
.hero-stats { display: flex; gap: 2rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font: 800 1.35rem/1.2 var(--font-display); color: var(--primary); }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-card { position: relative; border-radius: var(--radius-lg); padding: 2rem; aspect-ratio: 1; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.hero-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--blue-300), transparent 40%, var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spider-hero { width: 78%; height: auto; filter: drop-shadow(0 20px 30px rgba(21,87,192,.35)); animation: float 5s ease-in-out infinite; }
.hero-badge { position: absolute; padding: .6em 1em; border-radius: 14px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.hero-badge--1 { top: 10%; left: -8%; }
.hero-badge--2 { top: 48%; right: -10%; animation-delay: -2s; }
.hero-badge--3 { bottom: 8%; left: 6%; animation-delay: -4s; }

/* ---------- Sekcje ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; position: relative; }
.section--tight { padding-top: 2rem; }
.section--tint { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { margin-bottom: 2.2rem; max-width: 760px; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; max-width: none; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.page-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; background: radial-gradient(ellipse at 80% 0%, var(--blue-100), transparent 60%); }
[data-theme="dark"] .page-hero { background: radial-gradient(ellipse at 80% 0%, rgba(31,139,255,.18), transparent 60%); }
.page-hero h1 { max-width: 18ch; }
.spider-corner { position: absolute; right: 4%; bottom: -10px; width: clamp(80px, 12vw, 150px); height: auto; opacity: .95; animation: float 6s ease-in-out infinite; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.bento-item {
  position: relative; overflow: hidden; padding: 1.7rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--text); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.bento-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-300); color: var(--text); }
.bento-item p { color: var(--text-2); margin-bottom: 1rem; }
.bento-item--wide { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--surface), var(--blue-50)); }
[data-theme="dark"] .bento-item--wide { background: linear-gradient(160deg, var(--surface), #0f2a55); }
.bento-item--wide h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.bento-item--accent { grid-column: span 2; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; border: 0; }
.bento-item--accent p, .bento-item--accent .link-arrow { color: rgba(255,255,255,.9); }
.bento-item--accent:hover { color: #fff; box-shadow: var(--glow); }
.bento-item--spider, .bento-item--half { grid-column: span 2; }
.spider-bento { position: absolute; right: 1.2rem; bottom: 1rem; width: clamp(110px, 14vw, 180px); height: auto; opacity: .95; animation: float 6s ease-in-out infinite; }
.bento-item--wide { padding-bottom: 9rem; }
.bento-icon { font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--blue-100); margin-bottom: 1rem; }
[data-theme="dark"] .bento-icon { background: rgba(79,168,255,.14); }
.bento-item--accent .bento-icon { background: rgba(255,255,255,.18); }
.web-deco { position: absolute; color: var(--blue-300); opacity: .35; pointer-events: none; }
.web-deco--card { right: -10px; top: -10px; width: 160px; transform: scaleX(-1); }
.web-deco--footer { left: 0; top: 0; width: 220px; opacity: .2; }
.web-deco--cta { right: -20px; bottom: -30px; width: 240px; color: #fff; opacity: .2; transform: rotate(180deg); }
.web-deco--about { position: absolute; left: -40px; top: -40px; width: 160px; z-index: -1; }

/* ---------- Newsy ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--blue-50); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); }
[data-theme="dark"] .news-card__placeholder, [data-theme="dark"] .news-card__media { background: linear-gradient(135deg, #0f2a55, #0a1a36); }
.spider-ph { width: 38%; height: auto; opacity: .85; }
.news-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card__body time { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.news-card__body h3 { margin: .4rem 0 .6rem; }
.news-card__body h3 a { color: var(--text); }
.news-card__body h3 a:hover { color: var(--primary); }
.news-card__body p { color: var(--text-2); flex: 1; }
.news-card--featured { grid-column: span 3; flex-direction: row; }
.news-card--featured .news-card__media { flex: 1.2; aspect-ratio: auto; min-height: 320px; }
.news-card--featured .news-card__body { flex: 1; padding: 2.2rem; justify-content: center; }
.news-card--featured h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
.pagination a[aria-current] { background: var(--primary); color: #fff; border-color: var(--primary); }

.article h1 { margin-top: .4rem; }
.article-img { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.prose { font-size: 1.08rem; color: var(--text-2); }
.prose p { margin-bottom: 1.1em; }
.back { margin-bottom: 1.5rem; display: inline-flex; }

/* ---------- Gry ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 1.1rem; }
@media (min-width: 1240px) { .games-grid { grid-template-columns: repeat(6, 1fr); } }
.game-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--glow); border-color: var(--blue-300); }
.game-card__media { position: relative; aspect-ratio: 3/4; background: linear-gradient(160deg, var(--blue-100), var(--blue-50)); }
[data-theme="dark"] .game-card__media { background: linear-gradient(160deg, #0f2a55, #091a36); }
.zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; }
.zoom:focus-visible { outline: 3px solid var(--cyan); }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; }
.zoom-hint { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.88); font-size: .9rem; opacity: 0; transform: scale(.8); transition: .25s; }
.zoom:hover .zoom-hint, .zoom:focus .zoom-hint { opacity: 1; transform: scale(1); }
@media (hover: none) { .zoom-hint { opacity: .9; transform: scale(1); } }
.game-card__noimg { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: var(--muted); font: 700 .9rem var(--font-display); }
.game-card__noimg .spider-ph { width: 55%; }
.platform-badge { position: absolute; left: 8px; top: 8px; padding: .25em .6em; border-radius: 8px; font: 800 .7rem/1.3 var(--font-display); letter-spacing: .05em; color: #fff; background: #0b2a5b; }
.platform-ps5 { background: linear-gradient(135deg, #1f7ae0, #0b4fa8); }
.platform-ps5-pro { background: linear-gradient(135deg, #0b1b33, #3b4a66); box-shadow: inset 0 0 0 1px #c0cbe0; }
.platform-ps4 { background: linear-gradient(135deg, #2b3a55, #003791); }
.status-ribbon { pointer-events: none;
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(-12deg) scale(1.15);
  text-align: center; padding: .45em; font: 800 .82rem var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(245, 158, 11, .93); color: #1b1200; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.game-card--sold .status-ribbon { background: rgba(229, 72, 77, .93); color: #fff; }
.game-card--reserved .game-card__media img, .game-card--sold .game-card__media img { filter: grayscale(.6) brightness(.85); }
.game-card__body { padding: .8rem .85rem .95rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.game-card__title { font-size: .95rem; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.game-card__meta { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: auto; }
.price { font: 800 1.05rem var(--font); color: var(--primary); }
.cond { font-size: .72rem; color: var(--muted); font-weight: 600; }

.toolbar { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.4rem; }
.seg { display: flex; gap: .25rem; padding: .3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; flex-wrap: wrap; }
.seg__btn { padding: .5em 1em; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--text-2); }
.seg__btn[aria-current] { background: var(--primary); color: #fff; }
.search { flex: 1; min-width: 200px; }
.toolbar input, .toolbar select { width: 100%; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.spider-empty { width: 140px; margin: 0 auto 1rem; animation: float 5s ease-in-out infinite; }

/* ---------- Formularze ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--text-2); }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=password], input[type=url], input[type=date], input[type=file], select, textarea {
  font: 400 1rem var(--font); color: var(--text); background: var(--surface-2);
  border: 1.5px solid var(--border); border-radius: 12px; padding: .8em 1em; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(79,168,255,.2); background: var(--surface); }
textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 500; }
.check input { margin-top: .25em; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 .8rem; display: flex; flex-direction: column; gap: .9rem; }
legend { font: 800 1.15rem var(--font); margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; color: var(--text); }
.step-n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 800 .9rem var(--font-display); color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.pick-grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pick { position: relative; flex-direction: row; }
.pick input { position: absolute; opacity: 0; }
.pick span { flex: 1; padding: .8em 1em; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2); cursor: pointer; font-weight: 600; transition: .2s; }
.pick span::before { content: '○ '; color: var(--blue-400); }
.pick input:checked + span { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-800); box-shadow: 0 0 0 3px rgba(79,168,255,.2); }
.pick input:checked + span::before { content: '● '; color: var(--cyan); }
[data-theme="dark"] .pick input:checked + span { background: rgba(31,139,255,.15); color: var(--blue-200); }
.pick input:focus-visible + span { outline: 3px solid var(--cyan); }
.budget { display: flex; align-items: center; gap: 1rem; }
.budget input[type=range] { flex: 1; accent-color: var(--primary); height: 30px; }
.budget output { font: 800 1.6rem var(--font); color: var(--primary); min-width: 150px; text-align: right; }
.chips--pick .chip { cursor: pointer; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: .85rem; padding: .45em .9em; }
.chips--pick .chip.is-active { background: var(--primary); color: #fff; }

.alert { padding: 1rem 1.2rem; border-radius: 14px; margin: 1rem 0; font-weight: 600; border: 1px solid; }
.alert-success { background: #e8fbf0; border-color: #9fe3b9; color: #11643a; }
.alert-error { background: #fff0f0; border-color: #ffb8b8; color: #9b1c1c; }
.alert-info { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-800); }
[data-theme="dark"] .alert-success { background: #0d2e1d; color: #8ff0b6; border-color: #1f6b43; }
[data-theme="dark"] .alert-error { background: #3a1214; color: #ffb3b3; border-color: #7a2a2e; }
[data-theme="dark"] .alert-info { background: #0f2a55; color: var(--blue-200); border-color: #1d3f7a; }
.flash-wrap { padding-top: 1rem; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(540px, 94vw); width: 100%; color: var(--text); }
.modal::backdrop { background: rgba(6, 18, 40, .6); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .3s var(--ease); }
.modal__box { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal__close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 1.4rem; cursor: pointer; }
.reserve-game { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: 1.05rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 12, 28, .88); display: grid; place-items: center; padding: 1.5rem; backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); text-align: center; animation: pop .3s var(--ease); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { color: #fff; margin-top: .8rem; font-weight: 600; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; font-size: 2rem; background: #fff; color: #0b1b33; cursor: pointer; }

/* ---------- Złóż komputer ---------- */
.build-hero { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5rem) 0; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.build-hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.build-visual { position: relative; }
.build-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.pc-illustration { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(21, 87, 192, .35)); }
.fan-blades { animation: spin 1.6s linear infinite; }
.pc-ring { animation: spin 6s linear infinite; transform-origin: 190px 150px; }
.pc-strip { animation: hue 6s linear infinite; }
.spider-build { position: absolute; width: 26%; right: -4%; bottom: -6%; animation: float 5s ease-in-out infinite; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.steps li { display: flex; align-items: center; gap: .7rem; font-weight: 600; padding: .7rem .9rem; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); }
.steps b { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--font-display); font-size: .85rem; flex-shrink: 0; }

/* ---------- O nas ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-placeholder { border-radius: var(--radius-lg); aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; color: var(--muted); font-weight: 600; }
.about-placeholder .spider-hero { width: 40%; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.feature-list li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.feature-list span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); font-size: .8rem; flex-shrink: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; align-items: stretch; }
.contact-cards { display: flex; flex-direction: column; gap: .8rem; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s; }
a.contact-card:hover { transform: translateX(6px); border-color: var(--blue-300); color: var(--text); }
.contact-card small { display: block; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.contact-card strong { font-size: 1.05rem; }
.contact-card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-100); font-size: 1.35rem; flex-shrink: 0; }
[data-theme="dark"] .contact-card__icon { background: rgba(79,168,255,.14); }
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .map-wrap iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }
.map-btn { position: absolute; left: 1rem; bottom: 1rem; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(94,231,255,.45), transparent 45%), linear-gradient(135deg, var(--blue-600), var(--blue-900));
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; position: relative; }

/* ---------- Stopka ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: 2rem; padding: 4rem 0 1.5rem; background: var(--blue-900); color: #c9dcf5; }
[data-theme="dark"] .site-footer { background: #040b19; }
.site-footer a { color: #e3efff; }
.site-footer a:hover { color: var(--neon); }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; position: relative; }
.footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-logo strong { font: 800 1.6rem var(--font-display); color: #fff; letter-spacing: .08em; }
.spider-footer { width: 54px; height: 54px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.socials .chip { background: rgba(255,255,255,.1); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* ---------- Efekty / odsłanianie ---------- */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes dangle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes thread { 0%, 100% { height: 90px; } 50% { height: 130px; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.9); } }
@keyframes blink { 0%, 90%, 100% { opacity: 1; } 95% { opacity: .2; } }
@keyframes eyes { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(2.5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- Motywy świąteczne (akcenty – niebieski i biały pozostają przewodnie) ---------- */
.holiday .eyebrow .dot { background: var(--hol-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hol-1) 30%, transparent); }
.holiday .hero-card::before { background: linear-gradient(135deg, var(--hol-1), transparent 40%, var(--hol-2)); }
.holiday .hero-title { background-image: linear-gradient(120deg, var(--text) 30%, var(--blue-600) 60%, var(--hol-1)); }
.holiday .cta-band { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--hol-1) 55%, transparent), transparent 45%), linear-gradient(135deg, var(--blue-600), var(--blue-900)); }
.holiday-boze-narodzenie .site-header, .holiday-mikolajki .site-header { border-bottom: 3px solid transparent; border-image: repeating-linear-gradient(90deg, #e63946 0 18px, #fff 18px 36px) 3; }
.holiday-niepodleglosci .site-header, .holiday-3-maja .site-header { border-bottom: 4px solid transparent; border-image: linear-gradient(#fff 50%, #dc143c 50%) 4; }
.holiday-halloween .web-deco { color: var(--hol-1); opacity: .45; }
.holiday-halloween .hero-bg .grid-lines { opacity: .2; }
.holiday-wszystkich-swietych .holiday-bar { background: linear-gradient(90deg, #334155, #475569); animation: none; }
.holiday-walentynki .btn-primary { background: linear-gradient(135deg, var(--blue-500), #c2185b); }
.holiday-boze-narodzenie .hero-card { box-shadow: var(--shadow-lg), 0 0 0 6px rgba(230,57,70,.12); }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item--wide { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone span { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; margin: 0; padding: 1rem 1.25rem 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 49;
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .holiday .main-nav { top: 72px; }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; border-radius: var(--radius); padding: .5rem; }
  .main-nav a { padding: .95em 1.2em; font-size: 1.05rem; border-radius: 14px; }
  .hero-inner, .build-hero__inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card--featured { grid-column: span 2; flex-direction: column; }
  .news-card--featured .news-card__media { min-height: 0; aspect-ratio: 16/9; }
  .hanging-spider { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: min(100% - 1.6rem, var(--container)); }
  .header-inner { gap: .6rem; min-height: 64px; }
  .main-nav { inset: 64px 0 auto 0; }
  .brand-spider { width: 38px; height: 38px; }
  .brand-text { font-size: 1.2rem; }
  .header-phone { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .bento { grid-template-columns: 1fr; }
  .bento-item--wide, .bento-item--accent, .bento-item--spider, .bento-item--half { grid-column: auto; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card--featured { grid-column: auto; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .game-card__body { padding: .65rem; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .feature-list, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { font-size: .78rem; }
  .hero-badge--1 { left: 0; } .hero-badge--2 { right: 0; }
  .budget { flex-direction: column; align-items: stretch; }
  .budget output { text-align: center; }
  .map-wrap { min-height: 320px; }
  .seg { width: 100%; justify-content: space-between; }
  .seg__btn { flex: 1; text-align: center; padding: .5em .4em; }
  .modal__box { padding: 1.4rem; }
  input, select, textarea { font-size: 16px !important; } /* iOS: brak automatycznego zoomu */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .fx-canvas { display: none; }
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: var(--surface); }
}

/* ---------- Gra: wersja PL + widok szczegółów w powiększeniu ---------- */
.title-btn { all: unset; cursor: pointer; display: inline; }
.title-btn:hover { color: var(--primary); }
.title-btn:focus-visible { outline: 3px solid var(--cyan); border-radius: 4px; }
.pl-badge { align-self: flex-start; font-size: .7rem; font-weight: 800; padding: .2em .55em; border-radius: 6px; background: #fff; color: #b0122e; border: 1px solid #f2c4cc; letter-spacing: .02em; }
[data-theme="dark"] .pl-badge { background: rgba(255,255,255,.08); color: #ff9db0; border-color: rgba(255,157,176,.35); }
.pl-badge.pl-brak { color: var(--muted); border-color: var(--border); background: transparent; }
.lightbox figure.lb-rich { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.8rem; align-items: start; text-align: left; max-width: min(92vw, 920px); background: var(--surface); color: var(--text); padding: 1.5rem; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); border: 1px solid var(--border); }
.lightbox figure.lb-rich img { max-height: 70vh; width: 100%; object-fit: contain; box-shadow: none; }
.lightbox figure.lb-rich img[hidden] { display: none; }
.lightbox figure.lb-rich:has(img[hidden]) { grid-template-columns: 1fr; max-width: 640px; }
.lightbox figure.lb-rich figcaption { color: var(--text); margin: 0; font-weight: 400; }
.lb-rich h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0 2.5rem .4rem 0; }
.lb-meta { color: var(--primary); font-weight: 700; margin-bottom: 1rem; }
.lb-note { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); font-size: .8rem; font-style: italic; color: var(--muted); }
.lb-desc { max-height: 52vh; overflow-y: auto; color: var(--text-2); line-height: 1.65; padding-right: .3rem; }
@media (max-width: 700px) {
  .lightbox { align-items: start; overflow-y: auto; }
  .lightbox figure.lb-rich { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; margin-top: 3.5rem; }
  .lightbox figure.lb-rich img { max-height: 45vh; }
  .lb-desc { max-height: none; }
}
