/* ============================================================
   hyperfido.pl — design system
   Granat / grafit + żółty i czerwony akcent (CYBERS)
   Fonty: Space Grotesk (display), Manrope (body), IBM Plex Mono (techniczne)
   ============================================================ */

:root {
  --navy-950: #060B1A;
  --navy-900: #0A1228;
  --navy-850: #0D1730;
  --navy-800: #121F40;
  --graphite-900: #14181F;
  --graphite-700: #232A37;
  --paper: #F5F6FA;
  --paper-2: #ECEEF4;
  --white: #FFFFFF;
  --ink: #10141E;
  --ink-2: #3C4456;
  --muted: #7E879C;
  --muted-dark: #9AA3B8;
  --yellow: #FFC400;
  --yellow-soft: #FFD75E;
  --red: #E63B47;
  --red-deep: #C42833;
  --line-dark: rgba(255,255,255,.09);
  --line-light: rgba(16,20,30,.10);
  --font-display: "Roboto Condensed", "Roboto", "Helvetica Neue", sans-serif;
  --font-body: "Roboto", "Helvetica Neue", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;
  --maxw: 1200px;
  --radius: 14px;
  --shadow-card: 0 10px 40px -18px rgba(6,11,26,.35);
  --ease: cubic-bezier(.22,.7,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em 0; text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); }

/* ---------- top distribution bar ---------- */
.distbar {
  background: var(--navy-950);
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.distbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.distbar b { color: var(--yellow); font-weight: 500; }
.distbar a { color: var(--muted-dark); text-decoration: none; }
.distbar a:hover { color: var(--white); }
.distbar .dist-contact { display: flex; gap: 18px; }
@media (max-width: 720px) {
  .distbar .dist-contact { display: none; }
  .distbar .wrap { justify-content: center; text-align: center; font-size: 10.5px; }
}

/* ---------- header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10,18,40,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
header.site .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
@media (max-width: 1180px) { header.site .wrap { gap: 12px; } }
@media (max-width: 420px) { .brand .brand-name { font-size: 18px; } }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--font-display); }
.brand .brand-name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.brand .brand-name span { color: var(--yellow); }
.brand .brand-pl { font-family: var(--font-mono); font-size: 11px; color: var(--muted-dark); letter-spacing: .14em; }

nav.main { display: flex; align-items: center; gap: 2px; margin-left: auto; }
nav.main .nav-item { position: relative; }
nav.main .nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 11px; border-radius: 9px;
  color: #C9CFDE; text-decoration: none;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: color .15s, background .15s;
  background: none; border: 0; font-family: var(--font-body); cursor: pointer;
}
nav.main .nav-link:hover, nav.main .nav-item.open > .nav-link { color: var(--white); background: rgba(255,255,255,.06); }
nav.main .nav-link .caret { font-size: 9px; opacity: .6; transition: transform .2s; }
nav.main .nav-item.open .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 264px;
  background: var(--navy-850); border: 1px solid var(--line-dark); border-radius: 12px;
  padding: 8px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
/* niewidoczny mostek nad dropdownem — kursor nie „wypada” w szczelinie */
.dropdown::before { content: ""; position: absolute; top: -14px; left: -10px; right: -10px; height: 14px; }
.nav-item.open .dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: #C9CFDE; text-decoration: none; font-size: 14px; font-weight: 600;
}
.dropdown a:hover { background: rgba(255,255,255,.07); color: var(--white); }
.dropdown a small { display: block; font-weight: 400; color: var(--muted-dark); font-size: 12px; margin-top: 1px; }
.dropdown .dd-sep { height: 1px; background: var(--line-dark); margin: 6px 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 11px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s var(--ease), box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 28px -10px rgba(255,196,0,.55); }
.btn-primary:hover { background: var(--yellow-soft); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.25); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.05); }
.btn-ghost-dark { border-color: var(--line-light); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 9px; }
header.site .btn-primary { padding: 10px 18px; font-size: 14px; margin-left: 8px; }

