/* Shared shell: palette, header and footer used by every page. */

/* The scrollbar track is always there, so the layout does not shift between the
   home page (which never scrolls) and the content pages (which do). */
*{box-sizing:border-box}
html{overflow-y:scroll;scrollbar-gutter:stable}
:root{
  --bg:#1a1d1f; --panel:#212528; --ink:#ededed; --muted:#b3b3b3; --faint:#9aa0a3;
  --line:rgba(237,237,237,.14); --brand:#b51111; --brand-bright:#e10019;
  --accent:#d6c3a5;           /* ciepły piaskowy: drugi kolor obok czerwieni logo */
  --sans:'Geist',system-ui,sans-serif; --serif:'Newsreader',Georgia,serif; --mono:'Geist Mono',monospace;
  --edge:8vw;                 /* page margin, shared by header and hero */
}

/* drifting network behind the content pages */
.backdrop{position:fixed;inset:0;width:100%;height:100%;z-index:0;opacity:.5;pointer-events:none}
.topbar,main,footer{position:relative;z-index:1}

/* header */
.topbar{position:sticky;top:0;z-index:5;background:rgba(26,29,31,.55);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.topbar .inner{max-width:1080px;margin:0 auto;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:inline-flex;align-items:center;min-height:44px;line-height:0}
.brand img{height:26px;width:auto}   /* atrybuty width/height w HTML rezerwują miejsce, CSS ustala rozmiar */
.nav{display:flex;gap:28px;font-size:13.5px;line-height:26px;text-transform:uppercase;letter-spacing:.09em;font-weight:500}
.nav a{position:relative;display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;color:var(--muted);
  text-decoration:none;transition:color .2s}
/* the marker sits close under the text, not at the bottom of the tap area */
.nav a::after{content:"";position:absolute;left:0;right:0;top:calc(50% + 1.05em);height:3px;
  background:transparent;transition:background .2s}
.nav a:hover{color:var(--ink)}
.nav a:hover::after{background:var(--ink)}
/* the page you are on stays marked in sand */
.nav a.admin{color:var(--accent);opacity:.75}
.nav a[aria-current]{color:var(--ink)}
.nav a[aria-current]::after{background:var(--accent)}

/* the home page floats the same header over the animation: half-transparent, so the
   network stays visible but stops competing with the logo and the menu */
.topbar.overlay{position:fixed;left:0;right:0}


@media(max-width:700px){
  :root{--edge:6vw}
  /* to samo co na stronie głównej: na telefonie tło ma być ledwie widoczne */
  .backdrop{opacity:.15}
  .topbar .inner{flex-direction:column;align-items:flex-start;gap:4px;padding:14px var(--edge) 8px}
  .brand{min-height:0}
  .brand img{height:26px}
  .nav{gap:22px;font-size:13px;line-height:1;padding-top:2px}
  /* tylko kosmetyka naszego własnego widoku — starsza przeglądarka to zignoruje i nic się nie stanie */
  .nav:has(.admin){gap:10px;font-size:11.5px;letter-spacing:.04em}
  .nav a{min-height:44px}
}

/* footer */
footer{border-top:1px solid var(--line);color:var(--muted);font-size:14px;font-family:var(--sans)}
footer.overlay{position:fixed;left:0;right:0;bottom:0;z-index:3;background:rgba(26,29,31,.55);backdrop-filter:blur(6px)}
footer.overlay .inner{padding:12px 24px}
footer .inner{max-width:1080px;margin:0 auto;padding:24px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;justify-content:space-between;line-height:1.5}
footer a{color:var(--ink);text-decoration:none;display:inline-block;padding:12px 0}
footer a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
footer a:hover{color:var(--ink)}

/* Na telefonie stopka rozjeżdżała się w wiersz z dużymi odstępami — tu prostuje się w kolumnę.
   Blok musi stać po regułach powyżej, bo inaczej to one wygrywają. */
@media(max-width:700px){
  footer .inner{flex-direction:column;align-items:flex-start;gap:0;padding:16px var(--edge) 22px}
  footer.overlay .inner{padding:16px var(--edge) 22px}
  footer a{padding:7px 0}
  footer .reach{display:flex;flex-direction:column;align-items:flex-start}
  footer .dot{display:none}
}

/* keyboard focus must be visible on every interactive element */
a:focus-visible,button:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--ink);outline-offset:3px;border-radius:4px
}

