:root {
  --bg: #faf8f4;
  --bg-tint: #f2eee6;
  --surface: #fff;
  --ink: #141311;
  --muted: #6b665d;
  --line: #e4dfd4;
  --accent: #cf3510;        /* tekst/linie na jasnym tle, kontrast 4.7:1 */
  --accent-btn: #cf3510;    /* tło przycisków, biały tekst 5.0:1 */
  --accent-btn-hover: #b72d0b;
  --accent-ink: #fff;
  --radius: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 20px;
  --header-h: 128px;
  --logo: 104px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0d;
    --bg-tint: #171513;
    --surface: #1c1a18;
    --ink: #f3efe8;
    --muted: #a39d92;
    --line: #2c2926;
    --accent: #ff6a3d;      /* jaśniejszy akcent do tekstu na ciemnym tle */
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
/* Rozmycie na pseudo-elemencie: backdrop-filter na samym headerze
   robi z niego kontener dla position: fixed i psuje menu mobilne. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid color-mix(in srgb, #fff 18%, transparent);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height 250ms var(--ease-out); }
.site-header.is-scrolled { --header-h: 84px; --logo: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; }
.logo-img { width: var(--logo); height: var(--logo); flex: none; transition: width 250ms var(--ease-out), height 250ms var(--ease-out); }
.logo-word { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
@media (max-width: 800px) {
  :root { --header-h: 96px; --logo: 72px; }
  .site-header.is-scrolled { --header-h: 72px; --logo: 52px; }
}
.site-footer .logo-img { width: 140px; height: 140px; }
.site-footer .logo-word { display: none; }
@media (prefers-color-scheme: dark) { .logo-img { filter: invert(1); } }
.logo-mark { font-family: var(--mono); font-size: 13px; background: var(--ink); color: var(--bg); padding: 3px 7px; border-radius: 7px; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); transition: color 150ms ease; }
.nav a[aria-current="page"] { color: var(--ink); }
/* Link "Blog" w menu: bez zawijania pozycji na szerokich ekranach, ukryty tylko w przedziale 801-1180 px (jest w stopce i w menu mobilnym). */
@media (min-width: 1181px) { .nav a:not(.btn) { white-space: nowrap; } .nav { gap: 20px; } }
@media (min-width: 801px) and (max-width: 1180px) { .nav a.nav-blog { display: none; } }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 200ms var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 800px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--bg);
    font-size: 22px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) {
    padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink);
    opacity: 0; transform: translateY(8px);
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), color 150ms ease;
  }
  .nav.is-open a:not(.btn) { opacity: 1; transform: none; }
  .nav.is-open a:nth-child(1) { transition-delay: 60ms; }
  .nav.is-open a:nth-child(2) { transition-delay: 100ms; }
  .nav.is-open a:nth-child(3) { transition-delay: 140ms; }
  .nav.is-open a:nth-child(4) { transition-delay: 180ms; }
  .nav.is-open a:nth-child(5) { transition-delay: 220ms; }
  .nav.is-open a:nth-child(6) { transition-delay: 260ms; }
  .nav-cta { opacity: 0; transition: opacity 250ms var(--ease-out), transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease; }
  .nav.is-open .nav-cta { opacity: 1; transition-delay: 300ms, 0s, 0s, 0s; }
  .nav-cta { margin-top: 24px; justify-content: center; }
}

/* Przełącznik języka PL | EN w menu (aktywny język to <span>, drugi to link do odpowiednika strony). */
.lang-switch { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; }
.lang-switch > span, .nav .lang-switch a:not(.btn) { padding: 6px 11px; border-radius: 999px; border-bottom: 0; font-size: inherit; }
.lang-switch > span { background: var(--ink); color: var(--bg); }
.nav .lang-switch a:not(.btn) { color: var(--muted); }
.nav .lang-switch a:not(.btn):hover { color: var(--ink); }
@media (max-width: 800px) {
  .lang-switch { align-self: flex-start; margin-top: 20px; font-size: 15px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--accent-btn); border-radius: 999px;
  background: var(--accent-btn); color: var(--accent-ink);
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-btn-hover); border-color: var(--accent-btn-hover); }
  .btn-ghost:hover { background: var(--bg-tint); border-color: var(--ink); }
  .nav a:not(.btn):hover { color: var(--ink); }
  .card:hover { transform: translateY(-3px); border-color: var(--ink); }
  .project:hover { border-color: var(--ink); }
}

