/* =========================================================
   ITINS Interactive — strona publiczna
   ========================================================= */

:root {
    --bg: #0a0a0c;
    --bg-2: #111115;
    --bg-3: #18181d;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f3efe8;
    --muted: #9a958d;
    --accent: #ff5a1f;
    --accent-ink: #120700;

    --ue5: #8d9bff;
    --roblox: #ff3b47;
    --mobile: #2ee6a6;

    --font-display: "Unbounded", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --radius: 14px;
    --container: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 48px; }

/* ---------- Typografia pomocnicza ---------- */
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font: 500 12px/1 var(--font-mono);
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 18px;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 90, 31, 0); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:hover { color: var(--accent); }

/* ---------- Przyciski ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 26px; border-radius: 999px;
    font: 700 15px/1 var(--font-body);
    border: 1px solid transparent; cursor: pointer;
    transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff7442; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Tagi i badge ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.tag {
    display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--line-strong); font: 500 12px/1 var(--font-mono); letter-spacing: .04em; color: var(--text);
}
.tag-status { color: var(--muted); }
.tag-warn { border-color: #f5b400; color: #f5b400; }

.engine-badge {
    --c: var(--accent);
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px 6px 9px; border-radius: 999px;
    font: 600 12px/1 var(--font-mono); letter-spacing: .03em;
    color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
    white-space: nowrap;
}
.engine-badge svg { width: 15px; height: 15px; }
.engine-ue5 { --c: var(--ue5); }
.engine-roblox { --c: var(--roblox); }
.engine-mobile { --c: var(--mobile); }

.status-badge {
    padding: 6px 10px; border-radius: 999px; background: rgba(10, 10, 12, .75); backdrop-filter: blur(6px);
    font: 500 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10, 10, 12, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font: 800 18px/1 var(--font-display); letter-spacing: .02em; display: flex; flex-direction: column; gap: 3px; }
.logo-text small { font: 500 10px/1 var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    position: relative; padding: 10px 14px; border-radius: 999px;
    font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.main-nav .nav-cta { margin-left: 10px; color: var(--text); border: 1px solid var(--line-strong); }
.main-nav .nav-cta:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 24px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-glow {
    position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -30vmax;
    background: radial-gradient(circle, rgba(255, 90, 31, .35), rgba(141, 155, 255, .12) 45%, transparent 70%);
    filter: blur(20px); animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 12, .2) 0%, rgba(10, 10, 12, .1) 40%, var(--bg) 96%), linear-gradient(90deg, rgba(10, 10, 12, .85), transparent 70%); }

.hero-content { padding-bottom: 72px; }
.hero-title { font-size: clamp(44px, 8.4vw, 132px); font-weight: 800; line-height: .98; letter-spacing: -.045em; text-transform: uppercase; margin-bottom: 30px; }
/* padding-top zostawia miejsce na polskie znaki (Ś, Ę, Ó), żeby maska animacji ich nie przycinała */
.hero-title .line { display: block; overflow: hidden; padding: .1em 0 .04em; margin-top: -.08em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineIn 1s var(--ease) forwards; animation-delay: calc(var(--d) + 150ms); }
.hero-title .line:last-child > span { color: var(--accent); }
@keyframes lineIn { to { transform: none; } }
.hero-sub { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: #cfcac2; margin-bottom: 34px; opacity: 0; animation: fadeUp .9s var(--ease) .7s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp .9s var(--ease) .85s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(10, 10, 12, .6); backdrop-filter: blur(6px); }
.marquee-track { display: flex; gap: 32px; width: max-content; padding: 18px 0; animation: marquee 40s linear infinite; font: 600 clamp(15px, 1.6vw, 20px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sekcje ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section.tight { padding: 40px 0 clamp(80px, 9vw, 120px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 64px); }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Wyróżnione gry ---------- */
.featured-list { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 110px); }
.featured-item { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.featured-item:nth-child(even) .featured-media { order: 2; }
.featured-media {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
    background: var(--bg-3); box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--accent) 55%, transparent);
}
.featured-media > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.featured-item:hover .featured-media > img:first-child { transform: scale(1.05); }
.featured-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.featured-logo { position: absolute; left: 6%; bottom: 8%; width: 38%; max-height: 40%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .6)); }
.featured-index { display: block; font: 500 13px/1 var(--font-mono); color: var(--accent); margin-bottom: 22px; }
.featured-info h3 { font-size: clamp(30px, 3.8vw, 52px); margin-bottom: 14px; }
.featured-info h3 a:hover { color: var(--accent); }
.featured-tagline { font-size: 19px; color: var(--text); font-weight: 600; }
.featured-info p { color: var(--muted); }
.featured-info .link-arrow { margin-top: 10px; }

