/* Raijin Client – wspólne style strony (generowane: strona-zrodla/build_site.py) */
:root {
  --bg: #060606;
  --bg2: #0b0a0b;
  --panel: #111012;
  --panel2: #18161a;
  --panel3: #211e23;
  --line: #2a2529;
  --line2: #3a3236;
  --text: #f1ecea;
  --muted: #8f8689;
  --soft: #b6adb0;
  --accent: #e3182d;
  --accent2: #ff4a3d;
  --accent-deep: #7a0b16;
  --glow: rgba(227, 24, 45, .45);
  --ok: #42d392;
  --font: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --kanji: 'Yu Mincho', 'MS Mincho', 'Noto Serif JP', 'Noto Serif CJK JP', serif;
  --cut: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --wrap: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--accent); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kj { font-family: var(--kanji); }

/* ---------- nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center;
  background: rgba(6, 6, 6, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s;
}
.nav.scrolled { background: rgba(6, 6, 6, .9); border-bottom-color: var(--line); }
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: 0; transition: opacity .25s;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, transparent 60%);
}
.nav.scrolled::after { opacity: .7; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 3px; color: var(--muted); font-weight: 600; }
.brand b { color: var(--text); }
.brand .kj { color: var(--accent); letter-spacing: 0; font-size: 17px; }
.logo { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 14px rgba(227,24,45,.35); }
.links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--soft); }
.links a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); width: 40px; height: 40px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  clip-path: var(--cut); transition: filter .15s, transform .15s, background .15s; cursor: pointer; border: 0; font-family: inherit;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: linear-gradient(135deg, var(--accent2), var(--accent) 55%, var(--accent-deep)); color: #fff; }
.btn-red:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-ghost:hover { background: var(--panel3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 12.5px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16px; letter-spacing: 3px; }
.btn[aria-disabled="true"] { cursor: default; filter: saturate(.55) brightness(.85); }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ---------- HERO: burza ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 110px 0 120px; }
.sky { position: absolute; inset: 0; z-index: -3; background: radial-gradient(120% 90% at 70% 0%, #1a0b0e 0%, #0a0708 55%, #050505 100%); }
.clouds {
  position: absolute; inset: -10% -20% 35% -20%; z-index: -3; filter: blur(22px);
  background:
    radial-gradient(40% 30% at 20% 30%, rgba(60,40,45,.55), transparent 70%),
    radial-gradient(35% 25% at 60% 20%, rgba(45,30,35,.6), transparent 70%),
    radial-gradient(45% 30% at 85% 40%, rgba(70,20,28,.45), transparent 70%),
    radial-gradient(30% 20% at 40% 55%, rgba(30,22,25,.6), transparent 70%);
  animation: drift 60s linear infinite alternate;
}
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.sun {
  position: absolute; z-index: -3; right: 12%; top: 16%; width: min(34vw, 380px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 40% 35%, var(--accent2), var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: 0 0 90px 12px rgba(227,24,45,.35), 0 0 240px 60px rgba(227,24,45,.12);
}
.sun::after { /* cięcie katany przez słońce */
  content: ''; position: absolute; left: -10%; right: -10%; top: 50%; height: 5px; transform: rotate(-24deg); background: #0a0708;
}
#storm-sky, #storm-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#storm-sky { z-index: -2; }
#storm-rain { z-index: 0; }
.mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; z-index: -1; }
.mountains .far { fill: #1b1215; }
.mountains .near { fill: #0b0909; }
.mountains .torii { fill: #4a0c14; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 0; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.flash { position: absolute; inset: 0; z-index: 1; background: rgba(255,230,230,.9); mix-blend-mode: overlay; opacity: 0; pointer-events: none; }
.big-kanji {
  position: absolute; right: 3%; top: 12%; z-index: -2; display: flex; flex-direction: column; align-items: center;
  font-family: var(--kanji); font-size: clamp(110px, 15vw, 210px); line-height: 1; font-weight: 900;
  color: transparent; -webkit-text-stroke: 1.5px rgba(227,24,45,.38);
}
.big-kanji small { font-size: .38em; -webkit-text-stroke: 0; color: var(--accent); opacity: .9; margin-top: 10px; }

.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.tag .kj { letter-spacing: 1px; color: #fff; background: var(--accent); padding: 3px 9px; font-size: 14px; text-transform: none; }
h1 {
  font-size: clamp(48px, 8vw, 96px); font-weight: 900; letter-spacing: .08em; line-height: .92; text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
h1 span { display: block; font-size: .3em; letter-spacing: .45em; color: var(--accent); margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--accent); font-weight: 700; }
.lead { color: var(--soft); font-size: 18px; max-width: 520px; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { background: rgba(10,8,9,.72); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 9px 15px; backdrop-filter: blur(8px); }
.chip small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.3; }
.chip b { font-size: 14.5px; }

/* zrzut ekranu launchera */
.shot { position: relative; margin: 0; transform: perspective(1600px) rotateY(-8deg) rotateX(2deg); transform-origin: left center; }
.shot::before { content: ''; position: absolute; inset: -14% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(227,24,45,.28), transparent); filter: blur(10px); }
.shot img { width: 100%; height: auto; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.03); }

/* ---------- sekcje ---------- */
section { position: relative; padding: 110px 0; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent2); font-weight: 700; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.eyebrow .kj { color: var(--muted); font-size: 15px; letter-spacing: 0; }
h2 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 900; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.sec-head p { color: var(--soft); margin-top: 16px; font-size: 17px; }

/* funkcje */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); padding: 28px 26px 26px;
  transition: border-color .2s, transform .2s; overflow: hidden;
}
.card::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 46px; background: var(--accent); box-shadow: 0 0 12px var(--glow); transition: width .3s; }
.card:hover { border-color: var(--line2); transform: translateY(-3px); }
.card:hover::before { width: 100%; }
.ico { width: 46px; height: 46px; display: grid; place-items: center; color: var(--accent2); background: rgba(227,24,45,.1); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); margin-bottom: 20px; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: .01em; }
.card p { color: var(--soft); font-size: 15px; }
.card .num { position: absolute; right: 18px; top: 14px; font-family: var(--kanji); font-size: 15px; color: var(--line2); }

