/* Volustra Indicators — strona glowna volustra.com.
   Oprawa produktu SaaS na granacie marki: hero z gradientem i tickerem publikacji, karty KPI z animowanymi
   liczbami, karty z ikonami, pigulki zmian, rysowane wykresy, wejscia sekcji przy przewijaniu.
   Ruch tylko na transform/opacity; prefers-reduced-motion wylacza wszystko poza zmianami stanu.
   Kolory serii wykresu: docmap/wskazniki/wykres.cjs (motyw 'navy'). Czcionki z naszej domeny (OFL, strona/fonts/). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("/strona/fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("/strona/fonts/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("/strona/fonts/Geist-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/strona/fonts/GeistMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/strona/fonts/GeistMono-Medium.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #070c22; --rail: #060a1d; --card: #0d1537; --card-2: #121c46; --well: #0a1230;
  --line: rgba(150, 168, 255, .10); --line-2: rgba(150, 168, 255, .18); --line-3: rgba(150, 168, 255, .30);
  --text: #eef1ff; --text-2: #aab3d9; --text-3: #7782ad;
  --blue: #5b8cff; --blue-2: #8fb0ff; --violet: #9b7bff; --cyan: #3fd4e6; --amber: #f5b544; --green: #3ad29a; --rose: #fb7b95;
  --up: #3ad29a; --down: #fb7185; --focus: #a9bfff;
  --grad: linear-gradient(135deg, #5b8cff 0%, #8b6cff 55%, #c06cff 100%);
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --num: "Geist Mono", ui-monospace, Consolas, monospace;
  --side: 16rem; --r: 14px; --r-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-2); text-underline-offset: 2px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--text); color: var(--bg); padding: .5rem .75rem; border-radius: 8px; z-index: 50; }
.skip:focus { top: 1rem; }
.muted { color: var(--text-3); }

/* ---------- przyciski ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.4rem; padding: .5rem 1rem; border-radius: 10px;
  border: 1px solid transparent; font: 500 13.5px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn .ic { width: 16px; height: 16px; }
.btn.lg { min-height: 2.9rem; padding: .7rem 1.25rem; font-size: 14.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -10px rgba(91, 140, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 32px -12px rgba(124, 108, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn.primary .ic:last-child { transition: translate .2s var(--ease); }
.btn.primary:hover .ic:last-child { translate: 3px 0; }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-3); color: var(--text); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* ---------- lewy pasek ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--rail); border-inline-end: 1px solid var(--line); }
.side-in { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 1.1rem .85rem 1.25rem; display: grid; gap: 1.4rem; align-content: start; scrollbar-width: thin; }
.brand { display: inline-flex; align-items: center; gap: .55rem; padding: .25rem .45rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand-tag { font-size: 11px; font-weight: 500; padding: .15rem .45rem; border-radius: 999px; color: var(--blue-2); background: rgba(91, 140, 255, .12); border: 1px solid rgba(91, 140, 255, .25); }
.side-group { display: grid; gap: 2px; }
.side-h { padding: .2rem .6rem .45rem; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.side-link { position: relative; display: flex; align-items: center; gap: .65rem; min-height: 2.3rem; padding: .4rem .6rem; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 13.5px;
  transition: background-color .15s, color .15s; }
.side-link .ic { width: 17px; height: 17px; color: var(--text-3); transition: color .15s; }
.side-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.side-link:hover .ic { color: var(--text-2); }
.side-link[aria-current="true"] { background: linear-gradient(90deg, rgba(91, 140, 255, .18), rgba(91, 140, 255, .04)); color: var(--text); }
.side-link[aria-current="true"] .ic { color: var(--blue-2); }
.side-link[aria-current="true"]::before { content: ""; position: absolute; left: -.85rem; top: 25%; bottom: 25%; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.side-link.sub { min-height: 2rem; font-size: 13px; }
.side-more summary { display: flex; align-items: center; gap: .65rem; min-height: 2.3rem; padding: .4rem .6rem; border-radius: 9px; cursor: pointer; color: var(--text); font-size: 13.5px; font-weight: 500; list-style: none; transition: background-color .15s; }
.side-more summary .ic { width: 17px; height: 17px; color: var(--violet); }
.side-more summary span { flex: 1; }
.side-more summary::-webkit-details-marker { display: none; }
.side-more summary::after { content: ""; width: 6px; height: 6px; margin-inline-end: .25rem; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); rotate: -45deg; transition: rotate .2s var(--ease); }
.side-more[open] summary::after { rotate: 45deg; }
.side-more summary:hover { background: rgba(255, 255, 255, .05); }
.side-more ul { list-style: none; margin: 2px 0 0 1.15rem; padding: 0 0 0 .6rem; border-inline-start: 1px solid var(--line-2); display: grid; gap: 1px; }
.side-more::details-content { transition: height .25s var(--ease), content-visibility .25s allow-discrete; height: 0; overflow: clip; }
.side-more[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { .side-more { interpolate-size: allow-keywords; } }
.side-card { position: relative; display: grid; gap: .55rem; padding: 1rem; border-radius: var(--r); background: linear-gradient(160deg, rgba(91, 140, 255, .14), rgba(155, 123, 255, .06) 60%, transparent), var(--card); border: 1px solid var(--line-2); overflow: hidden; }
.side-card-ic { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px; background: var(--grad); color: #fff; }
.side-card-ic .ic { width: 17px; height: 17px; }
.side-card-t { font-weight: 600; font-size: 14px; }
.side-card-p { color: var(--text-2); font-size: 12.5px; line-height: 1.45; margin-bottom: .25rem; }
.side-foot { padding: 0 .6rem; color: var(--text-3); font-size: 12px; }
.side-foot a { color: var(--text-2); }

.topbar { display: none; }
.drawer { border: 0; padding: 0; margin: 0 auto 0 0; height: 100dvh; max-height: 100dvh; width: min(20rem, 86vw); background: var(--rail); color: var(--text); border-inline-end: 1px solid var(--line-2); }
.drawer::backdrop { background: rgba(3, 6, 18, .65); backdrop-filter: blur(4px); }
.drawer-in { padding: .75rem; display: grid; gap: .5rem; }
.drawer .close { justify-self: end; }
.drawer .side-in { position: static; max-height: none; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in .3s var(--ease); }
  @keyframes drawer-in { from { translate: -100% 0; } }
}

main { min-width: 0; width: 100%; max-width: 92rem; padding: 1.25rem clamp(1rem, 2.5vw, 2.25rem) 0; display: grid; gap: 1.25rem; align-content: start; }
main:focus { outline: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 0% 0%, #13205a 0%, #0b1335 45%, #080e28 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.o1 { width: 26rem; height: 26rem; background: #3b6dff; top: -10rem; right: -4rem; }
.o2 { width: 22rem; height: 22rem; background: #8b5cf6; bottom: -12rem; right: 22%; opacity: .45; }
.o3 { width: 16rem; height: 16rem; background: #14b8c9; top: 30%; right: 8%; opacity: .25; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(150, 168, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 168, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(80% 90% at 70% 20%, #000 0%, transparent 75%); }
@media (prefers-reduced-motion: no-preference) {
  .o1 { animation: float1 18s ease-in-out infinite alternate; }
  .o2 { animation: float2 22s ease-in-out infinite alternate; }
  .o3 { animation: float1 26s ease-in-out infinite alternate-reverse; }
  @keyframes float1 { to { translate: -6rem 4rem; scale: 1.15; } }
  @keyframes float2 { to { translate: 5rem -3rem; scale: .9; } }
}
.hero-in { display: grid; gap: 1.1rem; justify-items: start; padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.25rem); max-width: 50rem; }
.badge { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; font-size: 12.5px; color: var(--text-2);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot::after { animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
  @keyframes ping { 75%, 100% { scale: 2.6; opacity: 0; } }
}
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; }
.grad { background: linear-gradient(90deg, #8fb0ff, #b79bff 40%, #6ee7f0 80%, #8fb0ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .grad { animation: shine 8s linear infinite; }
  @keyframes shine { to { background-position: -200% 0; } }
}
.hero-p { color: var(--text-2); font-size: clamp(14.5px, 1.4vw, 16.5px); line-height: 1.55; max-width: 38rem; }
.search { position: relative; width: min(100%, 36rem); margin-top: .25rem; }
.search .ic { position: absolute; z-index: 1; left: 1rem; top: 50%; translate: 0 -50%; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; min-height: 3.1rem; padding: .7rem 3rem .7rem 2.85rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(7, 12, 34, .7); backdrop-filter: blur(10px);
  color: var(--text); font: 400 15px/1.2 var(--sans); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--text-3); }
.search input:hover { border-color: var(--line-3); }
.search input:focus { outline: none; border-color: rgba(143, 176, 255, .7); box-shadow: 0 0 0 4px rgba(91, 140, 255, .18); }
.search kbd { position: absolute; right: .8rem; top: 50%; translate: 0 -50%; min-width: 1.6rem; padding: .1rem .4rem; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
  color: var(--text-3); font: 500 12px/1.4 var(--num); text-align: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; margin: .25rem 0 0; padding: 0; color: var(--text-2); font-size: 13px; }
.hero-stats li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-stats .ic { width: 16px; height: 16px; color: var(--blue-2); }
.hero-stats b { color: var(--text); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise .7s var(--ease) both; }
  .hero-in > :nth-child(2) { animation-delay: .06s; }
  .hero-in > :nth-child(3) { animation-delay: .12s; }
  .hero-in > :nth-child(4) { animation-delay: .18s; }
  .hero-in > :nth-child(5) { animation-delay: .24s; }
  .hero-in > :nth-child(6) { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; translate: 0 14px; } }
}

/* ticker publikacji */
.ticker { display: flex; align-items: center; gap: .5rem; border-top: 1px solid var(--line); background: rgba(5, 9, 26, .55); backdrop-filter: blur(8px); padding-inline-start: .5rem; }
.ticker-btn { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; }
.ticker-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.ticker-btn .ic { width: 15px; height: 15px; }
.ticker-view { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker-track ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-track li { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.4rem; white-space: nowrap; font-size: 13px; color: var(--text-2); border-inline-end: 1px solid var(--line); }
.ticker-track li b { color: var(--text); font: 500 13px/1 var(--num); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: marquee var(--marquee, 60s) linear infinite; }
  .ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
  @keyframes marquee { to { translate: -50% 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-view { overflow-x: auto; }
  .ticker-btn { display: none; }
  .ticker-track ul + ul { display: none; }
}

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kpi { position: relative; isolation: isolate; display: grid; gap: .35rem; align-content: start; min-height: 11.5rem; padding: 1.1rem 1.15rem 0; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden;
  text-align: start; color: var(--text); font: inherit; cursor: pointer; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.kpi::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgba(110, 140, 255, .16), transparent 45%); }
.kpi:hover { transform: translateY(-3px); border-color: var(--line-3); box-shadow: 0 18px 40px -24px rgba(91, 140, 255, .6); }
.kpi:hover::before { opacity: 1; }
.kpi-top { display: flex; align-items: center; gap: .6rem; }
.kpi-l { display: grid; line-height: 1.3; min-width: 0; }
.kpi-l b { font-size: 13px; font-weight: 500; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-l span { font-size: 11.5px; color: var(--text-3); }
.kpi-v { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-top: .35rem; }
.kpi-v strong { font: 600 30px/1.05 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-spark { display: block; width: calc(100% + 2.3rem); height: 3.4rem; margin: auto -1.15rem 0; }
.kpi .spark-line { stroke-width: 2; }

/* kafelek ikony */
.ic-tile { display: inline-grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 10px; color: var(--blue-2); background: rgba(91, 140, 255, .14); border: 1px solid rgba(91, 140, 255, .26); }
.ic-tile .ic { width: 17px; height: 17px; }
.ic-tile.sm { width: 1.85rem; height: 1.85rem; border-radius: 8px; }
.ic-tile.sm .ic { width: 15px; height: 15px; }
.ic-tile.lg { width: 3rem; height: 3rem; border-radius: 14px; color: #fff; background: var(--grad); border: 0; box-shadow: 0 10px 30px -10px rgba(124, 108, 255, .8); }
.ic-tile.lg .ic { width: 22px; height: 22px; }
.ic-tile.violet { color: #c0adff; background: rgba(155, 123, 255, .14); border-color: rgba(155, 123, 255, .28); }
.ic-tile.amber { color: #ffd189; background: rgba(245, 181, 68, .13); border-color: rgba(245, 181, 68, .28); }
.ic-tile.green { color: #7ff0c4; background: rgba(58, 210, 154, .12); border-color: rgba(58, 210, 154, .28); }
.ic-tile.cyan { color: #92ecf5; background: rgba(63, 212, 230, .12); border-color: rgba(63, 212, 230, .28); }
.ic-tile.rose { color: #ffb0c0; background: rgba(251, 123, 149, .12); border-color: rgba(251, 123, 149, .28); }

/* pigulki zmian */
.pill { display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .5rem; border-radius: 999px; font: 500 12px/1.2 var(--num); white-space: nowrap;
  background: rgba(170, 179, 217, .10); color: var(--text-2); }
.pill .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.pill.up-good, .pill.down-good { background: rgba(58, 210, 154, .13); color: #6ff0c0; }
.pill.up-bad, .pill.down-bad { background: rgba(251, 113, 133, .13); color: #ff9aac; }
.up-good, .down-good { color: #6ff0c0; }
.up-bad, .down-bad { color: #ff9aac; }
.flat { color: var(--text-2); }

/* ---------- karty ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem); gap: 1.25rem; align-items: start; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; scroll-margin-top: 1rem; box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 24px 48px -36px rgba(0, 0, 0, .9); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.card-t { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.card-h h2 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.card-sub { color: var(--text-3); font-size: 12.5px; margin-top: .05rem; }
.card-tools { display: flex; gap: .5rem; align-items: center; }

.field { display: grid; gap: .35rem; min-width: 0; }
.field > label, fieldset legend { font-size: 12px; font-weight: 500; color: var(--text-3); padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
select, input[type="email"] { width: 100%; min-height: 2.5rem; padding: .45rem .75rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text);
  font: 400 13.5px/1.2 var(--sans); transition: border-color .15s, box-shadow .15s; }
select option, select optgroup { background: var(--card); color: var(--text); }
select:hover, input[type="email"]:hover { border-color: var(--line-3); }
select:focus-visible, input[type="email"]:focus-visible { outline: none; border-color: rgba(143, 176, 255, .7); box-shadow: 0 0 0 4px rgba(91, 140, 255, .18); }
input[type="email"]::placeholder { color: var(--text-3); }
.select-wrap { position: relative; }
.select-wrap .ic { position: absolute; left: .65rem; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
select.compact { width: auto; min-height: 2.2rem; padding: .3rem .6rem .3rem 2rem; border-radius: 9px; }

/* przelaczniki segmentowe */
.seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: rgba(5, 9, 26, .6); border: 1px solid var(--line); }
.seg.wide { display: flex; }
.seg.wide label { flex: 1; }
.seg label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 2.05rem; min-width: 2.75rem; padding: 0 .8rem; border-radius: 8px; cursor: pointer; color: var(--text-2);
  font-size: 13px; font-weight: 500; transition: color .15s, background-color .2s, box-shadow .2s; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg label:hover { color: var(--text); }
.seg label:has(input:checked) { background: linear-gradient(180deg, rgba(91, 140, 255, .32), rgba(91, 140, 255, .18)); color: #fff; box-shadow: inset 0 0 0 1px rgba(143, 176, 255, .35), 0 6px 16px -10px rgba(91, 140, 255, .9); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }

/* chipy filtra */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .85rem 1.15rem .25rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 2rem; padding: .25rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font: 500 12.5px/1 var(--sans); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chip .ic { width: 14px; height: 14px; }
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-pressed="true"] { background: rgba(91, 140, 255, .16); border-color: rgba(143, 176, 255, .45); color: #fff; }

/* ---------- przeglad kraju ---------- */
.glance-wrap { overflow-x: auto; padding: 0 .5rem .5rem; }
.glance { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.glance th { font-size: 12px; font-weight: 500; color: var(--text-3); text-align: start; padding: .65rem .65rem .5rem; white-space: nowrap; }
.glance td { padding: .45rem .65rem; border-top: 1px solid var(--line); vertical-align: middle; }
.glance .num { text-align: end; }
.glance tr.grp td { padding: .9rem .65rem .35rem; border-top: 0; }
.grp-l { display: inline-flex; align-items: center; gap: .5rem; font-size: 12px; font-weight: 500; color: var(--text-2); }
.glance tbody tr[data-id] { transition: background-color .15s; }
.glance tbody tr[data-id]:hover { background: rgba(255, 255, 255, .035); }
.glance tbody tr[data-id] td:first-child { border-radius: 10px 0 0 10px; }
.glance tbody tr[data-id] td:last-child { border-radius: 0 10px 10px 0; }
.glance tr.on { background: rgba(91, 140, 255, .1) !important; }
.glance tr.on .name { color: var(--blue-2); }
.glance .name { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: .2rem 0; min-height: 2rem; text-align: start; font: 500 13.5px/1.25 var(--sans); color: var(--text); cursor: pointer; }
.glance .name:hover { color: var(--blue-2); }
.glance .name .ic { width: 14px; height: 14px; opacity: 0; translate: -4px 0; transition: opacity .15s, translate .2s var(--ease); }
.glance tr:hover .name .ic { opacity: 1; translate: 0 0; }
.glance .val { font: 500 14px/1 var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.glance .per { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.glance .spark { display: block; width: 8rem; height: 1.9rem; }
.trend-h { width: 8.5rem; }

/* sparkline i rysowanie linii */
.spark-line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .fade { animation: fade .8s ease both; animation-delay: var(--d, .3s); }
  @keyframes fade { from { opacity: 0; } }
  .pop { animation: pop .45s var(--ease) both; animation-delay: var(--d, 0s); }
  @keyframes pop { from { opacity: 0; translate: 0 8px; } }
}

/* ---------- najnowsze publikacje ---------- */
.news { align-self: stretch; display: flex; flex-direction: column; }
.releases { list-style: none; margin: 0; padding: .4rem; display: grid; gap: 2px; }
.rel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .1rem .7rem; align-items: center; width: 100%; padding: .6rem .65rem; background: none; border: 0; border-radius: 10px;
  color: var(--text); text-align: start; cursor: pointer; font: inherit; transition: background-color .15s; }
.rel:hover { background: rgba(255, 255, 255, .045); }
.rel .ic-tile { grid-row: span 2; }
.rel-t { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-m { font-size: 12px; color: var(--text-3); grid-column: 2; }
.rel-v { grid-column: 3; grid-row: 1 / span 2; display: grid; justify-items: end; gap: .2rem; }
.rel-v b { font: 500 14.5px/1.1 var(--num); }
.releases > .muted { padding: .75rem; }

/* ---------- eksplorator ---------- */
.toolbar { display: grid; gap: .85rem; padding: 1rem 1.15rem .35rem; }
.toolbar .row { display: flex; flex-wrap: wrap; gap: .85rem 1rem; align-items: end; }
.toolbar .row:empty, #compareRow:not(:has(> :not([hidden]))) { display: none; }
.toolbar .field { flex: 0 1 13rem; }
.toolbar .field.grow { flex: 1 1 16rem; }
.toolbar fieldset.field { flex: 0 0 auto; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; align-self: center; }
.tags:empty { display: none; }
.tags li { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .25rem .2rem .65rem; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 12.5px; }
.tags i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tags button { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; font-size: 15px; line-height: 1; }
.tags button:hover { color: var(--text); background: var(--line-2); }
.actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.act { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.1rem; padding: 0 .75rem; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2);
  font: 500 12.5px/1 var(--sans); cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.act .ic { width: 15px; height: 15px; }
.act:hover { color: var(--text); background: rgba(255, 255, 255, .07); border-color: var(--line-3); }
.act.accent { color: #fff; border-color: rgba(143, 176, 255, .45); background: linear-gradient(180deg, rgba(91, 140, 255, .3), rgba(139, 108, 255, .2)); }
.act.accent:hover { background: linear-gradient(180deg, rgba(91, 140, 255, .42), rgba(139, 108, 255, .3)); color: #fff; }
.add-btn { min-height: 2.5rem; align-self: end; }
.add-btn .ic { width: 15px; height: 15px; }

.result { display: grid; gap: 1rem; padding: 1rem 1.15rem 1.15rem; }
.result > * { min-width: 0; }
.result-head { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; }
.result-head > div { min-width: 0; }
.result-head h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.result-head p { color: var(--text-3); font-size: 12.5px; margin-top: .1rem; }
.range { flex: 0 0 auto; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .65rem; }
.tile { position: relative; padding: .85rem 1rem; display: grid; gap: .3rem; min-width: 0; border-radius: 12px; background: linear-gradient(160deg, rgba(91, 140, 255, .08), transparent 60%), var(--well); border: 1px solid var(--line); }
.tile .k { display: flex; align-items: center; gap: .45rem; color: var(--text-2); font-size: 12.5px; overflow-wrap: anywhere; }
.tile .k i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tile .v { font: 600 28px/1.1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile .ds { display: flex; flex-wrap: wrap; gap: .35rem; }
.tile .p { color: var(--text-3); font-size: 12px; }

.chart { margin: 0; }
.plot { position: relative; overflow-x: auto; overflow-y: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--well); }
.plot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.plot svg { display: block; width: 100%; min-width: 40rem; height: auto; }
.plot .cross line { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.plot-sk { height: 28rem; border-radius: 0; }
.tip { position: absolute; top: 10px; pointer-events: none; background: rgba(6, 10, 29, .92); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 10px; padding: .55rem .7rem;
  font-size: 12.5px; min-width: 10rem; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .85); }
.tip b { display: block; font-weight: 600; margin-bottom: .3rem; }
.tip div { display: flex; align-items: center; gap: .45rem; white-space: nowrap; font-family: var(--num); font-size: 12px; }
.tip i { width: 9px; height: 9px; border-radius: 50%; }
.tip .hl { color: var(--text-2); white-space: normal; margin-top: .3rem; font-family: var(--sans); }
.meta { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin-top: .65rem; }
.meta:empty { display: none; }
.meta span { display: inline-flex; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; }
.meta b { color: var(--text-3); font-weight: 500; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--text-2); }

.cols { display: grid; gap: .85rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; }
.cols h4 { display: flex; align-items: center; gap: .45rem; font-size: 13px; font-weight: 600; margin-bottom: .55rem; }
.cols h4 .ic { width: 16px; height: 16px; }
.ai { position: relative; padding: 1rem 1.1rem; border-radius: 12px; min-width: 0;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, rgba(91, 140, 255, .7), rgba(155, 123, 255, .55), rgba(63, 212, 230, .4)) border-box; border: 1px solid transparent; }
.ai h4 .ic { color: #c0adff; }
.ai h4 { background: linear-gradient(90deg, #8fb0ff, #c0adff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.comment { font-size: 14px; line-height: 1.65; max-width: 72ch; color: var(--text); }
.comment.loading { color: var(--text-3); }
.note { color: var(--text-3); font-size: 12px; margin-top: .6rem; }
.sub-card { padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--well); min-width: 0; }
.sub-card h4 .ic { color: var(--blue-2); }
.moves { list-style: none; padding: 0; margin: 0; display: grid; }
.moves li { position: relative; display: grid; grid-template-columns: 4.6rem 1fr; gap: .6rem; padding: .45rem 0 .45rem 1rem; font-size: 13px; color: var(--text-2); }
.moves li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px rgba(155, 123, 255, .18); }
.moves li::after { content: ""; position: absolute; left: 3px; top: 1.4rem; bottom: -.45rem; width: 1px; background: var(--line-2); }
.moves li:last-child::after { display: none; }
.moves time { font: 400 12px/1.6 var(--num); color: var(--text-3); }

.datatable summary { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; color: var(--text-2); font-size: 13px; min-height: 2rem; padding: 0 .7rem; border-radius: 9px; border: 1px solid var(--line-2); }
.datatable summary .ic { width: 15px; height: 15px; }
.datatable summary:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.tablewrap { overflow-x: auto; margin-top: .6rem; max-height: 22rem; border: 1px solid var(--line); border-radius: 12px; }
.tablewrap table { border-collapse: collapse; width: 100%; font: 400 12.5px/1.4 var(--num); }
.tablewrap caption { text-align: start; color: var(--text-3); padding: .5rem .7rem; font-family: var(--sans); }
.tablewrap th, .tablewrap td { padding: .35rem .7rem; border-bottom: 1px solid var(--line); text-align: end; white-space: nowrap; }
.tablewrap th:first-child, .tablewrap td:first-child { text-align: start; }
.tablewrap thead th { position: sticky; top: 0; background: var(--card-2); color: var(--text-3); font-weight: 500; }

/* ---------- subskrypcja ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); scroll-margin-top: 1rem;
  background: radial-gradient(90% 120% at 100% 0%, rgba(139, 108, 255, .28), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(59, 109, 255, .25), transparent 60%), var(--card); }
.cta-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(28rem circle at var(--mx, 50%) var(--my, 50%), rgba(140, 150, 255, .14), transparent 50%); }
.cta:hover .cta-glow { opacity: 1; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; padding: clamp(1.5rem, 3.5vw, 2.75rem); align-items: center; }
.cta-copy { display: grid; gap: .85rem; justify-items: start; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cta .what { color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 34rem; }
.cta .what b { color: var(--text); font-weight: 500; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; color: var(--text-2); font-size: 13.5px; }
.ticks li { display: flex; align-items: center; gap: .55rem; }
.ticks .ic { width: 16px; height: 16px; padding: 2px; border-radius: 50%; color: #6ff0c0; background: rgba(58, 210, 154, .14); stroke-width: 2.4; }
.sub-settings { display: grid; gap: .5rem; width: 100%; padding: .85rem 1rem; border-radius: 14px; background: rgba(6, 10, 29, .45); border: 1px dashed var(--line-3); }
.sub-set-h { display: flex; align-items: center; gap: .45rem; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.sub-set-h .ic { width: 15px; height: 15px; color: var(--blue-2); }
.sub-chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.sub-chips li { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text); }
.sub-chips li i { width: 8px; height: 8px; border-radius: 50%; }
.sub-chips li.period { color: var(--blue-2); border-color: rgba(143, 176, 255, .4); }
.sub-chips li .ic { width: 13px; height: 13px; }
.sub-edit { font-size: 12.5px; justify-self: start; }
.sub { display: grid; gap: .9rem; padding: 1.25rem; border-radius: 16px; background: rgba(6, 10, 29, .6); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.sub small { color: var(--text-3); font-size: 12px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 13px; min-height: 1.2rem; }
.status:empty { display: none; }
.status.ok { color: #6ff0c0; }
.status.err { color: #ff9aac; }

.foot { padding-block: .5rem 2rem; color: var(--text-3); font-size: 12px; display: grid; gap: .35rem; }
.foot a { color: var(--text-2); }

/* ---------- szkielety ladowania ---------- */
.sk { position: relative; overflow: hidden; background: rgba(150, 168, 255, .06); }
.sk-line { position: relative; display: block; height: .9rem; border-radius: 6px; overflow: hidden; background: rgba(150, 168, 255, .08); margin: .55rem 0; }
.sk-row td { border-top: 0 !important; }
.releases .sk-row { padding: .4rem .65rem; }
.sk::after, .sk-line::after { content: ""; position: absolute; inset: 0; translate: -100% 0; background: linear-gradient(90deg, transparent, rgba(170, 190, 255, .10), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .sk::after, .sk-line::after { animation: shimmer 1.4s ease-in-out infinite; }
  @keyframes shimmer { to { translate: 100% 0; } }
}

/* ---------- wejscia sekcji przy przewijaniu (dekoracja, bez zastepstwa) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes reveal { from { opacity: 0; translate: 0 28px; scale: .985; } }
  }
}

/* ---------- strona tekstowa (/privacy) ---------- */
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); background: var(--rail); }
.doc-top .btn { min-height: 2.2rem; }
.doc-wrap { max-width: 48rem; margin-inline: auto; padding-block: 2.5rem 1rem; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.doc-wrap h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; }
.doc-lead { color: var(--text-2); margin-top: .5rem; font-size: 15.5px; }
.doc { margin-top: 1.75rem; }
.doc h2 { font-size: 16px; font-weight: 600; margin: 2rem 0 .55rem; }
.doc p, .doc li { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.doc p + p { margin-top: .5rem; }
.doc ul { padding-left: 1.2rem; margin: .5rem 0; }
.doc li + li { margin-top: .25rem; }
.doc-table { overflow-x: auto; margin-top: .6rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.doc table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.doc th, .doc td { text-align: start; padding: .6rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.doc tbody th { color: var(--text); font-weight: 500; width: 9rem; }
.doc thead th { color: var(--text-3); font-weight: 500; font-size: 12px; background: var(--card-2); }

/* ---------- szerokosci ---------- */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .releases { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
}
@media (max-width: 1100px) { .cols, .cta-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .55rem;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: rgba(6, 10, 29, .8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 1rem; }
  .trend-h, .glance td.trend { display: none; }
  .releases li:nth-child(n+7) { display: none; }
  .search kbd { display: none; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpi { min-height: 0; }
  .glance td.per, .glance th.per-h { display: none; }
  .glance th, .glance td { padding-inline: .45rem; }
  .card-h, .toolbar, .result, .chips { padding-inline: .85rem; }
  .card-sub { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (pointer: coarse) { .tags button { width: 2.25rem; height: 2.25rem; } }
@media (prefers-reduced-motion: reduce) {
  .side-more summary::after, .side-more::details-content { transition: none; }
  .kpi, .btn { transition: none; }
}