/* ---------- Placeholder art (gdy brak grafiki) ---------- */
.placeholder-art {
    width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 8%;
    background:
        radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%),
        radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 50%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 14px),
        var(--bg-3);
}
.placeholder-art span { font: 800 clamp(18px, 3vw, 34px)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.02em; color: rgba(255, 255, 255, .9); }
.placeholder-art.large span { font-size: clamp(26px, 5vw, 64px); }
.placeholder-art.small span { font-size: 20px; color: rgba(255, 255, 255, .5); }

/* ---------- Technologie ---------- */
.engines { background: var(--bg-2); border-block: 1px solid var(--line); }
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.engine-tile {
    --c: var(--accent);
    position: relative; display: flex; flex-direction: column; padding: 30px; min-height: 340px;
    border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg);
    overflow: hidden; transition: border-color .35s, transform .35s var(--ease);
}
.engine-tile::before {
    content: ""; position: absolute; inset: auto -30% -60% -30%; height: 90%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--c) 35%, transparent), transparent 65%);
    opacity: .25; transition: opacity .4s;
}
.engine-tile:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-4px); }
.engine-tile:hover::before { opacity: .7; }
.engine-tile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; position: relative; }
.engine-count { font: 800 42px/1 var(--font-display); color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.engine-tile h3 { font-size: 26px; margin: 60px 0 12px; position: relative; }
.engine-tile p { color: var(--muted); position: relative; }
.engine-tile .link-arrow { position: relative; margin-top: 8px; }
.engine-tile:hover .link-arrow { color: var(--c); }

/* ---------- Karty gier ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
    padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
    color: var(--muted); font: 600 14px/1 var(--font-body); cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.filter-chips.subtle .chip { padding: 7px 14px; font-size: 13px; }
.filter-label { font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-right: 6px; }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game-card.is-hidden { display: none; }
.game-card-link { display: block; height: 100%; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .35s var(--ease); }
.game-card-link:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-4px); }
.game-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.game-card-link:hover .game-card-media img { transform: scale(1.06); }
.game-card-badges { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.game-card-badges .engine-badge { background: rgba(10, 10, 12, .78); backdrop-filter: blur(6px); }
.game-card-body { padding: 20px 22px 24px; }
.game-card-meta { display: flex; gap: 14px; font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.game-card-meta span + span::before { content: "·"; margin-right: 14px; }
.game-card-body h3 { font-size: 21px; margin-bottom: 8px; }
.game-card-body p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- O nas ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.about h2 { font-size: clamp(34px, 4.6vw, 64px); }
.about-text p { color: #cfcac2; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.stat { padding: 34px 0 0; border-right: 1px solid var(--line); padding-right: 24px; }
.stat + .stat { padding-left: 32px; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 800 clamp(44px, 6vw, 84px)/1 var(--font-display); letter-spacing: -.04em; color: var(--accent); margin-bottom: 10px; }
.stat span { color: var(--muted); }

/* ---------- Aktualności ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card a { display: block; }
.post-card-media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: var(--bg-3); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card a:hover img { transform: scale(1.05); }
.post-card time { font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { font-size: 21px; margin: 12px 0 10px; transition: color .2s; }
.post-card a:hover h3 { color: var(--accent); }
.post-card p { color: var(--muted); font-size: 15px; }
.read-more { font-weight: 700; font-size: 14px; }

/* ---------- CTA ---------- */
.cta { padding-top: 0; }
.cta-box {
    display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: end;
    padding: clamp(36px, 6vw, 80px); border-radius: calc(var(--radius) * 1.6);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 90, 31, .32), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(141, 155, 255, .14), transparent 50%),
        var(--bg-2);
    border: 1px solid var(--line);
}
.cta-box h2 { font-size: clamp(30px, 4.2vw, 58px); margin-bottom: 18px; }
.cta-box p { color: #cfcac2; max-width: 620px; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Podstrony ---------- */
.page-hero { padding: 170px 0 50px; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 85% 0%, rgba(255, 90, 31, .18), transparent 70%); }
.page-hero h1 { font-size: clamp(40px, 7vw, 100px); font-weight: 800; text-transform: uppercase; letter-spacing: -.045em; margin-bottom: 20px; }
.page-lead { max-width: 640px; font-size: 19px; color: #cfcac2; }
.back-link { display: inline-block; font: 500 13px/1 var(--font-mono); color: var(--muted); margin-bottom: 28px; }
.back-link:hover { color: var(--accent); }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 56px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; padding: 0 12px; }
.pagination a:hover { border-color: var(--text); }
.pagination .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pagination .disabled, .pagination .dots { opacity: .35; }