/* Raijin Mods */
.mods { background: linear-gradient(180deg, var(--bg), #0d0709 50%, var(--bg)); overflow: hidden; }
.mods::before { content: '雷'; position: absolute; left: -40px; top: 50%; transform: translateY(-50%); font-family: var(--kanji); font-weight: 900; font-size: 520px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(227,24,45,.08); pointer-events: none; }
.mods-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.mod-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mod { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; font-weight: 600; font-size: 15px; }
.mod i { width: 8px; height: 8px; flex: none; background: var(--accent); box-shadow: 0 0 10px var(--glow); transform: rotate(45deg); }
.keycap {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin: 0 2px; background: var(--panel3); border: 1px solid var(--line2); border-bottom-width: 3px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; vertical-align: middle; color: var(--text);
}
.mods .points { margin-top: 26px; display: grid; gap: 14px; }
.mods .points div { display: flex; gap: 14px; color: var(--soft); }
.mods .points b { color: var(--text); }
.mods .points svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent2); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* kroki */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border: 1px solid var(--line); background: var(--panel); }
.step .n { font-size: 54px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 18px; display: block; }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--soft); font-size: 15px; }
.step:not(:last-child)::after { content: ''; position: absolute; right: -17px; top: 50%; width: 18px; height: 2px; background: var(--accent); opacity: .5; }