.lang-switch {
  background: none; border: 1px solid rgba(255,255,255,.22); color: #C9CFDE; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; font-weight: 600;
  border-radius: 8px; padding: 8px 12px; margin-left: 6px; transition: color .15s, border-color .15s;
}
.lang-switch:hover { color: var(--white); border-color: var(--white); }
@media (max-width: 1180px) { .lang-switch { margin-left: auto; } .burger { order: 10; } }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .2s; }
@media (max-width: 1180px) {
  /* UWAGA: header.site ma backdrop-filter, który czyni go containing blockiem dla
     position:fixed — dlatego mobilne menu musi być ABSOLUTE względem headera */
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100dvh - 68px); background: var(--navy-950);
    flex-direction: column; align-items: stretch; padding: 18px 22px 60px; gap: 2px;
    overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0;
    border-top: 1px solid var(--line-dark);
  }
  nav.main.open { display: flex; }
  nav.main .nav-link { font-size: 17px; padding: 13px 10px; justify-content: space-between; width: 100%; }
  .dropdown { position: static; opacity: 1; transform: none; pointer-events: auto; display: none; box-shadow: none; border: 0; background: rgba(255,255,255,.03); min-width: 0; }
  .nav-item.open .dropdown { display: block; }
  .burger { display: block; }
  header.site .btn-primary { display: none; }
  header.site { position: sticky; }
}
body.nav-locked { overflow: hidden; }

/* ---------- page sections ---------- */
main { min-height: 60vh; }
section.band { padding: 92px 0; }
section.band-sm { padding: 64px 0; }
.band-dark { background: var(--navy-900); color: #DDE2EE; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--white); }
.band-darker { background: var(--navy-950); color: #DDE2EE; }
.band-darker h1, .band-darker h2, .band-darker h3 { color: var(--white); }
.band-paper2 { background: var(--paper-2); }
.band-white { background: var(--white); }

.kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); font-weight: 500; margin: 0 0 18px 0; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--yellow); flex: none; }
.band-dark .kicker, .band-darker .kicker { color: var(--yellow); }
.band-dark .kicker::before, .band-darker .kicker::before { background: var(--red); }

h1.display { font-size: clamp(38px, 5.4vw, 66px); font-weight: 700; margin-bottom: 22px; }
h2.section-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; margin-bottom: 16px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.band-dark .lead, .band-darker .lead { color: #B9C1D4; }
.section-head { max-width: 820px; margin-bottom: 48px; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.center .kicker { justify-content: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* page hero (subpages) */
.page-hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.page-hero .crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--muted-dark); margin-bottom: 26px; letter-spacing: .04em; }
.page-hero .crumbs a { color: var(--muted-dark); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--yellow); }
.page-hero .crumbs .sep { margin: 0 8px; color: var(--graphite-700); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 880px; }
.page-hero .lead { margin-top: 6px; }

