/* Nightcode — „Nocna zmiana”. Opis kierunku: DESIGN.md */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-500-normal-latin-ext.woff2") format("woff2"); 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: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-500-normal-latin.woff2") format("woff2"); 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: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/newsreader-600-normal-latin-ext.woff2") format("woff2"); 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: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/newsreader-600-normal-latin.woff2") format("woff2"); 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: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-500-italic-latin-ext.woff2") format("woff2"); 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: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-500-italic-latin.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400-normal-latin-ext.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400-normal-latin.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500-normal-latin-ext.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500-normal-latin.woff2") format("woff2"); 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; }

:root {
  /* Kolory z logo Nightcode (płaskie, bez gradientów) */
  --noc: #FFFFFF;          /* tła sekcji: biel i jasne szarości */
  --noc-2: #F5F7FA;
  --noc-3: #F0F2F7;
  --papier: #FFFFFF;
  --papier-2: #F8F9FB;
  --tusz: #1A1D2E;         /* tekst */
  --tusz-2: #5A6780;       /* tekst drugorzędny */
  --lampa: #6B2BD9;        /* fiolet z logo: godziny, etykiety, wyróżnienia */
  --lampa-ciemna: #6B2BD9;
  --turkus: #00A8E8;       /* turkus z logo: przyciski, znaczniki */
  --turkus-ciemny: #0077A8; /* turkus jako tekst na białym, kontrast AA */
  --mgla: #5A6780;
  --linia-noc: rgba(26, 29, 46, .12);
  --linia-dzien: rgba(26, 29, 46, .12);
  --okno: #1A1D2E;         /* ciemne okno z ilustracją miasta w hero */
  --okno-tekst: #F5F7FA;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 96rem;
  --gutter: clamp(1rem, 4vw, 4rem);
  --sekcja: clamp(4rem, 10vw, 8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--tusz);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.25rem); margin-bottom: 1.25rem; max-width: 34ch; }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.2; }
em, .serif em { font-style: italic; }
strong { font-weight: 600; }

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-size: .875rem; letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--turkus); color: var(--tusz); padding: .6rem 1rem; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 2px solid var(--lampa); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sekcja); position: relative; }
.sec-tight { padding-block: calc(var(--sekcja) * .6); }
/* Dwie ciemne sekcje pod sobą: bez podwójnego odstępu. */
#realizacje + #case-study { padding-top: calc(var(--sekcja) * .35); }

/* Tony sekcji: noc → świt → dzień */
.tone-night { background: var(--noc); color: var(--tusz); }
.tone-night-2 { background: var(--noc-2); color: var(--tusz); }
.tone-night-3 { background: var(--noc-3); color: var(--tusz); }
.tone-paper { background: var(--papier); color: var(--tusz); }
.tone-paper-2 { background: var(--papier-2); color: var(--tusz); }
.tone-paper .muted, .tone-paper-2 .muted { color: var(--tusz-2); }
.muted { color: var(--mgla); }

