/* XRace Games – style strony (2026). Mobile-first, bez frameworków. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/rajdhani-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/rajdhani-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/rajdhani-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0a0b0f;
  --bg-2: #101218;
  --surface: #151820;
  --surface-2: #1c2029;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f4f6;
  --muted: #a5abb8;
  --dim: #6f7684;
  --red: #e5202e;
  --red-2: #ff3b47;
  --red-glow: rgba(229, 32, 46, .35);
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1200px;
  --gutter: 16px;
  --head-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-d: "Rajdhani", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; --head-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 700; line-height: 1.05; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h); transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.site-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 11, 15, .85), rgba(10, 11, 15, 0)); pointer-events: none; transition: opacity .3s; }
.site-head.is-solid { background: rgba(10, 11, 15, .88); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-head.is-solid::before { opacity: 0; }
.site-head.is-hidden { transform: translateY(-100%); }
.head-in { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
@media (min-width: 720px) { .logo img { height: 58px; } }
.nav { display: none; margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; font: 600 15px/1 var(--font-d); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 5px; background: var(--red); border-radius: 2px; }
.head-cta { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.burger-in span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger-in span + span { margin-top: 5px; }
.burger-in { display: flex; flex-direction: column; }
.menu-open .burger-in span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger-in span:nth-child(2) { opacity: 0; }
.menu-open .burger-in span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav, .head-cta { display: flex; align-items: center; gap: 6px; }
  .burger { display: none; }
}

/* Mobile menu */
.mnav { position: fixed; inset: 0; z-index: 45; background: rgba(10, 11, 15, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: calc(var(--head-h) + 16px) var(--gutter) 32px; display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .25s; }
.menu-open { overflow: hidden; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav li { border-bottom: 1px solid var(--line); }
.mnav a.mnav-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font: 700 28px/1 var(--font-d); letter-spacing: .03em; text-transform: uppercase; transform: translateY(8px); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.mnav a.mnav-link::after { content: "→"; color: var(--red); font-size: 22px; }
.menu-open .mnav a.mnav-link { transform: none; opacity: 1; }
.menu-open .mnav li:nth-child(2) a { transition-delay: .04s; } .menu-open .mnav li:nth-child(3) a { transition-delay: .08s; }
.menu-open .mnav li:nth-child(4) a { transition-delay: .12s; } .menu-open .mnav li:nth-child(5) a { transition-delay: .16s; }
.mnav-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0 0; }
.mnav-games a { display: block; padding: 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.3; }
.mnav-foot { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--font-d); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 28px -8px var(--red-glow); }
.btn-red:hover { background: var(--red-2); box-shadow: 0 10px 34px -6px var(--red-glow); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) { .btns-stack .btn { flex: 1 1 100%; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--red); color: #fff; font: 700 12px/1 var(--font-d); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--font-d); letter-spacing: .2em; text-transform: uppercase; color: var(--red-2); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.platforms { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.platforms span { display: inline-flex; align-items: center; gap: 6px; }
.platforms svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92svh, 860px); display: flex; align-items: flex-end; padding: calc(var(--head-h) + 40px) 0 48px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--bg) 2%, rgba(10, 11, 15, .75) 38%, rgba(10, 11, 15, .3) 68%, rgba(10, 11, 15, .8) 100%),
              linear-gradient(to right, rgba(10, 11, 15, .85), rgba(10, 11, 15, 0) 65%); }
