/* =========================================================
   radoslawswider.pl
   Paleta i krój z CV: granat + złoto + Nunito Sans.
   Mobile-first. Bez frameworków.
   ========================================================= */

:root {
  --ink: #0c0e1f;
  --ink-2: #12152b;
  --ink-3: #1b1f3b;          /* granat z CV */
  --line: rgba(236, 230, 214, .12);
  --line-2: rgba(236, 230, 214, .22);
  --paper: #ece6d6;
  --paper-2: #c9c5d8;
  --muted: #8f92ad;
  --gold: #c9a54e;           /* złoto z CV */
  --gold-hi: #e3c473;
  --gold-dim: rgba(201, 165, 78, .16);

  --f-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --gut: 20px;
  --max: 1180px;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 768px) { :root { --gut: 40px; --head-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 17px; line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* delikatne ziarno - żeby granat nie był „płaski z AI” */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
b, strong { font-weight: 800; color: #fff; }
em { font-style: normal; color: var(--gold); }
mark { background: none; color: var(--gold-hi); box-shadow: inset 0 -.35em 0 var(--gold-dim); }
.mono { font-family: var(--f-mono); letter-spacing: 0; }
.small { font-size: .78em; }
.gold { color: var(--gold); }
.dim { opacity: .55; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 800;
}
.skip:focus { top: 12px; }

/* ---------- HEADER ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--head-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--gut);
  padding-top: env(safe-area-inset-top);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  background: rgba(12, 14, 31, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-weight: 900; font-size: 13px; letter-spacing: .02em;
}
.brand-url { font-family: var(--f-mono); font-size: 13px; color: var(--paper-2); display: none; }
@media (min-width: 560px) { .brand-url { display: inline; } }

.top-cta { font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--gold); color: var(--gold); }
@media (min-width: 1080px) { .top-cta { display: none; } }
.nav { display: none; gap: 26px; font-size: 14px; font-weight: 700; color: var(--paper-2); }
.nav a { position: relative; padding: 4px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--gold); transition: right .3s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: #fff; }
@media (min-width: 1080px) { .nav { display: flex; } }

/* pasek postępu czytania – pod nagłówkiem, na całą szerokość */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 8px rgba(201,165,78,.6);
}
.progress-pct { font-size: 11px; color: var(--gold); min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s; }
.top.scrolled .progress-pct { opacity: 1; }

/* ---------- WSPÓLNE ---------- */
main > section { padding-left: var(--gut); padding-right: var(--gut); }
.sec { max-width: var(--max); margin: 0 auto; padding-top: 96px; padding-bottom: 32px; }
@media (min-width: 900px) { .sec { padding-top: 150px; } }
.sec-no { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.sec-title {
  font-size: clamp(30px, 6.4vw, 64px); line-height: 1.04; font-weight: 900; letter-spacing: -.025em;
  max-width: 16ch; color: #fff;
}
.sec-lead { margin-top: 20px; color: var(--paper-2); max-width: 56ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 800; font-size: 16px; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

pre { font-family: var(--f-mono); font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.c-k { color: #9fa6ff; }
.c-s { color: var(--gold-hi); }
.c-c { color: var(--muted); }

/* reveal przy przewijaniu */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  min-height: 100svh;
  padding-top: calc(var(--head-h) + 40px); padding-bottom: 40px;
  display: grid; gap: 56px; align-content: center;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; padding-top: var(--head-h); }
}
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--paper-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); flex-shrink: 0; }
.hero-name {
  margin-top: 22px;
  font-size: clamp(46px, 12.5vw, 128px); line-height: .92; font-weight: 900; letter-spacing: -.045em;
  color: #fff;
}
.hero-name { position: relative; }
.hero-name.decoding { color: transparent; }
.decode-layer { position: absolute; inset: 0; color: #fff; pointer-events: none; white-space: pre-wrap; }
.hero-claim {
  margin-top: 22px; font-size: clamp(22px, 4.4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em;
  color: var(--paper);
}
.hero-lead { margin-top: 22px; max-width: 54ch; color: var(--paper-2); font-size: 17px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* identyfikator */
.badge-wrap { position: relative; display: flex; justify-content: center; padding-top: 40px; }
@media (min-width: 960px) { .badge-wrap { padding-top: 0; align-self: stretch; align-items: center; } }
/* kołysanie: smycz + karta jak wahadło, wolno i spokojnie (bez reakcji na mysz) */
.sway { position: relative; transform-origin: 50% -40px; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-.9deg); } 50% { transform: rotate(.9deg); } }
@media (min-width: 960px) {
  .sway { transform-origin: 50% -45vh; animation: swayD 9s ease-in-out infinite; }
  @keyframes swayD { 0%, 100% { transform: rotate(-.35deg); } 50% { transform: rotate(.35deg); } }
}
.lanyard {
  position: absolute; left: 50%; top: -40px; width: 22px; height: 60px; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%);
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(12,14,31,.35) 4px 5px),
    linear-gradient(var(--gold), #a8843a);
  border-radius: 2px;
}
@media (min-width: 960px) { .lanyard { top: -50vh; height: calc(50vh + 20px); } }
.badge {
  position: relative; width: min(320px, 86vw);
  background: var(--paper); color: var(--ink);
  border-radius: 16px; padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.badge-clip {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 22px; border-radius: 6px;
  background: linear-gradient(#9b9fb0, #5c6075); box-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.badge-clip::after { content: ""; position: absolute; left: 50%; top: 8px; width: 22px; height: 5px; transform: translateX(-50%); border-radius: 3px; background: var(--ink); }
.badge-head { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; padding: 4px 4px 10px; color: #4a4e66; }
.badge-head .gold { color: #9a7a2e; }
.badge-photo { position: relative; aspect-ratio: 384 / 420; border-radius: 10px; overflow: hidden; background: var(--ink-3); }
.badge-photo img, .badge-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge-photo canvas { z-index: 1; image-rendering: pixelated; transition: opacity .5s; }
.badge-photo.done canvas { opacity: 0; }
.badge-body { padding: 14px 4px 4px; }
.badge-body strong { color: var(--ink); font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.badge-body dl { margin-top: 10px; font-size: 11px; display: grid; gap: 4px; }
.badge-body dl div { display: flex; gap: 8px; }
.badge-body dt { color: #7d8099; min-width: 70px; }
.badge-body dd { color: var(--ink); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 0 rgba(47,163,107,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(47,163,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,163,107,0); } }
.barcode { margin-top: 12px; height: 26px; border-radius: 2px; }

/* ---------- LICZBY ---------- */
.stats {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 26px 14px 24px 0; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 18px; }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(even) { padding: 34px 24px; border-bottom: 0 !important; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}
.stat-num { display: block; font-size: clamp(44px, 9vw, 76px); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-num .suf { color: var(--gold); }
.stat-lbl { display: block; margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--paper-2); max-width: 22ch; }

/* ---------- WSPÓLNY JĘZYK ANIMACJI: przerywane linie + złote pakiety ---------- */
.ln { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 5; }
.ln-gold { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .85; }
.pkt { fill: var(--gold); filter: drop-shadow(0 0 4px var(--gold)); }
.stepdot { fill: var(--ink); stroke: var(--line-2); stroke-width: 1.2; }

/* ---------- §01 ZASADA ---------- */
.flow {
  margin-top: 48px; padding: 18px 18px 8px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
@media (min-width: 768px) { .flow { padding: 26px 34px 14px; } }
.lane {
  display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: "n who time" "track track track";
  column-gap: 10px; align-items: center; padding: 10px 0 12px;
}
.lane + .lane { border-top: 1px dashed var(--line); }
@media (min-width: 768px) { .lane { grid-template-columns: 40px 180px 1fr 120px; grid-template-areas: "n who track time"; padding: 14px 0; column-gap: 16px; } }
.lane-n { grid-area: n; font-size: 13px; color: var(--muted); }
.lane-who { grid-area: who; font-weight: 700; font-size: 15px; }
.lane-script .lane-who { color: var(--gold-hi); font-size: 13.5px; font-weight: 500; }
.lane-svg { grid-area: track; width: 100%; height: 34px; overflow: visible; }
.lane-time { grid-area: time; font-size: 12px; color: var(--muted); text-align: right; }
.lane-script .lane-time { color: var(--gold); }
.rule-copy { margin-top: 32px; max-width: 62ch; color: var(--paper-2); }

/* ---------- §02 TŁUMACZ (kompaktowy most) ---------- */
.sec-title-sm { font-size: clamp(26px, 4.6vw, 44px); max-width: 24ch; }
.br { margin-top: 36px; display: grid; grid-template-areas: "dev" "line" "client" "pager"; }
@media (min-width: 860px) {
  .br { grid-template-columns: 1fr 120px 1fr; grid-template-areas: "dev line client" "pager pager pager"; }
}
.br-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 20px; min-height: 128px; background: var(--ink-2); transition: border-color .4s, box-shadow .4s; }
.br-dev { grid-area: dev; }
.br-client { grid-area: client; background: var(--paper); color: var(--ink); border-color: transparent; }
.br-dev.lit { border-color: var(--gold); }
.br-client.lit { box-shadow: 0 0 0 4px var(--gold-dim); }
.br-tag { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.br-client .br-tag { color: #9a7a2e; }
.br-dev p { font-size: 14px; color: var(--paper-2); line-height: 1.6; }
.br-client p { font-size: clamp(17px, 2vw, 20px); font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.br-svg { grid-area: line; width: 100%; height: 56px; overflow: visible; }
@media (min-width: 860px) { .br-svg { height: 100%; min-height: 128px; } }
.br-pager { grid-area: pager; display: flex; gap: 6px; margin-top: 18px; }
.br-pager button { width: 28px; height: 4px; border-radius: 2px; background: var(--line-2); padding: 0; transition: background .3s; position: relative; }
.br-pager button::after { content: ""; position: absolute; inset: -12px -2px; }
.br-pager button[aria-selected="true"] { background: var(--gold); }
.br p.fade { animation: brFade .6s var(--ease); }
@keyframes brFade { from { opacity: 0; transform: translateY(4px); } }

/* ---------- §03 CHANGELOG ---------- */
.log { margin-top: 52px; position: relative; }
.log::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(var(--gold), var(--line) 85%); }
.rel { position: relative; padding-left: 36px; padding-bottom: 44px; display: grid; gap: 10px; }
.rel::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--gold);
}
.rel-head::before { background: var(--gold); box-shadow: 0 0 0 5px var(--gold-dim), 0 0 18px var(--gold); }
@media (min-width: 860px) {
  .rel { grid-template-columns: 190px 1fr; gap: 30px; padding-left: 44px; }
}
.rel-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 12.5px; }
@media (min-width: 860px) { .rel-meta { flex-direction: column; gap: 6px; } }
.rel-ver { color: #fff; font-weight: 700; font-size: 14px; }
.rel-tag { color: var(--muted); }
.rel-head .rel-tag { color: var(--gold); }
.rel-tag-side { color: #9fa6ff; }
.rel-body h3 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; font-weight: 900; letter-spacing: -.015em; color: #fff; }
.rel-body .at { font-weight: 600; color: var(--paper-2); }
.rel-body .at a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.rel-sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.diff { margin-top: 16px; display: grid; gap: 8px; }
.diff li { position: relative; padding-left: 22px; color: var(--paper-2); font-size: 15.5px; line-height: 1.55; }
.diff li::before { content: "+"; position: absolute; left: 0; top: 0; font-family: var(--f-mono); color: var(--gold); font-weight: 700; }
.rel-small .rel-body h3 { font-size: clamp(17px, 2vw, 20px); }
.rel-label { margin-top: 20px; font-size: 11.5px; color: var(--muted); }
.shops { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.shops a {
  display: inline-block; padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12.5px; color: var(--paper-2); transition: border-color .2s, color .2s, background .2s;
}
.shops a:hover { border-color: var(--gold); color: var(--gold-hi); background: var(--gold-dim); }

.ref { margin-top: 30px; padding: 30px 24px; border-radius: 18px; background: var(--paper); color: var(--ink); position: relative; overflow: hidden; }
@media (min-width: 768px) { .ref { padding: 52px 56px; } }
@media (max-width: 767px) { .ref::before { opacity: .45; font-size: 150px; top: -50px; } }
.ref::before { content: "„"; position: absolute; right: 22px; top: -70px; font-weight: 900; font-size: 220px; line-height: 1; color: rgba(201,165,78,.28); }
.ref p { position: relative; font-size: clamp(19px, 2.5vw, 28px); font-weight: 700; line-height: 1.4; letter-spacing: -.012em; max-width: 42ch; }
.ref mark { color: #7d611f; box-shadow: inset 0 -.38em 0 rgba(201,165,78,.35); }
.ref footer { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ref-who { font-weight: 900; }
.ref-role { color: #5b5e74; font-size: 14px; }
.ref-link { font-size: 12.5px; color: #7d611f; text-decoration: underline; text-underline-offset: 3px; flex-basis: 100%; margin-top: 6px; }

/* ---------- §04 SYSTEM ---------- */
.sys {
  position: relative; margin-top: 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.sys-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.node {
  position: relative; z-index: 1;
  padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--ink-2);
  display: grid; gap: 4px; align-content: start;
  transition: border-color .3s, transform .3s var(--ease);
}
.node strong { font-size: 15px; font-weight: 800; }
.node span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.node:hover, .node.hot { border-color: var(--gold); }
.node-core {
  grid-column: 1 / -1; order: -1;
  text-align: center; justify-items: center; padding: 22px;
  background: var(--ink-3); border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-dim), 0 20px 50px -20px rgba(201,165,78,.45);
  margin-bottom: 26px;
}
.node-core strong { font-size: 22px; font-weight: 900; }
.node-core span { color: var(--paper-2); }
.node-core .gold { color: var(--gold); }
@media (min-width: 900px) {
  .sys { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto; gap: 18px 22px; }
  .node-core { grid-column: 2 / 4; grid-row: 2; order: 0; margin: 34px 30px; }
  .node:nth-child(3) { grid-column: 1; grid-row: 1; }
  .node:nth-child(4) { grid-column: 2; grid-row: 1; }
  .node:nth-child(5) { grid-column: 3; grid-row: 1; }
  .node:nth-child(6) { grid-column: 4; grid-row: 1; }
  .node:nth-child(7) { grid-column: 1; grid-row: 2; align-self: center; }
  .node:nth-child(8) { grid-column: 4; grid-row: 2; align-self: center; }
  .node:nth-child(9) { grid-column: 1 / 3; grid-row: 3; }
  .node:nth-child(10) { grid-column: 3 / 5; grid-row: 3; }
}
.sys-facts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; color: var(--paper-2); }
.sys-facts b { color: var(--gold); font-size: 18px; margin-right: 4px; }

/* ---------- §05 STACK ---------- */
.stack-grid { margin-top: 48px; display: grid; gap: 44px; }
@media (min-width: 900px) { .stack-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.tools { display: grid; border-top: 1px solid var(--line); }
.tools > div { position: relative; padding: 16px 0 18px; display: grid; gap: 8px; }
.tools > div::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px dashed var(--line-2); }
@media (min-width: 600px) { .tools > div { grid-template-columns: 170px 1fr; gap: 16px; } }
.tools dt { font-family: var(--f-mono); font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.tools dd { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--paper-2); font-size: 15.5px; }
.tools dd span { transition: color .35s, text-shadow .35s; }
.tools .hot dd span { color: #fff; text-shadow: 0 0 14px rgba(201,165,78,.45); }
.tdot { position: absolute; left: 0; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); opacity: 0; z-index: 1; }
.tools .hot .tdot { animation: tdot 1.6s cubic-bezier(.45,0,.2,1) forwards; }
@keyframes tdot { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.principles { display: grid; gap: 0; counter-reset: p; }
.principles { position: relative; padding-left: 26px; }
.principles::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; border-left: 1.2px dashed var(--line-2); }
.pdot { position: absolute; left: 2px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); transition: top .9s cubic-bezier(.45,0,.2,1); }
.principles li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(17px, 2vw, 20px); font-weight: 700; line-height: 1.35; color: var(--paper-2); transition: color .5s; }
.principles li.on { color: #fff; }
.principles li .mono { transition: color .5s, text-shadow .5s; }
.principles li.on .mono { color: var(--gold-hi); text-shadow: 0 0 10px var(--gold); }
.principles li:first-child { border-top: 1px solid var(--line); }
.principles .mono { font-size: 12px; color: var(--muted); padding-top: 5px; font-weight: 400; }

/* ---------- KONTAKT ---------- */
.contact { padding-bottom: 80px; }
.contact-title { font-size: clamp(32px, 7vw, 76px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; color: #fff; max-width: 15ch; }
.contact-main { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.mail {
  font-size: clamp(24px, 5.6vw, 58px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1;
  color: var(--gold-hi); word-break: break-word;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; padding-bottom: 6px;
  transition: background-size .5s var(--ease);
}
.mail:hover { background-size: 100% 3px; }
.copy { font-size: 12px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--paper-2); transition: all .2s; }
.copy:hover { border-color: var(--gold); color: var(--gold-hi); }
.copy.ok { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.contact-alt { margin-top: 44px; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .contact-alt { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 14px; } }
.contact-alt a {
  display: flex; align-items: center; gap: 14px; padding: 18px 2px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 16px; transition: color .2s, border-color .2s; word-break: break-word;
}
@media (min-width: 860px) { .contact-alt a { border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px; } }
.contact-alt a:hover { color: var(--gold-hi); border-color: var(--gold); }
.contact-alt .mono { font-size: 11px; color: var(--gold); width: 28px; flex-shrink: 0; text-transform: uppercase; }

/* ---------- STOPKA ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 34px var(--gut) calc(34px + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--muted);
}
.foot-in { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 99px; font-size: 12px; color: var(--paper-2);
  transition: color .2s, border-color .2s;
}
.to-top:hover { color: var(--gold-hi); border-color: var(--gold); }
.to-top span { transition: transform .3s var(--ease); }
.to-top:hover span { transform: translateY(-3px); }

/* pływający przycisk na telefonie */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  padding: 14px 20px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-weight: 900; font-size: 15px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.fab.show { transform: none; }
@media (min-width: 900px) { .fab { display: none; } }

/* ---------- MNIEJ RUCHU ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.noanim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