/* ---------- Strona gry ---------- */
.game-hero { position: relative; min-height: 82svh; display: flex; align-items: flex-end; padding: 140px 0 70px; isolation: isolate; overflow: hidden; }
.game-hero-bg { position: absolute; inset: 0; z-index: -1; }
.game-hero-bg > img, .game-hero-bg > .placeholder-art { width: 100%; height: 100%; object-fit: cover; }
.game-hero h1 { font-size: clamp(42px, 7.5vw, 110px); font-weight: 800; text-transform: uppercase; letter-spacing: -.045em; margin-bottom: 16px; }
.game-logo img { max-width: min(520px, 80vw); max-height: 220px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.game-tagline { font-size: clamp(18px, 2vw, 24px); font-weight: 600; max-width: 640px; margin-bottom: 30px; }

.game-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--text); margin-bottom: 40px; }
.video-embed { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 44px; background: #000; border: 1px solid var(--line); }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.prose { color: #d6d1c9; font-size: 17px; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; color: var(--text); }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 22px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--text); font-size: 20px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 48px; }
.gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-3); }
.gallery-item:first-child { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

.game-facts { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 8px 24px 24px; }
.game-facts dl { margin: 0; }
.game-facts dl > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.game-facts dt { font: 500 11px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.game-facts dd { margin: 0; font-weight: 600; }
.fact-links { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 5, 7, .94); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Wpis ---------- */
.post-image { width: 100%; border-radius: var(--radius); margin-bottom: 44px; }
.post .page-hero h1 { font-size: clamp(32px, 5vw, 64px); text-transform: none; letter-spacing: -.03em; }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select, .field textarea {
    width: 100%; padding: 15px 16px; border-radius: 10px; border: 1px solid var(--line-strong);
    background: var(--bg-2); color: var(--text); font: 500 16px/1.4 var(--font-body); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; }
.error { color: #ff6b6b; font-size: 13px; }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { align-self: flex-start; }
.alert { padding: 16px 18px; border-radius: 10px; font-weight: 600; }
.alert.success { background: rgba(46, 230, 166, .12); border: 1px solid rgba(46, 230, 166, .4); color: var(--mobile); }
.contact-aside { display: flex; flex-direction: column; gap: 36px; padding-top: 6px; }
.contact-aside h4 { font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.big-link { font: 600 clamp(18px, 2vw, 24px)/1.2 var(--font-display); word-break: break-all; }
.big-link:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 36px; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 360px; margin: 20px 0 14px; font-size: 15px; }
.footer-mail { font-weight: 700; }
.footer-mail:hover { color: var(--accent); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.footer-col a { font-weight: 600; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: var(--muted); font-size: 14px; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.socials a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
    .game-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .engine-grid { grid-template-columns: 1fr; }
    .engine-tile { min-height: 0; }
    .engine-tile h3 { margin-top: 36px; }
    .game-layout { grid-template-columns: 1fr; }
    .game-facts { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; z-index: 2; }
    .main-nav {
        position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 4px;
        background: rgba(10, 10, 12, .97); backdrop-filter: blur(16px);
        opacity: 0; pointer-events: none; transition: opacity .3s;
    }
    .main-nav a { font: 600 30px/1.2 var(--font-display); color: var(--text); padding: 12px 20px; }
    .main-nav .nav-cta { margin: 16px 0 0; }
    .nav-open .main-nav { opacity: 1; pointer-events: auto; }
    .nav-open { overflow: hidden; }

    .featured-item { grid-template-columns: 1fr; }
    .featured-item:nth-child(even) .featured-media { order: 0; }
    .about-inner, .contact-layout, .cta-box { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stat, .stat + .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
    .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .game-grid, .post-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-item:first-child { grid-column: auto; }
    .footer-top { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
