/* Fonty hostowane lokalnie (latin + latin-ext). Wbudowane tutaj zamiast osobnych plików CSS, żeby nie blokowały renderowania. */

/* space-grotesk-latin-ext-wght-normal */ @font-face { font-family: 'Space Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/fonts/space-grotesk/files/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* space-grotesk-latin-wght-normal */ @font-face { font-family: 'Space Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/fonts/space-grotesk/files/space-grotesk-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* inter-latin-ext-wght-normal */ @font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter/files/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* inter-latin-wght-normal */ @font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter/files/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #06060c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --field: #0b0b17;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #eef0ff;
  --muted: #9095bd;
  --dim: #8287ad; /* kontrast ≥ 4,5:1 na tle (WCAG AA) */
  --cyan: #22e4ff;
  --magenta: #ff2bd6;
  --violet: #8b5cf6;
  --lime: #b6ff3b;
  --amber: #ffb547;
  --bad: #ff5c8a;
  --f-display: 'Space Grotesk Variable', 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 20px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -0.02em; }
strong { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- Tło: siatka + neonowe poświaty ---------- */

.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; animation: drift 22s ease-in-out infinite alternate; }
.g1 { width: 520px; height: 520px; background: #0aa5c2; top: -180px; left: -140px; }
.g2 { width: 560px; height: 560px; background: #a21caf; top: 80px; right: -220px; animation-delay: -7s; }
.g3 { width: 480px; height: 480px; background: #4c1d95; top: 900px; left: 30%; animation-delay: -14s; opacity: 0.35; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

/* ---------- Pasek z kursami ---------- */

.ticker {
  height: 36px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: rgba(6, 6, 12, 0.7); font-size: 12.5px; color: var(--muted);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px; white-space: nowrap; font-variant-numeric: tabular-nums; border-right: 1px solid var(--line); }
.ticker-track b { color: var(--text); font-weight: 600; }
.ticker-track em { font-style: normal; font-weight: 600; }
.ticker-track .up { color: var(--lime); }
.ticker-track .down { color: var(--bad); }
.ticker-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.ticker-track i.ok { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.ticker-track .src { color: var(--dim); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Nawigacja ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  max-width: var(--wrap); margin: 0 auto; padding: 14px 16px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); background: rgba(6, 6, 12, 0.6); border-bottom: 1px solid var(--line); z-index: -1; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--f-display); letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(34, 228, 255, 0.5)); }
.logo b { font-weight: 700; background: linear-gradient(90deg, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; font: 600 15px/1 var(--f-body);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  color: #05050a; background: linear-gradient(95deg, var(--cyan), #9b8cff 55%, var(--magenta));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 30px -6px rgba(34, 228, 255, 0.45), 0 8px 40px -10px rgba(255, 43, 214, 0.5);
}
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 40px -6px rgba(34, 228, 255, 0.6), 0 10px 50px -8px rgba(255, 43, 214, 0.6); }
.btn.ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn.ghost:hover { border-color: var(--cyan); box-shadow: 0 0 24px -6px rgba(34, 228, 255, 0.5); }
.btn.small { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 64px 16px 56px;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border: 1px solid rgba(34, 228, 255, 0.3); border-radius: 999px; background: rgba(34, 228, 255, 0.06);
  color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.hero h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -0.035em; margin: 22px 0 20px; font-weight: 700; }
.grad {
  background: linear-gradient(92deg, var(--cyan) 0%, #a78bfa 45%, var(--magenta) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(167, 139, 250, 0.35));
}
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 580px; margin: 0; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 26px; }

/* Kafelki z liczbami w hero: neonowa ramka, przelatujący połysk, liczniki i pierścień odświeżania. */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 0; max-width: 640px; }
.stat {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 14px 12px; border-radius: 16px; min-height: 104px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: 0 10px 40px -20px rgba(34, 228, 255, 0.5);
}
.stat::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(34, 228, 255, 0.7), rgba(255, 255, 255, 0.06) 35%, rgba(255, 255, 255, 0.06) 65%, rgba(255, 43, 214, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.stat::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  animation: sheen 7s ease-in-out infinite;
}
.stat:nth-child(2)::after { animation-delay: 1.2s; }
.stat:nth-child(3)::after { animation-delay: 2.4s; }
.stat:nth-child(4)::after { animation-delay: 3.6s; }
@keyframes sheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.stat strong {
  font: 700 32px/1.05 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #a9b4ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat > span { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.stat-live { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--lime); font-size: 11.5px; }
.stat-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 1.6s ease-in-out infinite; }
.stat-live b { font-weight: 700; }
.eq { display: flex; gap: 3px; align-items: flex-end; height: 16px; margin-top: auto; padding-top: 6px; }
.eq i { width: 4px; height: 30%; border-radius: 2px; background: linear-gradient(var(--cyan), var(--magenta)); box-shadow: 0 0 6px rgba(34, 228, 255, 0.5); animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.35s; }
.eq i:nth-child(4) { animation-delay: 0.05s; }
.eq i:nth-child(5) { animation-delay: 0.25s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.fx-carousel {
  margin: auto -14px 0; padding-top: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.fx-track { display: flex; width: max-content; animation: fxscroll 40s linear infinite; }
.stat:hover .fx-track { animation-play-state: paused; }
.fx-set { display: flex; gap: 6px; padding-right: 6px; }
.fx-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04);
  color: var(--muted); font: 600 10.5px var(--f-display); letter-spacing: 0.03em;
}
.fx-chip b {
  display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta)); color: #05050a; font: 700 10px var(--f-body);
  box-shadow: 0 0 8px rgba(34, 228, 255, 0.45);
}
@keyframes fxscroll { to { transform: translateX(-50%); } }
.stat-ring { padding-left: 66px; justify-content: center; }
.ring { position: absolute; left: 12px; top: 50%; width: 46px; height: 46px; transform: translateY(-50%) rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 4; }
.ring-fg { fill: none; stroke: url(#ringg); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; filter: drop-shadow(0 0 4px rgba(34, 228, 255, 0.8)); }
.ring-fg.run { animation: ringfill var(--ring-ms, 10s) linear forwards; }
@keyframes ringfill { to { stroke-dashoffset: 0; } }
.stat-ring strong small { font-size: 15px; margin-left: 2px; }

/* Grafika: sieć giełd z radarem */
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 65%); filter: blur(20px); }
.net { position: relative; width: 100%; max-width: 620px; height: auto; overflow: visible; }
.rings circle, .rings line { fill: none; stroke: rgba(34, 228, 255, 0.16); stroke-width: 1; }
.rings circle { stroke-dasharray: 2 6; }
.rings line { stroke: rgba(34, 228, 255, 0.07); }
.sweep { transform-box: view-box; transform-origin: 360px 300px; animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link line { stroke: rgba(139, 92, 246, 0.35); stroke-width: 1.5; transition: stroke 0.4s, opacity 0.4s; }
.link .pulse { stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 320; animation: flow 2.6s linear infinite; filter: drop-shadow(0 0 4px var(--cyan)); }
@keyframes flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -328; } }
.link.is-best line { stroke: rgba(182, 255, 59, 0.55); stroke-width: 2.5; }
.link.is-best .pulse { stroke: var(--lime); stroke-width: 4; stroke-dasharray: 16 40; animation-duration: 1s; filter: drop-shadow(0 0 6px var(--lime)); }
.link.is-off { opacity: 0.2; }
.core-t { fill: #05050a; font: 700 10.5px var(--f-display); letter-spacing: 0.12em; }
.node .disc { fill: #0d0d1d; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.5; transition: stroke 0.4s; }
.node .halo { fill: none; stroke: var(--violet); stroke-width: 1; opacity: 0.35; transform-box: fill-box; transform-origin: center; }
.node .name { fill: var(--text); font: 600 10.5px var(--f-display); }
.node .tag rect { fill: rgba(9, 9, 20, 0.9); stroke: var(--line-2); }
.node .tag .out { fill: var(--muted); font: 600 11px var(--f-body); font-variant-numeric: tabular-nums; }
.node.is-best .disc { stroke: var(--lime); stroke-width: 2.5; filter: drop-shadow(0 0 10px rgba(182, 255, 59, 0.7)); }
.node.is-best .halo { stroke: var(--lime); opacity: 0.8; animation: ping 1.8s ease-out infinite; }
.node.is-best .tag rect { stroke: var(--lime); fill: rgba(30, 45, 5, 0.9); }
.node.is-best .tag .out { fill: var(--lime); }
.node.is-off { opacity: 0.35; }
@keyframes ping { from { transform: scale(0.9); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Kalkulator ---------- */

.calc-wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; display: grid; gap: 16px; }
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.calc { padding: 26px; border-color: rgba(34, 228, 255, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 43, 214, 0.08), 0 0 80px -30px rgba(34, 228, 255, 0.45), 0 30px 80px -40px #000; }
.calc-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.field.grow { flex: 1 1 320px; min-width: 0; }
.field.inline { flex-direction: row; align-items: center; gap: 12px; }

select {
  appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--text); font-family: inherit;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2322e4ff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 38px;
}
.combo { display: flex; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--field); transition: border-color 0.2s, box-shadow 0.2s; }
.combo:focus-within, select.solo:focus, #method:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 228, 255, 0.15), 0 0 24px -4px rgba(34, 228, 255, 0.45); outline: none; }
.combo input { flex: 1; width: 0; min-width: 0; border: 0; padding: 14px 18px; background: transparent; color: var(--text); outline: none; font: 600 30px/1.2 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.combo select { border: 0; border-left: 1px solid var(--line-2); padding-left: 16px; font: 600 17px var(--f-display); background-color: rgba(255, 255, 255, 0.04); }
select.solo { height: 64px; min-width: 150px; border: 1px solid var(--line-2); border-radius: 14px; padding-left: 18px; font: 600 18px var(--f-display); }
.swap-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--cyan); font-size: 18px; background: rgba(34, 228, 255, 0.06); box-shadow: 0 0 20px -6px var(--cyan); }
#method { height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding-left: 12px; font-size: 14px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.chips button { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--muted); border-radius: 999px; padding: 6px 14px; font: 500 13px var(--f-body); cursor: pointer; font-variant-numeric: tabular-nums; transition: all 0.15s; }
.chips button:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px -4px rgba(34, 228, 255, 0.6); }

