/* =========================================================================
   CERTROOM — Certification / Compliance / Engineering
   Paleta: wyłącznie czerń, biel i odcienie szarości.
   ========================================================================= */

/* ---------- Fonty (hostowane lokalnie) ---------- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokeny ---------- */
:root {
  --k0: #000000; --k1: #080808; --k2: #111111; --k3: #181818; --k4: #222222; --k5: #333333;
  --g6: #666666; --g9: #999999; --gc: #CCCCCC; --w2: #F2F2F2; --w7: #F7F7F7; --w: #FFFFFF;

  --bg: var(--w); --fg: var(--k1); --fg-2: var(--k5); --fg-3: var(--g6);
  --line: rgba(0,0,0,.12); --line-2: rgba(0,0,0,.06); --panel: var(--w7);

  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec-y: clamp(88px, 12vw, 168px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
.sec--dark, .site-footer, .mobile-menu, .hero {
  --bg: var(--k1); --fg: var(--w2); --fg-2: var(--gc); --fg-3: var(--g9);
  --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.07); --panel: var(--k2);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--w); color: var(--k1);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7vw, 7.25rem); letter-spacing: -0.05em; line-height: .94; }
h2 { font-size: clamp(2.1rem, 4.6vw, 4.5rem); letter-spacing: -0.045em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.15; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--k1); color: var(--w); }
.sec--dark ::selection, .hero ::selection, .site-footer ::selection { background: var(--w); color: var(--k1); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; background: var(--k1); color: var(--w); font-family: var(--f-mono); font-size: .8125rem; text-decoration: none; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sec { position: relative; padding: var(--sec-y) 0; background: var(--bg); color: var(--fg); }
.sec--mute { --bg: var(--w7); --panel: var(--w); }
.sec--tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec + .sec:not(.sec--dark):not(.sec--mute) { border-top: 1px solid var(--line); }

/* ---------- Mikroteksty / etykiety ---------- */
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.tag b { color: var(--fg); font-weight: 600; }
.tag::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; }
.brk { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; padding: 5px 9px; border: 1px solid var(--line); color: var(--fg-2); white-space: nowrap; display: inline-block; line-height: 1.2; }
.brk-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

.sec-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head .tag { grid-column: 1 / -1; margin-bottom: -8px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--fg-2); font-size: 1.125rem; max-width: 520px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--fg-2); letter-spacing: -0.01em; }

/* ---------- Przyciski ---------- */
.btn {
  --b-bg: var(--k1); --b-fg: var(--w); --b-bd: var(--k1);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 26px;
  font-family: var(--f-display); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; line-height: 1;
  color: var(--b-fg); background: var(--b-bg); border: 1px solid var(--b-bd); border-radius: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-fg); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--b-bg); }
.btn .arr { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--k1); --b-bd: rgba(0,0,0,.25); }
.btn--ghost::before { background: var(--k1); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--w); }
.sec--dark .btn, .hero .btn, .site-footer .btn, .mobile-menu .btn { --b-bg: var(--w); --b-fg: var(--k1); --b-bd: var(--w); }
.sec--dark .btn--ghost, .hero .btn--ghost, .site-footer .btn--ghost { --b-bg: transparent; --b-fg: var(--w); --b-bd: rgba(255,255,255,.3); }
.sec--dark .btn--ghost::before, .hero .btn--ghost::before, .site-footer .btn--ghost::before { background: var(--w); }
.sec--dark .btn--ghost:hover, .hero .btn--ghost:hover, .site-footer .btn--ghost:hover,
.sec--dark .btn--ghost:focus-visible, .hero .btn--ghost:focus-visible { color: var(--k1); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .btn-row--stack .btn { width: 100%; } }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow .arr { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }

