/* ============================================================
   Po Adopcji · poadopcji.pl — design system (ciemny, ciepły)
   Architektura wg szablonu „Organic Search & AI", tokeny PA
   ============================================================ */

/* ---------- TOKENY ---------- */
:root {
  color-scheme: dark;
  --bg: #261E17;
  --surface: #322820;
  --surface-2: #3D3128;
  --line: #4A3D31;
  --line-soft: rgba(191, 175, 150, 0.12);
  --ink: #F5ECDC;
  --muted: #BFAF96;
  --faint: #8f8271;
  --red: #E24B31;
  --red-soft: #F0664C;
  --gold: #EABE6E;
  --gold-soft: rgba(234, 190, 110, 0.12);
  --gold-line: rgba(234, 190, 110, 0.38);
  --gold-chip-bg: #4A3B26;
  --grad: linear-gradient(115deg, #EABE6E 0%, #F0664C 60%, #E24B31 110%);
  --grid-line: rgba(234, 190, 110, 0.045);
  --nav-bg: rgba(38, 30, 23, 0.82);
  --nav-bg-scrolled: rgba(38, 30, 23, 0.95);
  --panel-solid: #2E251C;
  --radius: 18px;
  --font-display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
}

/* ---------- BAZA ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
::selection { background: rgba(234, 190, 110, 0.35); color: #fff; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 16.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px; /* miejsce na sticky bar */
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, .display, .stat-val, .bar-val, .kg { font-family: var(--font-display); }
.container {
  max-width: 1180px; margin: 0 auto; width: 100%;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}
.container-narrow { max-width: 720px; }
section[id] { scroll-margin-top: 84px; }
.cta:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible,
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- GLOBALNE TŁO ---------- */
.backdrop { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--bg); }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 78%);
}
.backdrop::after {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(38% 32% at 18% 6%, rgba(226, 75, 49, 0.10), transparent 70%),
    radial-gradient(30% 28% at 85% 12%, rgba(234, 190, 110, 0.08), transparent 70%),
    radial-gradient(40% 34% at 55% 105%, rgba(226, 75, 49, 0.06), transparent 70%);
  animation: breathe 14s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(1.5%, 2%, 0) scale(1.05); } }

