/* =====================================================================
   Motyw „Firma” — strona usługowa z sekcjami (EveryPrime).
   Kolory w :root (jasny) i w @media (prefers-color-scheme: dark).
   Bloki treści: .blk-hero, .blk-head, .svc-index, .split, .features, .facts, .cta, .steps, .demo
   ===================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --mist: #eef1f3;          /* chłodne tło sekcji naprzemiennych */
  --ink: #1c232b;           /* łupek — tekst */
  --muted: #56616c;
  --line: #d6dce1;
  --amber: #e08214;         /* kolor marki — przyciski, linie wymiarowe */
  --amber-hover: #c9700a;
  --amber-ink: #9a5307;     /* bursztyn na białym tle (linki), kontrast > 5:1 */
  --walnut: #2c2119;        /* orzech — stopka, ciemne pasy */
  --walnut-2: #3b2d22;
  --on-dark: #f4efe9;
  --on-dark-muted: #c2b5a8;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --pad: clamp(56px, 8vw, 112px);
  --rad: 6px;
  --header-h: 72px;
  --row-h: 260px;
  --gap: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13171b;
    --mist: #1a1f25;
    --ink: #e6eaee;
    --muted: #9ba6b0;
    --line: #2b323a;
    --amber: #ec9132;
    --amber-hover: #f4a352;
    --amber-ink: #f2a54e;
    --walnut: #0e0b08;
    --walnut-2: #1d1712;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
code { font-size: .9em; background: var(--mist); padding: 1px 6px; border-radius: 4px; }
::selection { background: var(--amber); color: #1c232b; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--rad); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1800px; }
.wrap-text { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------------------------------------------------------------- pasek administratora */
.adminbar {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap; position: relative; z-index: 60;
  padding: 7px var(--gutter); font-size: 13px; background: var(--ink); color: var(--paper);
}
.adminbar a { color: inherit; font-weight: 600; text-decoration: none; }
.adminbar span { opacity: .65; margin-left: auto; }

/* ---------------------------------------------------------------- nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; line-height: 1.1; margin-right: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.brand-tag { font-size: 12.5px; color: var(--muted); }
.brand-logo { display: block; flex: none; }
.brand-logo img { display: block; width: auto; max-width: min(56vw, 260px); object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-list, .sub-list, .sub-kids, .lang-switch { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: var(--rad);
  color: var(--ink); transition: background-color .15s;
}
.nav-item > a:hover { background: var(--mist); }
.nav-item > a[aria-current], .nav-item > a.is-active { box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.sub-toggle {
  width: 26px; height: 32px; margin-left: -8px; border: 0; background: none; cursor: pointer; color: var(--muted);
  display: grid; place-items: center; border-radius: var(--rad);
}
.sub-toggle::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-item.is-open > .sub-toggle::before { transform: translateY(2px) rotate(-135deg); }

.sub {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 260px; padding: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(20, 28, 36, .35); visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.has-sub:hover > .sub, .nav-item.is-open > .sub, .nav-item.has-sub:focus-within > .sub {
  visibility: visible; opacity: 1; transform: none; transition-delay: 0s;
}
.sub-list a { display: block; text-decoration: none; padding: 7px 12px; border-radius: var(--rad); font-size: 15px; font-weight: 500; }
.sub-list a:hover { background: var(--mist); }
.sub-list a[aria-current] { color: var(--amber-ink); }
/* podmenu z wnukami — panel kolumnowy */
.has-mega > .sub { width: min(860px, 92vw); left: 50%; transform: translate(-50%, -4px); padding: 18px; }
.has-mega:hover > .sub, .has-mega.is-open > .sub, .has-mega:focus-within > .sub { transform: translate(-50%, 0); }
.has-mega .sub-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; }
.has-mega .sub-item.has-kids { grid-row: span 3; }
.has-mega .sub-item.has-kids > a { font-weight: 650; }
.sub-kids { margin: 2px 0 8px 12px; padding-left: 10px; border-left: 1px solid var(--line); }
.sub-kids a { font-size: 14px; color: var(--muted); padding: 5px 10px; }
.sub-kids a:hover { color: var(--ink); }

.lang-switch { display: flex; gap: 2px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang-switch a {
  display: block; text-decoration: none; font-size: 13px; font-weight: 650; letter-spacing: .02em; padding: 6px 8px;
  border-radius: var(--rad); color: var(--muted);
}
.lang-switch a:hover { color: var(--ink); background: var(--mist); }
.lang-switch a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }

.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font); color: var(--ink);
    background: none; border: 1px solid var(--line); border-radius: var(--rad); padding: 10px 14px; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 1.6px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; overflow-y: auto;
    background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px;
    border-top: 1px solid var(--line);
  }
  .adminbar ~ .site-header .site-nav { top: calc(var(--header-h) + 33px); }
  .nav-open .site-nav { display: flex; }
  .nav-open body { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; font-size: 18px; padding: 14px 4px; }
  .nav-item > a:hover { background: none; }
  .nav-item > a[aria-current], .nav-item > a.is-active { box-shadow: none; color: var(--amber-ink); }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .sub, .has-mega > .sub {
    position: static; width: 100%; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0;
    padding: 0 0 12px; display: none; background: none;
  }
  .nav-item.has-sub:hover > .sub { display: none; }
  .nav-item.is-open > .sub, .has-mega.is-open > .sub { display: block; transform: none; }
  .has-mega .sub-list { grid-template-columns: 1fr; }
  .has-mega .sub-item.has-kids { grid-row: auto; }
  .lang-switch { border: 0; padding: 18px 0 0; gap: 8px; }
  .lang-switch a { font-size: 15px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--rad); }
  .lang-switch a[aria-current] { border-color: var(--amber); box-shadow: none; border-radius: var(--rad); }
}