/* jump straight to the content, for keyboard and screen readers */
.skip{position:absolute;left:-9999px;top:0;z-index:20;background:var(--ink);color:var(--bg);
  padding:12px 18px;border-radius:0 0 8px 0;text-decoration:none;font-weight:500}
.skip:focus{left:0}

.hero .cta{align-self:flex-start;margin-top:36px}
.strip .button{flex:0 0 auto}

/* Call to action: a pill that echoes the network — the arrow sits in a node that
   pulses like a signal arriving, and the whole thing inverts on hover. */
.cta,.button{
  --ring:rgba(214,195,165,.55);
  position:relative;display:inline-flex;align-items:center;gap:16px;
  padding:12px 14px 12px 30px;border:1px solid rgba(237,237,237,.28);border-radius:999px;
  background:rgba(26,29,31,.28);backdrop-filter:blur(3px);color:var(--ink);text-decoration:none;
  font-size:14.5px;font-weight:500;text-transform:uppercase;letter-spacing:.09em;transition:border-color .3s,background .3s,color .3s;overflow:hidden
}
.cta::before,.button::before{
  content:"";position:absolute;inset:0;border-radius:999px;background:rgba(237,237,237,.12);
  transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.16,1,.3,1);z-index:0
}
.cta:hover,.button:hover{color:var(--ink);border-color:rgba(237,237,237,.55)}
.cta:hover::before,.button:hover::before{transform:scaleX(1)}
.cta > *,.button > *{position:relative;z-index:1}
.cta .node,.button .node{
  display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;
  background:rgba(214,195,165,.62);color:#1a1d1f;font-size:16px;line-height:1;
  transition:transform .35s cubic-bezier(.16,1,.3,1),background .3s
}
.cta:hover .node,.button:hover .node{transform:translateX(4px);background:var(--accent)}
/* the ring repeats the arrival of a signal in the background animation */
.cta .node::after,.button .node::after{
  content:"";position:absolute;width:38px;height:38px;border-radius:50%;
  border:1px solid var(--ring);animation:signal 3.2s ease-out infinite
}
.cta:hover .node::after,.button:hover .node::after{animation-play-state:paused;opacity:0}
@keyframes signal{
  0%{transform:scale(1);opacity:.7}
  60%{transform:scale(1.75);opacity:0}
  100%{transform:scale(1.75);opacity:0}
}
@media(prefers-reduced-motion:reduce){
  .cta .node::after,.button .node::after{animation:none;opacity:0}
  .cta::before,.button::before{transition:none}
}

/* Przycisk z dłuższym napisem wystawał poza kartę. Blok musi stać po definicji powyżej,
   bo przy równej specyficzności wygrywa ta reguła, która jest w pliku niżej. */
@media(max-width:700px){
  .cta,.button{max-width:100%;font-size:13px;letter-spacing:.06em;gap:12px;padding:11px 11px 11px 22px}
  .cta .label,.button .label{white-space:nowrap}
  .cta .node,.button .node{width:32px;height:32px;flex:0 0 32px}
  .cta .node::after,.button .node::after{width:32px;height:32px}
}

/* Pasek pokazywany tylko w oknie aplikacji (Facebook, Messenger, TikTok). */
/* Na dole, nie na górze: strona główna ma przyklejony nagłówek, który zasłoniłby pasek. */
.okno-aplikacji{position:fixed;left:0;right:0;bottom:0;z-index:6;display:flex;align-items:center;gap:10px;
  padding:10px 14px;background:var(--panel);border-top:1px solid var(--line);
  box-shadow:0 -8px 24px rgba(0,0,0,.35);
  font-size:13px;line-height:1.35;color:var(--muted)}
.okno-aplikacji span{flex:1;min-width:0}
.okno-aplikacji button{flex:none;background:var(--accent);color:#1a1d1f;border:0;border-radius:999px;
  padding:9px 14px;font:inherit;font-weight:500;cursor:pointer;min-height:38px}
.okno-aplikacji button[data-akcja=zamknij]{background:none;color:var(--faint);font-size:20px;
  padding:0 4px;min-width:38px}
.okno-aplikacji button:disabled{opacity:.7;cursor:default}