.opts { align-items: center; justify-content: space-between; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.seg button { border: 1px solid transparent; background: transparent; color: var(--muted); padding: 9px 16px; border-radius: 9px; font: 600 14px var(--f-body); cursor: pointer; transition: all 0.2s; }
.seg button[aria-checked="true"] { color: var(--text); background: linear-gradient(95deg, rgba(34, 228, 255, 0.18), rgba(255, 43, 214, 0.18)); border-color: rgba(34, 228, 255, 0.35); box-shadow: 0 0 20px -8px var(--cyan); }
.hint { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.error { padding: 14px 18px; border-radius: 14px; background: rgba(255, 92, 138, 0.1); border: 1px solid rgba(255, 92, 138, 0.4); color: var(--bad); }

/* Wynik */
.result { padding: 26px; border-color: rgba(182, 255, 59, 0.35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 70px -30px rgba(182, 255, 59, 0.45); transition: opacity 0.2s; }
.loading .result, .loading .ranking-card { opacity: 0.7; }
.eyebrow { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.winner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.winner-ex { font: 700 44px/1.1 var(--f-display); letter-spacing: -0.03em; margin: 6px 0 8px; text-shadow: 0 0 30px rgba(182, 255, 59, 0.35); }
.winner-r { text-align: right; }
.winner-out { font: 700 44px/1.1 var(--f-display); letter-spacing: -0.03em; margin: 6px 0 6px; color: var(--lime); text-shadow: 0 0 24px rgba(182, 255, 59, 0.55); font-variant-numeric: tabular-nums; }
.winner-rate { color: var(--muted); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 22px; }
.kpi { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi strong { font: 600 18px var(--f-display); font-variant-numeric: tabular-nums; }
.kpi.good strong { color: var(--lime); }
.result-empty { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.result-empty.warn { color: var(--amber); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--cyan); animation: spin 0.8s linear infinite; }

.path { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--dim); margin-top: 5px; }
.path b { font-weight: 600; background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.3); color: #d9ccff; padding: 1px 7px; border-radius: 6px; font-family: var(--f-display); }
.winner-path .path b { background: rgba(182, 255, 59, 0.1); border-color: rgba(182, 255, 59, 0.35); color: var(--lime); }

/* Podział */
.split { padding: 24px 26px; border-color: rgba(255, 43, 214, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 70px -35px rgba(255, 43, 214, 0.55); }
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.split h3 { margin: 0 0 8px; font-size: 20px; }
.split .gain { color: var(--lime); font: 700 20px var(--f-display); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(182, 255, 59, 0.5); }
.split .gain small { font-size: 14px; color: var(--muted); text-shadow: none; }
.split p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.split p strong { color: var(--text); }
.split-none { margin: 0 !important; }
.bar { display: flex; gap: 3px; height: 10px; margin-bottom: 14px; }
.bar span { display: block; height: 100%; border-radius: 6px; box-shadow: 0 0 14px currentColor; }
.parts { list-style: none; margin: 0; padding: 0; }
.parts li { display: grid; grid-template-columns: 14px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.parts .dot { width: 10px; height: 10px; border-radius: 3px; align-self: center; box-shadow: 0 0 10px currentColor; }
.parts .name { font: 600 16px var(--f-display); }
.parts .name small { color: var(--muted); font: 500 13px var(--f-body); margin-left: 4px; }
.parts .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.parts .num strong { color: var(--text); }
.parts .detail { grid-column: 2 / 4; font-size: 12.5px; color: var(--dim); }

/* Ranking */
.ranking-card { padding: 22px 26px 10px; transition: opacity 0.2s; }
.ranking-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ranking-head h2 { margin: 0 0 6px; font-size: 22px; }
.ranking { list-style: none; margin: 0; padding: 0; }
.ranking > li { border-top: 1px solid var(--line); position: relative; }
.ranking > li:first-child { border-top: 0; }
.ranking > li.best::before { content: ''; position: absolute; left: -26px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.r-head {
  width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 210px 18px; gap: 16px; align-items: center;
  padding: 16px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.r-head:disabled { cursor: default; }
.r-head:not(:disabled):hover .r-name { color: var(--cyan); }
.rank { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 14px var(--f-display); background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--line); }
li.best .rank { background: var(--lime); color: #0a1200; border-color: var(--lime); box-shadow: 0 0 18px -2px var(--lime); }
.r-name { font: 600 17px var(--f-display); transition: color 0.15s; min-width: 0; }
.r-out { text-align: right; font-variant-numeric: tabular-nums; }
.r-out strong { display: block; font: 700 18px var(--f-display); }
li.best .r-out strong { color: var(--lime); }
.r-out small { font-size: 12.5px; }
.r-out .diff { color: var(--bad); }
.r-out .lead { color: var(--lime); font-size: 12.5px; }
.r-out.reason { grid-column: 3 / 5; color: var(--dim); font-size: 13px; }
.r-rate { text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.prem { display: block; color: var(--dim); }
.chev { color: var(--dim); font-size: 20px; transition: transform 0.2s, color 0.2s; }
li.open .chev { transform: rotate(90deg); color: var(--cyan); }
li.off .r-name, li.off .rank { opacity: 0.45; }

.r-body { display: none; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 4px 0 20px 50px; }
li.open .r-body { display: grid; }
.r-body h3 { font: 600 11px var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin: 0 0 10px; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.steps li { display: flex; gap: 10px; padding: 4px 0; }
.steps li::before { content: counter(step); counter-increment: step; flex: none; width: 22px; height: 22px; border-radius: 7px; background: rgba(34, 228, 255, 0.1); border: 1px solid rgba(34, 228, 255, 0.3); color: var(--cyan); font: 700 11px var(--f-display); display: grid; place-items: center; margin-top: 1px; }
.costs { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.costs li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; color: var(--muted); }
.costs li span:last-child { text-align: right; white-space: nowrap; }
.costs li.total { border-bottom: 0; color: var(--text); font-weight: 600; }

/* ---------- Sekcje treści ---------- */

.section { max-width: var(--wrap); margin: 0 auto; padding: 110px 16px 0; }
.kicker { display: inline-block; font: 600 12px var(--f-body); text-transform: uppercase; letter-spacing: 0.16em; color: var(--cyan); text-shadow: 0 0 14px rgba(34, 228, 255, 0.6); }
.section h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; margin: 10px 0 18px; font-weight: 700; }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 28px; font-size: 16px; }

.steps-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps-grid li { padding: 24px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.steps-grid li:hover { transform: translateY(-4px); border-color: rgba(34, 228, 255, 0.35); box-shadow: 0 0 50px -20px rgba(34, 228, 255, 0.6); }
.steps-grid .num { font: 700 40px/1 var(--f-display); background: linear-gradient(180deg, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.steps-grid h3 { margin: 18px 0 8px; font-size: 19px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.explain-copy p { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.explain-copy p strong { color: var(--magenta); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.ticks li::before { content: '✓'; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; background: rgba(182, 255, 59, 0.12); border: 1px solid rgba(182, 255, 59, 0.4); color: var(--lime); font-size: 13px; font-weight: 700; }

.depth { margin: 0; padding: 24px; }
.depth figcaption { font: 600 12px var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 14px; }
.depth-rows { display: grid; gap: 6px; }
.lvl { position: relative; display: flex; justify-content: space-between; padding: 9px 14px; border-radius: 8px; font-variant-numeric: tabular-nums; font-size: 14px; overflow: hidden; }
.lvl::before { content: ''; position: absolute; inset: 0 0 0 auto; width: var(--w); background: rgba(255, 92, 138, 0.12); border-left: 1px solid rgba(255, 92, 138, 0.3); }
.lvl span, .lvl em { position: relative; font-style: normal; }
.lvl span { color: var(--bad); font-weight: 600; }
.lvl em { color: var(--muted); }
.lvl.eaten { background: rgba(255, 43, 214, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 43, 214, 0.35); }
.lvl.eaten::before { background: linear-gradient(90deg, rgba(255, 43, 214, 0.15), rgba(255, 43, 214, 0.35)); border-left-color: var(--magenta); }
.lvl.eaten span { color: var(--magenta); }
.lvl.part::before { background: linear-gradient(90deg, rgba(255, 92, 138, 0.12) 45%, rgba(255, 43, 214, 0.4) 45%); }
.depth-note { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.sw.eaten { background: rgba(255, 43, 214, 0.4); box-shadow: 0 0 10px var(--magenta); }

.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
/* Subgrid: wiersze (nagłówek, prowizja, wpłaty, PLN, link) wyrównane we wszystkich kartach. */
.ex-grid .ex-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; min-width: 0; }
.ex-grid .ex-card dl { display: contents; }
.ex-card { display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); transition: border-color 0.2s, box-shadow 0.2s; }
.ex-card:hover { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 40px -18px var(--violet); }
.ex-card header { display: flex; justify-content: space-between; align-items: center; gap: 4px 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ex-card h3 { margin: 0; font-size: 19px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.pill.ok { color: var(--lime); }
.pill.ok i { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.ex-card dl { margin: 0 0 4px; display: grid; gap: 10px; }
.ex-card dt { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.ex-card dd { margin: 2px 0 0; font-size: 14px; }
.ex-card dd small { color: var(--muted); }

.pair-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pair-links a { text-decoration: none; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.025); font-size: 14px; font-weight: 500; color: var(--muted); transition: all 0.15s; }
.pair-links a:hover { color: var(--text); border-color: var(--magenta); box-shadow: 0 0 22px -6px rgba(255, 43, 214, 0.6); }
.pair-links a[aria-current="page"] { color: var(--cyan); border-color: var(--cyan); }

.faq-list { display: grid; gap: 10px; margin-top: 28px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.025); transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(34, 228, 255, 0.3); background: rgba(34, 228, 255, 0.03); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 17px; font-weight: 600; }
.faq summary span { color: var(--cyan); font-size: 22px; transition: transform 0.2s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.footer { margin-top: 120px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.footer-in { max-width: var(--wrap); margin: 0 auto; padding: 40px 16px 56px; font-size: 13px; color: var(--dim); }
.footer-in p { max-width: 820px; margin: 14px 0 0; }
.footer-in a { color: var(--muted); }
.fees-note { color: var(--amber) !important; }

/* ---------- Responsywność ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { max-width: 480px; margin: 0 auto; width: 100%; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .explain { grid-template-columns: 1fr; gap: 28px; }
  .r-head { grid-template-columns: 34px minmax(0, 1fr) auto 18px; }
  .r-rate { display: none; }
  .r-out.reason { grid-column: 3 / 4; }
}

@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .cta .btn { flex: 1 1 100%; white-space: normal; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 12px; padding-bottom: 32px; }
  .hero-art { max-width: 340px; }
  .calc, .result, .split { padding: 20px; }
  .ranking-card { padding: 18px 20px 6px; }
  .ranking > li.best::before { left: -20px; }
  .swap-ico { display: none; }
  .field:not(.grow):not(.inline) { flex: 1 1 100%; }
  select.solo { width: 100%; height: 56px; }
  .combo input { font-size: 24px; }
  .opts { flex-direction: column; align-items: stretch; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 9px 6px; font-size: 13px; }
  .winner-r { text-align: left; }
  .winner-ex, .winner-out { font-size: 32px; }
  .r-head { grid-template-columns: 30px minmax(0, 1fr) auto 12px; gap: 10px; }
  .r-body { grid-template-columns: 1fr; padding-left: 0; gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
}


/* ---------- Przełącznik języka i linki do giełd ---------- */

.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); }
.lang {
  display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 9px;
  color: var(--muted); text-decoration: none; font: 600 12.5px var(--f-display); letter-spacing: 0.06em;
  transition: color 0.15s, background 0.15s, box-shadow 0.2s;
}
.lang:hover { color: var(--cyan); }
.lang[aria-current] { color: var(--text); background: rgba(34, 228, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(34, 228, 255, 0.45); }
.r-more, .ex-link { display: inline-block; margin-top: 14px; color: var(--cyan); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.ex-link { margin-top: 0; padding-top: 8px; align-self: end; white-space: nowrap; }
.r-more:hover, .ex-link:hover { text-decoration: underline; }
.ex-card h3 a { text-decoration: none; }
.ex-card h3 a:hover { color: var(--cyan); }
.footer-ex { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.footer-ex a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.footer-ex a:hover { color: var(--cyan); }

/* ---------- Podstrona giełdy ---------- */

.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 28px 16px 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--text); }

.ex-hero { max-width: var(--wrap); margin: 0 auto; padding: 40px 16px 0; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.ex-hero h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -0.035em; margin: 20px 0 18px; }
.unverified { margin: 22px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; color: var(--amber); background: rgba(255, 181, 71, 0.07); border: 1px solid rgba(255, 181, 71, 0.3); max-width: 600px; }
.ex-facts { margin: 0; padding: 8px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-color: rgba(34, 228, 255, 0.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 70px -30px rgba(34, 228, 255, 0.45); }
.ex-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ex-facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.ex-facts dt { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.ex-facts dd { margin: 4px 0 0; font: 600 18px var(--f-display); font-variant-numeric: tabular-nums; }
.ex-facts dd.hl { color: var(--lime); text-shadow: 0 0 18px rgba(182, 255, 59, 0.45); font-size: 24px; }

.ex-sec { padding-top: 90px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap.glass { padding: 6px 22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 13px 12px 13px 0; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl thead th { font: 600 11.5px var(--f-body); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody th { font: 600 15px var(--f-display); }
.tbl td.good { color: var(--lime); }

/* Rynek pary na żywo i przegląd par (treść unikalna dla każdej strony) */
.insight-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.insight-text p { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.insight-text p:first-child { color: var(--text); font-size: 17px; }
.ins-tbl td a, .ins-tbl th a { color: var(--text); text-decoration: none; border-bottom: 1px dashed rgba(34, 228, 255, 0.45); }
.ins-tbl td a:hover, .ins-tbl th a:hover { color: var(--cyan); }
.ins-tbl .num { text-align: right; }
.ins-tbl th, .ins-tbl td { white-space: normal; padding-right: 14px; vertical-align: top; }
.ins-tbl .num, .ins-tbl tbody th { white-space: nowrap; }
.ins-tbl thead th { line-height: 1.35; }
.insight .table-wrap.glass { padding: 6px 16px; }
.ins-tbl { font-size: 13.5px; }
.ins-tbl th:last-child, .ins-tbl td:last-child { padding-right: 0; }
.ins-tbl:not(.ov-tbl) thead th:nth-child(n+3), .ov-tbl thead th:nth-child(4) { text-align: right; }
.ov-tbl tbody th { font: 600 14.5px var(--f-body); }
.insight .hint { margin-top: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.guide { padding: 22px 24px; }
.guide h3 { margin: 0 0 10px; font-size: 18px; }
.guide p { margin: 0; color: var(--muted); line-height: 1.65; }
@media (max-width: 720px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 980px) { .insight-grid { grid-template-columns: minmax(0, 1fr); } }
.tbl td.bad { color: var(--bad); }
.tbl td.warn { color: var(--amber); }
.tbl .muted { color: var(--dim); font-size: 13px; }
.tbl.compact th, .tbl.compact td { white-space: normal; font-size: 13.5px; padding: 11px 10px 11px 0; vertical-align: top; }
.tbl.compact tbody th { font: 500 14.5px var(--f-body); }
.tbl.compact td, .tbl.compact th { padding-top: 14px; padding-bottom: 14px; }
.tbl.compact thead th { padding-top: 6px; padding-bottom: 10px; }
.pos { font: 700 18px var(--f-display); }
.pos small { color: var(--dim); font-size: 13px; font-weight: 500; }
.pos.first { color: var(--lime); text-shadow: 0 0 14px rgba(182, 255, 59, 0.5); }

.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.flow-tbl { table-layout: fixed; }
.flow-tbl th:nth-child(1), .flow-tbl td:nth-child(1) { width: 36%; }
.flow-tbl th:nth-child(2), .flow-tbl td:nth-child(2) { width: 18%; }
.flow-tbl th:nth-child(3), .flow-tbl td:nth-child(3) { width: 26%; }
.flow-tbl th:nth-child(4), .flow-tbl td:nth-child(4) { width: 20%; }
.wd-tbl th:nth-child(3), .wd-tbl td:nth-child(3) { width: 46%; }
.flow { padding: 22px; min-width: 0; }
.flow h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 19px; }
.flow h4 { margin: 22px 0 4px; font: 600 11.5px var(--f-body); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.arrow-in, .arrow-out { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 15px; }
.arrow-in { color: var(--lime); background: rgba(182, 255, 59, 0.1); border: 1px solid rgba(182, 255, 59, 0.35); }
.arrow-out { color: var(--magenta); background: rgba(255, 43, 214, 0.1); border: 1px solid rgba(255, 43, 214, 0.35); }
.kind { display: block; width: fit-content; margin: 0 0 6px; padding: 1px 7px; border-radius: 6px; font: 600 10.5px var(--f-body); text-transform: uppercase; letter-spacing: 0.06em; vertical-align: 1px; border: 1px solid; }
.k-bank { color: var(--cyan); border-color: rgba(34, 228, 255, 0.35); background: rgba(34, 228, 255, 0.07); }
.k-card, .k-wallet { color: var(--amber); border-color: rgba(255, 181, 71, 0.35); background: rgba(255, 181, 71, 0.07); }
.k-p2p, .k-onramp, .k-otc { color: var(--magenta); border-color: rgba(255, 43, 214, 0.35); background: rgba(255, 43, 214, 0.07); }
.k-crypto { color: var(--lime); border-color: rgba(182, 255, 59, 0.35); background: rgba(182, 255, 59, 0.07); }
.fee-note { margin: 16px 0 0; color: var(--dim); font-size: 13.5px; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.svc { padding: 20px; }
.svc h3 { margin: 0 0 8px; font-size: 17px; }
.svc p { margin: 0; color: var(--muted); font-size: 14px; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: start; }
.box { padding: 24px; }
.box h2 { font-size: 26px !important; margin: 0 0 8px !important; }
.box h3 { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--f-body); margin: 18px 0 6px; }
.box p { margin: 0; color: var(--muted); }
.pc-grid { display: grid; gap: 16px; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.box li { display: flex; gap: 10px; color: var(--text); }
.pros h3 { color: var(--lime); margin-top: 0; }
.cons h3 { color: var(--bad); margin-top: 0; }
.pros li::before { content: '+'; color: var(--lime); font-weight: 700; }
.cons li::before { content: '−'; color: var(--bad); font-weight: 700; }

.eu-status { display: grid; gap: 4px; margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; max-width: 600px; font-size: 14px; border: 1px solid; }
.eu-status strong { font: 600 13px var(--f-body); text-transform: uppercase; letter-spacing: 0.06em; }
.eu-status span { color: var(--muted); }
.eu-ok { border-color: rgba(182, 255, 59, 0.35); background: rgba(182, 255, 59, 0.06); }
.eu-ok strong { color: var(--lime); }
.eu-limited { border-color: rgba(255, 181, 71, 0.4); background: rgba(255, 181, 71, 0.07); }
.eu-limited strong { color: var(--amber); }
.eu-blocked { border-color: rgba(255, 92, 138, 0.45); background: rgba(255, 92, 138, 0.08); }
.eu-blocked strong { color: var(--bad); }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px !important; }
.src-list li::before { content: none !important; }
.src-list a { color: var(--cyan); font-size: 13.5px; text-decoration: none; }
.src-list a:hover { text-decoration: underline; }

.level0-note { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--dim); }
.tier-row { margin-top: 14px; align-items: center; gap: 16px; }
.tier-row .hint { margin: 0; flex: 1 1 260px; }
.tier-row .field.inline { min-width: 0; max-width: 100%; flex-wrap: wrap; }
.tier-row select { min-width: 0; max-width: 100%; }
#tokTier { height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding-left: 12px; font-size: 14px; max-width: 320px; }
.tier-tbl td, .tier-tbl th { white-space: normal; }
.tier-tbl tr.lvl0 th, .tier-tbl tr.lvl0 td { background: rgba(182, 255, 59, 0.05); }
.tier-tbl tbody th .kind { display: inline-block; margin: 0 0 0 8px; vertical-align: 2px; }

/* Przyciski rejestracji / zakupu (reflinki) */
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.r-actions .r-more { margin-top: 0; }
.buy-cta { white-space: nowrap; }
.aff-note { color: var(--dim); font-size: 11px; }
.ex-hero .cta { align-items: center; }
.signup-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px 32px; border-color: rgba(34, 228, 255, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 90px -35px rgba(34, 228, 255, 0.55), 0 0 90px -45px rgba(255, 43, 214, 0.5); }
.signup-band h2 { font-size: clamp(24px, 2.6vw, 34px) !important; margin: 0 0 6px !important; }
.signup-band p { margin: 0; color: var(--muted); max-width: 560px; }
.signup-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 100%; }
.signup-actions .btn, .ex-hero .btn { white-space: normal; text-align: center; line-height: 1.3; max-width: 100%; }
.aff-disclosure { color: var(--dim); }

/* ---------- Kalkulator top tokenów (podstrona giełdy) ---------- */

.tok-form { margin-bottom: 16px; padding: 20px 22px; }
.tok-form .calc-row { align-items: flex-end; }
.tok-form .combo input { font-size: 24px; padding: 11px 16px; }
.tok-form .seg { height: fit-content; margin-bottom: 4px; }
.tok-tbl { table-layout: fixed; }
.tok-tbl th:nth-child(1), .tok-tbl td:nth-child(1) { width: 44px; }
.tok-tbl th:nth-child(2), .tok-tbl td:nth-child(2) { width: 19%; }
.tok-tbl th:nth-child(3), .tok-tbl td:nth-child(3) { width: 20%; }
.tok-tbl th:nth-child(4), .tok-tbl td:nth-child(4) { width: 24%; }
.tok-tbl th:nth-child(6), .tok-tbl td:nth-child(6) { width: 28px; text-align: right; }
.tok-tbl td, .tok-tbl th { white-space: normal; vertical-align: middle; }
.tk-row.can-open { cursor: pointer; transition: background 0.15s; }
.tk-row.can-open:hover { background: rgba(255, 255, 255, 0.025); }
.tk-row.can-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.tk-n { color: var(--dim); font: 600 13px var(--f-display); }
.tk-sym { display: block; font: 700 16px var(--f-display); }
.tok-tbl tbody th small { display: block; margin-top: 2px; color: var(--dim); font: 400 12px var(--f-body); }
.tk-rank .pos { margin-right: 10px; }
.tk-note { color: var(--muted); font-size: 13px; }
.tk-note.good { color: var(--lime); }
.tk-only { color: var(--dim); font-size: 13px; }
.tok-tbl .chev { color: var(--dim); font-size: 18px; }
.tk-row.open .chev { color: var(--cyan); }
.tok-tbl .chev span { display: inline-block; transition: transform 0.2s; }
.tk-row.open .chev span { transform: rotate(90deg); }
.tk-detail td { padding: 4px 0 18px !important; background: rgba(34, 228, 255, 0.025); }
.tk-detail h3 { margin: 10px 16px 8px; font: 600 11.5px var(--f-body); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.tk-list { list-style: none; margin: 0 16px; padding: 0; display: grid; gap: 4px; }
.tk-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 150px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.tk-list li.me { background: rgba(34, 228, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(34, 228, 255, 0.3); }
.tk-list .rk { color: var(--dim); font: 700 13px var(--f-display); }
.tk-list .nm a { color: var(--text); text-decoration: none; font-weight: 600; }
.tk-list .nm a:hover { color: var(--cyan); }
.tk-list .nm small { display: block; color: var(--dim); font-size: 12px; }
.tk-list .vl { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tk-list .df { text-align: right; font-size: 13px; }
.tk-list .bad { color: var(--bad); }
.tk-list .good { color: var(--lime); }

@media (max-width: 980px) {
  .ex-hero, .two-col, .flow-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .langs { margin-left: auto; }
  .nav .btn { margin-left: 0; }
  .ex-facts { grid-template-columns: 1fr 1fr; padding: 4px 16px; }
  .ex-facts dd { font-size: 16px; }
  .table-wrap.glass { padding: 4px 14px; }
  .flow-tbl { min-width: 560px; }
  .tok-tbl { min-width: 640px; }
  .tok-form .seg { width: 100%; }
  .flow { padding: 18px; }
}

@media (max-width: 480px) {
  .nav .btn { display: none; }
}

/* Tablet: menu, przełącznik 3 języków i przycisk nie mieszczą się razem — przycisk dubluje link „Kalkulator”. */
@media (min-width: 721px) and (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav nav { gap: 18px; }
  .nav > .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Blog, artykuły, „O nas” ---------- */
.blog-head { padding-top: 40px; }
.blog-head h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; margin: 10px 0 14px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 24px; }
.post-card { padding: 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.post-card h3 { margin: 6px 0 10px; font-size: 20px; line-height: 1.3; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--cyan); }
.post-card p { margin: 0 0 6px; color: var(--muted); line-height: 1.6; }
.post-card .r-more { margin-top: auto; }
.post-meta, .article-meta { font-size: 13px; color: var(--dim); margin: 0; }
.article { max-width: var(--wrap); margin: 0 auto; padding: 30px 16px 0; }
.article-head { max-width: 820px; }
.article-head h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; margin: 10px 0 18px; }
.article-head .lead { max-width: 760px; }
.article-meta { margin-top: 18px; }
.article-grid { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 40px; margin-top: 40px; align-items: start; }
.toc { position: sticky; top: 90px; padding: 18px 20px; font-size: 14px; }
.toc strong { display: block; margin-bottom: 8px; font: 600 12px var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--cyan); }
.prose { min-width: 0; font-size: 17px; line-height: 1.75; color: #d6d9f2; }
.prose-solo { max-width: 780px; margin-top: 30px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin: 44px 0 14px; scroll-margin-top: 90px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--cyan); text-decoration-color: rgba(34, 228, 255, 0.4); text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose > .tbl { margin: 8px 0 20px; max-width: 420px; }
.live-table { margin: 22px 0 26px; }
.live-table figcaption { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 11px var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(182, 255, 59, 0.35); background: rgba(182, 255, 59, 0.06); }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.live-link { margin: 10px 0 0 !important; font-size: 14.5px; }
.eu-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--lime); }
.eu-dot.eu-limited { background: var(--amber); }
.eu-dot.eu-blocked { background: var(--bad); }
.cta-box { margin: 40px 0 20px; padding: 26px 28px; border-color: rgba(34, 228, 255, 0.3); }
.cta-box h2 { margin: 0 0 8px !important; font-size: 24px !important; }
.cta-box p { color: var(--muted); }
.footer-site { margin-top: -6px; }
@media (max-width: 980px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
}