/* ---------------------------------------------------------------- typografia */
h1, h2, h3, h4 { text-wrap: balance; }
.display {
  font-weight: 780; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(38px, 5.6vw, 68px); margin: 0 0 18px; max-width: 20ch;
}
.display-post { font-size: clamp(34px, 4.4vw, 54px); max-width: 24ch; }
.page-head { padding-top: clamp(40px, 7vw, 88px); padding-bottom: 28px; }
.page-meta { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.page-meta a { text-decoration: none; color: var(--amber-ink); font-weight: 550; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 680px; }
.lead p { margin: 0 0 .6em; }
.section { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 40px); }
.section-title { margin: 0; font-weight: 760; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(28px, 3.4vw, 44px); }
.more { font-size: 15px; font-weight: 600; color: var(--amber-ink); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.empty { color: var(--muted); }
.notice { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--amber); color: #1c232b; margin: 16px 0 6px; }

.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs-over { padding-top: 22px; margin-bottom: -6px; position: relative; z-index: 1; }

/* treść tekstowa */
.prose { font-size: 17.5px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(25px, 2.6vw, 32px); font-weight: 740; letter-spacing: -.025em; line-height: 1.18; margin: 1.9em 0 .55em; }
.prose h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 1.6em 0 .45em; }
.prose h4 { font-size: 18px; font-weight: 680; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--amber); }
.prose a { color: var(--amber-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 650; }
.prose img { display: block; margin: 2em auto; border-radius: var(--rad); }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); font-size: 20px; line-height: 1.5; font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.5em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--rad); }