/* ---------- NAWIGACJA ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-nav.is-scrolled { background: var(--nav-bg-scrolled); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.brand-word { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; font-size: 1.08rem; color: var(--ink); line-height: 1; white-space: nowrap; }
.brand-tld { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: .88rem; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 9999px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.is-active { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.login-wrap { position: relative; flex-shrink: 0; }
.login-btn {
  background: transparent; border: 1.5px solid var(--gold); color: var(--gold);
  font-weight: 600; font-size: .82rem; padding: 8px 14px; border-radius: 9999px; white-space: nowrap;
  transition: background .2s;
}
.login-btn:hover { background: var(--gold-chip-bg); }
.popover {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); width: min(260px, 80vw);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; font-size: .84rem; color: var(--ink);
  box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 110;
}
.popover.open { display: block; }
.popover a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0%; background: var(--grad); transition: width .1s linear; }
.nav-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.nav-burger:hover { background: var(--surface-2); }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  max-height: 0; overflow: hidden; background: var(--nav-bg-scrolled);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  transition: max-height .3s ease; position: sticky; top: 59px; z-index: 99;
}
.nav-mobile.is-open { max-height: 320px; }
.nav-mobile-inner { display: flex; flex-direction: column; padding: 6px 0 16px; }
.nav-mobile-inner a { padding: 13px 4px; font-size: .95rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.nav-mobile-inner a:last-child { border-bottom: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- PRZYCISKI ---------- */
.cta, .btn-primary {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(115deg, var(--red) 0%, var(--red-soft) 100%);
  color: #fff; border-radius: 9999px; font-weight: 600; font-size: 1rem;
  padding: 15px 28px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(240, 102, 76, 0.4), 0 8px 28px -6px rgba(226, 75, 49, 0.55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(234, 190, 110, 0.5), 0 14px 40px -6px rgba(226, 75, 49, 0.7);
}
.cta::after, .btn-primary::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.cta:hover::after, .btn-primary:hover::after { left: 130%; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; color: var(--gold);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  padding: 7px 16px; border-radius: 9999px; letter-spacing: .02em; margin-bottom: 26px;
}
.hero-eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulseDot 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 var(--gold-soft); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -.015em; margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 52ch; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-eyebrow, .hero h1, .hero .lead, .hero-actions { animation: riseIn .7s cubic-bezier(.2,.7,.3,1) both; }
.hero h1 { animation-delay: .07s; } .hero .lead { animation-delay: .14s; } .hero-actions { animation-delay: .21s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-visual { position: relative; animation: riseIn .8s cubic-bezier(.2,.7,.3,1) .2s both; }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -8%;
  background: radial-gradient(60% 60% at 60% 40%, rgba(226, 75, 49, 0.16), transparent 70%);
  filter: blur(30px); z-index: -1;
}

/* ---------- ORBITY: kategorie kosztów wokół Jake'a ---------- */
.orbit-scene { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.orbit-ring { position: absolute; border: 1px dashed var(--line); border-radius: 50%; }
.orbit-ring.r1 { inset: 24%; }
.orbit-ring.r2 { inset: 7%; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 148px; height: 148px; border-radius: 50%; z-index: 3;
  box-shadow: 0 0 0 12px var(--gold-soft), 0 24px 60px -12px rgba(0,0,0,0.6);
}
.orbit-core svg { width: 100%; height: 100%; display: block; }
.orbit-core::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--gold-line); animation: corePulse 3s ease-out infinite; }
@keyframes corePulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.orbit-track { position: absolute; inset: 0; border-radius: 50%; }
.orbit-track.t1 { animation: orbitSpin 36s linear infinite; }
.orbit-track.t2 { animation: orbitSpinRev 58s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinRev { to { transform: rotate(-360deg); } }
.orbit-sat {
  position: absolute; left: 50%; top: 50%;
  transform: rotate(var(--angle, 0deg)) translate(var(--radius, 30cqi)) rotate(calc(-1 * var(--angle, 0deg)));
}
.orbit-sat .sat-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transform: translate(-50%,-50%);
  font-size: .8rem; font-weight: 600; color: var(--ink);
  background: var(--panel-solid); border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 9999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.orbit-track.t1 .sat-chip { animation: satCounter 36s linear infinite; }
.orbit-track.t2 .sat-chip { animation: satCounterRev 58s linear infinite; }
@keyframes satCounter { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes satCounterRev { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.sat-chip .sat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sat-dot.c1 { background: #EABE6E; } .sat-dot.c2 { background: #E24B31; }
.sat-dot.c3 { background: #C98A4B; } .sat-dot.c4 { background: #E6AC52; }
.sat-dot.c5 { background: #8E5F55; } .sat-dot.c6 { background: #F0664C; }
.sat-dot.c7 { background: #BFAF96; } .sat-dot.c8 { background: #F6E7C8; }
.orbit-badge {
  position: absolute; z-index: 4;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line);
  padding: 6px 13px; border-radius: 9999px; backdrop-filter: blur(6px);
  animation: badgeFloat 5s ease-in-out infinite alternate;
}
.orbit-badge.b1 { top: 4%; left: 2%; animation-delay: 0s; }
.orbit-badge.b2 { top: 10%; right: 0%; animation-delay: -1.4s; }
.orbit-badge.b3 { bottom: 6%; left: 6%; animation-delay: -2.6s; }
@keyframes badgeFloat { from { transform: translateY(-4px); } to { transform: translateY(6px); } }

/* ---------- MARQUEE ---------- */
.marquee-band { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 18px 0; overflow: hidden; position: relative; background: rgba(255,255,255,0.012); }
.marquee-band::before, .marquee-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee-band::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-band::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.marquee-item::before { content: "🐾"; font-size: .72rem; opacity: .7; }

/* ---------- SEKCJE ---------- */
section { padding: 56px 0; position: relative; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 600; color: var(--red-soft);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.section-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--grad); }
h2, .section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 60ch; line-height: 1.6; }
.section-head { margin-bottom: 28px; }

/* ---------- KARTY (spotlight) ---------- */
.g-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, background .3s;
}
.g-card:hover { border-color: var(--gold-line); }
.g-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--gold-soft), transparent 45%);
}
.g-card:hover::before { opacity: 1; }