.eyebrow {
  font-family: var(--mono); font-size: .8125rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--lampa); margin-bottom: 1.25rem;
}
.tone-paper .eyebrow, .tone-paper-2 .eyebrow { color: var(--lampa-ciemna); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 48rem; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: 500 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid currentColor; border-radius: 3px; background: transparent; color: inherit;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-lamp { background: var(--turkus); border-color: var(--turkus); color: var(--tusz); }
@media (hover: hover) {
  .btn:hover { background: var(--tusz); color: #FFFFFF; border-color: var(--tusz); }
  .btn-lamp:hover { background: #3DBDF0; border-color: #3DBDF0; color: var(--tusz); }
  .tone-paper .btn:not(.btn-lamp):hover, .tone-paper-2 .btn:not(.btn-lamp):hover { background: var(--tusz); color: var(--papier); border-color: var(--tusz); }
}
.link-arrow { display: inline-flex; gap: .4rem; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .1rem; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
@media (hover: hover) { .link-arrow:hover::after { transform: translateX(4px); } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 2rem; }

/* ===== Nagłówek ===== */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); color: var(--tusz);
  border-bottom: 1px solid var(--linia-noc);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .top { backdrop-filter: blur(8px); } }
.top-bar { display: flex; align-items: center; gap: 1.25rem; min-height: var(--top-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 28px; height: 32px; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.top-clock { color: var(--lampa); white-space: nowrap; }
.top[data-tone="paper"] .top-clock { color: var(--lampa-ciemna); }
.top-city { opacity: .7; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; }
.nav > a:not(.btn), .nav-trigger { text-decoration: none; padding-block: .4rem; border-bottom: 1px solid transparent; }
.nav > a:not(.btn):hover, .nav-trigger:hover { border-bottom-color: currentColor; }
.nav-cta { min-height: 2.6rem; padding: .5rem 1.1rem; }
.nav-group { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: .4rem; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub {
  list-style: none; position: absolute; top: calc(100% + .9rem); left: -1rem; min-width: 17rem;
  padding: .5rem 0; background: #FFFFFF; color: var(--tusz); box-shadow: 0 12px 30px rgba(26, 29, 46, .08);
  border: 1px solid var(--linia-noc); display: none;
}
.nav-trigger[aria-expanded="true"] + .nav-sub { display: block; }
.nav-sub a { display: block; padding: .6rem 1rem; text-decoration: none; }
.nav-sub a:hover { background: var(--noc-2); color: var(--lampa); }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .top-clock { margin-left: auto; }
  .nav-toggle {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
    background: none; border: 1px solid currentColor; border-radius: 3px; color: inherit; cursor: pointer;
  }
  .nav-toggle span[aria-hidden] { width: 18px; height: 8px; border-block: 1.5px solid currentColor; transition: height .25s var(--ease); }
  .nav-toggle[aria-expanded="true"] span[aria-hidden] { height: 1.5px; border-bottom: 0; }
  .nav {
    position: fixed; inset: var(--top-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; overflow-y: auto;
    background: #FFFFFF; color: var(--tusz); font-size: 1.15rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a:not(.btn), .nav-trigger { padding-block: .9rem; border-bottom: 1px solid var(--linia-noc); width: 100%; text-align: left; justify-content: space-between; }
  .nav-sub { position: static; border: 0; padding: 0 0 .5rem 1rem; min-width: 0; background: none; }
  .nav-cta { margin-top: 1.5rem; justify-content: center; }
}
@media (max-width: 420px) { .top-city { display: none; } }

/* ===== Hero ===== */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: end; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.hero-kicker { font-family: var(--mono); font-size: .8125rem; color: var(--mgla); margin-bottom: 1.5rem; }
.hero-kicker strong { color: var(--lampa); font-weight: 500; }
.hero-title { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-family: var(--sans); font-weight: 500; letter-spacing: 0; line-height: 1.45; color: var(--mgla); max-width: 42rem; margin-top: 1.75rem; }
.hero-claim { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.025em; margin: 0; max-width: 16ch; }
.hero-claim em { color: var(--lampa); }

/* Hero: panel demo (static/js/hero-demo.js). Kroki scenariusza sterowane klasami: .is-in, .scan, .on, .go */
.demo { position: relative; background: #FFFFFF; border: 1px solid var(--linia-noc); border-radius: 14px; box-shadow: 0 1px 2px rgba(26, 29, 46, .04), 0 24px 60px -12px rgba(26, 29, 46, .18); overflow: hidden; }
.demo::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(0, 168, 232, .10), transparent); pointer-events: none; }
.demo-bar { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--linia-noc); font-size: .72rem; color: var(--mgla); background: var(--noc-2); }
.demo-dots { display: flex; gap: .35rem; }
.demo-dots i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(26, 29, 46, .15); }
.demo-time { color: var(--lampa); font-weight: 500; }
.demo-body { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) 2.6rem minmax(0, 1fr); align-items: center; padding: clamp(1.1rem, 2.4vw, 1.75rem); min-height: 23.5rem; }
.demo-label { display: flex; align-items: center; gap: .45rem; font-size: .7rem; color: var(--mgla); margin: 0 0 .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-label strong { color: var(--tusz); font-weight: 600; }
.demo-pulse { flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--turkus); box-shadow: 0 0 0 0 rgba(0, 168, 232, .5); animation: demo-ping 1.8s ease-out infinite; }
@keyframes demo-ping { 70%, 100% { box-shadow: 0 0 0 .5rem rgba(0, 168, 232, 0); } }

/* Dokument wpada, skan przechodzi, pola zapalają się po kolei */
.doc { position: relative; background: #FFFFFF; border: 1px solid var(--linia-noc); border-radius: 10px; padding: 1rem; box-shadow: 0 10px 30px -10px rgba(26, 29, 46, .22); overflow: hidden;
  opacity: 0; transform: translateX(-18px) rotate(-2.5deg) scale(.97); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.doc.is-in { opacity: 1; transform: none; }
.doc.is-out { opacity: 0; transform: translateX(26px) scale(.96); transition-duration: .45s; }
.doc-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin: 0 0 .6rem; }
.doc-lines { display: grid; gap: .35rem; margin-bottom: .8rem; }
.doc-lines i { height: .4rem; border-radius: 3px; background: var(--noc-3); }
.doc-lines i:nth-child(2) { width: 82%; } .doc-lines i:nth-child(3) { width: 58%; }
.doc-photo { position: relative; margin: 0 0 .8rem; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--noc-3); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-photo b { position: absolute; left: 8%; top: 14%; width: 84%; height: 76%; border: 2px solid #7FD6F7; border-radius: 3px; opacity: 0; transform: scale(1.08); transition: opacity .4s ease, transform .6s var(--ease); }
.doc.scan .doc-photo b, .doc-photo.on b { opacity: 1; transform: none; }
.doc-fields { display: grid; gap: .35rem; margin: 0; }
.doc-fields > div { display: grid; grid-template-columns: 4.3rem 1fr; align-items: center; gap: .5rem; padding: .35rem .5rem; border-radius: 6px; border-left: 2px solid transparent; font-size: .8rem; transition: background .35s ease, border-color .35s ease; }
.doc-fields dt { font-family: var(--mono); font-size: .68rem; color: var(--mgla); }
.doc-fields dd { margin: 0; font-weight: 600; color: var(--tusz); clip-path: inset(0 100% 0 0); transition: clip-path .5s steps(14, end); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-fields > .on { background: rgba(0, 168, 232, .08); border-left-color: var(--turkus); }
.doc-fields > .on dd { clip-path: inset(0 0 0 0); }
.doc-scan { position: absolute; left: 0; right: 0; top: 0; height: 38%; background: linear-gradient(to bottom, transparent, rgba(0, 168, 232, .14) 85%, rgba(0, 168, 232, .0)); border-bottom: 2px solid var(--turkus); opacity: 0; transform: translateY(-100%); pointer-events: none; }
.doc.scan .doc-scan { animation: doc-skan 1.25s cubic-bezier(.5, 0, .5, 1) both; }
@keyframes doc-skan { 0% { opacity: 0; transform: translateY(-100%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(270%); } }

/* Łącznik z „AI” i paczką lecącą do systemu */
.demo-link { position: relative; align-self: stretch; display: grid; place-items: center; }
.demo-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed rgba(26, 29, 46, .18); }
.demo-ai { position: relative; z-index: 1; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--tusz); color: #7FD6F7; font-size: .68rem; font-weight: 600; transition: box-shadow .4s ease, transform .4s var(--ease); }
.demo.think .demo-ai { box-shadow: 0 0 0 5px rgba(107, 43, 217, .14), 0 0 0 10px rgba(0, 168, 232, .08); transform: scale(1.06); }
.demo-link::after { content: ""; position: absolute; top: calc(50% - 4px); left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--lampa); opacity: 0; }
.demo.go .demo-link::after { animation: demo-lot .6s var(--ease) both; }
@keyframes demo-lot { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* Lista w systemie: nowy wiersz wsuwa się na górę */
.demo-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.demo-rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--linia-noc); border-radius: 8px; background: #FFFFFF; font-size: .8rem; color: var(--tusz-2); }
.demo-rows li span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-rows li:first-child { color: var(--tusz); font-weight: 600; }
.demo-rows li.new { animation: demo-wiersz .6s var(--ease) both; border-color: rgba(0, 168, 232, .45); box-shadow: 0 6px 18px -8px rgba(0, 168, 232, .45); }
@keyframes demo-wiersz { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
.demo-rows li:nth-child(n+4) { display: none; }
.r-ico { width: .55rem; height: .55rem; border-radius: 2px; }
.r-ico.t { background: var(--turkus); } .r-ico.v { background: var(--lampa); }
.r-ok { color: var(--turkus-ciemny); font-weight: 600; }

/* Kroki u dołu */
.demo-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--linia-noc); font-size: .68rem; color: var(--mgla); }
.demo-steps li { position: relative; padding: .7rem 1rem; text-align: center; }
.demo-steps li + li { border-left: 1px solid var(--linia-noc); }
.demo-steps li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--turkus); transition: width .5s var(--ease); }
.demo-steps li.done { color: var(--tusz); }
.demo-steps li.done::after { width: 100%; }

@media (max-width: 560px) {
  .demo-body { grid-template-columns: 1fr; gap: .9rem; min-height: 0; }
  .demo-link { height: 2.4rem; }
  .demo-link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed rgba(26, 29, 46, .18); }
  .demo-link::after { display: none; }
  .demo-bar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .demo-pulse { animation: none; } }

/* ===== Dziennik (log) ===== */
.log { list-style: none; font-family: var(--mono); font-size: .875rem; border-top: 1px solid var(--linia-noc); }
.log li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--linia-noc); }
.log time { color: var(--lampa); }
.log .ok { color: var(--turkus-ciemny); }
.tone-paper .log, .tone-paper .log li { border-color: var(--linia-dzien); }
.tone-paper .log time { color: var(--lampa-ciemna); }
.tone-paper .log .ok { color: #00739F; }

/* Problemy jako wpisy dziennika */
.entries { list-style: none; border-top: 1px solid var(--linia-noc); counter-reset: wpis; }
.entry { display: grid; gap: .5rem 2rem; padding: 2rem 0; border-bottom: 1px solid var(--linia-noc); }
@media (min-width: 820px) {
  .entry { grid-template-columns: 10rem minmax(0, 1fr); align-items: baseline; }
  .entry h3, .entry p { grid-column: 2; }
  .entry-meta { grid-row: span 2; }
}
.entry-meta { font-family: var(--mono); font-size: .8125rem; color: var(--lampa); }
.entry p { max-width: 60rem; }
.entry p { margin: 0; color: var(--mgla); }
.tone-paper .entries, .tone-paper .entry, .tone-paper-2 .entries, .tone-paper-2 .entry { border-color: var(--linia-dzien); }
.tone-paper .entry-meta, .tone-paper-2 .entry-meta { color: var(--lampa-ciemna); }
.tone-paper .entry p, .tone-paper-2 .entry p { color: var(--tusz-2); }

.sec-head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { margin: 0; }
.sec-head > p { max-width: 48rem; margin: 0; }

/* Wydruk raportu porannego (realizacje) */
.morning { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .morning { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.printout {
  background: #FFFFFF; color: var(--tusz); font-family: var(--mono); font-size: .875rem; border: 1px solid var(--linia-dzien);
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 20px 40px rgba(26, 29, 46, .08);
  transform: rotate(-.6deg);
}
.printout-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--linia-dzien); color: var(--tusz-2); }
.printout h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.25rem 0 .5rem; }
.printout > p { color: var(--tusz-2); margin: 0 0 1.25rem; }
.printout-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px dashed var(--linia-dzien); }
.printout-figures div { padding: 1rem 0; border-bottom: 1px dashed var(--linia-dzien); }
.printout-figures div:nth-child(odd) { padding-right: 1rem; }
.printout-figures strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-bottom: .35rem; }
.printout-figures span { color: var(--tusz-2); font-size: .8125rem; }
.printout-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; color: var(--tusz-2); }
.printout-foot a { color: var(--tusz); }
.more-cases { list-style: none; border-top: 1px solid var(--linia-noc); }
.more-cases li { padding: 1.4rem 0; border-bottom: 1px solid var(--linia-noc); display: grid; gap: .35rem; }
.more-cases .mono { color: var(--lampa); font-size: .8125rem; }
.more-cases h3 { font-size: 1.3rem; }
.more-cases p { margin: 0; color: var(--tusz-2); }