/* decorative grid + glow */
.fx-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 35%, transparent 78%);
}
.fx-glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .5; }
.fx-glow.gold { background: radial-gradient(circle, rgba(255,196,0,.32), transparent 65%); }
.fx-glow.red { background: radial-gradient(circle, rgba(230,59,71,.30), transparent 65%); }
.fx-glow.blue { background: radial-gradient(circle, rgba(54,98,227,.35), transparent 65%); }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  position: relative; display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-5px); border-color: rgba(16,20,30,.22); box-shadow: 0 24px 56px -22px rgba(6,11,26,.4); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 0; }
.card .card-go { margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; color: var(--red); font-weight: 500; }
a.card:hover .card-go { color: var(--red-deep); }
.card .card-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.card-dark { background: var(--navy-850); border-color: var(--line-dark); color: #D5DAE8; }
.card-dark h3 { color: var(--white); }
.card-dark p { color: #A9B2C8; }
a.card-dark:hover { border-color: rgba(255,255,255,.3); }

.icon-chip {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--navy-900); color: var(--yellow); font-family: var(--font-mono); font-size: 17px; font-weight: 600;
  margin-bottom: 20px; flex: none;
}
.card-dark .icon-chip { background: rgba(255,196,0,.12); }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }
.stat { padding: 28px 26px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); }
.stat .stat-num { font-family: var(--font-display); font-size: clamp(36px, 3.6vw, 52px); font-weight: 700; color: var(--white); line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.stat .stat-num .unit { font-size: .55em; color: var(--yellow); }
.stat.stat-red .stat-num .unit, .stat.stat-red .stat-num { color: var(--red); }
.stat.stat-red .stat-num .unit { color: var(--red); }
.stat .stat-label { margin-top: 12px; font-size: 14.5px; color: #A9B2C8; line-height: 1.5; }
.stat .stat-src { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .05em; }

/* photo slot (placeholder for own imagery) */
.photo-slot {
  border: 2px dashed rgba(126,135,156,.5); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, rgba(126,135,156,.07) 0 14px, transparent 14px 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 280px; padding: 30px; text-align: center;
}
.photo-slot .ps-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.photo-slot .ps-desc { font-size: 14px; color: var(--muted); max-width: 360px; }

figure.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
figure.photo img { width: 100%; height: 100%; object-fit: cover; }

/* marquee */
.marquee { overflow: hidden; position: relative; padding: 18px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.marquee .marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 36s linear infinite; }
.marquee .mq-item { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #717B93; white-space: nowrap; display: flex; align-items: center; gap: 14px; }
.marquee .mq-item::before { content: "✓"; color: var(--yellow); font-size: 15px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .marquee-track { animation: none; } }

/* reveal on scroll — treść widoczna domyślnie; chowamy TYLKO gdy środowisko
   renderuje animacje (body.anim-live, ustawiane po teście rAF w app.js) */
body.anim-live .rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }
body.anim-live .rv:not(.in) { opacity: 0; transform: translateY(26px); }
body.anim-live .rv-d1 { transition-delay: .08s; } body.anim-live .rv-d2 { transition-delay: .16s; }
body.anim-live .rv-d3 { transition-delay: .24s; } body.anim-live .rv-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { body.anim-live .rv:not(.in) { opacity: 1; transform: none; transition: none; } }
body[data-anim="off"] .rv:not(.in) { opacity: 1; transform: none; transition: none; }
body[data-anim="off"] .marquee-track { animation: none; }

/* ---------- content blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em 0; display: grid; gap: 13px; }
.checklist li { padding-left: 34px; position: relative; color: var(--ink-2); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--navy-900); color: var(--yellow); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.band-dark .checklist li, .band-darker .checklist li { color: #B9C1D4; }
.band-dark .checklist li::before, .band-darker .checklist li::before { background: rgba(255,196,0,.14); }
.checklist li b { color: inherit; }
.checklist li strong { color: var(--ink); }
.band-dark .checklist li strong, .band-darker .checklist li strong { color: var(--white); }

.xlist { list-style: none; padding: 0; margin: 0 0 1.2em 0; display: grid; gap: 13px; }
.xlist li { padding-left: 34px; position: relative; color: var(--ink-2); }
.xlist li::before { content: "✕"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; background: rgba(230,59,71,.12); color: var(--red); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* steps */
.steps { display: grid; gap: 0; counter-reset: step; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.step:last-child { border-bottom: 0; }
.step .step-n {
  counter-increment: step; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: var(--yellow); font-family: var(--font-mono); font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.step .step-n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* accordion (FAQ) */
.acc { border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.acc details { border-bottom: 1px solid var(--line-light); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 26px; font-family: var(--font-display); font-weight: 600; font-size: 17px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--red); transition: transform .2s; flex: none; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 26px 22px; color: var(--ink-2); font-size: 15.5px; }
.acc .acc-body p:last-child { margin-bottom: 0; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.tbl th { background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-weight: 600; text-align: left; padding: 14px 18px; font-size: 14.5px; }
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line-light); color: var(--ink-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td b { color: var(--ink); }
.tbl-scroll { overflow-x: auto; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line-dark); color: #C9CFDE; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.badge.badge-red .dot { background: var(--red); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px 0; }
.badge-light { border-color: var(--line-light); color: var(--ink-2); }

/* note / disclaimer */
.note { border: 1px solid var(--line-light); border-radius: 12px; background: var(--paper-2); padding: 16px 20px; font-size: 14px; color: var(--ink-2); display: flex; gap: 12px; }
.note::before { content: "i"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-900); color: var(--yellow); font-family: var(--font-mono); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; margin-top: 2px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--navy-950); color: var(--white); padding: 84px 0; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 700px; }
.cta-band p { color: #B9C1D4; max-width: 620px; font-size: 18px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* download rows */
.dl-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line-light); border-radius: 12px; text-decoration: none; transition: transform .18s var(--ease), border-color .18s; }
.dl-row:hover { transform: translateX(4px); border-color: var(--ink); }
.dl-row .dl-ico { width: 44px; height: 44px; border-radius: 10px; background: rgba(230,59,71,.1); color: var(--red); font-family: var(--font-mono); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.dl-row .dl-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.dl-row .dl-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.dl-row .dl-go { margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--red); white-space: nowrap; }
.dl-list { display: grid; gap: 12px; }

/* forms (mockup) */
.form { display: grid; gap: 18px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(16,20,30,.18);
  font-family: var(--font-body); font-size: 15.5px; background: var(--white); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(18,31,64,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.field-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.field-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy-900); flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; border: 1px solid rgba(230,59,71,.4); background: rgba(230,59,71,.08); border-radius: 12px; padding: 16px 20px; font-size: 14.5px; color: var(--red-deep); }
.form-error.show { display: block; }
.form-success { display: none; border: 1px solid rgba(31,138,91,.35); background: rgba(31,138,91,.08); border-radius: 12px; padding: 22px 24px; }
.form-success.show { display: block; }
.form-success h3 { color: #1F8A5B; font-size: 18px; margin-bottom: 6px; }
.form-success p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- footer ---------- */
footer.site { background: var(--navy-950); color: #A9B2C8; border-top: 1px solid var(--line-dark); }
.foot-dist { border-bottom: 1px solid var(--line-dark); }
.foot-dist .wrap { display: flex; align-items: center; gap: 22px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.foot-dist img { height: 26px; width: auto; opacity: .92; }
.foot-dist .fd-text { font-size: 14px; }
.foot-dist .fd-text b { color: var(--white); }
.foot-dist .btn { margin-left: auto; }
@media (max-width: 720px) { .foot-dist .btn { margin-left: 0; } }
.foot-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0; }
@media (max-width: 980px) { .foot-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-main { grid-template-columns: 1fr; } }
.foot-col h4 { color: var(--white); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; margin-bottom: 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: #A9B2C8; text-decoration: none; font-size: 14.5px; }
.foot-col a:hover { color: var(--yellow); }
.foot-col p { font-size: 14.5px; }
.foot-legal { border-top: 1px solid var(--line-dark); }
.foot-legal .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.foot-legal a { color: var(--muted); text-decoration: none; }
.foot-legal a:hover { color: var(--white); }

/* ---------- home hero variants ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); }
.hero .wrap { position: relative; z-index: 2; }

/* A — cyber grid */
.hero-a { background: radial-gradient(ellipse 120% 90% at 70% -10%, var(--navy-800), var(--navy-950) 60%); padding: 110px 0 96px; }
.hero-a .hero-grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
@media (max-width: 980px) { .hero-a .hero-grid-2 { grid-template-columns: 1fr; } }
.hero-a .hero-visual { position: relative; }
.hero-a .hero-visual figure.photo { transform: rotate(2deg); border: 1px solid var(--line-dark); aspect-ratio: 3 / 2; }
/* crossfade: dwie warstwy obrazu — nowa wjeżdża płynnie nad starą z delikatnym zoomem */
.xfade-stage { position: relative; overflow: hidden; background: var(--navy-850); }
.xfade-stage img.xfade {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 6.5s linear;
}
.xfade-stage img.xfade.on { opacity: 1; transform: scale(1.0); }
.float-chip { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.float-chip.chip-out { opacity: 0; transform: translateY(10px); }
.hero-a .hero-visual .float-chip {
  position: absolute; background: var(--navy-850); border: 1px solid var(--line-dark); border-radius: 12px;
  padding: 13px 18px; font-family: var(--font-mono); font-size: 12.5px; color: #C9CFDE; box-shadow: 0 18px 44px -16px rgba(0,0,0,.6);
  display: flex; align-items: center; gap: 10px; animation: floaty 5.5s ease-in-out infinite;
}
.hero-a .float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.hero-a .float-chip.fc-1 { top: -20px; right: 8%; animation-delay: .6s; }
.hero-a .float-chip.fc-2 { bottom: -16px; left: -4%; }
.hero-a .float-chip.fc-2 .dot { background: var(--red); box-shadow: 0 0 12px var(--red); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 640px) {
  .hero-a { padding: 64px 0 64px; }
  .hero-a .hero-grid-2 { gap: 40px; }
  .hero-a .float-chip { font-size: 11px; padding: 10px 13px; }
  .hero-a .float-chip.fc-1 { top: -14px; right: 2%; }
  .hero-a .float-chip.fc-2 { bottom: -12px; left: 2%; }
  section.band { padding: 64px 0; }
  section.band-sm { padding: 48px 0; }
  .wrap { padding: 0 18px; }
  .roi-results { position: static; }
}
body[data-anim="off"] .float-chip { animation: none; }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }


.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }

/* path picker (home) */
.path-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .path-pick { grid-template-columns: 1fr; } }
.path-card { border-radius: var(--radius); padding: 38px 36px; text-decoration: none; position: relative; overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s; display: block; }
.path-card:hover { transform: translateY(-5px); }
.path-card.pc-business { background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-card); }
.path-card.pc-partner { background: var(--yellow); color: var(--ink); box-shadow: 0 18px 50px -18px rgba(255,196,0,.55); }
.path-card h3 { font-size: 24px; margin-bottom: 10px; }
.path-card p { font-size: 15.5px; margin-bottom: 22px; opacity: .85; }
.path-card .pc-go { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; font-weight: 600; }
.path-card.pc-business .pc-go { color: var(--yellow); }

/* tool shells */
.tool-shell { background: var(--white); border: 1px solid var(--line-light); border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; }
.tool-head { background: var(--navy-900); color: var(--white); padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.tool-head h3 { margin: 0; font-size: 21px; }
.tool-head .mono { font-size: 11.5px; color: var(--muted-dark); letter-spacing: .1em; }
.tool-body { padding: 32px; }
@media (max-width: 640px) { .tool-body { padding: 22px 18px; } }

/* ROI calculator */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 920px) { .roi-grid { grid-template-columns: 1fr; } }
.roi-field { margin-bottom: 20px; }
.roi-field .rf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.roi-field label { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.roi-field .rf-val { font-family: var(--font-mono); font-size: 14px; color: var(--red); font-weight: 600; white-space: nowrap; }
.roi-field input[type="range"] { width: 100%; accent-color: var(--red); height: 32px; }
.roi-field .rf-hint { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.roi-results { background: var(--navy-950); border-radius: 14px; padding: 30px; color: var(--white); position: sticky; top: 120px; }
.roi-results .rr-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; color: #B9C1D4; }
.roi-results .rr-row b { color: var(--white); font-family: var(--font-mono); font-size: 16px; white-space: nowrap; }
.roi-results .rr-hero { padding: 18px 0 8px; border-bottom: 0; display: block; }
.roi-results .rr-hero .rrh-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.roi-results .rr-hero .rrh-val { font-family: var(--font-display); font-size: clamp(38px, 4vw, 54px); font-weight: 700; color: var(--yellow); line-height: 1.1; }
.roi-results .rr-sentence { margin-top: 14px; font-size: 14.5px; color: #B9C1D4; }
.roi-results .rr-sentence b { color: var(--white); }
.roi-bars { display: flex; gap: 10px; align-items: flex-end; height: 120px; margin: 22px 0 6px; }
.roi-bars .rb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; }
.roi-bars .rb .rb-fill { border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--yellow), #D9A400); min-height: 4px; transition: height .5s var(--ease); }
.roi-bars .rb.rb-cost .rb-fill { background: linear-gradient(180deg, var(--red), var(--red-deep)); }
.roi-bars .rb .rb-label { font-family: var(--font-mono); font-size: 10px; color: var(--muted-dark); text-align: center; }
.roi-disclaimer { font-size: 12px; color: var(--muted); margin-top: 18px; }

/* AD decision tool */
.ad-tool .ad-q { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin-bottom: 24px; }
.ad-opts { display: grid; gap: 12px; }
.ad-opt {
  text-align: left; background: var(--paper); border: 1px solid var(--line-light); border-radius: 12px;
  padding: 17px 22px; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: border-color .15s, transform .15s var(--ease), background .15s;
  display: flex; align-items: center; gap: 14px;
}
.ad-opt:hover { border-color: var(--navy-900); transform: translateX(4px); background: var(--white); }
.ad-opt .ad-key { font-family: var(--font-mono); font-size: 11px; color: var(--red); border: 1px solid rgba(230,59,71,.35); border-radius: 6px; padding: 3px 8px; flex: none; }
.ad-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.ad-progress .ap { height: 4px; flex: 1; border-radius: 2px; background: var(--paper-2); }
.ad-progress .ap.on { background: var(--yellow); }
.ad-back { background: none; border: 0; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; cursor: pointer; padding: 0; margin-top: 22px; letter-spacing: .06em; }
.ad-back:hover { color: var(--ink); }
.ad-result .adr-badge { display: inline-flex; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,196,0,.15); color: #8A6D00; border-radius: 100px; padding: 7px 16px; margin-bottom: 18px; }
.ad-result h4 { font-size: 24px; margin-bottom: 10px; }
.ad-result .adr-product { display: flex; align-items: center; gap: 14px; background: var(--navy-950); color: var(--white); border-radius: 12px; padding: 18px 22px; margin: 22px 0; }
.ad-result .adr-product .mono { color: var(--yellow); font-size: 12px; letter-spacing: .1em; }
.ad-result .adr-product h5 { margin: 0; font-family: var(--font-display); font-size: 18px; }
.ad-result ol { padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }

/* glossary */
.gloss { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .gloss { grid-template-columns: 1fr; } }
.gloss dt { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.gloss dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.gloss .g-item { background: var(--white); border: 1px solid var(--line-light); border-radius: 12px; padding: 18px 22px; }
.gloss .g-item .mono-tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--red); letter-spacing: .12em; text-transform: uppercase; }

/* compare two-col (FIDO vs OTP etc.) */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .vs-grid { grid-template-columns: 1fr; } }

/* article prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose ul { color: var(--ink-2); display: grid; gap: 8px; padding-left: 22px; }
.prose .thesis { font-size: 19px; line-height: 1.6; color: var(--ink); border-left: 3px solid var(--yellow); padding: 4px 0 4px 22px; margin: 0 0 1.6em 0; font-weight: 600; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 18px; z-index: 999; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

/* scroll progress */
#scrollbar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--yellow), var(--red)); width: 0; z-index: 200; pointer-events: none; }

/* ---------- cookie banner ---------- */
.cookiebar {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 300;
  max-width: 680px; margin: 0 auto;
  background: var(--navy-950); color: #C9CFDE; border: 1px solid var(--line-dark);
  border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.65);
  display: none;
}
.cookiebar.show { display: block; }
.cookiebar h4 { color: var(--white); font-family: var(--font-display); font-size: 16px; margin: 0 0 8px 0; display: flex; align-items: center; gap: 9px; }
.cookiebar h4 .ck-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); flex: none; }
.cookiebar p { font-size: 13.5px; line-height: 1.55; margin: 0 0 14px 0; }
.cookiebar a { color: var(--yellow); }
.cookiebar .ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookiebar .btn { padding: 10px 18px; font-size: 13.5px; border-radius: 9px; }
@media (max-width: 560px) { .cookiebar { left: 10px; right: 10px; bottom: 10px; } .cookiebar .ck-actions .btn { flex: 1; } }
