/* Legnet 2026 — style.css
   Bez frameworka: tokeny w custom properties, 12-kolumnowa siatka, skala 8 px.
   Animacje: IntersectionObserver + CSS, View Transitions między podstronami. */

@view-transition { navigation: auto; }

:root {
  --bg: #03050A;
  --surface: #080D16;
  --raised: #0E1522;
  --high: #141D2D;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #EEF3F9;
  --text-2: #9AA7BA;
  --text-3: #808EA3;
  --b300: #86D6FF;
  --b400: #3DB6F5;
  --b500: #1E9BE0;
  --primary: #0F74C6;
  --primary-2: #0A57AE;
  --ok: #3EE0A1;
  --warn: #F5C04A;
  --err: #FFB4AB;

  --gap: 16px;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --pad: clamp(24px, 4.8vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 64px;

  color-scheme: dark;
}

.light {
  --bg: #E9EEF4;
  --surface: #F6F8FB;
  --raised: #FFFFFF;
  --high: #E6EDF5;
  --line: rgba(10, 26, 51, .08);
  --line-strong: rgba(10, 26, 51, .16);
  --text: #08121F;
  --text-2: #3F4C5E;
  --text-3: #5B687B;
  --b300: #0B5FB0;
  --b400: #0B62B5;
  color-scheme: light;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Exo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--b400); color: #03050A; }
:focus-visible { outline: 2px solid var(--b400); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: #253047 var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 20px; border-radius: 12px; background: var(--primary); color: #fff; }
.skip:focus { top: 16px; }

/* ---------- Typography ---------- */
.h-display { font-size: clamp(3rem, 7.2vw, 6rem); line-height: .95; font-weight: 600; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.h-page    { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; margin: 0; }
.h1        { font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.h2        { font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.h3        { font-size: clamp(1.375rem, 2vw, 2rem); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.h4        { font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.lead      { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--text-2); margin: 0; max-width: 34em; }
.body      { color: var(--text-2); margin: 0; max-width: 38em; }
.small     { font-size: .875rem; line-height: 1.55; color: var(--text-2); margin: 0; }
.muted     { color: var(--text-3); }
.accent    { color: var(--b300); }
.num       { font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ---------- Layout ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding: var(--gap); }
.page > *, .split > *, .why > *, .contact > *, .grid-2 > * { min-width: 0; }
.panel {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(64px, 8vw, 112px) var(--pad) clamp(56px, 7vw, 96px);
  overflow: clip;
}
.panel.light { background: var(--bg); border-color: transparent; color: var(--text); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head > .lead { max-width: 30em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.rows > * { border-top: 1px solid var(--line-strong); padding: 28px 0; display: grid; gap: 8px; }
.rows h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.rows p { margin: 0; color: var(--text-2); max-width: 36em; }

/* ---------- Logo ---------- */
.logo { position: relative; display: inline-flex; flex-direction: column; align-items: flex-end; padding: 6px 2px 0 10px; line-height: 1; color: #fff; }
.logo__sig { position: absolute; left: -4px; top: -2px; width: 28px; height: 28px; overflow: visible; }
.logo__sig circle.ring { fill: none; stroke: #fff; stroke-width: 1.2; transform-origin: 14px 14px; }
.logo__word { font-weight: 700; font-style: italic; font-size: 34px; letter-spacing: -.02em; position: relative; }
.logo__tag { font-style: italic; font-size: 8px; letter-spacing: .02em; margin-top: 1px; opacity: .9; }
.logo:hover .ring { animation: ping 1.6s var(--ease-out) infinite; }
.logo:hover .ring:nth-of-type(2) { animation-delay: .25s; }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; background: var(--bg-btn); cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: rgba(255,255,255,.18); }
.btn--primary:hover { background: linear-gradient(135deg, #1279CB, #0C62C0); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); }
.light .btn--primary:hover { box-shadow: 0 10px 24px -10px rgba(8, 18, 31, .35); }
.btn--secondary { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--line-strong); }
.btn--secondary:hover { background: rgba(255,255,255,.12); }
.light .btn--secondary { background: #fff; }
.light .btn--secondary:hover { background: #fff; border-color: var(--text-3); }
.btn--ghost { padding-left: 0; padding-right: 0; min-height: 40px; color: var(--text); justify-self: start; }
.btn--ghost:hover { color: var(--b300); }
.btn--white { color: #06152E; background: #fff; }
.btn--white:hover { box-shadow: 0 10px 28px -8px rgba(0,0,0,.5); }
.btn--block { width: 100%; justify-content: space-between; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 50; top: 24px; left: 32px; right: 32px;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 8px 0 16px; border-radius: 22px; border: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), top .35s var(--ease), backdrop-filter .35s;
  view-transition-name: site-nav;
}
.nav.is-scrolled { height: 72px; top: 16px; background: rgba(8, 13, 22, .78); border-color: rgba(255,255,255,.08); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.nav__links {
  display: flex; gap: 4px; padding: 6px; margin: 0; list-style: none; border-radius: 999px;
  background: rgba(14, 21, 34, .55); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav__links a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav__links a[aria-current] { color: var(--text); background: rgba(255,255,255,.12); }
.nav__links a[aria-current]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--b400); box-shadow: 0 2px 8px rgba(61,182,245,.6); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(14,21,34,.6); cursor: pointer; place-items: center; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.nav__burger span + span { margin-top: 5px; }
.nav[data-open] .nav__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav[data-open] .nav__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(8% 6% 8% 6% round 32px); transition: clip-path 1.2s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 24px); }

/* ---------- HOME HERO ---------- */
.hero {
  position: relative; min-height: clamp(640px, 100svh - 32px, 760px);
  height: 736px; max-height: calc(100svh - 32px);
  border-radius: var(--r-xl); overflow: hidden; background: #03060D; border: 1px solid var(--line);
  isolation: isolate;
}
@media (max-height: 700px) { .hero { max-height: none; } }
.hero__media { position: absolute; inset: -6%; z-index: -2; transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.04); transform-origin: 50% 60%; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); filter: saturate(1) brightness(1); } to { transform: scale(1.08) translate3d(-2%, -1.5%, 0); filter: saturate(1.15) brightness(1.1); } }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--px, 70%) var(--py, 60%), rgba(61, 182, 245, .28), transparent 65%); mix-blend-mode: screen; transition: opacity .6s; }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, #03060D 0%, rgba(3,6,13,.94) 22%, rgba(3,6,13,.62) 44%, rgba(3,6,13,.08) 70%, transparent 100%),
    linear-gradient(180deg, rgba(3,6,13,.85) 0%, rgba(3,6,13,0) 30%, rgba(3,6,13,0) 70%, rgba(3,6,13,.7) 100%);
}
.hero__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 104px clamp(24px, 3.8vw, 56px); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero__copy > .status { position: absolute; top: 120px; left: clamp(24px, 3.8vw, 56px); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--text-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(62,224,161,.55); } 70% { box-shadow: 0 0 0 10px rgba(62,224,161,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,161,0); } }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .ln > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(.15s + var(--i) * .12s); }
@keyframes rise { to { transform: none; } }
.hero__bottom { display: grid; gap: 28px; }
.hero__bottom > * { opacity: 0; animation: fadeUp .9s var(--ease-out) forwards; animation-delay: calc(.55s + var(--i, 0) * .1s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.check {
  width: min(440px, 100%); padding: 28px; border-radius: var(--r-lg); display: grid; gap: 16px;
  background: rgba(14, 21, 34, .55); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  opacity: 0; animation: fadeUp 1s var(--ease-out) .8s forwards;
}
.check h2 { font-size: 1.375rem; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.field { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 52px; border-radius: 14px; background: rgba(3,5,10,.5); border: 1px solid rgba(255,255,255,.14); transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--b400); box-shadow: 0 0 0 4px rgba(30,155,224,.22); }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 14px 0; }
.field input::placeholder { color: var(--text-3); }
.field svg { width: 18px; height: 18px; flex: none; color: var(--b300); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8125rem; color: var(--text-2); }
.ticks span { display: inline-flex; align-items: center; gap: 6px; }
.ticks svg { width: 14px; height: 14px; color: var(--ok); }
.check__result { font-size: .875rem; min-height: 0; display: none; padding: 12px 14px; border-radius: 12px; }
.check__result.is-ok { display: block; background: rgba(62,224,161,.1); border: 1px solid rgba(62,224,161,.35); }
.check__result.is-miss { display: block; background: rgba(245,192,74,.08); border: 1px solid rgba(245,192,74,.35); }
.check__result a { color: var(--b300); text-decoration: underline; text-underline-offset: 3px; }
.suggest { position: absolute; left: -1px; right: -1px; bottom: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #0E1522; border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); }
.suggest[hidden] { display: none; }
.suggest li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; font-size: .9375rem; }
.suggest li small { color: var(--text-3); }
.suggest li:hover, .suggest li[aria-selected="true"] { background: rgba(255,255,255,.07); }

/* ---------- SERVICES INDEX ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-row {
  display: grid; grid-template-columns: minmax(200px, 360px) 1fr auto auto; align-items: center; gap: 32px;
  padding: 28px 24px; margin: 0 -24px; border-radius: 24px; border-top: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s;
}
.svc-list li:first-child .svc-row { border-top-color: transparent; }
.svc-row h3 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; font-weight: 600; letter-spacing: -.03em; margin: 0; color: var(--text-2); transition: color .3s, transform .5s var(--ease-out); }
.svc-row p { margin: 0 0 12px; color: var(--text-2); max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: .8125rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-3); }
.svc-row__img { width: 160px; height: 100px; border-radius: 16px; overflow: hidden; opacity: .55; transition: width .5s var(--ease-out), height .5s var(--ease-out), opacity .4s; }
.svc-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.svc-row__go { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.svc-row__go svg { width: 20px; height: 20px; }
.svc-row:hover, .svc-row:focus-visible { background: var(--raised); border-color: transparent; }
.svc-row:hover + * , .svc-list li:has(.svc-row:hover) + li .svc-row { border-top-color: transparent; }
.svc-row:hover h3, .svc-row:focus-visible h3 { color: var(--text); transform: translateX(8px); }
.svc-row:hover .svc-row__img, .svc-row:focus-visible .svc-row__img { width: 240px; height: 150px; opacity: 1; }
.svc-row:hover .svc-row__img img { transform: scale(1.06); }
.svc-row:hover .svc-row__go, .svc-row:focus-visible .svc-row__go { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; transform: rotate(45deg); }

/* ---------- PRICING ---------- */
.toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(10,26,51,.05); border: 1px solid var(--line); position: relative; }
.toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--text-2); cursor: pointer; transition: color .3s; }
.toggle button[aria-pressed="true"] { color: #fff; }
.toggle__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.ptable { display: grid; grid-template-columns: minmax(160px, 1.1fr) repeat(4, 1fr); }
.ptable__col { display: grid; grid-template-rows: 128px 72px 72px 96px; padding: 0 24px; }
.ptable__col > * { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.ptable__col > *:last-child { border-bottom: 0; }
.ptable__col--labels { padding-left: 0; color: var(--text-2); }
.ptable__col--labels > :first-child { align-items: flex-end; padding-bottom: 24px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.ptable__head { flex-direction: column; justify-content: flex-end; align-items: flex-start !important; padding-bottom: 20px; gap: 4px; }
.ptable__head .h4 { font-size: 1.25rem; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 2.75rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price small { color: var(--text-3); font-size: .875rem; }
.badge { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(14,111,207,.12); color: var(--b300); }
.ptable__col--feat { background: #fff; border: 1px solid rgba(14,111,207,.45); border-radius: 24px; box-shadow: 0 24px 48px -28px rgba(14,111,207,.45); }
.meter { display: grid; gap: 8px; width: 100%; }
.meter b { font-size: .875rem; font-weight: 600; }
.meter i { position: relative; height: 6px; border-radius: 3px; background: rgba(10,26,51,.08); overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #86D6FF, #1E9BE0); transform-origin: left; transform: scaleX(var(--v)); transition: transform 1.4s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .meter:not(.is-in) i::after { transform: scaleX(0); }
.ptable .btn { width: 100%; justify-content: space-between; }
.every { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 20px 28px; border-radius: 20px; background: var(--raised); color: var(--text-2); }
.every strong { color: var(--text); }
.every span { display: inline-flex; gap: 8px; align-items: center; }
.every svg { width: 16px; height: 16px; color: var(--primary); }
.biz { display: none; }
.pricing[data-mode="firma"] .ptable, .pricing[data-mode="firma"] .every { display: none; }
.pricing[data-mode="firma"] .biz { display: grid; animation: fadeUp .6s var(--ease-out); }
.biz { grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: start; }
.sec-foot { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- SERVICE SPLIT ---------- */
.split { display: grid; grid-template-columns: minmax(0, 680px) 1fr; gap: clamp(32px, 4.4vw, 64px); align-items: center; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.split--rev { grid-template-columns: 1fr minmax(0, 680px); padding-left: var(--pad); }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 17 / 12; background: #000; }
.split__media--blend { background: transparent; aspect-ratio: 1230 / 740; border-radius: 0; }
.split__media--blend img, .art { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 64%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 64%, transparent 100%); }
.split__media--blend { overflow: visible; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateY(var(--par, 0px)); transition: transform 1.2s var(--ease-out); }
.split__media.is-in img { transform: scale(1) translateY(var(--par, 0px)); }
.split__body { display: grid; gap: 20px; padding: 40px 0; }
.feats { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.feats li { display: inline-flex; align-items: center; gap: 8px; }
.feats svg { width: 18px; height: 18px; color: var(--b400); }
.split__body .btn { justify-self: start; }

/* ---------- MAP ---------- */
.map { position: relative; height: clamp(640px, 62vw, 820px); border-radius: var(--r-xl); overflow: hidden; background: #050912; border: 1px solid var(--line); touch-action: none; }
.map__viewport { position: absolute; inset: 0; cursor: grab; }
.map__viewport:active { cursor: grabbing; }
.map__layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; transform: translate(var(--mx, 0px), var(--my, 0px)) scale(var(--ms, 1)); transition: transform .9s var(--ease-out); }
.map.is-dragging .map__layer { transition: none; }
.map__dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(134,214,255,.55) 1px, transparent 1.6px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(560px circle at 66% 52%, #000, transparent 75%); mask-image: radial-gradient(560px circle at 66% 52%, #000, transparent 75%); }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__svg .ring { fill: none; stroke: rgba(61,182,245,.32); stroke-width: 1.2; stroke-dasharray: 4 8; transform-box: fill-box; transform-origin: center; animation: spin 120s linear infinite; }
.map__svg .ring[style*="--i:0"] { stroke: rgba(134,214,255,.45); }
.map__svg .ring[style*="--i:1"] { animation-direction: reverse; animation-duration: 160s; }
@keyframes spin { to { transform: rotate(360deg); } }
.map__svg .city { stroke: rgba(134,214,255,.55); stroke-width: 1; opacity: 0; transition: opacity 1.4s var(--ease-out) .2s; }
.map.is-in .map__svg .city { opacity: 1; }
.js .map__svg .ring { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.map.is-in .map__svg .ring { opacity: 1; }

.pin { position: absolute; left: var(--x); top: var(--y); width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; background: none; cursor: pointer; transform: scale(calc(1 / var(--ms, 1))); transition: transform .9s var(--ease-out); }
.pin__core { position: absolute; inset: 7px; border-radius: 50%; background: var(--b400); border: 2px solid #03050A; box-shadow: 0 2px 10px rgba(61,182,245,.8); transition: transform .3s var(--ease-out), background .3s; }
.pin__pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(61,182,245,.16); border: 1px solid rgba(61,182,245,.45); }
.pin[data-status="ask"] .pin__core { background: var(--warn); box-shadow: 0 2px 10px rgba(245,192,74,.6); }
.pin[data-status="ask"] .pin__pulse { background: rgba(245,192,74,.12); border-color: rgba(245,192,74,.4); }
.pin__label { position: absolute; left: 30px; top: 4px; white-space: nowrap; font-size: .75rem; color: var(--text-3); pointer-events: none; transition: color .3s; }
.pin--left .pin__label { left: auto; right: 30px; }
.pin--hq { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.pin--hq .pin__core { inset: 7px; background: #fff; border: 5px solid var(--b500); box-shadow: 0 4px 24px rgba(61,182,245,.7); }
.pin--hq .pin__label { font-size: 1.5rem; font-weight: 600; color: var(--text); left: 44px; top: 2px; letter-spacing: -.02em; }
.pin:hover .pin__core, .pin:focus-visible .pin__core, .pin.is-active .pin__core { transform: scale(1.35); background: var(--b300); }
.pin:hover .pin__label, .pin.is-active .pin__label { color: var(--text); }
.pin.is-active .pin__pulse { animation: pulse 2.2s var(--ease-out) infinite; }
.js .map .pin { opacity: 0; }
.map.is-in .pin { animation: pop .7s var(--ease-out) forwards; animation-delay: calc(.4s + var(--d) * 45ms); }
@keyframes pop { from { opacity: 0; transform: scale(0) } to { opacity: 1; transform: scale(calc(1 / var(--ms, 1))); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.pin.is-dim { opacity: .25 !important; }

.hq { position: absolute; left: var(--x); top: var(--y); transform: translate(-11px, -11px) scale(calc(1 / var(--ms, 1))); transform-origin: 11px 11px; display: flex; align-items: center; gap: 14px; pointer-events: none; transition: transform .9s var(--ease-out); }
.hq i { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--b500); box-shadow: 0 0 28px 4px rgba(61,182,245,.75); flex: none; }
.hq b { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; }

.tip { position: absolute; z-index: 6; display: grid; gap: 4px; justify-items: start; min-width: 220px; padding: 14px 16px 16px; border-radius: 16px; background: #141D2D; border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0,0,0,.6); transform: translate(-50%, calc(-100% - 18px)) scale(.96); transform-origin: 50% 100%; opacity: 0; visibility: hidden; transition: opacity .2s, transform .3s var(--ease-out), visibility 0s .3s; }
.tip::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: #141D2D; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: translateX(-50%) rotate(45deg); }
.tip.is-below { transform: translate(-50%, 22px) scale(.96); transform-origin: 50% 0; }
.tip.is-below::after { bottom: auto; top: -7px; transform: translateX(-50%) rotate(225deg); }
.tip.is-on { opacity: 1; visibility: visible; transform: translate(-50%, calc(-100% - 22px)); transition: opacity .2s, transform .3s var(--ease-out), visibility 0s; }
.tip.is-below.is-on { transform: translate(-50%, 26px); }
.tip b { font-size: 1.0625rem; font-weight: 600; }
.tip span { font-size: .8125rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.tip span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--ok)); }
.tip .btn { margin-top: 10px; }
.btn--sm { min-height: 40px; padding: 10px 16px 10px 18px; font-size: .875rem; }
.map__msg { margin: 0; font-size: .875rem; display: none; padding: 10px 12px; border-radius: 12px; }
.map__msg.is-ok { display: block; background: rgba(62,224,161,.1); border: 1px solid rgba(62,224,161,.35); }
.map__msg.is-ask { display: block; background: rgba(245,192,74,.08); border: 1px solid rgba(245,192,74,.35); }
.map__msg a { color: var(--b300); text-decoration: underline; text-underline-offset: 3px; }
.glass { background: rgba(11, 17, 28, .74); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.map__panel { position: absolute; z-index: 5; left: 32px; top: 32px; width: min(440px, calc(100% - 64px)); padding: 32px; border-radius: var(--r-lg); display: grid; gap: 18px; }
.map__panel form { display: flex; gap: 8px; }
.map__panel .field { flex: 1; padding-right: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); font-size: .8125rem; color: var(--text-2); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { color: var(--text); background: rgba(255,255,255,.1); }
.chip[aria-pressed="true"] { color: var(--b300); background: rgba(61,182,245,.16); border-color: rgba(61,182,245,.5); }
.recover { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; display: grid; gap: 6px; }
.map__zoom { position: absolute; z-index: 5; right: 32px; top: 32px; display: grid; border-radius: 14px; overflow: hidden; }
.map__zoom button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; color: var(--text); }
.map__zoom button:hover { background: rgba(255,255,255,.08); }
.map__zoom button + button { border-top: 1px solid rgba(255,255,255,.08); }
.map__result { position: absolute; z-index: 5; right: 32px; bottom: 32px; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 20px; max-width: calc(100% - 64px); transform: translateY(12px); opacity: 0; transition: opacity .35s, transform .45s var(--ease-out), border-color .3s; }
.map__result.is-on { opacity: 1; transform: none; }
.map__result.is-ok { border-color: rgba(62,224,161,.4); }
.map__result.is-ask { border-color: rgba(245,192,74,.45); }
.map__result .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(62,224,161,.15); color: var(--ok); flex: none; }
.map__result.is-ask .ico { background: rgba(245,192,74,.14); color: var(--warn); }
.map__result p { margin: 0; font-size: .8125rem; color: var(--text-2); }
.map__result strong { display: block; font-size: .9375rem; }
.map__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8125rem; color: var(--text-2); }
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.map__legend i { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- WHY / FAQ ---------- */
.why { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 32px clamp(48px, 7vw, 96px); }
.why__intro { display: grid; gap: 24px; align-content: start; }

/* ---------- CONTACT ---------- */
.contact {
  position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, #0E6FCF 0%, #0A3E86 55%, #06152E 100%);
  padding: clamp(56px, 6vw, 80px) clamp(24px, 4.4vw, 64px);
  display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 48px; align-items: center;
}
.contact__bg { position: absolute; inset: 10% -5% -30%; z-index: -1; background: url("../img/hero-wave.jpg") center / cover; mix-blend-mode: screen; opacity: .5; animation: drift 22s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 48%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 48%); }
.contact__copy { display: grid; gap: 24px; color: #fff; }
.contact__copy .phone { font-size: clamp(2rem, 3vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.contact__copy p { margin: 0; color: rgba(255,255,255,.78); }
.form { display: grid; gap: 16px; padding: 32px; border-radius: var(--r-lg); background: rgba(6, 21, 46, .55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; }
.form label { display: grid; gap: 8px; font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.85); }
.form input, .form textarea, .form select { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); padding: 14px 16px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.form textarea { min-height: 112px; resize: vertical; }
.form ::placeholder { color: rgba(255,255,255,.72); }
.form input:focus, .form textarea:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); background: rgba(255,255,255,.12); }
.form [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255,180,171,.18); }
.form .err { display: none; font-weight: 400; font-size: .8125rem; color: var(--err); }
.form [aria-invalid="true"] + .err { display: block; }
.form .btn { margin-top: 8px; }
.form.is-sent .btn { background: var(--ok); color: #03231a; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: .8125rem !important; color: rgba(255,255,255,.78) !important; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: #fff; flex: none; }

/* ---------- FOOTER ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding: 40px clamp(16px, 2.6vw, 40px) 24px; color: var(--text-3); font-size: .875rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer nav a { color: var(--text-2); transition: color .2s; }
.footer nav a:hover { color: var(--text); }
.footer__left { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

/* ---------- SUBPAGES ---------- */
.subhero { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 640px); gap: 32px; align-items: end; min-height: 560px; padding: 24px 24px 24px clamp(24px, 3.8vw, 56px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.subhero__copy { display: grid; gap: 24px; align-content: end; padding: 128px 0 40px; }
.subhero__copy > * { opacity: 0; animation: fadeUp .9s var(--ease-out) forwards; animation-delay: calc(.1s + var(--i, 0) * .09s); }
.crumbs { display: flex; gap: 10px; font-size: .875rem; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.subhero__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 8 / 5; align-self: end; view-transition-name: page-media; }
.subhero__media img { width: 100%; height: 100%; object-fit: cover; }
.art { position: relative; width: 100%; height: 100%; animation: zoomIn 1.6s var(--ease-out) both; }
.art__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
/* router: rozchodzące się fale */
.art .ripple { fill: none; stroke: #6FD3FF; stroke-width: 3; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; opacity: 0; animation: ripple 3.6s cubic-bezier(.2,.6,.3,1) infinite; animation-delay: calc(var(--i) * -1.2s); }
.art .ripple--glow { stroke-width: 10; filter: blur(6px); }
@keyframes ripple { 0% { transform: scale(.85); opacity: 0; } 18% { opacity: .85; } 100% { transform: scale(2.3); opacity: 0; } }
.art .led { fill: #9BE6FF; animation: blink 2.2s steps(1) infinite; animation-delay: calc(var(--i) * .7s); }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
/* telewizja: płynąca zorza na ekranie */
.art .blob { mix-blend-mode: screen; opacity: .45; transform-box: fill-box; transform-origin: center; animation: float 9s ease-in-out infinite alternate; }
.art .blob:nth-child(2) { animation-duration: 11s; animation-delay: -3s; opacity: .4; }
.art .blob:nth-child(3) { animation-duration: 13s; animation-delay: -6s; opacity: .35; }
@keyframes float { 0% { transform: translate(-90px, 30px) scale(.9); } 50% { transform: translate(60px, -40px) scale(1.15); } 100% { transform: translate(120px, 20px) scale(.95); } }
.art .sweep { mix-blend-mode: screen; animation: sweep 6.5s var(--ease) infinite; }
@keyframes sweep { 0%, 35% { transform: translateX(-200px); } 75%, 100% { transform: translateX(1300px); } }
/* kamera: wiązka skanowania */
.art .beam { fill: none; stroke: #8FDDFF; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 520; stroke-dashoffset: 520; opacity: 0; animation: beam 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * .16s); }
@keyframes beam { 0% { stroke-dashoffset: 520; opacity: 0; } 25% { stroke-dashoffset: 0; opacity: .9; } 65% { stroke-dashoffset: 0; opacity: .6; } 100% { stroke-dashoffset: -520; opacity: 0; } }
.art .gridline { stroke: #6FD3FF; stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; animation: gridf 4.8s ease-in-out infinite; animation-delay: calc(1s + var(--i) * .12s); }
@keyframes gridf { 0%, 100% { opacity: 0; } 30%, 60% { opacity: .55; } }
.art .scanband { mix-blend-mode: screen; animation: scan 2.8s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes scan { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(-430px); opacity: 0; } }
.art .lens { mix-blend-mode: screen; transform-box: fill-box; transform-origin: center; animation: lens 2.4s ease-in-out infinite; }
@keyframes lens { 0%, 100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes zoomIn { from { transform: scale(1.12); } to { transform: none; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.onpage { position: sticky; top: 96px; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 28px; border-radius: 24px; background: rgba(8,13,22,.86); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow-x: auto; scrollbar-width: none; }
.onpage::-webkit-scrollbar { display: none; }
.onpage > span { font-weight: 600; font-size: .875rem; color: var(--text-3); margin-right: 16px; white-space: nowrap; }
.onpage a { padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--text-2); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; transition: color .2s, background .2s; }
.onpage a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.onpage a.is-active { color: var(--text); background: rgba(255,255,255,.12); }
.onpage a.is-active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--b400); }
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 16px; counter-reset: step; }
.steps > div { border-top: 1px solid var(--line-strong); padding-top: 28px; display: grid; gap: 14px; align-content: start; position: relative; }
.steps > div::before { counter-increment: step; content: counter(step); font-size: 3.5rem; font-weight: 300; line-height: 1; color: var(--b400); letter-spacing: -.03em; }
.steps > div::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, #86D6FF, #1E9BE0); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 200ms); }
.steps > div.is-in::after { transform: scaleX(1); }
.steps h3 { font-size: 1.5rem; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--text-2); max-width: 24em; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px var(--pad); border-radius: var(--r-xl); }
.split--plain { padding: 24px var(--pad) 24px 24px; }


/* grafiki z animacją w sekcjach split */
.split__media--art { background: transparent; aspect-ratio: 4 / 3; overflow: visible; }
.split__media--art .art { transform: none; animation: none; }
.split__media--dark { background: #000; aspect-ratio: 1160 / 698; overflow: hidden; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(8,18,31,.55); }
.split__media--dark .art { -webkit-mask-image: none; mask-image: none; }
.split__media--dark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.split__media { position: relative; }
@media (min-width: 961px) { .form .btn--block { width: auto; justify-self: end; gap: 24px; } }

/* ---------- View transitions ---------- */
::view-transition-old(root) { animation: vtOut .35s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav[data-open] .nav__links {
    display: grid; position: absolute; top: calc(100% + 8px); left: 0; right: 0; border-radius: 24px; padding: 12px;
    background: rgba(8, 13, 22, .96); animation: fadeUp .35s var(--ease-out);
  }
  .nav[data-open] .nav__links a { padding: 16px 20px; font-size: 1.125rem; }
  .nav__cta .btn--secondary { display: none; }
  .svc-row { grid-template-columns: 1fr auto; }
  .svc-row > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .svc-row__img { display: none; }
  .ptable { grid-template-columns: repeat(4, minmax(180px, 1fr)); overflow-x: auto; }
  .ptable__col--labels { display: none; }
}
@media (max-width: 960px) {
  :root { --gap: 12px; }
  .hero { height: auto; max-height: none; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__copy > .status { position: static; margin-bottom: 0; }
  .check { width: 100%; }
  .split, .split--rev, .split--plain { grid-template-columns: 1fr; padding: 16px; }
  .split--rev .split__media { order: 0; }
  .split__body { padding: 8px 8px 24px; }
  .why, .grid-2, .biz, .contact, .subhero { grid-template-columns: 1fr; }
  .subhero { min-height: 0; padding: 16px; }
  .subhero__copy { padding: 112px 8px 8px; }
  .steps { grid-template-columns: 1fr; }
  .map { height: auto; display: flex; flex-direction: column; padding-bottom: 16px; }
  .map__viewport { position: relative; inset: auto; height: 460px; order: 2; }
  .map__panel { position: relative; left: auto; top: auto; margin: 16px; width: auto; padding: 24px; order: 1; }
  .map__panel form { flex-wrap: wrap; }
  .map__panel form .btn { flex: 1 0 auto; }
  .map__zoom { display: none; }
  .nav { left: 16px; right: 16px; top: 16px; }
  .ptable { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .ptable__col { min-width: 240px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 24px; background: var(--raised); }
}
@media (max-width: 560px) {
  .logo__word { font-size: 28px; }
  .nav__cta .btn--primary { display: none; }
  .hero h1 { font-size: 2.75rem; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__media { transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