/* Duży log nocy na stronach usług */
.night-run { list-style: none; font-family: var(--mono); font-size: clamp(1.05rem, 2.4vw, 1.7rem); line-height: 1.35; border-top: 1px solid var(--linia-noc); }
.night-run li { display: grid; grid-template-columns: 5.5em 1fr auto; gap: 1rem; padding: clamp(1rem, 2.4vw, 1.6rem) 0; border-bottom: 1px solid var(--linia-noc); align-items: baseline; }
.night-run time { color: var(--lampa); }
.night-run .ok { color: var(--turkus-ciemny); }
@media (max-width: 560px) { .night-run li { grid-template-columns: 1fr auto; } .night-run time { grid-column: 1 / -1; font-size: .8125rem; } }

/* Zdjęcia */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.hero-photo { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-photo h1 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); }
@media (min-width: 960px) { .hero-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Ciemna sekcja (portfolio) */
.tone-dark { background: var(--okno); color: var(--okno-tekst); }
.tone-dark .eyebrow { color: #7FD6F7; }
.tone-dark .muted, .tone-dark .sec-head > p { color: rgba(245, 247, 250, .72); }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head.center > p { margin-inline: auto; }

/* Pasek z logotypami klientów pod hero */
.clients-strip { padding: 0 0 clamp(2.5rem, 5vw, 4rem); }
.clients-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 3rem; background: var(--noc-2); padding-block: 1.75rem; border-radius: 4px; }
.clients-strip-inner > p { margin: 0; font-weight: 600; white-space: nowrap; }
.clients-strip .clients { margin: 0; flex: 1; justify-content: space-around; gap: 1.5rem 2.5rem; }
.clients-strip .clients img { height: 2.2rem; mix-blend-mode: multiply; }

/* Portfolio: karty ze zdjęciem i nakładką AI */
.cases { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 760px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { border: 1px solid rgba(245, 247, 250, .12); padding: clamp(1rem, 2vw, 1.75rem); display: flex; flex-direction: column; gap: .9rem; transition: border-color .3s var(--ease), background .3s var(--ease); }
@media (hover: hover) { .case:hover { border-color: rgba(127, 214, 247, .5); background: rgba(245, 247, 250, .03); } }
.case-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #232740; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .case:hover .case-media img { transform: scale(1.03); } }
.case-placeholder { position: absolute; inset: 0; background-color: #232740; background-image: linear-gradient(rgba(127, 214, 247, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 214, 247, .07) 1px, transparent 1px); background-size: 24px 24px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.chips li { font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: rgba(245, 247, 250, .1); color: rgba(245, 247, 250, .85); }
.case h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.case h3 a { text-decoration: none; }
.case > p { margin: 0; color: rgba(245, 247, 250, .72); }
.case-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto !important; padding-top: .5rem; }
.case-foot .mono { color: rgba(245, 247, 250, .6); font-size: .8125rem; }
.case .link-arrow { color: var(--okno-tekst); }

/* Nakładki „warstwy AI” (SVG) */
.ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ov .draw { fill: none; stroke: #7FD6F7; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ov .draw.alt, .ov .sig { stroke: #B99CF5; }
.ov .sig { stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ov .tag { fill: #7FD6F7; }
.ov .tag.alt { fill: #B99CF5; }
.ov text { font: 500 8.5px var(--mono); fill: #1A1D2E; }
.ov .pop { opacity: 0; transform: translateY(3px); transition: opacity .4s ease, transform .4s var(--ease); transition-delay: var(--d, 0s); }
.ov .dot { fill: #7FD6F7; } .ov .dot.alt { fill: #B99CF5; }
.ov .ring { fill: none; stroke: #7FD6F7; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.ov .ring.alt { stroke: #B99CF5; }
.ov .scan { stroke: #7FD6F7; stroke-width: 1; opacity: 0; }
.is-in .ov .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); transition-delay: var(--d, .2s); }
.is-in .ov .sig { transition-duration: 1.8s; }
.is-in .ov .pop { opacity: 1; transform: none; }
.is-in .ov .ring { animation: puls 2.2s ease-out infinite; animation-delay: var(--d, 0s); }
.is-in .ov .scan { animation: skan 2.6s ease-in-out .3s infinite; }
@keyframes puls { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes skan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(150px); opacity: 0; } }
.ov-qr .scan { animation-name: skan-qr !important; }
/* Grafika QR-Cars ma białe tło: ciemniejszy turkus, żeby ramki były widoczne */
.ov-qr .draw { stroke: var(--turkus); stroke-width: 2.5; }
.ov-qr .scan { stroke: var(--turkus); stroke-width: 1.5; }
.ov-qr .tag { fill: var(--turkus); }
.ov-qr text { fill: #fff; }
.ov-signature .draw { stroke: var(--turkus); stroke-width: 2.5; }
.ov-signature .draw.dash { stroke: var(--lampa); }
.ov-signature .tag { fill: var(--turkus); }
.ov-signature .tag.alt { fill: var(--lampa); }
.ov-signature text { fill: #fff; }
.ov-car .scan { animation-name: skan-car !important; }
@keyframes skan-car { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(235px); opacity: 0; } }
@keyframes skan-qr { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(118px); opacity: 0; } }

/* „Brzmi znajomo?” — zdjęcie z nakładką + problemy zamieniane w rozwiązania */
.pain { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .pain { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.pain h2 { max-width: none; }
.pain-photo { position: relative; margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(26, 29, 46, .18); }
.pain-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pain-photo .ov text { font-size: 7.5px; }
/* Opinia klienta na zdjęciu z jego serwisu (strona główna, #problem). */
.voice { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.voice-photo { position: relative; margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(26, 29, 46, .18); }
.voice-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
/* Na desktopie zdjęcie ma wysokość kolumny z tekstem (kadr przycina się do niej). */
@media (min-width: 960px) {
  .voice { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: stretch; }
  .voice-photo picture { position: absolute; inset: 0; }
  .voice-photo img { height: 100%; aspect-ratio: auto; object-position: 50% 62%; }
}
.voice-tag { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .6rem; font-size: .75rem; color: #FFFFFF; background: rgba(18, 20, 31, .72); border-radius: 3px; }
.voice-quote { margin: 0; }
.voice-quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; text-wrap: balance; }
.voice-quote blockquote::before { content: "„"; }
.voice-quote blockquote::after { content: "”"; }
.voice-quote figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; color: var(--tusz-2); }
.voice-quote figcaption img { width: auto; height: 2.4rem; }
.voice-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--linia-dzien); }
.voice-list li { padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--linia-dzien); position: relative; color: var(--tusz-2); }
.voice-list li::before { content: "✓"; position: absolute; left: 0; color: var(--turkus-ciemny); font-weight: 600; }
.voice-quote .actions { margin-top: 1.75rem; }

/* Region: mapa-sieć z Lublina */
.region { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .region { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.region-map { width: 100%; max-width: 34rem; height: auto; overflow: visible; margin-inline: auto; display: block; }
.rm-line { stroke: var(--turkus); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; }
.rm-town circle { fill: #FFFFFF; stroke: var(--lampa); stroke-width: 2; }
.rm-town text, .rm-lublin text { font: 500 13px var(--sans); fill: var(--tusz-2); paint-order: stroke; stroke: #FFFFFF; stroke-width: 5px; stroke-linejoin: round; }
.rm-lublin text { font-weight: 700; fill: var(--tusz); font-size: 15px; }
.rm-core { fill: var(--turkus); stroke: #FFFFFF; stroke-width: 3; }
.rm-pulse { fill: none; stroke: var(--turkus); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: puls 2.4s ease-out infinite; }
.rm-town { opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--i) * 120ms + 600ms); }
.region-map-wrap.is-in .rm-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); transition-delay: calc(var(--i) * 120ms); }
.region-map-wrap.is-in .rm-town { opacity: 1; }
html:not(.js) .rm-line { stroke-dashoffset: 0; } html:not(.js) .rm-town { opacity: 1; }
.reach { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--linia-noc); }
.reach li { display: grid; grid-template-columns: auto 13rem 1fr; align-items: center; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--linia-noc); }
.reach strong { font-weight: 600; }
.reach li > span:last-child { color: var(--tusz-2); }
.reach-dot { width: .6rem; height: .6rem; border-radius: 50%; }
.reach-dot.t { background: var(--turkus); box-shadow: 0 0 0 4px rgba(0, 168, 232, .15); }
.reach-dot.v { background: var(--lampa); }
.reach-dot.k { background: transparent; border: 2px solid var(--tusz-2); }
@media (max-width: 640px) { .reach li { grid-template-columns: auto 1fr; } .reach li > span:last-child { grid-column: 2; margin-top: -.6rem; font-size: .92rem; } }
.office { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-top: 1.75rem; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: 12px; background: #12141F; color: var(--okno-tekst); }
.office-label { margin: 0 0 .6rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #7FD6F7; }
.office address { font-style: normal; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; color: #FFFFFF; }
.office-contact { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin: .9rem 0 0; font-family: var(--mono); font-size: .82rem; }
.office-contact a { color: rgba(245, 247, 250, .8); text-decoration: none; }
.office-contact a:hover, .office-more:hover { color: #7FD6F7; }
.office-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.office-more { color: rgba(245, 247, 250, .7); text-decoration: none; font-size: .9rem; }

/* Case study „LIVE”: kadr z kamery z nakładką */
.feature { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .feature { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.cam { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: #0B0D16; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.cam img { display: block; width: 100%; height: auto; aspect-ratio: 1533 / 845; object-fit: cover; }
.cam-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-corner { display: none; }
.cam-box { fill: rgba(127, 214, 247, .05); stroke: #7FD6F7; stroke-width: 4; animation: celuj 4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes celuj { 0% { transform: scale(1.06); opacity: 0; } 15% { transform: scale(1); opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
.cam-tags { animation: tablica 4s ease infinite; }
@keyframes tablica { 0%, 28% { opacity: 0; } 38%, 88% { opacity: 1; } 100% { opacity: 0; } }
.cam-tags .tag { fill: #7FD6F7; } .cam-tags .tag.alt { fill: #B99CF5; }
.cam-tags text { font: 500 30px var(--mono); fill: #1A1D2E; }
.cam-plate { fill: none; stroke: #B99CF5; stroke-width: 5; }
.cam-scan { stroke: #7FD6F7; stroke-width: 3; animation: skan-cam 4s ease-in-out infinite; }
@keyframes skan-cam { 0%, 12% { transform: translateY(0); opacity: 0; } 16% { opacity: .9; } 55% { transform: translateY(560px); opacity: .9; } 60%, 100% { opacity: 0; } }
.cam-head { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: clamp(.6rem, 1.5vw, .9rem) clamp(1rem, 3vw, 2rem); font-size: .75rem; color: #F5F7FA; background: rgba(11, 13, 22, .72); }
.live-dot::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #FF5A5F; margin-right: .5rem; vertical-align: .05rem; animation: mrug 1.4s steps(2, start) infinite; }
@keyframes mrug { to { visibility: hidden; } }
.live-feed { list-style: none; font-family: var(--mono); font-size: .8rem; background: rgba(11, 13, 22, .78); padding: .4rem clamp(1rem, 3vw, 2rem); }
@media (min-width: 700px) { .live-feed { position: absolute; left: 0; right: 0; bottom: 0; } }
.live-feed li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .9rem; padding: .45rem 0; color: rgba(245, 247, 250, .9); }
.live-feed li + li { border-top: 1px solid rgba(245, 247, 250, .1); }
.live-feed li.new { animation: wpis .6s var(--ease) both; }
.live-feed time { color: #7FD6F7; }
.live-feed .ok { color: #B99CF5; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(245, 247, 250, .12); }
.stats strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: #FFFFFF; }
.stats span { display: block; margin-top: .5rem; font-size: .85rem; color: rgba(245, 247, 250, .65); }
.tone-dark .link-arrow { color: var(--okno-tekst); }

/* Kafelki usług */
.tiles { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
@media (min-width: 680px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  display: flex; flex-direction: column; gap: .75rem; text-decoration: none;
  background: #FFFFFF; padding: clamp(1.5rem, 2.5vw, 2.5rem);
  box-shadow: 0 1px 2px rgba(26, 29, 46, .06), 0 12px 32px rgba(26, 29, 46, .06);
  border-radius: 4px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin-top: .5rem; }
.tile p { margin: 0; color: var(--tusz-2); }
.tile .link-arrow { align-self: flex-start; margin-top: auto; padding-top: .75rem; border: 0; font-weight: 600; }
.il-svg { width: 100%; max-width: 15rem; height: auto; overflow: visible; }
.il-svg .il { fill: none; stroke: var(--tusz); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-svg .t { fill: var(--turkus); }
.il-svg .v { fill: var(--lampa); }
.il-svg .k { fill: var(--tusz); }
.il-svg .float { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease); }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(26, 29, 46, .06), 0 20px 44px rgba(26, 29, 46, .12); }
  .tile:hover .float.t { transform: translate(4px, -6px) scale(1.12); }
  .tile:hover .float.v { transform: translate(-5px, -4px) scale(1.15); }
  .tile:hover .link-arrow::after { transform: translateX(4px); }
}
#uslugi.tone-paper { background: var(--noc-2); }

/* ===== Lista usług ===== */
.services { list-style: none; border-top: 1px solid var(--linia-dzien); }
.services a {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; grid-template-areas: "num title arrow" ". desc ."; gap: .5rem 1.5rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--linia-dzien); text-decoration: none;
  transition: padding .3s var(--ease), color .3s var(--ease);
}
.services .num { grid-area: num; font-family: var(--mono); font-size: .8125rem; color: var(--lampa-ciemna); }
.services h3 { grid-area: title; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.services .thumb { display: none; }
@media (min-width: 900px) {
  .services a { grid-template-columns: 2.5rem minmax(0, 1fr) 13rem auto; grid-template-areas: "num title thumb arrow" ". desc thumb ."; align-items: start; }
  .services h3, .services .num { align-self: end; }
  .services .arrow { grid-row: 1 / 3; align-self: center; }
  .services .thumb { display: block; grid-area: thumb; }
  .services .thumb img { width: 13rem; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
}
.services .desc { grid-area: desc; color: var(--tusz-2); font-size: .975rem; margin: 0; max-width: 46rem; }
.services .arrow { grid-area: arrow; font-size: 1.5rem; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .services a:hover { padding-left: .75rem; }
  .services a:hover .arrow { transform: translateX(6px); color: var(--lampa-ciemna); }
}

/* ===== Lublin ===== */
.local { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .local { grid-template-columns: 1.1fr .9fr; } }
.local-card { border: 1px solid var(--linia-dzien); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--papier); }
.local-card address { font-style: normal; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; margin: .5rem 0 1.25rem; }
.towns { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; font-family: var(--mono); font-size: .8125rem; color: var(--tusz-2); margin-top: 1.5rem; }
.towns li::before { content: "· "; color: var(--lampa-ciemna); }

/* ===== Klienci ===== */
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem 2.75rem; margin-top: 2rem; }
.center { text-align: center; }
.center .clients { justify-content: center; }
.clients img { height: 2.6rem; width: auto; max-width: 8.5rem; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .75; mix-blend-mode: multiply; transition: opacity .3s, filter .3s; }
.clients img:hover { filter: none; opacity: 1; }
/* logo z białym napisem: odwrócone, żeby było widać je na białym tle */
.clients img.logo-light, .clients img.logo-light:hover { filter: grayscale(1) invert(1) contrast(1.2); }

/* ===== Opinie ===== */
.quotes { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
@media (min-width: 820px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--linia-dzien); }
.quote blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; }
.quote figcaption { font-family: var(--mono); font-size: .8125rem; color: var(--tusz-2); }
.quote figcaption strong { color: var(--tusz); font-weight: 500; }

/* Opinie: karty z logo firmy */
.reviews { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 720px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reviews { grid-template-columns: 1.25fr 1fr 1fr; } .review-main { grid-row: span 2; } }
.review { margin: 0; background: #FFFFFF; border-radius: 4px; padding: clamp(1.5rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; gap: 1.25rem; box-shadow: 0 1px 2px rgba(26, 29, 46, .06), 0 12px 32px rgba(26, 29, 46, .05); }
.review-logo { height: 2.4rem; width: auto; max-width: 9.5rem; object-fit: contain; object-position: left center; filter: grayscale(1); opacity: .8; mix-blend-mode: multiply; align-self: flex-start; transition: filter .3s, opacity .3s; }
.review:hover .review-logo:not(.logo-light) { filter: none; opacity: 1; }
.review-logo.logo-light { filter: grayscale(1) invert(1) contrast(1.2); height: 3.2rem; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.45; position: relative; }
.review-main { justify-content: center; gap: 1.75rem; }
.review.review-main figcaption { margin-top: .5rem; }
.review-main .review-logo { height: 3rem; }
.review-main blockquote { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.35; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: .85rem; font-size: .9rem; color: var(--tusz-2); line-height: 1.4; }
.review figcaption strong { color: var(--tusz); font-weight: 600; }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--linia-dzien); }
.faq details { border-bottom: 1px solid var(--linia-dzien); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--lampa-ciemna); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.5rem; color: var(--tusz-2); max-width: 60rem; }
.faq .answer a { color: var(--tusz); }
.tone-night .faq, .tone-night .faq details, .tone-night-2 .faq, .tone-night-2 .faq details { border-color: var(--linia-noc); }
.tone-night .faq .answer, .tone-night-2 .faq .answer { color: var(--mgla); }
.tone-night .faq .answer a, .tone-night-2 .faq .answer a { color: var(--tusz); }
.tone-night .faq summary::after, .tone-night-2 .faq summary::after { color: var(--lampa); }

/* ===== Kontakt ===== */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 5rem); max-width: 76rem; }
/* Nagłówek z lewej zaczyna się na wysokości pierwszego pola formularza. */
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-side { display: grid; gap: clamp(2rem, 3.5vw, 2.5rem); }
.contact h1, .contact h2 { margin: 0; font-size: clamp(1.8rem, 2.3vw, 2.15rem); line-height: 1.15; max-width: none; }
.contact-side .lead { margin-top: 1.25rem; }
.contact-person { display: flex; align-items: center; gap: 1.25rem; padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--linia-dzien); }
.contact-page { padding-top: clamp(2rem, 4vw, 3rem); }
.contact-crumbs { max-width: 76rem; }
.contact-page .crumbs { margin-bottom: clamp(2rem, 4vw, 3rem); }
.contact-avatar { flex: none; width: clamp(6.5rem, 10vw, 8.5rem); height: clamp(6.5rem, 10vw, 8.5rem); border-radius: 50%; object-fit: cover; display: grid; place-items: center; font: 600 1.4rem/1 var(--serif); color: #FFFFFF; background: var(--tusz); }
.contact-name { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.contact-name + .contact-reach { margin-top: .5rem; }
.contact-reach { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .95rem; }
.contact-reach a { color: var(--turkus-ciemny); text-decoration: none; font-weight: 600; }
.contact-reach a:hover { text-decoration: underline; }
.contact-reach span { color: var(--tusz-2); }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form { display: grid; gap: 1.25rem; }
.form label { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; color: var(--tusz-2); }
.form input[type="email"], .form input[type="tel"], .form input[type="number"], .form textarea {
  width: 100%; font: 1rem/1.5 var(--sans); color: var(--tusz);
  background: #FFFFFF; border: 1px solid rgba(26, 29, 46, .2); border-radius: 2px; padding: .8rem .9rem;
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--lampa-ciemna); outline-offset: 0; border-color: transparent; }
.form label.consent { font-family: var(--sans); text-transform: none; letter-spacing: 0; margin-bottom: 0; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: var(--tusz-2); position: relative; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--tusz); flex: none; }
.form-error { color: #A4161A; font-size: .875rem; margin: 0; }
.form-done { padding: 2.5rem 0; border-top: 1px solid var(--linia-dzien); }
.form-done h3 { margin-bottom: .75rem; }

.captcha-wrapper { user-select: none; }
.captcha-track { position: relative; height: 3rem; background: var(--noc-2); border: 1px solid var(--linia-dzien); border-radius: 2px; overflow: hidden; }
.captcha-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(0, 168, 232, .25); }
.captcha-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .75rem; color: var(--tusz-2); padding-left: 3rem; pointer-events: none; }
.captcha-thumb { position: absolute; top: 4px; left: 4px; width: calc(3rem - 10px); height: calc(3rem - 10px); display: grid; place-items: center; background: var(--tusz); color: var(--papier); border-radius: 2px; cursor: grab; touch-action: none; }
.captcha-success { display: none; align-items: center; gap: .6rem; height: 3rem; padding: 0 1rem; border: 1px solid #2F7A4F; color: #1F5C39; font-family: var(--mono); font-size: .8125rem; }

/* ===== Podstrony ===== */
.page-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.page-hero h1 { max-width: 26ch; }
.page-hero .lead { margin-top: 1.5rem; color: var(--mgla); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--mono); font-size: .75rem; color: var(--mgla); margin-bottom: 2rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--lampa); }
.tone-paper .crumbs { color: var(--tusz-2); }

.split { display: grid; gap: 2rem clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }

.benefits { display: grid; gap: 0 clamp(2rem, 5vw, 4rem); }
@media (min-width: 820px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefit { padding: 1.75rem 0; border-top: 1px solid var(--linia-dzien); }
.benefit h3 { margin-bottom: .6rem; }
.benefit p { margin: 0; color: var(--tusz-2); }

.steps { list-style: none; counter-reset: krok; display: grid; gap: 0 clamp(2rem, 4vw, 3rem); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } .steps.steps-3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: krok; padding: 1.5rem 0; border-top: 1px solid var(--linia-noc); }
.steps li::before { content: counter(krok, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .8125rem; color: var(--lampa); margin-bottom: .9rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--mgla); font-size: .975rem; }
.tone-paper .steps li, .tone-paper-2 .steps li { border-color: var(--linia-dzien); }
.tone-paper .steps li::before, .tone-paper-2 .steps li::before { color: var(--lampa-ciemna); }
.tone-paper .steps p, .tone-paper-2 .steps p { color: var(--tusz-2); }

.cta-line { display: grid; gap: 1.5rem; align-items: end; padding-top: 2.5rem; border-top: 1px solid var(--linia-noc); }
@media (min-width: 900px) { .cta-line { grid-template-columns: 1fr auto; } .cta-line h2 { margin: 0; } }
.tone-paper .cta-line, .tone-paper-2 .cta-line { border-color: var(--linia-dzien); }

/* Projekty / produkty */
.projects { list-style: none; display: grid; gap: clamp(3rem, 6vw, 5rem); }
.project { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--linia-dzien); }
@media (min-width: 900px) { .project { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.project-meta { font-family: var(--mono); font-size: .8125rem; color: var(--tusz-2); display: grid; gap: .3rem; align-content: start; }
.project-meta .num { color: var(--lampa-ciemna); font-size: .875rem; }
.project h2, .project h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.facts { display: grid; gap: 0; margin: 1.5rem 0 0; }
.facts div { display: grid; gap: .25rem 1.5rem; padding: .9rem 0; border-top: 1px dashed var(--linia-dzien); }
@media (min-width: 640px) { .facts div { grid-template-columns: 14rem 1fr; } }
.facts dt { font-family: var(--mono); font-size: .8125rem; color: var(--tusz-2); }
.facts dd { margin: 0; }
.figures { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 1.75rem; }
.figures div { display: grid; }
.figures strong { font-family: var(--serif); font-weight: 500; font-size: 2.4rem; line-height: 1; }
.figures span { font-family: var(--mono); font-size: .75rem; color: var(--tusz-2); margin-top: .35rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; font-family: var(--mono); font-size: .8125rem; color: var(--tusz-2); margin-top: 1.25rem; }
.tags li::before { content: "#"; color: var(--lampa-ciemna); margin-right: .1rem; }
.tone-night .tags, .tone-night-2 .tags { color: var(--mgla); }
.tone-night .tags li::before, .tone-night-2 .tags li::before { color: var(--lampa); }

.stack { display: grid; gap: 0 clamp(2rem, 4vw, 3rem); }
@media (min-width: 720px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stack { grid-template-columns: repeat(3, 1fr); } }
.stack div { padding: 1.4rem 0; border-top: 1px solid var(--linia-noc); }
.stack h3 { font-size: 1.15rem; margin-bottom: .5rem; }

.person { display: flex; gap: 1.25rem; align-items: center; margin-top: 2rem; }
.person img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 50%; filter: grayscale(.2); }
.person strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.person span { font-family: var(--mono); font-size: .8125rem; color: var(--tusz-2); }

/* Kalkulator */
.calc { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Blog */

.article-head { max-width: 50rem; }
.article-head h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--mono); font-size: .8125rem; color: var(--mgla); margin-bottom: 1.5rem; }
.prose { max-width: 42rem; margin-inline: auto; font-size: 1.125rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 3rem 0 1rem; max-width: none; }
.prose h3 { margin: 2.25rem 0 .75rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--lampa-ciemna); }
.prose a { color: var(--tusz); text-decoration-color: var(--lampa-ciemna); text-decoration-thickness: 2px; }
.prose blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 2px solid var(--lampa-ciemna); font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }
.prose code { font-family: var(--mono); font-size: .875em; background: var(--papier-2); padding: .1em .35em; border-radius: 2px; }
.prose pre { background: var(--okno); color: var(--okno-tekst); padding: 1.25rem; overflow-x: auto; border-radius: 2px; font-size: .875rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.5rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--linia-dzien); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tusz-2); }
.prose hr { border: 0; border-top: 1px solid var(--linia-dzien); margin: 2.5rem 0; }
.prose img { margin: 2rem 0; }
.article-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; max-width: 42rem; margin: 0 auto 2.5rem; font-family: var(--mono); font-size: .8125rem; }
.article-tools a { color: var(--tusz-2); }
.note { border: 1px solid var(--linia-dzien); padding: 1.5rem; margin: 2rem 0; background: var(--papier-2); }
.note > :last-child { margin-bottom: 0; }

/* Polityka prywatności */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.legal h3 { font-size: 1.2rem; margin: 1.75rem 0 .6rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }

/* ===== Stopka (ciemna, żeby odcinała się od strony) ===== */
.foot { position: relative; overflow: hidden; padding-top: clamp(3.5rem, 7vw, 5rem); background: #12141F; color: var(--okno-tekst); }
.foot-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
.foot .brand { color: #FFFFFF; margin-bottom: .6rem; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.foot-nav a { position: relative; color: rgba(245, 247, 250, .9); text-decoration: none; font-size: 1rem; }
.foot-nav-2 a { color: rgba(245, 247, 250, .55); font-size: .92rem; }
.foot-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: #7FD6F7; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.foot-nav a:hover { color: #FFFFFF; }
.foot-nav a:hover::after { transform: scaleX(1); }
.foot-nap { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin-top: .8rem; font-style: normal; font-size: .82rem; }
.foot-nap a { color: #7FD6F7; text-decoration: none; }
.foot-nap a:hover { color: #FFFFFF; }
.foot-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(245, 247, 250, .08); font-size: .75rem; color: rgba(245, 247, 250, .45); }
.foot-bottom a { text-decoration: none; color: inherit; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.foot-bottom a:hover { color: #FFFFFF; }
/* Duży znak wodny na dole stopki */
.foot-mark { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(5rem, 19vw, 19rem); line-height: .78; letter-spacing: -.045em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(127, 214, 247, .16), rgba(107, 43, 217, .05) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: clamp(1rem, 3vw, 2rem); margin-bottom: -.12em; }

/* ===== Ruch ===== */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-log li { opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--i, 0) * 450ms + 300ms); }
.js .rv-log.is-in li { opacity: 1; }
.js .rv-log li .ok { opacity: 0; transition: opacity .3s ease; transition-delay: calc(var(--i, 0) * 450ms + 650ms); }
.js .rv-log.is-in li .ok { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .rv, .js .log.rv-log li, .js .rv-log li .ok { opacity: 1; transform: none; }
}

/* ===== Podstrona usługi ===== */
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 820px) { .pains { grid-template-columns: 1fr 1fr; } }
.pain-card { position: relative; padding: clamp(1.4rem, 2.6vw, 2rem); padding-left: clamp(4.2rem, 6vw, 5rem); background: #FFFFFF; border: 1px solid var(--linia-noc); border-radius: 12px; }
.pain-no { position: absolute; left: clamp(1.4rem, 2.6vw, 2rem); top: clamp(1.5rem, 2.7vw, 2.1rem); font-size: .8rem; color: var(--lampa); }
.pain-card h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); margin: 0 0 .5rem; }
.pain-card p { margin: 0; color: var(--tusz-2); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
@media (min-width: 820px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 2.25rem; }
  .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: .45rem; height: 1px; background: rgba(245, 247, 250, .15); }
  .timeline::after { content: ""; position: absolute; left: 0; top: .45rem; height: 1px; width: 100%; background: linear-gradient(90deg, #7FD6F7, #B99CF5); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) .2s; }
  .timeline.is-in::after { transform: scaleX(1); }
  .timeline li::before { content: ""; position: absolute; top: -2.25rem; left: 0; width: .9rem; height: .9rem; border-radius: 50%; background: #12141F; border: 2px solid #7FD6F7; }
}
.timeline li { position: relative; display: grid; gap: .5rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(245, 247, 250, .1); }
@media (min-width: 820px) { .timeline li { border: 0; padding: 0; } }
.timeline time { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #7FD6F7; line-height: 1; }
.timeline li span:not(.ok) { color: rgba(245, 247, 250, .85); font-size: 1.02rem; }
.timeline .ok { color: #B99CF5; font-weight: 600; }
.js .timeline li { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .6s var(--ease); transition-delay: calc(var(--i) * 400ms + 300ms); }
.js .timeline.is-in li { opacity: 1; transform: none; }
.timeline-note { margin: 2rem 0 0; text-align: center; font-size: .78rem; color: rgba(245, 247, 250, .5); }

.gains { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 700px) { .gains { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .gains { grid-template-columns: repeat(3, 1fr); } }
.gain { padding: clamp(1.4rem, 2.4vw, 1.9rem); border: 1px solid var(--linia-noc); border-radius: 12px; background: var(--noc-2); }
.gain-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: rgba(0, 168, 232, .12); margin-bottom: 1.1rem; }
.gain-ico svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--turkus-ciemny); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gain:nth-child(3n+2) .gain-ico { background: rgba(107, 43, 217, .1); }
.gain:nth-child(3n+2) .gain-ico svg { stroke: var(--lampa); }
.gain h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); margin: 0 0 .5rem; }
.gain p { margin: 0; color: var(--tusz-2); font-size: .95rem; }

.svc-case { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 960px) { .svc-case { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.svc-case h2 { margin: .5rem 0 1rem; }
.svc-case .chips { margin: 1.25rem 0 1.5rem; }
.svc-case .case-media { border-radius: 12px; }

.svc-more { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.svc-mini { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px solid var(--linia-noc); border-radius: 12px; text-decoration: none; color: var(--tusz); font-weight: 600; transition: border-color .25s ease, transform .3s var(--ease); }
.svc-mini .il-svg { width: 100%; height: auto; max-height: 5rem; }
@media (hover: hover) { .svc-mini:hover { border-color: var(--turkus); transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .js .timeline li { opacity: 1; transform: none; } .timeline::after { transform: none; } }
.svc-case .chips li { background: #FFFFFF; border: 1px solid var(--linia-noc); color: var(--tusz-2); }

/* ---------- Podstrona /realizacje ---------- */
.cases-all { margin: clamp(2rem, 4vw, 3rem) 0 0; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filters[hidden] { display: none; }
.filter { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.6rem; padding: .5rem 1rem; font: 500 .9rem/1 var(--sans); color: rgba(245, 247, 250, .8); background: transparent; border: 1px solid rgba(245, 247, 250, .18); border-radius: 999px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.filter .mono { font-size: .72rem; opacity: .6; }
.filter[aria-pressed="true"] { background: var(--turkus); border-color: var(--turkus); color: var(--tusz); }
@media (hover: hover) { .filter:not([aria-pressed="true"]):hover { border-color: rgba(245, 247, 250, .5); color: #FFFFFF; } }
.case[hidden] { display: none; }
.portfolio-cta { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.portfolio-cta h2 { max-width: 28ch; margin: 0; }
.contact-promise { margin: 1rem 0 0; font-weight: 600; color: var(--tusz); }
.contact-promise::before { content: "✓"; color: var(--turkus-ciemny); margin-right: .5rem; }

/* Strona O nas: technologie jako prosta lista w trzech kolumnach */
.stack-plain { display: grid; gap: 0 clamp(2rem, 4vw, 3rem); margin: 0; }
@media (min-width: 640px) { .stack-plain { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stack-plain { grid-template-columns: repeat(3, 1fr); } }
.stack-plain div { padding: 1.25rem 0; border-top: 1px solid var(--linia-dzien); }
.stack-plain dt { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .35rem; }
.stack-plain dd { margin: 0; color: var(--tusz-2); }
/* Dwie ciemne sekcje pod sobą na stronie O nas: bez podwójnego odstępu */
.tone-dark + #proces { padding-top: 0; }

/* ---------- Sekcja „Jak pracujemy” (partials/_process.html): kroki z animowanymi ekranami ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: none; }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { display: grid; align-content: start; gap: .5rem; opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 160ms); }
.flow.is-in li, html:not(.js) .flow li { opacity: 1; transform: none; }
.flow-screen { margin-bottom: .75rem; background: #12141F; border: 1px solid rgba(245, 247, 250, .08); border-radius: 8px; overflow: hidden; }
.flow-screen svg { display: block; width: 100%; height: auto; }
.flow-no { font-size: .8125rem; color: #7FD6F7; }
.flow h3 { margin: 0; font-size: clamp(1.3rem, 1.8vw, 1.5rem); }
.flow p { margin: 0; color: rgba(245, 247, 250, .7); }

.flow-screen text { font-family: var(--mono); font-size: 14px; fill: rgba(245, 247, 250, .75); }
.flow-screen .caption { fill: rgba(245, 247, 250, .45); font-size: 12px; }
/* Animacje stoją, dopóki sekcja nie wejdzie na ekran */
.flow-screen * { animation-play-state: paused; }
.flow.is-in .flow-screen * { animation-play-state: running; }

/* 01 · analiza: skaner przechodzi po krokach, trzeci krok zapala się jako wąskie gardło */
.fs-analiza .node { fill: rgba(245, 247, 250, .04); stroke: rgba(245, 247, 250, .25); }
.fs-analiza .wire { stroke: rgba(245, 247, 250, .25); stroke-dasharray: 3 3; }
.fs-analiza .scan-ring { fill: none; stroke: #00A8E8; stroke-width: 2; animation: fs-scan 6s var(--ease) infinite; }
.fs-analiza .node.hot { animation: fs-hot 6s ease infinite; }
.fs-analiza .flag { opacity: 0; animation: fs-flag 6s ease infinite; }
.fs-analiza .flag rect { fill: #B99CF5; }
.fs-analiza .flag text { fill: #12141F; font-weight: 600; }
@keyframes fs-scan { 0%, 8% { transform: translateX(0); } 22%, 30% { transform: translateX(96px); } 44%, 85% { transform: translateX(192px); } 100% { transform: translateX(0); } }
@keyframes fs-hot { 0%, 40% { fill: rgba(245, 247, 250, .04); stroke: rgba(245, 247, 250, .25); } 48%, 85% { fill: rgba(185, 156, 245, .18); stroke: #B99CF5; } 100% { fill: rgba(245, 247, 250, .04); } }
@keyframes fs-flag { 0%, 46% { opacity: 0; transform: translateY(6px); } 54%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* 02 · projekt: połączenia rysują się po kolei, na końcu wycena gotowa */
.fs-projekt .box { fill: rgba(245, 247, 250, .04); stroke: rgba(245, 247, 250, .3); }
.fs-projekt .box.mid { stroke: #00A8E8; fill: rgba(0, 168, 232, .12); }
.fs-projekt .link { fill: none; stroke: #00A8E8; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fs-projekt .l1 { animation: fs-draw 6s ease infinite; }
.fs-projekt .l2 { animation: fs-draw 6s ease infinite; animation-delay: .5s; }
.fs-projekt .l3 { animation: fs-draw 6s ease infinite; animation-delay: .9s; }
.fs-projekt .ok-tag { opacity: 0; animation: fs-flag 6s ease infinite; animation-delay: .6s; }
.fs-projekt .ok-tag rect { fill: #00A8E8; }
.fs-projekt .ok-tag text { fill: #12141F; font-weight: 600; }
@keyframes fs-draw { 0%, 10% { stroke-dashoffset: 1; } 35%, 85% { stroke-dashoffset: 0; } 95%, 100% { stroke-dashoffset: 1; } }

/* 03 · kod: linie się dopisują, pasek testów się zapełnia */
.fs-kod .ln { fill: rgba(245, 247, 250, .25); font-size: 11px; }
.fs-kod .code { fill: rgba(127, 214, 247, .55); transform-box: fill-box; transform-origin: left; animation: fs-type 6s steps(12) infinite; animation-delay: calc(var(--n) * .3s); }
.fs-kod .code:nth-of-type(2n) { fill: rgba(185, 156, 245, .55); }
.fs-kod .cursor { fill: #F5F7FA; animation: fs-blink 1s steps(1) infinite; }
.fs-kod .bar-bg { fill: rgba(245, 247, 250, .06); }
.fs-kod .bar { fill: rgba(0, 168, 232, .35); transform-box: fill-box; transform-origin: left; animation: fs-bar 6s ease infinite; }
.fs-kod .bar-text { fill: #F5F7FA; }
@keyframes fs-type { 0% { transform: scaleX(0); } 25%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fs-blink { 50% { opacity: 0; } }
@keyframes fs-bar { 0%, 30% { transform: scaleX(0); } 70%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* 04 · wdrożenie: przełączniki włączają się po kolei, LIVE pulsuje, wykres rośnie */
.fs-live .live { fill: #F5F7FA; font-weight: 600; letter-spacing: .1em; }
.fs-live .live-dot { fill: #3DDC97; animation: fs-pulse 1.6s ease infinite; transform-box: fill-box; transform-origin: center; }
.fs-live .toggle { fill: rgba(245, 247, 250, .12); animation: fs-toggle 6s ease infinite; animation-delay: calc(var(--n) * .5s); }
.fs-live .knob { fill: #F5F7FA; animation: fs-knob 6s ease infinite; animation-delay: calc(var(--n) * .5s); }
.fs-live .spark { fill: none; stroke: #3DDC97; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fs-draw 6s ease infinite; animation-delay: 1.4s; }
@keyframes fs-pulse { 50% { opacity: .35; transform: scale(.7); } }
@keyframes fs-toggle { 0%, 12% { fill: rgba(245, 247, 250, .12); } 20%, 88% { fill: #00A8E8; } 100% { fill: rgba(245, 247, 250, .12); } }
@keyframes fs-knob { 0%, 12% { transform: translateX(0); } 20%, 88% { transform: translateX(22px); } 100% { transform: translateX(0); } }

/* Bez animacji: pokazujemy stan końcowy */
@media (prefers-reduced-motion: reduce) {
  .flow-screen * { animation: none !important; }
  .fs-analiza .scan-ring { transform: translateX(192px); }
  .fs-analiza .flag, .fs-projekt .ok-tag { opacity: 1; }
  .fs-projekt .link, .fs-live .spark { stroke-dashoffset: 0; }
  .fs-live .toggle { fill: #00A8E8; }
  .fs-live .knob { transform: translateX(22px); }
}

/* Strona O nas: osoba — zdjęcie z lewej, opis z prawej */
.member { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.member + .member { margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 860px) { .member { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.member img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.member h2 { margin: 0; }
.member-role { margin: .5rem 0 0; font-size: .875rem; color: var(--tusz-2); }
.member-bio { margin: 1.5rem 0 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--tusz-2); max-width: 40rem; }
.member-facts { margin: 2rem 0 0; border-top: 1px solid var(--linia-dzien); }
.member-facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--linia-dzien); }
.member-facts dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lampa-ciemna); padding-top: .2rem; }
.member-facts dd { margin: 0; }
@media (max-width: 480px) { .member-facts div { grid-template-columns: 1fr; gap: .25rem; } }
/* Nagłówek podstrony i biała sekcja pod nim: bez podwójnego odstępu */
.page-hero.tone-night + .sec.tone-paper { padding-top: 0; }

/* Strona O nas: nagłówek z dziennikiem nocnej zmiany */
.about-hero { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .about-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.about-hero h1 { max-width: none; font-size: clamp(2.2rem, 4.2vw, 3.8rem); }
.swap { display: block; color: var(--turkus-ciemny); transition: opacity .35s ease, transform .35s var(--ease); }
.swap.out { opacity: 0; transform: translateY(.25em); }
.nightlog { margin: 0; background: #12141F; color: #F5F7FA; border-radius: 10px; padding: 1.25rem 1.5rem 1.5rem; box-shadow: 0 30px 60px rgba(26, 29, 46, .18); }
.nightlog figcaption { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(245, 247, 250, .5); padding-bottom: .9rem; margin-bottom: .4rem; border-bottom: 1px solid rgba(245, 247, 250, .1); }
.nightlog ol { list-style: none; margin: 0; padding: 0; }
.nightlog li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .75rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid rgba(245, 247, 250, .06); font-size: .95rem; }
.nightlog time { font-family: var(--mono); font-size: .8rem; color: #7FD6F7; }
.nightlog span { color: rgba(245, 247, 250, .85); }
.nightlog b { color: #3DDC97; font-weight: 600; }
.nightlog-on .nightlog li { opacity: 0; transform: translateX(-8px); transition: opacity .45s ease, transform .45s var(--ease); }
.nightlog-on .nightlog li.on { opacity: 1; transform: none; }
.nightlog-on .nightlog li b { opacity: 0; transition: opacity .3s ease .35s; }
.nightlog-on .nightlog li.on b { opacity: 1; }

/* ---------- Kalkulator: suwaki i karta wyniku ---------- */
.calc { align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc-form { display: grid; gap: 2rem; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.slider label { font-family: var(--serif); font-size: 1.25rem; }
.slider output { font-family: var(--mono); font-size: 1.1rem; color: var(--turkus-ciemny); font-weight: 600; }
.slider small { display: block; margin-top: .5rem; color: var(--tusz-2); font-size: .875rem; }
.slider input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(var(--turkus), var(--turkus)) 0 / var(--p) 100% no-repeat, var(--noc-3); cursor: pointer; }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--turkus); box-shadow: 0 2px 8px rgba(26, 29, 46, .2); }
.slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--turkus); }
.slider input[type=range]:focus-visible { outline: 2px solid var(--lampa-ciemna); outline-offset: 6px; }
.calc-more { border-top: 1px solid var(--linia-dzien); padding-top: 1.25rem; }
.calc-more summary { cursor: pointer; font-weight: 600; color: var(--turkus-ciemny); }
.calc-more-grid { display: grid; gap: 1rem; margin-top: 1.25rem; }
.calc-more label { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; color: var(--tusz-2); }
.calc-more input { width: 100%; font: 1rem/1.5 var(--sans); padding: .7rem .9rem; border: 1px solid rgba(26, 29, 46, .2); border-radius: 2px; }
.calc-card { background: #12141F; color: #F5F7FA; border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 960px) { .calc-card { position: sticky; top: calc(var(--top-h) + 1.5rem); } }
.calc-label { margin: 0; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #7FD6F7; }
.calc-big { margin: .5rem 0 0; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.calc-sub { margin: .75rem 0 0; color: rgba(245, 247, 250, .7); }
.calc-sub span { color: #F5F7FA; font-weight: 600; }
.calc-rows { margin: 1.75rem 0 0; border-top: 1px solid rgba(245, 247, 250, .12); }
.calc-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(245, 247, 250, .08); }
.calc-rows dt { color: rgba(245, 247, 250, .7); }
.calc-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-note { margin: 1.25rem 0 1.5rem; font-size: .85rem; color: rgba(245, 247, 250, .55); }
.calc-card .btn-lamp { width: 100%; justify-content: center; }

/* ---------- Blog: okładki i siatka wpisów ---------- */
.post-cover { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--noc-2); border: 1px solid var(--linia-dzien); }
.post-cover .il-svg { width: 62%; height: auto; transition: transform .6s var(--ease); }
.post-cover.is-photo picture, .post-cover.is-photo img { width: 100%; height: 100%; }
.post-cover.is-photo img { object-fit: cover; transition: transform .8s var(--ease); }
.post-label { margin: 1.1rem 0 .4rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lampa-ciemna); }
.post-meta { margin: .6rem 0 0; font-size: .78rem; color: var(--tusz-2); }
.post-top { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 760px) { .post-top { grid-template-columns: 1fr 1fr; } }
.post-top a { display: block; text-decoration: none; }
.post-top h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; max-width: none; }
.post-excerpt { margin: .75rem 0 0; color: var(--tusz-2); font-size: 1.05rem; }
.post-grid { list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; border-top: 1px solid var(--linia-dzien); display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-grid a { display: block; text-decoration: none; }
.post-grid h2 { margin: 0; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.25; max-width: none; }
@media (hover: hover) {
  .post-top a:hover .il-svg, .post-grid a:hover .il-svg { transform: scale(1.06); }
  .post-top a:hover img, .post-grid a:hover img { transform: scale(1.04); }
  .post-top a:hover h2, .post-grid a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
}
/* Strona Lublin: białe sekcje pod sobą bez podwójnego odstępu */
.page-hero.tone-night + #lublin { padding-top: 0; }
#uslugi + #faq { padding-top: calc(var(--sekcja) * .4); }