/* ---------- KALKULATOR ---------- */
.step { padding: 20px; margin-bottom: 14px; }
.step h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
.step .hint { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface-2);
  font-size: .92rem; cursor: pointer; user-select: none;
  transition: border-color .12s, background .12s, transform .12s;
}
.chip span:hover { transform: translateY(-1px); }
.chip input:checked + span { border-color: var(--gold); background: var(--gold-chip-bg); color: var(--gold); font-weight: 600; }
.slider-row { display: flex; align-items: center; gap: 16px; position: relative; }
input[type=range] { flex: 1; accent-color: var(--red); height: 32px; }
.kg { min-width: 96px; text-align: right; font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.kg small { display: block; font-family: "Instrument Sans", sans-serif; font-weight: 400; font-size: .74rem; color: var(--muted); }

/* ---------- WYNIKI ---------- */
.results { margin-top: 34px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.stat.full { grid-column: 1 / -1; background: linear-gradient(140deg, #3D2E1E, #33281E); border-color: #5A4930; }
.stat .lab { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.stat-val { font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat.full .stat-val { color: var(--gold); }
.fund { margin-top: 12px; background: var(--surface); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 16px; font-size: .92rem; }
.fund b { color: var(--gold); }

/* ---------- PARAGON ---------- */
.receipt { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.receipt h4 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 18px 6px; }
.receipt ul { list-style: none; }
.receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 18px; font-size: .92rem; border-bottom: 1px solid #3A2F26; }
.receipt li:last-child { border-bottom: none; }
.receipt li span:last-child { font-variant-numeric: tabular-nums; color: var(--gold); white-space: nowrap; }
.receipt li.dim span { color: var(--muted); }

/* ---------- KRAJ PSIARZY ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 6px; }
.tile { padding: 22px 20px; min-width: 0; }
.tile .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.05; }
.tile .big.red { color: var(--red-soft); }
.tile p { font-size: .84rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.src { font-size: .72rem; color: var(--faint); margin-top: 14px; }

/* ---------- BRAMKA E-MAIL ---------- */
.gate {
  margin-top: 48px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #40251C, #33231C);
  border: 1px solid #5C3A2C; border-radius: 22px; padding: 28px 24px;
}
.gate::before { content: ""; position: absolute; top: -40%; right: -10%; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(226,75,49,0.14), transparent 65%); filter: blur(20px); pointer-events: none; }
.gate > * { position: relative; }
.gate h2 { font-size: 1.32rem; line-height: 1.25; }
.gate h2 em { font-style: normal; color: var(--red-soft); }
.gate p { color: var(--muted); font-size: .94rem; margin: 10px 0 16px; }
.gate p b { color: var(--ink); }
.gate form { display: flex; gap: 8px; flex-wrap: wrap; }
.gate input[type=email] { flex: 1; min-width: 200px; background: var(--bg); border: 1.5px solid var(--line); color: var(--ink); border-radius: 12px; padding: 13px 14px; font-size: 1rem; font-family: inherit; }
.gate button {
  background: linear-gradient(115deg, var(--red), var(--red-soft)); color: #fff;
  border-radius: 12px; padding: 13px 20px; font-size: 1rem; font-weight: 600;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 24px -8px rgba(226, 75, 49, 0.55);
}
.gate button:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(226, 75, 49, 0.7); }
.gate .fine { font-size: .74rem; color: var(--faint); margin-top: 10px; }
.secret { display: none; margin-top: 18px; }
.secret.open { display: block; }
.secret .item { background: rgba(38, 30, 23, .6); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; font-size: .93rem; }
.secret .item b { color: var(--gold); }
.secret .item .save { color: var(--red-soft); font-weight: 600; font-size: .85rem; }
.wait { margin-top: 16px; }
.wait p { color: var(--ink); font-size: .95rem; margin-bottom: 10px; }
.wait .chips .chip span { font-size: .88rem; }
.thanks { display: none; margin-top: 12px; color: var(--gold); font-weight: 600; font-size: .95rem; }

/* ---------- STOPKA ---------- */
footer { margin-top: 40px; padding: 36px 0 44px; border-top: 1px solid var(--line); position: relative; }
footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), var(--red-soft), transparent); opacity: .5; }
footer p { font-size: .8rem; color: var(--faint); margin-bottom: 10px; max-width: 70ch; }
footer b { color: var(--muted); }
.legal-band { border-top: 1px solid var(--line-soft); margin-top: 22px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: .76rem; }

/* ---------- STICKY BAR ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(38, 30, 23, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 50; }
.bar .in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(22px, env(safe-area-inset-left)); }
.bar .lab { font-size: .74rem; color: var(--muted); }
.bar-val { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); line-height: 1.1; }
.bar a { background: linear-gradient(115deg, var(--red), var(--red-soft)); color: #fff; font-weight: 600; font-size: .88rem; padding: 10px 16px; border-radius: 9999px; white-space: nowrap; }

/* ---------- BANNER ZGODY NA COOKIES ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--panel-solid); border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(0,0,0,.35);
  transform: translateY(100%); transition: transform .35s ease, bottom .2s ease;
}
.cookie-banner.is-in { transform: translateY(0); }
.cookie-banner-in {
  max-width: 900px; margin: 0 auto;
  padding: 16px max(22px, env(safe-area-inset-right)) 16px max(22px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner-in p { flex: 1 1 320px; font-size: .84rem; color: var(--muted); line-height: 1.5; margin: 0; }
.cookie-banner-in a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn-necessary {
  background: transparent; border: 1.5px solid var(--line); color: var(--muted);
  font-weight: 600; font-size: .84rem; padding: 9px 14px; border-radius: 9999px; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.cookie-btn-necessary:hover { color: var(--ink); border-color: var(--gold-line); }
.cookie-btn-accept {
  background: linear-gradient(115deg, var(--red), var(--red-soft)); color: #fff;
  font-weight: 600; font-size: .84rem; padding: 9px 16px; border-radius: 9999px; white-space: nowrap;
  transition: transform .15s ease;
}
.cookie-btn-accept:hover { transform: translateY(-1px); }
@media (max-width: 640px) {
  .cookie-banner-in { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-necessary, .cookie-btn-accept { flex: 1; }
}

/* ---------- ZDJĘCIA (o projekcie) ---------- */
.photo-figure { margin: 0; }
.photo-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo-media.ratio-4-5 { aspect-ratio: 4 / 5; }
.photo-media.ratio-3-4 { aspect-ratio: 3 / 4; }
.photo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-media img.obj-top { object-position: center 15%; }
.photo-figure figcaption { padding: 10px 2px 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .photo-grid { grid-template-columns: 1fr; } }

/* ---------- POWRÓT NA GÓRĘ ---------- */
.back-to-top {
  position: fixed; right: 18px; bottom: 106px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; z-index: 60; opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s, transform .25s; box-shadow: 0 12px 30px -8px rgba(0,0,0,0.5);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); border-color: var(--gold-line); }