/* ---------- Typography helpers ---------- */
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 56ch; margin-top: 20px; }
.muted { color: var(--muted); }
h2 { font-size: clamp(30px, 5.4vw, 56px); letter-spacing: -0.035em; line-height: 1.04; }
h3 { font-size: 20px; letter-spacing: -0.015em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(48px, 11vw, 148px); max-width: 12ch; letter-spacing: -0.055em; line-height: 0.95; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin-top: clamp(48px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; }
.stat dd { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dt { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-services, .grid-projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-projects { grid-template-columns: repeat(3, 1fr); }
  .grid-services { grid-template-columns: repeat(6, 1fr); }
  .grid-services .card { grid-column: span 2; }
  /* 5 kart: ostatnie dwie na pół szerokości; 6 kart: wszystkie po 1/3 */
  .grid-services .card:nth-child(4):nth-last-child(2), .grid-services .card:nth-child(5):last-child { grid-column: span 3; }
}

.card, .project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card .icon { color: var(--accent); margin-bottom: 20px; }
.card p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ---------- About ---------- */
.values { display: grid; gap: 28px; }
.values li { border-top: 2px solid var(--ink); padding-top: 18px; }
.values p { color: var(--muted); margin-top: 8px; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 28px; counter-reset: s; }
.step-n { display: block; font: 600 14px/1 var(--mono); color: var(--accent); margin-bottom: 14px; }
.steps li { padding-top: 18px; border-top: 1px solid var(--line); }
.steps p { color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* ---------- Projects ---------- */
.project { padding: 14px 14px 22px; }
.project h3 { margin: 18px 10px 0; }
.project h3 a { text-decoration: none; }
.project h3 a::after { content: " \2197"; color: var(--muted); }
.project-desc { margin: 8px 10px 0; color: var(--muted); font-size: 15px; }
.project-thumb {
  display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  background: var(--bg-tint); border: 1px solid var(--line);
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 10px 0; }
.tags li { font: 500 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 5px 9px; border-radius: 999px; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; } }
.contact-list { margin-top: 32px; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: 14px; padding-top: 2px; }
.contact-list a { text-underline-offset: 3px; }

.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
.row { display: grid; gap: 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field.is-invalid input { border-color: #d93025; }
.field.is-invalid span::after { content: " - uzupełnij"; color: #d93025; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.notice-ok { background: color-mix(in srgb, #1a9e5c 14%, transparent); color: #1a7a4a; }
.notice-err { background: color-mix(in srgb, #d93025 12%, transparent); color: #b3261e; }
@media (prefers-color-scheme: dark) { .notice-ok { color: #5fd49b; } .notice-err { color: #ff8a80; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; }
.footer-inner { display: grid; gap: 28px; }
.footer-inner p { margin-top: 14px; max-width: 40ch; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-bottom { margin-top: 36px; font-size: 14px; color: var(--muted); }
/* Dwie kolumny o stałych proporcjach: lewa (logo, opis) nie kurczy się, linki układają się w dwóch kolumnach. */
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; align-content: start; padding-top: 8px; }
}

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 520px;
  display: grid; gap: 14px;
  background: var(--ink); color: var(--bg);
  padding: 18px 20px; border-radius: 16px; font-size: 14px; line-height: 1.5;
  opacity: 0; transform: translateY(12px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.cookie[hidden] { display: none; }
.cookie.is-in { opacity: 1; transform: none; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
@media (min-width: 600px) { .cookie { left: 20px; right: auto; bottom: 20px; } }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 400ms var(--ease-out) var(--d, 0ms), transform 400ms var(--ease-out) var(--d, 0ms), border-color 150ms ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* Karty z hoverem: po wejściu krótszy transition, bez opóźnienia. */
.card.is-in { transition: opacity 400ms var(--ease-out), transform 200ms var(--ease-out), border-color 150ms ease; }
.project.is-in { transition: opacity 400ms var(--ease-out), border-color 150ms ease; }

/* ---------- Formularz Contact Form 7 ---------- */
.form-cf7 h3 { font-size: 22px; margin-bottom: 4px; }
.form-cf7 .wpcf7-form { display: grid; gap: 16px; }
.form-cf7 .wpcf7-form p { margin: 0; display: grid; gap: 6px; }
.form-cf7 label { font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
.form-cf7 br { display: none; }
.form-cf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .form-cf7 select, .form-cf7 textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-cf7 textarea { resize: vertical; height: 140px; min-height: 120px; }
.form-cf7 input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form-cf7 input:focus, .form-cf7 select:focus, .form-cf7 textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form-cf7 input[type="submit"], .form-cf7 .wpcf7-submit {
  min-height: 48px; padding: 0 24px; border: 1px solid var(--accent-btn); border-radius: 999px;
  background: var(--accent-btn); color: var(--accent-ink); font: 600 16px/1 var(--font); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.form-cf7 .wpcf7-submit:hover { background: var(--accent-btn-hover); }
.form-cf7 .wpcf7-submit:active { transform: scale(0.97); }
.form-cf7 .wpcf7-not-valid-tip { color: #d93025; font-size: 13px; font-weight: 500; }
.form-cf7 .wpcf7-not-valid { border-color: #d93025 !important; }
.form-cf7 .wpcf7-response-output { margin: 0 !important; padding: 14px 16px !important; border-radius: 10px; border: 1px solid var(--line) !important; font-size: 15px; }
.form-cf7 .wpcf7 form.sent .wpcf7-response-output { border-color: #1a9e5c !important; color: #1a7a4a; }
.form-cf7 .wpcf7-spinner { margin: 0 auto; }
.form-cf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.form-cf7 .wpcf7-acceptance label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }

/* Wybór terminu: szybkie przyciski z dniami roboczymi. */
.form-cf7 .date-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.form-cf7 .chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--ink); font: 500 14px/1 var(--font); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.form-cf7 .chip:active { transform: scale(0.97); }
.form-cf7 .chip[aria-pressed="true"] { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--accent-ink); }
.form-cf7 .date-note { margin: -8px 0 16px; font-size: 13px; color: var(--muted); }
.form-cf7 .date-note:empty { display: none; }
.form-cf7 input[type="date"] { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .form-cf7 .chip:hover { border-color: var(--ink); }
  .form-cf7 .chip[aria-pressed="true"]:hover { border-color: var(--accent-btn); }
}

/* Komunikaty CF7: wejście zamiast skoku (@starting-style, bez JS). */
.form-cf7 .wpcf7-not-valid-tip {
  display: block;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
@starting-style { .form-cf7 .wpcf7-not-valid-tip { opacity: 0; transform: translateY(-4px); } }
.form-cf7 .wpcf7-response-output {
  display: flex; align-items: center; gap: 10px;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
@starting-style { .form-cf7 .wpcf7-response-output { opacity: 0; transform: translateY(8px); } }
.form-cf7 .wpcf7-response-output:empty { display: none; }
.form-cf7 .wpcf7-form.invalid .wpcf7-not-valid { animation: field-nudge 200ms var(--ease-out); }
@keyframes field-nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Ptaszek po udanej wysyłce (rzadki moment, więc wolno dodać radość). */
.tick { flex: none; width: 22px; height: 22px; }
.tick path {
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick-draw 400ms var(--ease-out) 120ms forwards;
}
@keyframes tick-draw { to { stroke-dashoffset: 0; } }

/* ---------- Polityki ---------- */
.policy h1 { margin-bottom: 36px; }
.policy-content h2 { font-size: 24px; margin: 40px 0 12px; }
.policy-content h3 { font-size: 18px; margin: 24px 0 8px; }
.policy-content p { margin-top: 12px; }
.policy-content ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.policy-content li { margin-top: 6px; }
.policy-content a { text-underline-offset: 3px; }
.policy-content table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.policy-content th, .policy-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy-updated { color: var(--muted); font-size: 14px; margin-top: 40px !important; }

/* ---------- WOW: pasek postępu ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- WOW: hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-glow {
  position: absolute; z-index: -1; left: 0; top: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent);
  filter: blur(30px); opacity: 0.55; will-change: transform;
  transform: translate3d(70vw, 220px, 0);
}
.w { display: inline-block; opacity: 0; transform: translateY(0.45em); filter: blur(10px); }
.w-in .w {
  opacity: 1; transform: none; filter: none;
  transition: opacity 450ms var(--ease-out) var(--wd), transform 450ms var(--ease-out) var(--wd), filter 450ms var(--ease-out) var(--wd);
}
.hero .lead, .hero .eyebrow { letter-spacing: -0.01em; }
.hero h1 .h1-kicker { display: block; margin-bottom: 18px; font: 600 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.hero h1 .h1-main { display: block; }
.hero .eyebrow { letter-spacing: 0.08em; }

/* ---------- WOW: marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; user-select: none; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-size: clamp(36px, 6.5vw, 84px); font-weight: 700; letter-spacing: 0.005em; line-height: 1; white-space: nowrap;
  /* Krój statyczny (bez nakładających się konturów), inaczej obrys pokazuje linie wewnątrz liter. */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
}
.marquee-track span.is-fill { color: var(--ink); -webkit-text-stroke: 0; }
.marquee-track i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 18px)); } }

/* ---------- WOW: reveal nagłówków z rozmyciem ---------- */
.js .section-head.reveal { filter: blur(8px); }
.js .section-head.reveal.is-in { filter: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), filter 500ms var(--ease-out); }

/* ---------- WOW: karty - reflektor ---------- */
.card { position: relative; overflow: hidden; isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  transition: opacity 250ms ease;
}
@media (hover: hover) and (pointer: fine) { .card:hover::before { opacity: 1; } }

/* ---------- WOW: proces - linie rysują się ---------- */
.steps li { border-top: 0; position: relative; }
.steps li::before, .steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.steps li::before { background: var(--line); }
.steps li::after { background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 900ms var(--ease-out) var(--d, 0ms); }
.steps li.is-in::after, html:not(.js) .steps li::after { transform: scaleX(1); }
.values li { border-top: 0; position: relative; }
.values li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform 900ms var(--ease-out) var(--d, 0ms); }
.values li.is-in::before, html:not(.js) .values li::before { transform: scaleX(1); }

/* ---------- WOW: projekty jako okna przeglądarki ---------- */
.project { perspective: 900px; transform-style: preserve-3d; will-change: transform; }
.project-thumb { position: relative; }
.project-thumb::before {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 22px;
  background: color-mix(in srgb, var(--surface) 80%, var(--bg-tint));
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle at 12px 11px, #ff5f57 3.5px, transparent 4px), radial-gradient(circle at 26px 11px, #febc2e 3.5px, transparent 4px), radial-gradient(circle at 40px 11px, #28c840 3.5px, transparent 4px);
}
.project-thumb img { padding-top: 22px; object-fit: cover; object-position: top; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .project:hover .project-thumb img { transform: scale(1.04); } }

/* ---------- Reduced transparency / contrast ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-glow { filter: none; opacity: 0.35; }
}
@media (prefers-contrast: more) {
  .site-header { border-bottom-color: var(--ink); }
  .card, .project, .form { border-color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-glow { transform: translate3d(70vw, 220px, 0) !important; }
  .w { opacity: 1; transform: none; filter: none; }
  .js .section-head.reveal { filter: none; }
  .steps li::after, .values li::before { transform: scaleX(1); transition: none; }
  .progress { display: none; }
}

/* ---------- Wyeksponowana usługa B2B (strona główna) ---------- */
.nav a.nav-feature:not(.btn) { color: var(--accent); font-weight: 600; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 8px 8px 8px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none;
  font-size: 15px; transition: transform 160ms var(--ease-out), border-color 150ms ease;
}
.hero-pill strong { color: var(--accent); margin-left: 4px; }
.hero-pill i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-btn); color: var(--accent-ink); font-style: normal; flex: none; transition: transform 200ms var(--ease-out); }
.hero-pill:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .hero-pill:hover { border-color: var(--ink); } .hero-pill:hover i { transform: translateX(3px); } }
@media (max-width: 560px) { .hero-pill { font-size: 14px; } .hero-pill strong { display: block; margin-left: 0; } }

.b2b-wrap { padding-block: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 56px); }
.b2b-feature {
  --fa: #ff7a50;
  display: grid; gap: clamp(32px, 5vw, 64px); padding: clamp(28px, 5vw, 64px);
  border-radius: 28px; background: var(--ink); color: var(--bg); overflow: hidden; position: relative; isolation: isolate;
}
.b2b-feature::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fa) 38%, transparent), transparent);
}
@media (min-width: 960px) { .b2b-feature { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.b2b-feature .eyebrow { color: var(--fa); }
.b2b-feature h2 { font-size: clamp(28px, 4vw, 46px); max-width: 18ch; }
.b2b-feature .lead { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.b2b-points { margin-top: 24px; display: grid; gap: 10px; }
.b2b-points li { position: relative; padding-left: 28px; }
.b2b-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--fa); }
.b2b-price { margin-top: 28px; font-size: 18px; }
.b2b-price strong { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.04em; font-weight: 800; }
.b2b-price span { display: block; margin-top: 4px; font-size: 14px; color: color-mix(in srgb, var(--bg) 60%, transparent); }
.b2b-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.b2b-feature .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
@media (hover: hover) and (pointer: fine) { .b2b-feature .btn-ghost:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); border-color: var(--bg); } }
.b2b-flow ol { display: grid; gap: 0; position: relative; }
.b2b-flow li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 22px; position: relative; }
.b2b-flow li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--bg) 22%, transparent); }
.b2b-flow .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--bg) 40%, transparent); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.b2b-flow strong { display: block; font-size: 17px; letter-spacing: -0.01em; }
.b2b-flow p { margin-top: 2px; font-size: 15px; color: color-mix(in srgb, var(--bg) 66%, transparent); }
.b2b-flow li.is-reply { padding-bottom: 0; }
.b2b-flow li.is-reply .n { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--accent-ink); }
.b2b-flow li.is-reply strong { color: var(--fa); }
@media (prefers-color-scheme: dark) { .b2b-feature { --fa: #cf3510; } }

.card--featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card--featured p { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.card--featured .icon { color: #ff7a50; }
.card--featured .more { color: #ff7a50; }
.card--featured::before { background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, #ff7a50 22%, transparent), transparent 70%); }
@media (prefers-color-scheme: dark) { .card--featured .icon, .card--featured .more { color: #cf3510; } }
@media (hover: hover) and (pointer: fine) { .card--featured:hover { border-color: var(--accent-btn); } }

/* ---------- Podstrona usługi ---------- */
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--accent); text-underline-offset: 3px; }
.page-hero { padding-bottom: clamp(32px, 5vw, 64px); }
.hero .page-title { font-size: clamp(30px, 5vw, 62px); max-width: 24ch; letter-spacing: -0.04em; line-height: 1.05; }
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 80px; } }
.checklist { margin-top: 28px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-btn);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; }
.pricing { display: grid; gap: 16px; }
@media (min-width: 700px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricing { grid-template-columns: repeat(5, 1fr); } }
.price-card { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.price-card .btn { margin-top: auto; width: 100%; padding: 0 12px; font-size: 15px; white-space: nowrap; }
.price { font-size: clamp(34px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price--text { font-size: 24px; line-height: 1.15; letter-spacing: -0.025em; }
.price-facts { display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.price-facts strong { color: var(--ink); }
.price-card--custom { border-style: dashed; }
.price-note { margin-top: 28px; max-width: 70ch; font-size: 15px; color: var(--muted); }
.cta-band { text-align: center; display: grid; justify-items: center; gap: 4px; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 24px; background: var(--ink); color: var(--bg); }
.cta-band .lead { color: color-mix(in srgb, var(--bg) 70%, transparent); margin-bottom: 20px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; } .faq-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq-intro .btn { margin-top: 28px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px; padding: 22px 0;
  font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; color: var(--accent);
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 250ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 24px 0; color: var(--muted); max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent); } }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
  .faq details::details-content { transition: none; }
}

/* ---------- Treść wpisów i stron ---------- */
.entry-meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(26px, 4vw, 36px); margin-top: 1.8em; }
.entry-content h3 { font-size: 22px; margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content a { text-underline-offset: 3px; color: var(--accent); }
.entry-content img, .entry-content video { height: auto; border-radius: 12px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.entry-content blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.entry-content pre { overflow-x: auto; padding: 16px; border-radius: 10px; background: var(--bg-tint); font: 14px/1.5 var(--mono); }
.entry-content code { font-family: var(--mono); font-size: 0.92em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.entry-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.2em; }
.entry-content .aligncenter { margin-inline: auto; display: block; }
.post-list { display: grid; gap: 16px; margin-top: 32px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.post-card h2 { font-size: 24px; letter-spacing: -0.025em; }
.post-card h2 a { text-decoration: none; }
.post-card h3 { font-size: 20px; letter-spacing: -0.02em; }
.post-card h3 a { text-decoration: none; }
.post-card p.eyebrow { color: var(--accent); margin: 0 0 10px; }
.post-card p { color: var(--muted); margin-top: 10px; }
.post-card .more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--accent); text-underline-offset: 3px; }
.pagination { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--accent-ink); }
.error-404 { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 8px; }
.error-404 .code { font-size: clamp(96px, 22vw, 220px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--accent); }
.error-404 .btn { margin-top: 20px; }

/* ---------- Prose (index.php) ---------- */
.prose { max-width: 720px; }
.prose h1 { margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-inner, .logo-img { transition: none; }
  .js .reveal { transform: none; filter: none; transition: opacity 200ms ease; }
  .nav, .cookie { transform: none; }
  .btn:active { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav a, .nav-cta { transform: none; transition: opacity 200ms ease; transition-delay: 0s !important; }
  .form-cf7 .wpcf7-not-valid-tip, .form-cf7 .wpcf7-response-output { transform: none; }
  .form-cf7 .wpcf7-form.invalid .wpcf7-not-valid { animation: none; }
  .tick path { animation: none; stroke-dashoffset: 0; }
}