.arr { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); color: var(--w); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header.is-solid { background: rgba(255,255,255,.92); color: var(--k1); border-color: rgba(0,0,0,.08); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { position: relative; display: block; flex: none; width: 172px; height: 24px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s var(--ease); }
.brand .logo-dark { opacity: 0; }
.site-header.is-solid .brand .logo-light { opacity: 0; }
.site-header.is-solid .brand .logo-dark { opacity: 1; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav a { position: relative; display: block; padding: 10px 12px; font-family: var(--f-display); font-size: .9375rem; font-weight: 400; letter-spacing: -0.01em; text-decoration: none; opacity: .72; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.site-header .btn { --b-bg: var(--w); --b-fg: var(--k1); --b-bd: var(--w); min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.site-header.is-solid .btn { --b-bg: var(--k1); --b-fg: var(--w); --b-bd: var(--k1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; position: relative; border-radius: 0; opacity: .9; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
@media (max-width: 1080px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: inline-block; }
}
@media (max-width: 520px) { :root { --header-h: 64px; } .brand { width: 148px; height: 21px; } }

/* ---------- Menu mobilne (pełnoekranowe) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--k1); color: var(--w2);
  display: flex; flex-direction: column; padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.mobile-menu-top .brand img { opacity: 1; }
.menu-close { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: var(--w); cursor: pointer; position: relative; }
.menu-close::before, .menu-close::after { content: ""; position: absolute; left: 11px; right: 11px; top: 21px; height: 1.5px; background: currentColor; }
.menu-close::before { transform: rotate(45deg); } .menu-close::after { transform: rotate(-45deg); }
.mobile-menu nav { flex: 1; display: flex; align-items: center; padding: 24px 0; }
.mobile-menu ol { list-style: none; width: 100%; counter-reset: mm; }
.mobile-menu li { border-top: 1px solid rgba(255,255,255,.1); counter-increment: mm; overflow: hidden; }
.mobile-menu li:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu li a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font-family: var(--f-display); font-size: clamp(1.8rem, 8vw, 3rem); letter-spacing: -0.04em; line-height: 1.1; text-decoration: none; transform: translateY(100%); transition: transform .6s var(--ease); }
.mobile-menu li a::before { content: "0" counter(mm); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; color: var(--g9); transform: translateY(-.9em); }
.mobile-menu li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.menu-open .mobile-menu li a { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .04s; } .menu-open .mobile-menu li:nth-child(3) a { transition-delay: .08s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .12s; } .menu-open .mobile-menu li:nth-child(5) a { transition-delay: .16s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .2s; }
.mobile-menu-foot { display: grid; gap: 18px; flex: none; }
.mobile-menu-foot .btn { width: 100%; }
.mobile-menu-foot .contact-mini { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--f-mono); font-size: .8125rem; color: var(--gc); }
.mobile-menu-foot .contact-mini a { text-decoration: none; }

/* ---------- Siatka techniczna tła ---------- */
.grid-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.grid-bg::before {
  content: ""; position: absolute; inset: -80px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: grid-drift 40s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 45%, #000 20%, transparent 80%);
}
.sec:not(.sec--dark) .grid-bg::before { background-image: linear-gradient(to right, rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,.05) 1px, transparent 1px); }
@keyframes grid-drift { to { transform: translate(80px, 80px); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--k1); color: var(--w2); padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 0; }
.hero-in { position: relative; z-index: 1; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-bottom: clamp(32px, 5vw, 56px); color: var(--g9); }
.hero-meta span { display: inline-flex; gap: 10px; align-items: center; }
.hero-meta .dot { width: 6px; height: 6px; background: var(--w); border-radius: 50%; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 { margin: 0; }
.h1-kicker { display: block; font-family: var(--f-mono); font-size: clamp(.75rem, 1vw, .875rem); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--g9); line-height: 1.4; margin-bottom: 28px; }
.h1-main { display: block; font-size: clamp(3rem, 8.2vw, 8.25rem); }
.h1-main .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.h1-main .ln > span { display: inline-block; }
.h1-main .muted { color: var(--g6); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-side { padding-bottom: 8px; }
.hero-side .lead { color: var(--gc); margin-bottom: 32px; }
.hero-schema { margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid rgba(255,255,255,.12); }
.hero-schema svg { width: 100%; height: auto; }
.hero-schema { overflow-x: auto; scrollbar-width: thin; }
@media (max-width: 760px) { .hero-schema svg { width: 900px; max-width: none; } }
.hero--page { padding-bottom: clamp(64px, 9vw, 120px); }
.hero--page .h1-main { font-size: clamp(2.75rem, 6.6vw, 6.5rem); }
.hero--page .lead { max-width: 640px; margin-top: 28px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-side { max-width: 560px; }
}
@media (max-width: 520px) {
  .h1-main { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .hero--page .h1-main { font-size: clamp(2.4rem, 11.5vw, 3.2rem); }
  .hero-meta { font-size: .6875rem; }
}

/* Linie rysowane */
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.is-drawn .draw, .no-js .draw { animation: draw 2.4s var(--ease) forwards; }
.is-drawn .draw:nth-of-type(2) { animation-delay: .15s; } .is-drawn .draw:nth-of-type(3) { animation-delay: .3s; }
.is-drawn .draw:nth-of-type(4) { animation-delay: .45s; } .is-drawn .draw:nth-of-type(5) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.flow { stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.pulse { animation: pulse 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Marquee norm ---------- */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; gap: 0; }
.marquee li { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--f-mono); font-size: .875rem; letter-spacing: .04em; white-space: nowrap; color: var(--fg-2); }
.marquee li::after { content: "/"; color: var(--fg-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kafle obszarów ---------- */
.areas { list-style: none; border-top: 1px solid var(--line); }
.area { border-bottom: 1px solid var(--line); }
.area a { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr) 56px; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px) 0; text-decoration: none; isolation: isolate; }
.area a::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--k1); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.area .num { font-family: var(--f-mono); font-size: .8125rem; color: var(--fg-3); transition: color .4s; }
.area h3 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: -0.04em; transition: color .4s, transform .5s var(--ease); }
.area p { margin: 0; color: var(--fg-2); font-size: 1rem; transition: color .4s; }
.area .go { width: 56px; height: 56px; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .4s, color .4s, transform .5s var(--ease); }
.area .go .arr { width: 20px; height: 20px; }
.area a:hover::before, .area a:focus-visible::before { transform: scaleY(1); }
.area a:hover .num, .area a:hover p, .area a:focus-visible p { color: var(--gc); }
.area a:hover h3, .area a:focus-visible h3 { color: var(--w); transform: translateX(12px); }
.area a:hover .go, .area a:focus-visible .go { color: var(--w); border-color: rgba(255,255,255,.4); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .area a { grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 8px 16px; }
  .area p { grid-column: 2 / 4; }
  .area .go { grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
}

/* ---------- Triada / supermoce ---------- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.triad > div { position: relative; padding: clamp(28px, 3.5vw, 48px); min-height: 280px; display: flex; flex-direction: column; }
.triad > div + div { border-left: 1px solid var(--line); }
.triad .mono { color: var(--fg-3); }
.triad h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 56px 0 12px; }
.triad p { margin: 0; color: var(--fg-2); font-size: 1rem; }
.triad .op { position: absolute; top: 50%; right: -17px; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .875rem; transform: translateY(-50%); }
@media (max-width: 860px) {
  .triad { grid-template-columns: 1fr; }
  .triad > div { min-height: 0; }
  .triad > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .triad .op { top: auto; bottom: -17px; right: 50%; transform: translateX(50%); }
  .triad h3 { margin-top: 28px; }
}

.powers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; counter-reset: pw; }
.power { position: relative; background: var(--bg); padding: clamp(24px, 3vw, 40px); counter-increment: pw; grid-column: span 2; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; transition: background-color .4s var(--ease); }
.power:nth-child(4), .power:nth-child(5) { grid-column: span 3; }
.power:nth-child(6) { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; background: var(--panel); }
.power::before { white-space: nowrap; flex: none; content: "[ 0" counter(pw) " ]"; font-family: var(--f-mono); font-size: .75rem; color: var(--fg-3); letter-spacing: .08em; }
.power p { margin: 0; font-family: var(--f-display); font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; color: var(--fg); }
.power .brk-list { margin-top: 16px; }
.power:hover { background: var(--panel); }
@media (max-width: 980px) { .powers { grid-template-columns: 1fr 1fr; } .power, .power:nth-child(4), .power:nth-child(5) { grid-column: span 1; } .power:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .powers { grid-template-columns: 1fr; } .power:last-child { grid-column: auto; } .power { min-height: 0; } }

/* ---------- Liczniki ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); list-style: none; margin-top: clamp(48px, 6vw, 80px); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-v { display: block; font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4.5rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat-l { display: block; color: var(--fg-2); font-size: .9375rem; line-height: 1.45; max-width: 240px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); } }

/* ---------- Rynki ---------- */
.markets { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.market { position: relative; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; min-height: 360px; transition: background-color .4s var(--ease); }
.market + .market { border-left: 1px solid var(--line); }
.market-code { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.06em; line-height: .9; }
.market h3 { font-size: 1.125rem; margin: 0; letter-spacing: -0.01em; }
.market p { margin: 0; color: var(--fg-2); font-size: .9375rem; }
.market .brk-list { margin-top: auto; }
.market:hover { background: var(--panel); }
.market .coord { position: absolute; top: 20px; right: 20px; font-family: var(--f-mono); font-size: .6875rem; color: var(--fg-3); }
@media (max-width: 1024px) { .markets { grid-template-columns: 1fr 1fr; } .market:nth-child(3) { border-left: 0; } .market:nth-child(n+3) { border-top: 1px solid var(--line); } .market { min-height: 300px; } }
@media (max-width: 560px) { .markets { grid-template-columns: 1fr; } .market + .market { border-left: 0; border-top: 1px solid var(--line); } .market { min-height: 0; } }

/* ---------- Tabela norm (spec sheet) ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec caption { text-align: left; padding-bottom: 16px; color: var(--fg-3); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-top: 1px solid var(--line); }
.spec thead th { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--fg-3); border-top: 0; padding-top: 0; }
.spec tbody th { font-family: var(--f-mono); font-weight: 500; font-size: .875rem; white-space: nowrap; width: 26%; }
.spec td { color: var(--fg-2); }
.spec td:last-child { font-family: var(--f-mono); font-size: .75rem; color: var(--fg-3); white-space: nowrap; text-align: right; padding-right: 0; }
.spec tbody tr { transition: background-color .25s; }
.spec tbody tr:hover { background: var(--panel); }
@media (max-width: 720px) {
  .spec thead { display: none; }
  .spec tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); padding: 14px 0; }
  .spec th, .spec td { border: 0; padding: 2px 0; width: auto; }
  .spec td:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .spec td:last-child { grid-row: 1; grid-column: 2; }
}

/* ---------- Pipeline / proces ---------- */
.pipeline { position: relative; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.pipeline::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease); }
.pipeline.is-visible::before, .no-js .pipeline::before { transform: scaleX(1); }
.pipe { position: relative; padding: 32px 20px 0 0; }
.pipe::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--fg); }
.pipe .mono { color: var(--fg-3); display: block; margin-bottom: 18px; }
.pipe h3 { font-size: 1.25rem; margin-bottom: 10px; }
.pipe p { margin: 0; font-size: .9375rem; color: var(--fg-2); }
@media (max-width: 1100px) { .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 48px; } }
@media (max-width: 640px) {
  .pipeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); row-gap: 0; margin-left: 4px; }
  .pipeline::before { top: 0; left: -1px; width: 1px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .pipeline.is-visible::before { transform: scaleY(1); }
  .pipe { padding: 0 0 36px 32px; }
  .pipe::before { top: 4px; left: -5px; }
}

/* Proces szczegółowy (Jak pracujemy) */
.process { list-style: none; border-top: 1px solid var(--line); counter-reset: st; }
.step { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 64px); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); position: relative; }
.step-no { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.06em; line-height: .85; color: var(--fg); }
.step-no small { display: block; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; color: var(--fg-3); margin-top: 14px; }
.step h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); margin-bottom: 14px; }
.step .en { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; color: var(--fg-3); display: block; margin-bottom: 14px; text-transform: uppercase; }
.step p { color: var(--fg-2); margin: 0; }
.step dl { margin: 0; display: grid; gap: 20px; }
.step dt { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.step dd { margin: 0; color: var(--fg-2); }
@media (max-width: 900px) { .step { grid-template-columns: 1fr; } }

/* ---------- Scenariusze Problem → Działanie → Efekt ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.case { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); transition: border-color .35s var(--ease), transform .45s var(--ease); }
.case:hover { border-color: var(--fg); transform: translateY(-4px); }
.case-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.case-body { padding: 22px; display: grid; gap: 20px; flex: 1; }
.case dt { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.case dt::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.case dd { margin: 0; }
.case .q { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; color: var(--fg); }
.case dd:not(.q) { color: var(--fg-2); font-size: .9375rem; }
@media (max-width: 1024px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cases { grid-template-columns: 1fr; } }

/* ---------- Aktualności ---------- */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; list-style: none; }
.chip { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--line); background: transparent; color: var(--fg-2); cursor: pointer; transition: all .25s var(--ease); border-radius: 0; }
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-item a { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr) 48px; gap: 24px; padding: 32px 0; text-decoration: none; align-items: start; transition: padding .45s var(--ease); }
.news-item a:hover { padding-left: 16px; }
.news-meta { display: grid; gap: 8px; color: var(--fg-3); }
.news-meta .cat { color: var(--fg); }
.news-item h3 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.news-item p { margin: 0; color: var(--fg-2); font-size: 1rem; }
.news-item .go { width: 48px; height: 48px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .45s var(--ease), background-color .3s, color .3s; }
.news-item .go .arr { width: 18px; height: 18px; }
.news-item a:hover .go { background: var(--fg); color: var(--bg); transform: rotate(-45deg); }
@media (max-width: 900px) { .news-item a { grid-template-columns: minmax(0, 1fr) 48px; } .news-meta { display: flex; gap: 16px; grid-column: 1 / -1; } .news-item p { grid-column: 1 / 2; } .news-item .go { grid-row: 2; grid-column: 2; } }