/* pobieranie */
.download { text-align: center; overflow: hidden; }
.download .box {
  position: relative; max-width: 860px; margin: 0 auto; padding: 64px 32px; border: 1px solid var(--line2); overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 120% at 50% 0%, #2a0c12 0%, #0d0809 55%, #070606 100%);
}
.download .box::before { content: ''; position: absolute; left: 50%; top: -230px; width: 340px; height: 340px; transform: translateX(-50%); border-radius: 50%; z-index: -1; background: radial-gradient(circle at 40% 35%, var(--accent2), var(--accent) 45%, var(--accent-deep)); opacity: .35; filter: blur(4px); }
.download .box::after { content: ''; position: absolute; left: -10%; right: -10%; top: 0; height: 3px; transform: rotate(-6deg) translateY(150px); background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); z-index: -1; }
.download h2 { margin-bottom: 14px; }
.emblem { width: 180px; height: 180px; margin: -8px auto 22px; border-radius: 50%; filter: drop-shadow(0 0 30px rgba(227,24,45,.45)); }
.download p { color: var(--soft); max-width: 540px; margin: 0 auto; }
.download .cta { justify-content: center; }
.req { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 28px; color: var(--muted); font-size: 13.5px; }
.req span { display: inline-flex; align-items: center; gap: 8px; }
.req span::before { content: ''; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--soft); padding: 0 0 22px; max-width: 700px; }
.faq details p a, .faq-more a { color: var(--accent2); }
.faq details p b { color: var(--text); }
.faq-cat { display: flex; align-items: center; gap: 12px; margin: 44px 0 4px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent2); font-weight: 700; }
.faq-cat:first-child { margin-top: 0; }
.faq-cat::before { content: ''; width: 24px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.faq-more { color: var(--muted); margin-top: 32px; }
@media (max-width: 640px) { .faq summary { font-size: 16px; padding: 18px 36px 18px 0; } }

/* stopka */
footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
footer .legal { max-width: 560px; margin-top: 12px; line-height: 1.55; }
footer nav { display: flex; gap: 22px; }
footer nav a:hover { color: var(--text); }

/* pojawianie się */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- okno pobierania ---------- */
.dl-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(3, 2, 3, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.dl-overlay.open { opacity: 1; visibility: visible; }
.dl-modal {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: radial-gradient(90% 70% at 50% -10%, #2a0c12 0%, #0e0a0b 60%, #090708 100%);
  border: 1px solid var(--line2); box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 60px rgba(227,24,45,.12);
  padding: 34px 34px 30px; transform: translateY(10px) scale(.98); transition: transform .25s ease;
}
.dl-overlay.open .dl-modal { transform: none; }
.dl-modal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent) 25%, var(--accent2) 50%, var(--accent) 75%, transparent); box-shadow: 0 0 14px var(--glow); }
.dl-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.dl-close:hover { color: var(--text); }
.dl-close svg { width: 20px; height: 20px; }
.dl-head { text-align: center; margin-bottom: 26px; }
.dl-head img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; box-shadow: 0 0 24px rgba(227,24,45,.4); }
.dl-head h3 { font-size: 26px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.dl-head p { color: var(--soft); margin-top: 6px; font-size: 15px; }
.dl-step[hidden] { display: none; }

.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl-card {
  position: relative; display: flex; flex-direction: column; text-align: left; gap: 10px; padding: 24px 22px 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); color: var(--text);
  font: inherit; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.dl-card::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 46px; background: var(--accent); box-shadow: 0 0 12px var(--glow); transition: width .3s; }
.dl-card:not([disabled]):hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(227,24,45,.18); }
.dl-card:not([disabled]):hover::before { width: 100%; }
.dl-card:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.dl-card[disabled] { cursor: default; opacity: .62; }
.dl-card[disabled]::before { background: var(--line2); box-shadow: none; }
.dl-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 4px 10px; background: var(--accent); color: #fff; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.dl-tag.grey { background: var(--panel3); color: var(--soft); }
.dl-card h4 { font-size: 21px; font-weight: 800; }
.dl-card p { color: var(--soft); font-size: 14.5px; line-height: 1.5; flex: 1; }
.dl-card .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent2); }
.dl-card .go svg { width: 16px; height: 16px; }
.dl-card[disabled] .go { color: var(--muted); }