/* ---------------------------------------------------------------- przyciski */
.btn, .prose a.btn, .demo-run {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 15.5px/1.2 var(--font);
  background: var(--amber); color: #1c232b; border: 1.5px solid var(--amber); border-radius: var(--rad);
  padding: 13px 22px; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s;
}
.btn:hover, .prose a.btn:hover, .demo-run:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn-line, .prose a.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover, .prose a.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------------------------------------------------------- bloki sekcji */
.blocks > .blk:first-child:not(.blk-hero):not(.blk-head) { padding-top: clamp(40px, 6vw, 80px); }
.blk { padding-block: var(--pad); }
.blk + .blk:not(.blk-mist):not(.blk-dark):not(.blk-amber) { padding-top: 0; }
.blk-mist + .blk, .blk-dark + .blk, .blk-amber + .blk { padding-top: var(--pad) !important; }
.blk-mist { background: var(--mist); }
.blk-dark { background: var(--walnut); color: var(--on-dark); }
.blk-dark .lead, .blk-dark .muted, .blk-dark p { color: var(--on-dark-muted); }
.blk-dark h2, .blk-dark h3 { color: var(--on-dark); }
.blk-dark .prose a { color: var(--amber); }
.blk-amber { background: var(--amber); color: #1c232b; }
.blk-amber .lead, .blk-amber p { color: #2b2a26; }
.blk-amber .btn { background: #1c232b; color: #fff; border-color: #1c232b; }
.blk-amber .btn:hover { background: #000; }
.blk-amber .btn-line { background: transparent; color: #1c232b; border-color: #1c232b; }
.blk-amber .btn-line:hover { background: #1c232b; color: #fff; }
.blk h2 { font-weight: 760; letter-spacing: -.03em; line-height: 1.1; font-size: clamp(28px, 3.4vw, 44px); margin: 0 0 18px; max-width: 22ch; }
.blk h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 0 0 8px; }
.blk p { margin: 0 0 1em; }
.blk .lead { margin-bottom: 0; }
.blk-intro { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }

/* nagłówek strony głównej: tekst + render z liniami wymiarowymi */
.blk-hero { padding-block: clamp(40px, 6vw, 88px) var(--pad); }
.blk-hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.blk-hero h1 { font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(40px, 5.4vw, 72px); margin: 0 0 22px; max-width: 14ch; }
.blk-hero .lead { font-size: clamp(18px, 1.5vw, 20px); }
.hero-media { position: relative; padding: 30px 0 0 30px; }

/* linie wymiarowe — jak na rysunku technicznym */
.dim { position: relative; }
.dim::before, .dim::after { content: ""; position: absolute; pointer-events: none; }
.dim::before { /* górna: |———| */
  left: 0; right: 0; top: -18px; height: 9px;
  border-left: 1.5px solid var(--amber); border-right: 1.5px solid var(--amber);
  background: linear-gradient(var(--amber), var(--amber)) center / 100% 1.5px no-repeat;
}
.dim::after { /* lewa */
  top: 0; bottom: 0; left: -18px; width: 9px;
  border-top: 1.5px solid var(--amber); border-bottom: 1.5px solid var(--amber);
  background: linear-gradient(var(--amber), var(--amber)) center / 1.5px 100% no-repeat;
}

/* demo 3D (Verge3D) wczytywane po kliknięciu */
.demo { position: relative; aspect-ratio: 4 / 3; background: var(--mist); border-radius: var(--rad); overflow: hidden; isolation: isolate; }
.demo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo .demo-run { position: absolute; left: 16px; bottom: 16px; z-index: 2; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.demo .demo-run::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.demo.is-live > img { visibility: hidden; }
.demo-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.demo-tall { aspect-ratio: 3 / 4; }
.demo-wide { aspect-ratio: 16 / 9; }

/* nagłówek podstrony */
.blk-head { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.blk-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.blk-head .wrap:not(:has(> figure)) { grid-template-columns: minmax(0, 1fr); }
.blk-head h1 { font-weight: 780; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(36px, 5vw, 64px); margin: 0 0 18px; max-width: 18ch; }
.blk-head figure { margin: 0; }
.blk-head figure img { display: block; width: 100%; border-radius: var(--rad); }

/* lista usług — indeks w dwóch kolumnach */
.svc-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 4px 24px; text-decoration: none; position: relative; }
.svc-index a::after {
  content: ""; grid-row: 1; grid-column: 2; align-self: center; width: 9px; height: 9px;
  border: solid var(--muted); border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); transition: transform .2s, border-color .2s;
}
.svc-index a:hover::after { border-color: var(--amber); transform: translateX(4px) rotate(45deg); }
.svc-index h3 { margin: 0; font-size: 20px; grid-column: 1; }
.svc-index a:hover h3 { color: var(--amber-ink); }
.svc-index p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 52ch; }
.blk-dark .svc-index, .blk-dark .svc-index li { border-color: rgba(255, 255, 255, .14); }
.blk-dark .svc-index a:hover h3 { color: var(--amber); }

/* tekst + obraz */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-rev > :first-child { order: 2; }
.split figure { margin: 0; }
.split figure img { display: block; width: 100%; border-radius: var(--rad); }
.split .prose { font-size: 17px; }

/* cechy — krótkie hasła z opisem */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px clamp(20px, 3vw, 40px); }
.features li { border-top: 2px solid var(--amber); padding-top: 18px; }
.features h3 { font-size: 19px; }
.features p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.blk-dark .features p { color: var(--on-dark-muted); }

/* liczby */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.facts li { display: flex; flex-direction: column-reverse; gap: 6px; border-left: 2px solid var(--amber); padding-left: 18px; }
.facts b { font-size: clamp(34px, 4vw, 52px); font-weight: 780; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 15px; }
.blk-dark .facts span { color: var(--on-dark-muted); }

/* kroki procesu (tylko gdy treść naprawdę jest sekwencją) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-weight: 700; color: var(--amber-ink); font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps h3 { margin: 0; }
.steps p { margin: 0; color: var(--muted); }

/* lista punktowana w dwóch kolumnach */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px 32px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border: solid var(--amber); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* wezwanie do kontaktu */
.cta .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.cta h2 { margin-bottom: 12px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 18px; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-list small { display: block; font-weight: 450; font-size: 14px; opacity: .8; }

/* podstrony (blok dynamiczny) */
.subpages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); }
.subpages li { border-bottom: 1px solid var(--line); }
.subpages a { display: block; padding: 20px 2px; text-decoration: none; }
.subpages-title { display: block; font-weight: 680; font-size: 18.5px; letter-spacing: -.01em; }
.subpages a:hover .subpages-title { color: var(--amber-ink); }
.subpages-desc { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; line-height: 1.55; }

/* galeria obrazów w treści */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 0; }
.shots img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rad); background: var(--mist); }