.hero-in { display: grid; gap: 28px; align-items: end; }
.hero h1 { font-size: clamp(44px, 11vw, 96px); line-height: .92; margin: 14px 0 16px; text-wrap: balance; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); color: #d6d9e0; max-width: 560px; margin: 0 0 26px; }
.hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.hero-poster { display: none; }
@media (min-width: 900px) {
  .hero { padding-bottom: 72px; }
  .hero-in { grid-template-columns: 1fr auto; gap: 48px; }
  .hero-poster { display: block; width: 240px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); transform: rotate(2deg); transition: transform .4s var(--ease); }
  .hero-poster:hover { transform: rotate(0) translateY(-4px); }
}
.hero-sm { min-height: 0; padding: calc(var(--head-h) + 56px) 0 40px; }
.hero-sm h1 { font-size: clamp(40px, 8vw, 72px); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
@media (min-width: 720px) { .section { padding: 96px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(34px, 5.5vw, 54px); margin-top: 10px; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .2s, gap .2s; }
.link-more:hover { color: var(--text); gap: 12px; }
.link-more::after { content: "→"; color: var(--red); }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Stats bar */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 20px; }
.stat b { display: block; font: 700 clamp(28px, 5vw, 40px)/1 var(--font-d); }
.stat b em { font-style: normal; color: var(--red); }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { padding: 26px 28px; } }

/* Filters */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .2s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Game cards */
.games { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .games { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .games { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); }
.card[hidden] { display: none; }
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .badge { position: absolute; top: 12px; left: 12px; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.card h3 { font-size: 26px; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-foot .platforms { font-size: 12px; }
.card-foot .go { font: 700 14px/1 var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--red-2); }
.empty { color: var(--muted); padding: 24px 0; }

/* Features */
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(229, 32, 46, .12); color: var(--red-2); margin-bottom: 16px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Video (lite YouTube) */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(229, 32, 46, .25); transition: transform .25s var(--ease), box-shadow .25s; }
.yt .play svg { width: 30px; height: 30px; margin-left: 4px; fill: #fff; }
.yt:hover .play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(229, 32, 46, .2); }
.yt .yt-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; text-align: left; background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent); font: 700 20px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: .03em; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing { cursor: default; }
.videos { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .videos { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.video-item h3 { font-size: 22px; margin: 14px 0 4px; }
.video-item p { margin: 0; font-size: 14px; color: var(--muted); }
.video-item .links { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.video-item .links a { color: var(--muted); } .video-item .links a:hover { color: var(--text); }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
.split-text h2 { font-size: clamp(34px, 5vw, 50px); margin: 10px 0 14px; }
.split-text p { color: var(--muted); margin: 0 0 22px; }
.vlist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 2px; }
.vlist a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; color: var(--muted); font-weight: 600; transition: background .2s, color .2s; }
.vlist a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.vlist svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }

/* Creator */
.creator { display: grid; gap: 28px; align-items: center; padding: 28px; border-radius: calc(var(--radius) + 6px); background:
  radial-gradient(120% 140% at 0% 0%, rgba(229, 32, 46, .16), transparent 55%), var(--surface); border: 1px solid var(--line); }
@media (min-width: 800px) { .creator { grid-template-columns: auto 1fr; padding: 44px; gap: 44px; } }
.creator-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--red); }
@media (min-width: 800px) { .creator-photo { width: 180px; height: 180px; } }
.creator h2 { font-size: clamp(32px, 4.6vw, 46px); margin: 10px 0 12px; }
.creator p { color: var(--muted); margin: 0 0 20px; max-width: 640px; }