/* ---------- SCROLL REVEAL ---------- */
/* Stan ukryty tylko przy działającym JS — bez JS wszystko widoczne */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }
html.js .reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
html.js .reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .09s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .18s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .27s; }

/* ---------- OKRUSZKI (breadcrumbs) ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); transition: color .2s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-current] { color: var(--ink); }
.breadcrumbs .sep { opacity: .5; }

/* ---------- STOPKA: linki ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; margin: 24px 0 20px; }
.footer-col h5 { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col a { font-size: .86rem; color: var(--faint); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; background: var(--surface); transition: border-color .25s, background .25s; overflow: hidden; }
.faq-item.open { border-color: var(--gold-line); background: var(--surface-2); }
.faq-q { width: 100%; text-align: left; padding: 18px 20px; font-size: 1rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); }
.faq-q:hover { color: var(--gold); }
.faq-q-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; font-weight: 500; transition: transform .25s, background .25s; color: var(--gold); }
.faq-item.open .faq-q-icon { transform: rotate(45deg); background: var(--red); border-color: transparent; color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; color: var(--muted); font-size: .92rem; line-height: 1.65; padding: 0 20px; }
.faq-item.open .faq-a { padding: 0 20px 20px; }

/* ---------- SPIS MODUŁÓW (przewodnik / proces) ---------- */
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.module-card { padding: 22px 20px; }
.module-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: .88rem; margin-bottom: 12px; }
.module-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.module-card p { font-size: .86rem; color: var(--muted); line-height: 1.55; }