@media (max-width: 900px) {
  .blk-hero .wrap, .blk-head .wrap, .split, .cta .wrap { grid-template-columns: minmax(0, 1fr); }
  .split-rev > :first-child { order: 0; }
  .svc-index { grid-template-columns: minmax(0, 1fr); }
  .hero-media { padding: 24px 0 0 24px; }
}

/* ---------------------------------------------------------------- blog */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 44px clamp(18px, 2.4vw, 32px); }
.pcard { display: flex; flex-direction: column; }
.pcard-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--rad); background: var(--mist); margin-bottom: 16px; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .1, 1); }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-date { font-size: 14px; color: var(--muted); }
.pcard-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 4px 0 8px; }
.pcard-title a { text-decoration: none; }
.pcard-title a:hover { color: var(--amber-ink); }
.pcard-excerpt { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.blk-dark .pcard-excerpt, .blk-dark .pcard-date { color: var(--on-dark-muted); }
.blk-dark .pcard-title a:hover { color: var(--amber); }
.post-cover { margin: 0 auto 44px; max-width: calc(1040px + 2 * var(--gutter)); }
.post-cover img { width: 100%; display: block; border-radius: var(--rad); max-height: 620px; object-fit: cover; }
.post-foot { padding-bottom: 24px; }
.section-blog { padding-bottom: 72px; }
.more-posts { border-top: 1px solid var(--line); margin-top: 40px; }
.pager { display: flex; gap: 6px; justify-content: center; padding-top: 56px; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; text-decoration: none; border-radius: var(--rad); font-size: 15px; font-weight: 600; border: 1px solid var(--line); }
.pager a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.tags a { display: inline-block; font-size: 14px; font-weight: 550; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; }
.tags a:hover { color: var(--ink); border-color: var(--muted); }

/* ---------------------------------------------------------------- formularz kontaktowy */
.contact { padding-top: 12px; padding-bottom: 80px; }
.cform { display: grid; gap: 18px; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .cform-row { grid-template-columns: 1fr; } }
.cform label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.cform input, .cform textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--rad); padding: 13px 15px; width: 100%;
}
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--amber); outline-offset: -1px; border-color: transparent; }
.cform .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: var(--rad); margin-bottom: 22px; font-size: 15px; }
.alert p { margin: 0; }
.alert-ok { background: #e2f1e6; color: #1b4a2b; }
.alert-err { background: #f8e2dd; color: #6d2414; }
@media (prefers-color-scheme: dark) {
  .alert-ok { background: #17301f; color: #b9e3c6; }
  .alert-err { background: #3a1f1a; color: #f0bfb3; }
}
.notfound { padding-bottom: 104px; }

/* ---------------------------------------------------------------- stopka */
.site-footer { background: var(--walnut); color: var(--on-dark-muted); margin-top: 0; font-size: 15px; }
main > :last-child:not(.full-page) { margin-bottom: clamp(40px, 6vw, 80px); }
.footer-main { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 32px; }
.prose-footer a { color: var(--on-dark); text-decoration: none; }
.prose-footer a:hover { color: var(--amber); }
.prose-footer h3, .prose-footer h4 { color: var(--on-dark); font-size: 15px; font-weight: 650; margin: 0 0 12px; letter-spacing: 0; }
.prose-footer p { margin: 0 0 .5em; line-height: 1.6; }
.prose-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prose-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.prose-footer .footer-brand { font-size: 22px; font-weight: 780; letter-spacing: -.03em; color: var(--on-dark); margin-bottom: 10px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; font-size: 13.5px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------------- galerie (gdy włączone) */
.intro { padding-top: clamp(48px, 9vw, 120px); }
.hero { position: relative; min-height: min(80vh, 820px); display: flex; align-items: flex-end; color: #fff; background: #1b2024; overflow: hidden; isolation: isolate; }
.hero-gallery { min-height: min(66vh, 700px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 12, 14, .75), rgba(10, 12, 14, 0) 60%); }
.hero-inner { padding-top: 120px; padding-bottom: clamp(32px, 6vw, 64px); display: grid; gap: 16px; }
.hero-title { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: .95; font-size: clamp(42px, 8vw, 112px); max-width: 16ch; }
.hero-intro { max-width: 560px; font-size: 19px; color: rgba(255, 255, 255, .88); }
.hero-meta { margin: 0; display: flex; gap: 22px; font-size: 16px; color: rgba(255, 255, 255, .85); }
.hero-latest { justify-self: start; display: inline-flex; gap: 4px 12px; flex-wrap: wrap; padding: 12px 20px; border-radius: var(--rad); text-decoration: none; background: rgba(255, 255, 255, .14); backdrop-filter: blur(12px); font-size: 15px; }
.has-hero .site-header.is-over { position: sticky; }
.sortbar { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--rad); border: 1px solid var(--line); }
.sortbar a { font-size: 14px; font-weight: 550; padding: 6px 14px; border-radius: 4px; text-decoration: none; color: var(--muted); }
.sortbar a[aria-current] { background: var(--ink); color: var(--paper); }
.year-group { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 24px clamp(24px, 4vw, 48px); padding-block: 32px; border-top: 1px solid var(--line); }
.year { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; font-size: clamp(44px, 5vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: .85; color: var(--amber-ink); }
@media (max-width: 760px) { .year-group { grid-template-columns: 1fr; } .year { position: static; } }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 24px; }
.gcard { display: block; text-decoration: none; }
.gcard-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rad); background: var(--mist); }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .1, 1); }
.gcard:hover .gcard-img img { transform: scale(1.03); }
.gcard-body { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.gcard-title { font-weight: 680; font-size: 18px; letter-spacing: -.01em; }
.gcard-meta { display: flex; gap: 12px; font-size: 14px; color: var(--muted); }
.gallery-about { padding-top: clamp(28px, 4vw, 48px); max-width: calc(820px + 2 * var(--gutter)); }
.photos { padding-top: clamp(24px, 3vw, 40px); }
.justified { display: flex; flex-wrap: wrap; gap: var(--gap); }
.justified::after { content: ""; flex-grow: 999999; }
.jitem { position: relative; display: block; overflow: hidden; background: var(--mist); flex-basis: calc(var(--r) * var(--row-h)); cursor: zoom-in; }
.jitem img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; }
@media (max-width: 900px) { :root { --row-h: 190px; } }
@media (max-width: 560px) { :root { --row-h: 140px; --gap: 3px; } }
.back { padding-top: 40px; padding-bottom: 64px; font-size: 15px; font-weight: 550; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- lightbox */
.lb-lock, .lb-lock body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; background: #0b0d0f; color: #eee; display: none; touch-action: pan-y; --lb-top: 56px; --lb-side: 64px; --lb-bottom: 64px; }
.lb.is-open { display: block; }
.lb-stage { position: absolute; inset: var(--lb-top) var(--lb-side) var(--lb-bottom); display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: calc(100vw - 2 * var(--lb-side)); max-height: calc(100dvh - var(--lb-top) - var(--lb-bottom)); width: auto; height: auto; object-fit: contain; user-select: none; transition: opacity .2s; }
.lb.is-loading .lb-img { opacity: .25; }
.lb-spin { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%; animation: lbspin .8s linear infinite; display: none; }
.lb.is-loading .lb-spin { display: block; }
@keyframes lbspin { to { transform: rotate(360deg); } }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 15px; }
.lb-cnt { color: #8b9692; margin-left: auto; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .08); border: 0; color: #fff; cursor: pointer; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; font: 300 30px/1 var(--font); }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 8px; right: 10px; font-size: 28px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb.is-single .lb-prev, .lb.is-single .lb-next, .lb.is-single .lb-cnt { display: none; }
@media (max-width: 640px) { .lb { --lb-side: 0px; } .lb-prev, .lb-next { display: none; } }

/* ---------------------------------------------------------------- telefon */
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .prose { font-size: 16.5px; }
  .brand-name { font-size: 18px; }
  .brand-logo img { max-height: 38px; }
  .actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .adminbar, .demo-run, .lang-switch { display: none !important; }
  .blk-dark, .blk-amber, .blk-mist { background: none; color: #000; }
}

/* siatka dem 3D */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
.demo-grid figure { margin: 0; }
.demo-grid figcaption { font-size: 15px; font-weight: 600; margin-top: 10px; }
.demo:not(:has(> img))::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%),
              linear-gradient(45deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%);
}
.demo.is-live::before { display: none; }