/* Game page */
.game-hero { min-height: min(80svh, 760px); }
.game-hero h1 { font-size: clamp(42px, 9vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: #c9ccd3; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--dim); }
.game-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .game-layout { grid-template-columns: 1fr 340px; gap: 56px; align-items: start; } .game-aside { position: sticky; top: calc(var(--head-h) + 20px); } }
.prose { font-size: 17px; color: #d3d6dd; }
.prose p { margin: 0 0 1.1em; }
.prose p:first-child { font-size: 19px; color: var(--text); }
.facts { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.facts img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.facts-in { padding: 20px; }
.facts dl { margin: 0 0 20px; display: grid; gap: 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts .btn { width: 100%; }
.facts .btns { flex-direction: column; }
.feedback { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); display: flex; gap: 16px; align-items: flex-start; }
.feedback svg { width: 28px; height: 28px; flex-shrink: 0; color: #f5b301; }
.feedback h3 { font-size: 20px; margin-bottom: 4px; }
.feedback p { margin: 0; color: var(--muted); font-size: 15px; }
.sub-h { font-size: 30px; margin: 0 0 18px; }
.block { margin-top: 48px; }

/* Screenshots grid */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.shots-4 { } @media (min-width: 1000px) { .shots-4 { grid-template-columns: repeat(4, 1fr); } }
.shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); cursor: zoom-in; padding: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.shot:hover img { transform: scale(1.06); }
.shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; border-radius: inherit; transition: box-shadow .2s; }
.shot:hover::after { box-shadow: inset 0 0 0 2px var(--red); }
.gal-group + .gal-group { margin-top: 56px; }
.gal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.gal-head h2 { font-size: clamp(28px, 4vw, 38px); }
.gal-head span { display: block; margin-top: 6px; color: var(--dim); font-size: 14px; font-family: var(--font); text-transform: none; letter-spacing: 0; font-weight: 500; }
.jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 40px; padding: 2px var(--gutter); }
.jump::-webkit-scrollbar { display: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(5, 6, 8, .96); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; touch-action: pan-y; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; color: var(--muted); font-size: 14px; }
.lb-stage { position: relative; flex: 1; display: grid; place-items: center; padding: 0 8px 16px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.lb-stage img.is-loading { opacity: .3; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .08); cursor: pointer; transition: background .2s; color: var(--text); }
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); display: none; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (min-width: 720px) and (hover: hover) { .lb-prev, .lb-next { display: grid; } .lb-stage { padding: 0 80px 24px; } }

/* About page */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 360px; gap: 64px; align-items: start; } }
.contact-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--red); }
.contact-card h2 { font-size: 28px; }
.contact-card .where { color: var(--muted); margin: 4px 0 20px; font-size: 15px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; word-break: break-all; }
.contact-row svg { width: 20px; height: 20px; color: var(--red-2); flex-shrink: 0; }
.contact-row a:hover { color: var(--red-2); }
.copy { margin-left: auto; flex-shrink: 0; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.copy:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.prose .pull { font: 700 clamp(26px, 4vw, 36px)/1.15 var(--font-d); text-transform: uppercase; margin: 0 0 24px; color: var(--text); }
.pull em { font-style: normal; color: var(--red-2); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; margin-top: 0; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 0 0 16px; max-width: 340px; }
.site-foot h4 { font-size: 15px; letter-spacing: .14em; color: var(--dim); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.site-foot ul a { color: var(--muted); transition: color .2s; }
.site-foot ul a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); transition: all .2s; }
.socials a:hover { background: var(--red); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--dim); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--head-h) + 20px) var(--gutter) 60px; }
.nf b { display: block; font: 700 clamp(110px, 30vw, 220px)/.85 var(--font-d); color: transparent; -webkit-text-stroke: 2px var(--red); }
.nf h1 { font-size: clamp(30px, 5vw, 44px); margin: 18px 0 10px; }
.nf p { color: var(--muted); margin: 0 auto 26px; max-width: 420px; }
.nf .btns { justify-content: center; }

/* Przełącznik języka + podpowiedź */
.lang-sw { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font: 700 14px/1 var(--font-d); letter-spacing: .1em; transition: color .2s, border-color .2s, background .2s; margin-left: auto; }
.lang-sw svg { width: 16px; height: 16px; }
.lang-sw:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); }
.burger { margin-left: 4px; }
@media (min-width: 960px) { .lang-sw { margin-left: 6px; } }
.lang-hint { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 420px; margin-left: auto; padding: 14px 14px 14px 18px; border-radius: var(--radius); background: rgba(21, 24, 32, .96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; gap: 12px; font-size: 14px; transform: translateY(20px); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.lang-hint.is-in { transform: none; opacity: 1; }
.lang-hint p { margin: 0; flex: 1; color: var(--muted); }
.lang-hint .btn { flex-shrink: 0; }
.lang-hint .x { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.lang-hint .x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