/* ---------- TABELA PORÓWNAWCZA ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--line); }
.compare-table th { font-family: var(--font-display); font-weight: 700; color: var(--gold); background: var(--surface-2); white-space: nowrap; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--muted); white-space: nowrap; }

/* Mobile: tabela zamienia się w stos kart zamiast poziomego suwaka */
@media (max-width: 700px) {
  .compare-wrap { overflow-x: visible; border: none; background: none; }
  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
  .compare-table tr {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 12px;
  }
  .compare-table tr:last-child { margin-bottom: 0; }
  .compare-table td { padding: 0; border-bottom: none; white-space: normal; }
  .compare-table td:first-child {
    font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .95rem;
    padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line);
  }
  .compare-table td:not(:first-child) { padding-top: 8px; }
  .compare-table td:not(:first-child)::before {
    content: attr(data-label); display: block; color: var(--gold); font-weight: 600;
    font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px;
  }
}

/* ---------- DLA KOGO / NIE DLA KOGO ---------- */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card { padding: 26px 24px; }
.value-card-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 5px 12px; border-radius: 9999px; margin-bottom: 14px; }
.value-card.no .value-card-tag { color: var(--red-soft); background: rgba(226,75,49,0.1); border-color: rgba(226,75,49,0.35); }
.value-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.value-list li { font-size: .9rem; color: var(--ink); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.value-list li::before { content: "→"; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.value-card.no .value-list li::before { content: "×"; color: var(--red-soft); }

/* ---------- HUB WIEDZY ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hub-card { padding: 26px 24px; display: flex; flex-direction: column; }
.hub-card .hub-tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red-soft); margin-bottom: 10px; }
.hub-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.hub-card p { font-size: .88rem; color: var(--muted); line-height: 1.55; flex: 1; margin-bottom: 14px; }
.hub-card .hub-cta { font-size: .86rem; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.hub-card.soon { opacity: .6; }

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 1080px) {
  .hero-layout { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 52px 0 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 44px 0; }
  .hero { padding: 36px 0 28px; }
  .hero-actions .cta { width: 100%; }
  .orbit-core { width: 112px; height: 112px; }
  .sat-chip { font-size: .7rem; padding: 6px 11px; }
  .orbit-badge { font-size: .62rem; padding: 5px 10px; }
  .legal-band { flex-direction: column; }
  .module-grid, .value-grid, .hub-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 22px; }
}

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