/* kontakt: dane w dwóch kolumnach */
.contact-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px 40px; margin-bottom: 1em; }
.contact-cols h2 { margin-top: 0 !important; font-size: 20px !important; }
/* portfolio z podpisami */
.shots-captions figure { margin: 0; }
.shots-captions figcaption { font-size: 15px; font-weight: 600; margin-top: 8px; }
.shots a { display: block; cursor: zoom-in; }
.blk .lead + ul, .blk .lead + .checklist, .blk .lead + .features { margin-top: 28px; }
[data-lightbox-content] .prose img, .blocks .split figure img { cursor: zoom-in; }
.blk-head + .blk:not(.blk-mist):not(.blk-dark):not(.blk-amber) { padding-top: var(--pad); }
.blk .prose h2 { font-size: clamp(25px, 2.6vw, 32px); font-weight: 740; letter-spacing: -.025em; line-height: 1.18; margin: 1.9em 0 .55em; max-width: none; }
.blk .prose h3 { font-size: 21px; font-weight: 700; margin: 1.6em 0 .45em; }
.blk .prose > :first-child { margin-top: 0; }
.blk .prose p { margin: 0 0 1.1em; }
.footer-inner { border-top: 0; position: relative; }
.footer-inner::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; border-top: 1px solid rgba(255, 255, 255, .12); }

/* menu kolumnowe: panel wyrównany do prawej krawędzi nagłówka, kolumny zamiast siatki */
@media (min-width: 1081px) {
  .header-inner { position: relative; }
  .nav-item.has-mega { position: static; }
  .has-mega > .sub, .has-mega:hover > .sub, .has-mega.is-open > .sub, .has-mega:focus-within > .sub {
    left: auto; right: var(--gutter); top: calc(100% - 4px); transform: none; width: min(920px, calc(100vw - 2 * var(--gutter)));
  }
  .has-mega .sub-list { display: block; columns: 3; column-gap: 28px; }
  .has-mega .sub-item { break-inside: avoid; padding-bottom: 6px; }
  .has-mega .sub-item.has-kids { grid-row: auto; }
}
/* na telefonie bez rozmycia tła — inaczej panel menu (position: fixed) liczy się względem nagłówka */
@media (max-width: 1080px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
}
@media (max-width: 1080px) {
  .nav-item.has-sub.is-open > .sub { display: block; }
}
.facts li { flex-direction: column; justify-content: flex-start; }
.facts b { font-size: clamp(30px, 3.4vw, 46px); white-space: nowrap; }