.dl-form { max-width: 460px; margin: 0 auto; }
.dl-form label { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.dl-input {
  width: 100%; height: 56px; padding: 0 16px; background: #070607; border: 1px solid var(--line2); color: var(--text);
  font: 700 18px/1 Consolas, 'Cascadia Mono', 'SF Mono', monospace; letter-spacing: 2px; text-transform: uppercase; text-align: center;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: border-color .15s;
}
.dl-input::placeholder { color: #4a4245; letter-spacing: 2px; }
.dl-input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dl-input.bad { border-color: var(--accent2); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.dl-err { min-height: 22px; margin-top: 10px; color: var(--accent2); font-size: 14px; text-align: center; }
.dl-form .btn { width: 100%; margin-top: 6px; }
.dl-form .btn[disabled] { filter: saturate(.5) brightness(.8); cursor: wait; }
.dl-hint { margin-top: 16px; color: var(--muted); font-size: 13.5px; text-align: center; }
.dl-hint a { color: var(--accent2); }
.dl-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; margin-bottom: 14px; padding: 4px 0; }
.dl-back:hover { color: var(--text); }
.dl-back svg { width: 16px; height: 16px; }

.dl-ok { text-align: center; max-width: 480px; margin: 0 auto; }
.dl-ok .check { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: rgba(66,211,146,.12); color: var(--ok); box-shadow: 0 0 30px rgba(66,211,146,.18); }
.dl-ok .check svg { width: 30px; height: 30px; }
.dl-ok h4 { font-size: 22px; font-weight: 800; }
.dl-ok .file { margin-top: 8px; color: var(--soft); font-size: 14.5px; word-break: break-all; }
.dl-ok .again { display: inline-block; margin-top: 14px; color: var(--accent2); font-weight: 600; }
.dl-note { margin-top: 20px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); color: var(--soft); font-size: 13.5px; text-align: left; }
.dl-note b { color: var(--text); }
body.no-scroll { overflow: hidden; }
@media (max-width: 640px) {
  .dl-modal { padding: 28px 18px 22px; }
  .dl-cards { grid-template-columns: 1fr; }
  .dl-head h3 { font-size: 21px; }
  .dl-input { font-size: 16px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) { .dl-overlay, .dl-modal, .dl-card { transition: none; } .dl-input.bad { animation: none; } }

/* ---------- responsywność ---------- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .shot { transform: none; max-width: 680px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mods-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(6,6,6,.97); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .links.open { display: flex; }
  .links a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: 14px; }
  .menu-btn { display: block; }
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .hero { padding: 96px 0 90px; }
  .sun { right: -18%; top: 7%; width: 60vw; opacity: .5; }
  .big-kanji { right: 2%; top: 9%; opacity: .55; }
  .lead { font-size: 16.5px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .mod-list { grid-template-columns: 1fr; }
  .download .box { padding: 48px 20px; }
  .btn-lg { width: 100%; }
  .mods::before { font-size: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clouds { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card::before { transition: none; }
}

/* przełącznik języka */
.lang-sw { display: inline-flex; flex: none; border: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.lang-sw a { padding: 7px 10px; line-height: 1; color: var(--muted); transition: color .15s, background .15s; }
.lang-sw a + a { border-left: 1px solid var(--line); }
.lang-sw a:hover { color: var(--text); }
.lang-sw a[aria-current] { color: var(--text); background: rgba(227,24,45,.16); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .links { margin-left: auto; }
@media (max-width: 760px) {
  .nav .lang-sw { order: 3; margin-left: auto; }
  .nav .menu-btn { order: 4; }
}

/* ===================================================================
   Podstrony: Funkcje, FAQ, Sklep (wspólne z główną – plik site.css)
   =================================================================== */
.links a.active { color: var(--text); position: relative; }
.links a.active:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
@media (max-width: 760px) { .links a.active:not(.btn)::after { display: none; } .links a.active { color: var(--accent2); } }

/* nagłówek podstrony */
.page-hero { position: relative; padding: 150px 0 76px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(110% 120% at 75% 0%, #1a0b0e 0%, #0a0708 55%, #060606 100%); }
.page-hero .sun { right: 9%; top: 52px; width: 250px; opacity: .8; }
.page-hero .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; z-index: -1; }
.page-hero .bigk { position: absolute; right: 26%; top: 30px; z-index: -1; font-family: var(--kanji); font-weight: 900; font-size: 230px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(227,24,45,.22); pointer-events: none; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); }
.page-hero .lead { max-width: 640px; }
.page-hero .cta { margin-top: 26px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); letter-spacing: 1px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--line2); }

/* układ: spis treści + treść */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 64px; padding-bottom: 110px; }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; border-left: 1px solid var(--line); }
.toc b { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding: 0 0 10px 16px; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 7px 12px 7px 16px; font-size: 14px; color: var(--soft); border-left: 2px solid transparent; margin-left: -1px; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--accent); }
.toc a .kj { color: var(--accent2); font-size: 14px; }
.toc a small { margin-left: auto; color: var(--muted); font-size: 11.5px; }