/* Artykuł */
.breadcrumbs { margin-bottom: 40px; color: var(--g9); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--g6); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--w); }
.article { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); }
.article-aside { display: grid; gap: 24px; align-content: start; position: sticky; top: calc(var(--header-h) + 32px); }
.article-aside dl { margin: 0; display: grid; gap: 16px; }
.article-aside dt { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.article-aside dd { margin: 4px 0 0; font-size: .9375rem; }
.prose { font-size: 1.125rem; line-height: 1.75; color: var(--k4); }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 2em 0 .6em; line-height: 1.1; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; }
.prose .lede { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; letter-spacing: -0.02em; color: var(--k1); }
.timeline { list-style: none; border-left: 1px solid var(--line); margin: 1.5em 0 2em; padding: 0 !important; }
.timeline li { position: relative; padding: 0 0 22px 28px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .5em; width: 9px; height: 9px; background: var(--w); border: 1px solid var(--k1); }
.timeline li.is-now::before { background: var(--k1); }
.timeline time { display: block; font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; color: var(--g6); }
.source { margin-top: 2.5em; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--g6); }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .article-aside { position: static; grid-template-columns: 1fr 1fr; } }

/* ---------- Usługi (moduły) ---------- */
.svc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.svc-nav { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.svc-nav ol { list-style: none; border-top: 1px solid var(--line); }
.svc-nav a { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-size: .975rem; color: var(--fg-3); transition: color .25s, padding .35s var(--ease); }
.svc-nav a span { font-family: var(--f-mono); font-size: .75rem; padding-top: 3px; }
.svc-nav a:hover, .svc-nav a.is-active { color: var(--fg); }
.svc-nav a.is-active { padding-left: 10px; }
.svc { padding-bottom: clamp(64px, 8vw, 120px); margin-bottom: clamp(64px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.svc-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; color: var(--fg-3); }
.svc h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); margin-bottom: 24px; }
.svc .lead { max-width: 760px; margin-bottom: 40px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 32px; }
.svc-grid > div { background: var(--bg); padding: clamp(22px, 3vw, 36px); }
.svc-grid h3 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin-bottom: 18px; }
.svc-grid .problem p { font-family: var(--f-display); font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.3; }
.svc-grid .problem p:last-child, .svc-grid .solution p:last-child { margin: 0; }
.svc-grid .solution p { color: var(--fg-2); }
.svc-grid .full { grid-column: 1 / -1; }
.scope { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; counter-reset: sc; }
.scope li { position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); counter-increment: sc; color: var(--fg-2); font-size: 1rem; }
.scope li::before { content: counter(sc, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--f-mono); font-size: .75rem; color: var(--fg-3); }
.scope--one { grid-template-columns: 1fr; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 32px; }
.split2 > div { background: var(--bg); padding: clamp(22px, 3vw, 36px); }
.split2 .seg { font-family: var(--f-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.05em; margin-bottom: 6px; line-height: 1; }
.split2 .seg-sub { color: var(--fg-3); margin-bottom: 24px; display: block; }
.split2 .scope { grid-template-columns: 1fr; }
.split2 blockquote { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line); font-family: var(--f-display); font-size: 1.1rem; line-height: 1.35; letter-spacing: -0.015em; }
@media (max-width: 1024px) { .svc-layout { grid-template-columns: minmax(0, 1fr); } .svc-nav { position: static; } .svc-nav ol { display: flex; flex-wrap: wrap; gap: 0 20px; border: 0; } .svc-nav a { border: 0; padding: 6px 0; } .svc-nav a.is-active { padding-left: 0; text-decoration: underline; } }
@media (max-width: 760px) { .svc-grid, .split2, .scope { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; gap: 16px; align-items: center; padding: 26px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono { color: var(--fg-3); }
.faq summary h3 { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.faq summary .pm { position: relative; width: 32px; height: 32px; border: 1px solid var(--line); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 9px; right: 9px; top: 15px; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 48px 28px 72px; color: var(--fg-2); max-width: 900px; }
.faq .ans p:last-child { margin: 0; }
@media (max-width: 640px) { .faq summary { grid-template-columns: 36px minmax(0, 1fr) 32px; } .faq .ans { padding: 0 0 24px 52px; } }

/* ---------- O nas: bio / oś ---------- */
.bio { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.bio-card { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; border: 1px solid var(--line); }
.bio-card .bc-top { padding: 28px; border-bottom: 1px solid var(--line); display: grid; gap: 18px; }
.bio-card .bc-top img { width: 132px; height: auto; }
.bio-card h3 { margin: 0; font-size: 1.75rem; }
.bio-card .role { color: var(--fg-3); }
.bio-card dl { margin: 0; padding: 12px 28px 28px; }
.bio-card dl div { padding: 14px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 4px; }
.bio-card dt { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.bio-card dd { margin: 0; font-size: .9375rem; }
.bio-text p { color: var(--fg-2); font-size: 1.0625rem; }
.bio-text .first { font-family: var(--f-display); font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.3; letter-spacing: -0.025em; color: var(--fg); }
.bio-text blockquote { margin: 40px 0; padding: 32px 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.3; letter-spacing: -0.025em; }
@media (max-width: 900px) { .bio { grid-template-columns: 1fr; } .bio-card { position: static; } }

.path { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: pa; }
.path li { padding: 28px 24px 0 0; position: relative; counter-increment: pa; }
.path li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.path .mono { color: var(--fg-3); display: block; margin-bottom: 16px; }
.path h3 { font-size: 1.25rem; margin-bottom: 10px; }
.path p { color: var(--fg-2); font-size: .9375rem; margin: 0; }
@media (max-width: 900px) { .path { grid-template-columns: 1fr 1fr; row-gap: 32px; } .path li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .path { grid-template-columns: 1fr; } .path li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.principle { border-top: 1px solid var(--fg); padding-top: 24px; }
.principle .mono { color: var(--fg-3); display: block; margin-bottom: 20px; }
.principle h3 { margin-bottom: 12px; }
.principle p { color: var(--fg-2); margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta h2 { font-size: clamp(2.4rem, 5.6vw, 5.5rem); margin: 0; }
.cta p { color: var(--fg-2); font-size: 1.125rem; }
@media (max-width: 900px) { .cta-in { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); }
.contact-data { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.cd { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.cd .mono { color: var(--fg-3); }
.cd a, .cd span.v { font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; text-decoration: none; line-height: 1.25; }
.cd a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.cd address { font-style: normal; font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.4; }
.cd dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-family: var(--f-mono); font-size: .875rem; }
.cd dt { color: var(--fg-3); } .cd dd { margin: 0; }
.form { border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); background: var(--bg); }
.form-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 32px; color: var(--fg-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.field label .req { color: var(--fg); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--gc); border-radius: 0; padding: 10px 0 12px; outline: none;
  transition: border-color .25s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23080808' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; padding-right: 28px; cursor: pointer; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--k1); box-shadow: 0 1px 0 0 var(--k1); }
.field input::placeholder, .field textarea::placeholder { color: var(--g9); }
.field .err { font-size: .8125rem; color: var(--k1); font-family: var(--f-mono); display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-bottom-color: var(--k1); border-bottom-style: dashed; }
.field.is-invalid .err { display: block; }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; font-size: .9375rem; color: var(--fg-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--k5); -webkit-appearance: none; appearance: none; background: var(--w); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--k1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--k1); }
.check.is-invalid input { outline: 1px dashed var(--k1); outline-offset: 3px; }
.form-note { grid-column: 1 / -1; font-size: .8125rem; color: var(--fg-3); margin: 0; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border: 1px solid var(--k1); font-size: .9375rem; display: none; }
.form-status.is-shown { display: block; }
.form-status.is-ok { background: var(--k1); color: var(--w); }
.form[aria-busy="true"] .btn { opacity: .6; pointer-events: none; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Strony prawne ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(32px, 6vw, 96px); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.legal-toc ol { list-style: none; border-top: 1px solid var(--line); }
.legal-toc a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .875rem; text-decoration: none; color: var(--fg-3); }
.legal-toc a:hover { color: var(--fg); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--k1); color: var(--w2); position: relative; overflow: hidden; }
.footer-big { padding: clamp(80px, 11vw, 160px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid rgba(255,255,255,.1); position: relative; }
.footer-big .mono { color: var(--g9); display: block; margin-bottom: 28px; }
.footer-contact { display: grid; gap: 4px; }
.footer-contact a { font-family: var(--f-display); font-size: clamp(1.6rem, 4.2vw, 3.75rem); letter-spacing: -0.045em; line-height: 1; text-decoration: none; width: fit-content; max-width: 100%; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .6s var(--ease), color .3s; }
.footer-contact a:hover { background-size: 100% 1px; }
.footer-contact a + a { color: var(--g6); }
.footer-contact a + a:hover { color: var(--w); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0; }
.footer-logo { display: block; }
.footer-logo img { width: 100%; max-width: 340px; height: auto; }
.contact-logo { width: 360px; max-width: 100%; height: auto; margin-top: 24px; }
.eml-f .at { padding: 0 .15em; }
.footer-col h2 { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g9); font-weight: 500; margin: 0 0 20px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--gc); transition: color .2s; }
.footer-col a:hover { color: var(--w); text-decoration: underline; }
.footer-col address { font-style: normal; color: var(--gc); line-height: 1.8; }
.footer-col dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-family: var(--f-mono); font-size: .8125rem; color: var(--gc); }
.footer-col dt { color: var(--g9); } .footer-col dd { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; color: var(--g9); }
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.footer-bottom a { color: var(--gc); text-decoration: none; }
.footer-bottom a:hover { color: var(--w); text-decoration: underline; }
.footer-credit { margin: 0; width: 100%; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-credit a { color: var(--w); text-decoration: underline; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Animacje wejścia ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.is-visible { opacity: 1; transform: none; }
.js .h1-main .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 100ms); }
.js .is-ready .h1-main .ln > span { transform: none; }

.magnetic { will-change: transform; }

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .h1-main .ln > span { transform: none; }
  .draw { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}

/* ---------- Druk ---------- */
@media print {
  .site-header, .mobile-menu, .grid-bg, .hero-schema, .marquee, .form, .cta { display: none !important; }
  .hero, .sec--dark, .site-footer { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; }
}