/* sekcje funkcji */
.fsec { padding: 0 0 64px; scroll-margin-top: 92px; }
.fsec + .fsec { border-top: 1px solid var(--line); padding-top: 56px; }
.fsec-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.fsec-head .ico { margin: 4px 0 0; flex: none; }
.fsec-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.fsec-head p { color: var(--soft); margin-top: 10px; font-size: 16.5px; max-width: 720px; }
.fsec h3.fgroup { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent2); font-weight: 700; }
.fsec h3.fgroup::before { content: ''; width: 24px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.fsec h3.fgroup small { color: var(--muted); letter-spacing: 1px; font-weight: 600; text-transform: none; font-size: 12.5px; }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fi { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 16px 18px 15px 20px; transition: border-color .2s; }
.fi::before { content: ''; position: absolute; left: 0; top: 16px; width: 3px; height: 18px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.fi:hover { border-color: var(--line2); }
.fi h4 { font-size: 16px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fi p { color: var(--soft); font-size: 14.5px; margin-top: 4px; line-height: 1.55; }
.fi p b { color: var(--text); }
.fi ul { margin: 8px 0 0 18px; color: var(--soft); font-size: 14.5px; }
.fi ul li { margin: 3px 0; }
.fi.wide { grid-column: 1 / -1; }
.badge { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; background: var(--panel3); color: var(--soft); border: 1px solid var(--line2); white-space: nowrap; }
.badge.key { background: #0c0a0b; color: var(--text); border-bottom-width: 2px; letter-spacing: .5px; text-transform: none; font-size: 11.5px; }
.badge.off { color: var(--muted); }
.badge.red { background: rgba(227,24,45,.14); color: var(--accent2); border-color: rgba(227,24,45,.35); }
.fnote { margin-top: 16px; padding: 14px 18px; background: rgba(227,24,45,.07); border: 1px solid rgba(227,24,45,.25); color: var(--soft); font-size: 14.5px; }
.fnote b { color: var(--text); }
.fnote a, .fsec p a, .fi a { color: var(--accent2); }
.parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.parts span { font-size: 12.5px; padding: 3px 9px; background: #0c0a0b; border: 1px solid var(--line); color: var(--soft); }
.parts span b { color: var(--text); font-weight: 700; }

/* główna: link „wszystkie funkcje” */
.more-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.more-row p { color: var(--muted); font-size: 14.5px; }
.card.link-card { cursor: pointer; }
.card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent2); }
.card .go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.card:hover .go svg { transform: translateX(3px); }
.mod-groups { display: grid; gap: 14px; }
.mod-group small { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.mod-group .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.mod-group .tags span { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); padding: 7px 12px; font-size: 14px; font-weight: 600; }
.mod-group .tags span::before { content: ''; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 8px var(--glow); }
.mod-group .tags span.more { color: var(--accent2); border-style: dashed; }
.mod-group .tags span.more::before { display: none; }
.stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.stats div b { display: block; font-size: 34px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--accent2); }
.stats div small { color: var(--muted); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }

/* FAQ */
.faq-tools { position: sticky; top: 64px; z-index: 5; background: rgba(6,6,6,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 14px 0 12px; margin: -14px 0 26px; border-bottom: 1px solid var(--line); }
.faq-search { position: relative; }
.faq-search svg { position: absolute; z-index: 1; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.faq-search input { width: 100%; height: 52px; padding: 0 16px 0 46px; background: var(--panel); border: 1px solid var(--line2); color: var(--text); font: inherit; font-size: 16px; clip-path: var(--cut); }
.faq-search input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.faq-search input::placeholder { color: var(--muted); }
.faq-count { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 20px; }
.faq-page .faq { max-width: none; }
.faq-page .faq-cat { scroll-margin-top: 170px; margin-top: 52px; }
.faq-page .faq-group:first-child .faq-cat { margin-top: 8px; }
.faq-page details { scroll-margin-top: 170px; }
.faq-page details[open] summary { color: var(--accent2); }
.faq-page .faq details p { max-width: 760px; }
.faq-page .anchor { opacity: 0; margin-left: 8px; font-size: 14px; color: var(--muted); transition: opacity .15s; }
.faq-page summary:hover .anchor { opacity: 1; }
.faq-page details.hit summary { color: var(--text); }
.faq-page mark { background: rgba(227,24,45,.35); color: #fff; padding: 0 2px; }
.faq-empty { display: none; padding: 26px; border: 1px dashed var(--line2); color: var(--soft); text-align: center; }
.faq-empty a { color: var(--accent2); }
.faq-help { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border: 1px solid var(--line2); background: radial-gradient(90% 140% at 0% 0%, #22090e, #0d0809 60%); }
.faq-help h3 { font-size: 20px; font-weight: 800; }
.faq-help p { color: var(--soft); font-size: 15px; margin-top: 4px; }

/* Sklep – w budowie */
.shop { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; text-align: center; }
.shop::before { content: ''; position: absolute; inset: 0; z-index: -3; background: radial-gradient(120% 90% at 50% 0%, #1d0a0e 0%, #0a0708 55%, #050505 100%); }
.shop .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%; z-index: -2; }
.shop-art { position: relative; width: min(560px, 100%); margin: 0 auto 10px; }
.shop-art svg { width: 100%; height: auto; overflow: visible; }
.shop h1 { font-size: clamp(40px, 7vw, 78px); }
.shop .lead { margin: 18px auto 0; max-width: 560px; }
.shop .cta { justify-content: center; }
.tape { position: absolute; left: -10%; right: -10%; height: 46px; display: flex; align-items: center; overflow: hidden; z-index: -1; opacity: .9;
  background: repeating-linear-gradient(-45deg, #e3182d 0 26px, #0b0909 26px 52px); box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.tape span { white-space: nowrap; font-weight: 900; letter-spacing: 6px; font-size: 15px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 6px #000; animation: tape 26s linear infinite; padding-left: 20px; }
.tape.t1 { top: 13%; transform: rotate(-4deg); }
.tape.t2 { bottom: 4%; transform: rotate(3deg); opacity: .55; }
.tape.t2 span { animation-direction: reverse; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.spark { transform-origin: center; animation: spark 2.6s ease-in-out infinite; }
@keyframes spark { 0%, 86%, 100% { opacity: 0; } 88%, 93% { opacity: 1; } 90% { opacity: .2; } }
.swing { transform-origin: 280px 64px; animation: swing 4s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }

@media (max-width: 1020px) { .page-hero .bigk { display: none; } }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); background: var(--panel); padding: 14px 6px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc b { grid-column: 1 / -1; padding-left: 12px; }
  .toc a { border-left: 0; padding-left: 12px; margin-left: 0; }
  .flist { grid-template-columns: 1fr; }
  .faq-tools { top: 64px; }
}
@media (max-width: 600px) {
  .page-hero { padding: 112px 0 52px; }
  .page-hero .sun { width: 150px; right: -30px; opacity: .45; }
  .toc { grid-template-columns: 1fr; }
  .fsec-head { flex-direction: column; gap: 12px; }
  .tape { height: 36px; }
  .tape span { font-size: 12px; letter-spacing: 4px; }
}
@media (prefers-reduced-motion: reduce) { .tape span, .spark, .swing { animation: none; } .spark { opacity: 0; } }
