/* =========================================================
   LIWATECH – style szablonu WordPress
   Przeniesione z css/style.css wersji statycznej (wzór w repozytorium).
   Kroje (@font-face) i paleta są w theme.json.
   ========================================================= */

/* ---------- Zmienne ---------- */
/* Kolory i kroje pochodzą z theme.json (Wygląd → Edytor → Style). */
:root {
  --navy: var(--wp--preset--color--navy, #0e1a2e);
  --navy-2: var(--wp--preset--color--navy-2, #16253d);
  --orange: var(--wp--preset--color--orange, #ea5b0c);
  --orange-dark: var(--wp--preset--color--orange-dark, #c94c08);
  --white: var(--wp--preset--color--white, #ffffff);
  --grey-50: var(--wp--preset--color--grey-50, #f4f6f9);
  --grey-100: var(--wp--preset--color--grey-100, #e9edf2);
  --grey-300: var(--wp--preset--color--grey-300, #c9d1dc);
  --text: var(--navy);
  --text-muted: var(--wp--preset--color--text-muted, #4a5568);     /* 7,5:1 na bieli */
  --on-dark-muted: #b8c3d3;  /* 9:1 na granacie */
  --line: var(--wp--preset--color--line, #d8dee7);

  --font: var(--wp--preset--font-family--ibm-plex-sans, "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif);
  --font-head: var(--wp--preset--font-family--archivo, "Archivo", "Segoe UI", Roboto, Arial, sans-serif);
  --orange-ink: #b34407;     /* ciemniejszy odcień pomarańczu tylko do drobnego tekstu: 5:1 także na szarym tle */

  /* faza 45° na krawędziach sekcji – jak krawędź przygotowana pod spaw */
  --bevel: clamp(28px, 4vw, 56px);
  --seam: 3px; /* grubość pomarańczowej linii spoiny */

  --wrap: 1520px;   /* szerokość treści – szerokie monitory */
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --section-pad: clamp(64px, 9vw, 120px);
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
/* duże monitory: cała typografia (rem) o ok. 6% większa – tekst 18 zamiast 17 px */
@media (min-width: 1680px) { html { font-size: 106.25%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.018em; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.site-footer :focus-visible { outline-color: #ff8a47; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Bloki WordPressa: sekcje szablonu mają własne odstępy ---------- */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
main.wp-block-group > * { margin-block: 0; }
.wp-block-group:where(.wrap) { box-sizing: border-box; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.skip-link.screen-reader-text:focus { background: var(--navy); color: var(--white); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; border: 2px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
/* biały pogrubiony tekst na ciemniejszym pomarańczu marki: kontrast 4,6:1 */
.btn-primary { background: var(--orange-dark); color: var(--white); border-color: var(--orange-dark); font-weight: 700; }
.btn-primary:hover { background: var(--orange-ink); border-color: var(--orange-ink); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 1rem; }

/* ---------- Nazwa sekcji + tytuł ----------
   Pionowa pomarańczowa listwa przy nazwie i tytule, górny koniec ścięty
   pod 45° – ten sam kąt co skos pod banerem i fazy na szarych sekcjach.
   Listwa składa się z dwóch odcinków (przy nazwie i przy tytule), więc
   nie trzeba owijać nagłówka dodatkowym elementem. */
.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: .9375rem; font-weight: 600; line-height: 1.2;
  color: var(--orange-ink);
}
.eyebrow:not(.eyebrow-dim):has(+ :is(.section-title, .page-title)),
.eyebrow:not(.eyebrow-dim):has(+ :is(.section-title, .page-title)) + * {
  position: relative; padding-left: clamp(18px, 2vw, 26px);
}
.eyebrow:not(.eyebrow-dim):has(+ :is(.section-title, .page-title))::before,
.eyebrow:not(.eyebrow-dim):has(+ :is(.section-title, .page-title)) + *::before {
  content: ""; position: absolute; left: 0; width: 6px; background: var(--orange);
}
.eyebrow:not(.eyebrow-dim):has(+ :is(.section-title, .page-title))::before {
  top: 2px; bottom: -13px; /* do tytułu (odstęp 12 px + 1 px zakładki) */
  clip-path: polygon(0 6px, 100% 0, 100% 100%, 0 100%);
}
.eyebrow:not(.eyebrow-dim):has(+ :is(.section-title, .page-title)) + *::before { top: 0; bottom: 6px; }

/* Wariant „linia wymiarowa” – tylko w sekcji Projektowanie, bo mówi o rysunkach.
   |<——— Projektowanie ———>|  – linie pomocnicze, strzałki i opis na linii */
.eyebrow-dim {
  display: grid; grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr); align-items: center; gap: 12px;
  width: min(100%, 22rem);
  margin-bottom: 22px;
  font-family: var(--font); font-size: .9375rem; font-weight: 500;
  color: var(--text-muted);
}
.eyebrow-dim::before, .eyebrow-dim::after {
  content: ""; width: auto; height: 14px; clip-path: none;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M0 4 10 0.5v7z' fill='%23ea5b0c'/%3E%3C/svg%3E");
}
.eyebrow-dim::before {
  order: -1;
  background:
    linear-gradient(var(--orange), var(--orange)) left center / 1.5px 14px no-repeat,
    var(--arrow) 1.5px center / 10px 8px no-repeat,
    linear-gradient(var(--orange), var(--orange)) left center / 100% 1.5px no-repeat;
}
/* prawa połowa: to samo odbite w poziomie */
.eyebrow-dim::after {
  background:
    linear-gradient(var(--orange), var(--orange)) left center / 1.5px 14px no-repeat,
    var(--arrow) 1.5px center / 10px 8px no-repeat,
    linear-gradient(var(--orange), var(--orange)) left center / 100% 1.5px no-repeat;
  transform: scaleX(-1);
}

.section { padding-block: var(--section-pad); }
.section-title { font-size: clamp(2rem, 3.9vw, 3.125rem); max-width: 20ch; text-wrap: balance; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--text-muted); max-width: 62ch; }

/* =========================================================
   Nagłówek
   ========================================================= */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; margin: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 176px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 18px; }
.main-nav ul a {
  display: inline-block; padding: 8px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; color: var(--navy); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { border-bottom-color: var(--orange); }
.header-contact { display: flex; flex: none; align-items: center; gap: 18px; }
.header-contact .btn { white-space: nowrap; }
/* w menu jest dodatkowo „Blog” – podpis „Sprzedaż” przy telefonie tylko w menu mobilnym */
.header-contact .header-phone small { display: none; }
.header-phone {
  display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; color: var(--navy);
  padding-left: 22px; border-left: 1px solid var(--line);
}
.header-phone small { font-size: .8125rem; color: var(--text-muted); letter-spacing: .02em; }
.header-phone span { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-phone:hover span { color: var(--orange-dark); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-extra { display: none; }

/* Przełącznik języków: PL | EN | DE (Polylang) – przy telefonie w nagłówku i w menu mobilnym */
.lang-switch ul { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.lang-switch li + li { border-left: 1px solid var(--line); }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 36px; padding: 0 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .875rem; letter-spacing: .02em;
  color: var(--text-muted); text-decoration: none;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a[aria-current="true"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--orange); }
.lang-switch-menu { display: none; }

@media (max-width: 1540px) {
  .header-phone small { display: none; }
  .main-nav ul { gap: 18px; }
}
@media (max-width: 1279px) {
  :root { --header-h: 68px; }
  .brand img { width: 150px; }
  .nav-toggle { display: inline-flex; }
  .header-contact .btn { display: none; }
  .header-phone { border-left: 0; padding-left: 0; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 12px var(--gutter) 32px; overflow-y: auto;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 18px 0; font-size: 1.375rem; border-bottom: 0; }
  .mobile-extra { display: grid; gap: 14px; margin-top: 28px; }
  .mobile-extra .header-phone { flex-direction: column; }
  .mobile-extra .header-phone small { display: block; }
  .mobile-extra .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 1279px) {
  /* przełącznik w menu mobilnym – bez stylu pozycji menu */
  .lang-switch-menu { display: block; margin-top: 6px; }
  .main-nav .lang-switch-menu ul { flex-direction: row; gap: 0; }
  .main-nav .lang-switch-menu li { border-bottom: 0; }
  .main-nav .lang-switch-menu li + li { border-left: 1px solid var(--line); }
  .main-nav .lang-switch-menu a { display: inline-flex; min-width: 56px; min-height: 48px; padding: 0 12px; font-size: 1rem; border-bottom: 0; }
}
@media (max-width: 640px) {
  /* na wąskim ekranie przełącznik jest w menu mobilnym */
  .header-contact .lang-switch { display: none; }
}
@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .brand img { width: 132px; }
  .header-contact .header-phone span { font-size: 1.0625rem; }
}
@media (max-width: 380px) {
  .header-contact { display: none; }
}

/* =========================================================
   Baner – jasne tło, pokaz ujęć z warsztatu
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: min(calc(100svh - var(--header-h)), 740px);
  display: flex; align-items: center;
  background: var(--grey-50); color: var(--navy);
  --cut: clamp(28px, 5vw, 72px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  padding-bottom: calc(var(--cut) * .6);
}
.hero::after {
  content: ""; position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: var(--cut); pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - var(--seam) - .5px), var(--orange) calc(50% - var(--seam)), var(--orange) 50%, transparent calc(50% + .5px));
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(48px, 8vh, 96px); pointer-events: none; }
.hero-content { max-width: 620px; pointer-events: auto; }
.hero h1 {
  font-size: clamp(2.25rem, 3.9vw, 3.25rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.028em;
  text-wrap: balance;
  margin-bottom: 26px;
}
.hero-lead { font-size: clamp(1.0625rem, 1.45vw, 1.1875rem); line-height: 1.55; color: #3a4658; max-width: 31em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* trzy fakty pod przyciskami – znacznik ścięty pod 45° jak fazy sekcji */
.hero-facts { list-style: none; display: grid; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--grey-300); max-width: 31em; }
.hero-facts li { position: relative; padding-left: 22px; font-size: .96875rem; line-height: 1.45; color: var(--navy); font-weight: 500; }
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%, 0 60%);
}
.hero .eyebrow { color: var(--text-muted); }

/* pokaz: krótkie filmy z warsztatu po prawej, miękko przechodzą w jasne tło */
.hero-show {
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%; z-index: 1;
  overflow: hidden; isolation: isolate; background: var(--grey-50);
  -webkit-mask: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 36%);
  mask: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 36%);
}
.hero-show .slide { position: absolute; inset: 0; margin: 0; overflow: hidden; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1); z-index: 0; }
.hero-show .slide.is-on { clip-path: inset(0 0 0 0); z-index: 1; }
.hero-show .slide.is-prev { clip-path: inset(0 0 0 0); z-index: 0; transition: none; }
/* filmy wypełniają kadr, bez dodatkowego ruchu kamery – ruch jest w samym nagraniu;
   korekta kolorów jest zapisana w plikach (filtr CSS na wideo obciąża przeglądarkę) */
.hero-show .slide video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
/* ciemne ujęcie (przez przyłbicę): dłuższe, łagodniejsze przejście w jasne tło */
.hero-show .slide-dark { background: var(--grey-50); }
.hero-show .slide-dark video {
  -webkit-mask: linear-gradient(90deg, transparent 0, rgba(0,0,0,.25) 30%, rgba(0,0,0,.75) 50%, #000 66%);
  mask: linear-gradient(90deg, transparent 0, rgba(0,0,0,.25) 30%, rgba(0,0,0,.75) 50%, #000 66%);
  object-position: 70% 50%;
}

/* pomarańczowa linia przesuwająca się razem z kurtyną */
.hero-sweep { position: absolute; z-index: 4; top: 0; bottom: 0; left: 100%; width: 3px; background: var(--orange); opacity: 0; pointer-events: none; }
.hero-sweep.is-go { animation: sweep 1.1s cubic-bezier(.7,0,.2,1); }
@keyframes sweep { 0% { left: 100%; opacity: 1; } 90% { opacity: 1; } 100% { left: 0; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-show .slide { transition: none; }
  .hero-sweep { display: none; }
}

@media (max-width: 959px) {
  .hero { display: block; min-height: 0; padding-bottom: calc(var(--cut) * .7); }
  .hero-show {
    position: relative; width: 100%; height: min(96vw, 420px);
    -webkit-mask: linear-gradient(0deg, transparent 0, #000 22%); mask: linear-gradient(0deg, transparent 0, #000 22%);
  }
  .hero-show .slide-dark video { -webkit-mask: linear-gradient(0deg, transparent 0, #000 40%); mask: linear-gradient(0deg, transparent 0, #000 40%); object-position: 60% 50%; }
  .hero-inner { padding-block: 8px 24px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(1.875rem, 8.6vw, 2.25rem); }
  .hero-actions .btn { width: 100%; }
}

/* =========================================================
   Zakres usług
   ========================================================= */
.services-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px);
}
.services-intro .section-title { margin-bottom: 26px; }
.service-list { list-style: none; border-top: 2px solid var(--navy); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; align-content: start;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.service h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); margin-bottom: 10px; }
.service p { color: var(--text-muted); max-width: 64ch; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .service { grid-template-columns: 1fr; }
  .service::before { grid-row: auto; margin-bottom: 8px; }
  .service > * { grid-column: 1; }
}

/* =========================================================
   Realizacje
   ========================================================= */
.works { position: relative; z-index: 3; padding-bottom: clamp(48px, 6vw, 80px); }
.works .works-grid { margin-top: -56px; }
.works-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.works-grid > li { display: grid; margin: 0; }
.works-grid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.work { position: relative; background: var(--white); display: grid; grid-template-rows: auto 1fr; border-bottom: 3px solid transparent; transition: border-color .15s ease; box-shadow: 0 16px 30px -18px rgba(14,26,46,.45); }
.work:hover, .work:focus-within { border-bottom-color: var(--orange); }
.work-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-100); }
.work-photo .wp-block-post-featured-image { margin: 0; height: 100%; }
.work-photo .wp-block-post-featured-image a { display: block; height: 100%; }
.work-photo img { width: 100%; height: 100% !important; object-fit: cover; }
.work-tag {
  position: absolute; left: 0; top: 14px; padding: 5px 10px;
  background: var(--navy); color: var(--white);
  font-weight: 500; font-size: .875rem;
}
.work-tag a { color: var(--white); text-decoration: none; }
.work-tag a:hover { text-decoration: underline; color: var(--white); }
.work-body { padding: 18px 20px 22px; }
.work-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.work-body h3 a { text-decoration: none; }
/* cały kafelek klikalny – link tytułu rozciągnięty na kartę */
.work-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.work-tag { z-index: 2; }
.work-body p, .work-body .wp-block-post-excerpt__excerpt { font-size: .96875rem; line-height: 1.5; color: var(--text-muted); margin: 0; }
.works-more { margin-top: 28px; text-align: right; }
.works-more a { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.works-more a::after { content: " →"; }
@media (max-width: 1100px) { .works-grid, .works-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .works-grid, .works-grid-list { grid-template-columns: 1fr; gap: 14px; } .works-more { text-align: left; } }

/* =========================================================
   Przebieg realizacji (szara, z siatką) i Kontakt (szara) –
   przeplatają się z białymi sekcjami Zakres usług i Zamówienia;
   szare pasy na podstronach: zaproszenie do zapytania, „Zobacz też”
   ========================================================= */
.design, .contact, .cta-band, .more-works {
  position: relative; background: var(--grey-50);
  clip-path: polygon(var(--bevel) 0, 100% 0, 100% calc(100% - var(--bevel)), calc(100% - var(--bevel)) 100%, 0 100%, 0 var(--bevel));
}
.design::before, .design::after, .contact::before, .contact::after,
.cta-band::before, .cta-band::after, .more-works::before, .more-works::after {
  content: ""; position: absolute; width: var(--bevel); height: var(--bevel); pointer-events: none;
}
.design::before, .contact::before, .cta-band::before, .more-works::before {
  top: 0; left: 0;
  background: linear-gradient(to bottom right, transparent calc(50% - .5px), var(--orange) 50%, var(--orange) calc(50% + var(--seam)), transparent calc(50% + var(--seam) + .5px));
}
.design::after, .contact::after, .cta-band::after, .more-works::after {
  right: 0; bottom: 0;
  background: linear-gradient(to bottom right, transparent calc(50% - var(--seam) - .5px), var(--orange) calc(50% - var(--seam)), var(--orange) 50%, transparent calc(50% + .5px));
}
/* siatka kreślarska: co 8 mm cienko, co 40 mm mocniej – tylko tu, bo sekcja mówi o rysunkach */
.design {
  background-color: var(--grey-50);
  background-image:
    linear-gradient(rgba(14,26,46,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,26,46,.075) 1px, transparent 1px),
    linear-gradient(rgba(14,26,46,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,26,46,.035) 1px, transparent 1px);
  background-size: 150px 150px, 150px 150px, 30px 30px, 30px 30px;
  background-position: -1px -1px;
}
.design-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.design .section-title { margin-bottom: 28px; max-width: 16ch; }
.design-text p { max-width: 62ch; }
.design-text .lead { margin-bottom: 1.2em; }
.checklist-box { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: clamp(24px, 3vw, 36px); }
.checklist-box h3 { font-size: 1.375rem; margin-bottom: 18px; }
.checklist { list-style: none; }
.checklist li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--grey-100); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; background: var(--orange); }
.checklist-box .note { margin-top: 16px; font-size: .9375rem; color: var(--text-muted); }
@media (max-width: 900px) { .design-grid { grid-template-columns: 1fr; } }

/* etapy – w tej samej sekcji, pod tekstem i listą danych do oferty */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); counter-reset: step; }
.step { position: relative; padding: 34px clamp(20px, 3vw, 40px) 0 0; border-top: 2px solid var(--navy); }
.step + .step { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 4px; background: var(--orange); transform: translateY(-1px);
}
.step + .step::before { left: clamp(20px, 3vw, 40px); }
.step { counter-increment: step; }
.step h3::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.75rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--grey-300); margin-bottom: 16px; }
.step h3 { font-size: 1.5rem; margin-bottom: 12px; }
.step p { color: var(--text-muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 32px; border-left: 0; }
  .step + .step::before { left: 0; }
}

/* =========================================================
   Zamówienia jednostkowe i seryjne
   ========================================================= */
.orders .section-title { margin-bottom: clamp(36px, 5vw, 56px); max-width: 20ch; }
.orders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.order-type { padding: 36px clamp(24px, 4vw, 56px) 0 0; }
.order-type + .order-type { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
.order-type h3 { font-size: clamp(1.5rem, 2.3vw, 1.875rem); margin-bottom: 14px; }
.order-type p { color: var(--text-muted); max-width: 52ch; }
@media (max-width: 760px) {
  .orders-grid { grid-template-columns: 1fr; }
  .order-type, .order-type + .order-type { padding: 30px 0; border-left: 0; }
  .order-type + .order-type { border-top: 1px solid var(--line); }
}

/* =========================================================
   Kontakt
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact .section-title { margin-bottom: 20px; }
.contact .lead { margin-bottom: 40px; }
.people { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); }
/* osoby jedna pod drugą – pełna szerokość, adresy e-mail w jednej linii */
.person { padding: 26px 0 28px; }
.person + .person { border-top: 1px solid var(--line); }
.person-role {
  display: inline-block; margin-bottom: 10px;
  font-weight: 500; font-size: .9375rem; color: var(--orange-dark);
}
.person h3 { font-size: 1.5rem; margin-bottom: 14px; }
.person ul, .company-data ul { list-style: none; display: grid; gap: 6px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
  text-decoration: none; color: var(--navy); font-weight: 500; overflow-wrap: anywhere;
}
.contact-link .lbl { display: inline-block; min-width: 3.6em; font-size: .875rem; color: var(--text-muted); }
.contact-link .val { border-bottom: 1px solid var(--grey-300); }
.contact-link:hover .val { border-bottom-color: var(--orange); color: var(--orange-dark); }
.contact-link.phone .val { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.company-data { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.company-data h3 { font-size: 1.125rem; margin-bottom: 8px; }
.company-data address { font-style: normal; color: var(--text); }
@media (max-width: 400px) { .company-data { grid-template-columns: 1fr; } }

/* ---------- Formularz ---------- */
.inquiry { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange); padding: clamp(24px, 3.4vw, 40px); }
.inquiry h3 { font-size: 1.5rem; margin-bottom: 8px; }
.inquiry-intro { font-size: .96875rem; color: var(--text-muted); margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .96875rem; }
.field .hint { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
  display: block; width: 100%;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--white); /* pola edytowalne zawsze na białym tle */
  border: 1px solid #8a96a8; border-radius: 0;
  padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--navy); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.field-error { margin-top: 6px; color: #b3261e; font-size: .9375rem; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-actions .btn { flex: 1 1 220px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--navy); background: var(--grey-50); font-size: .96875rem; }
.form-status.is-warning { border-left-color: var(--orange); }
.form-status.is-success { border-left-color: #1f7a3a; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry { position: relative; }
.inquiry button[aria-busy="true"] { opacity: .7; cursor: progress; }
.form-disclaimer a { color: var(--navy); }
.form-disclaimer { margin-top: 18px; font-size: .875rem; color: var(--text-muted); }
.form-disclaimer strong { color: var(--text); font-weight: 600; }
.copy-fallback { margin-top: 14px; }
.copy-fallback textarea { width: 100%; min-height: 180px; font: .9375rem/1.5 var(--font); padding: 12px; border: 1px solid #8a96a8; background: var(--white); }

@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Stopka
   ========================================================= */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding-block: 56px 32px; font-size: .96875rem; border-top: 4px solid var(--orange); margin: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { max-width: 40ch; }
.site-footer h2 { font-size: 1.0625rem; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.site-footer a:hover { border-bottom-color: var(--orange); }
.site-footer address { font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: .875rem; }
.footer-bottom p { margin: 0; max-width: 70ch; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Podstrony: nagłówek strony, listy, wpisy
   ========================================================= */
.wrap.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }

.page-head {
  position: relative; background: var(--grey-50);
  --cut: clamp(20px, 3.5vw, 48px);
  padding-block: clamp(40px, 6vw, 72px) calc(clamp(24px, 3.5vw, 40px) + var(--cut));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--cut); pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - var(--seam) - .5px), var(--orange) calc(50% - var(--seam)), var(--orange) 50%, transparent calc(50% + .5px));
}
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.page-head .eyebrow a:hover { color: var(--navy); }
.page-title { font-size: clamp(2.25rem, 4.2vw, 3.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; max-width: 22ch; }
.page-head .lead { margin-top: 18px; }
.page-head .lead p { margin: 0; }
.post-eyebrow { gap: 6px 14px; }
.post-eyebrow > * { margin: 0; }
.post-eyebrow a { color: inherit; text-decoration: none; }
.post-eyebrow a:hover { color: var(--navy); }
.post-eyebrow .wp-block-post-terms::before { content: "·"; margin-right: 14px; }
.work-terms { margin-top: 16px; font-weight: 600; font-size: .9375rem; }
.work-terms a { color: var(--orange-ink); text-decoration: none; }

.back-link { margin-top: 32px; }
.back-link a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--orange); }

/* lista wpisów bloga */
.posts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.posts-grid > li { display: grid; margin: 0; }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); transition: border-color .15s ease; }
.post-card:hover, .post-card:focus-within { border-top-color: var(--orange); }
.post-card .wp-block-post-featured-image { margin: 0; }
.post-card .wp-block-post-featured-image img { width: 100%; height: 100% !important; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.post-card .post-meta { font-size: .875rem; color: var(--text-muted); }
.post-card h2 { font-size: 1.375rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card .wp-block-post-excerpt__excerpt { margin: 0; color: var(--text-muted); font-size: .96875rem; line-height: 1.5; }
@media (max-width: 1000px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts-grid { grid-template-columns: 1fr; } }

.search-box { margin-bottom: 36px; max-width: 560px; }
.search-box .wp-block-search__input { border: 1px solid #8a96a8; border-radius: 0; padding: 12px 14px; min-height: 50px; font: inherit; }
.search-box .wp-block-search__button { margin-left: 8px; }

/* stronicowanie */
.pagination { margin-top: 44px; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; }
.pagination a, .pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; text-decoration: none; border: 1px solid var(--line); background: var(--white); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination a:hover { border-color: var(--orange); }

/* pojedynczy wpis */
.single-post-photo { margin: 0 0 36px; }
.single-post-photo img { width: 100%; }
.post-tags { margin-top: 36px; font-size: .9375rem; color: var(--text-muted); }
.post-nav { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); gap: 16px 32px; }
.post-nav a { text-decoration: none; font-weight: 600; }
.post-nav a:hover { color: var(--orange-dark); }

/* treść wpisów, stron i realizacji */
.entry-content { font-size: 1.125rem; line-height: 1.7; }
main .entry-content > * { margin-block: 0; }
main .entry-content > * + * { margin-block-start: 1.1em; }
main .entry-content > :is(h2, h3, h4) { margin-block-start: 1.8em; }
main .entry-content > :is(h2, h3, h4) + * { margin-block-start: .6em; }
.entry-content h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.entry-content h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.entry-content a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--orange-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content ul li::marker { color: var(--orange); }
.entry-content img { height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { margin-top: 8px; }
.entry-content blockquote { margin-inline: 0; }
.entry-content .wp-block-image img, .entry-content .wp-block-gallery img { box-shadow: 0 16px 30px -18px rgba(14,26,46,.35); }
.entry-content .wp-block-buttons { gap: 12px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--grey-50); }

/* zaproszenie do zapytania – jasny pas */
.cta-band { padding-block: clamp(44px, 6vw, 72px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); margin-bottom: 10px; }
.cta-band p { color: var(--text-muted); font-size: 1.125rem; max-width: 52ch; }
@media (max-width: 600px) { .cta-band .hero-actions .btn { width: 100%; } }

.page-head-404 { padding-block: clamp(64px, 10vw, 140px); }
.page-head-404 .hero-actions { margin-top: 32px; }

.footer-bottom a { border-bottom-color: rgba(255,255,255,.3); }

/* =========================================================
   Realizacje – lista (filtr rodzajów) i case study
   ========================================================= */
.work-filter { margin-top: 28px; }
.work-filter ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.work-filter a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem;
  text-decoration: none; color: var(--navy); background: var(--white); border: 1px solid var(--line);
}
.work-filter a:hover { border-color: var(--orange); }
.work-filter a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.work-body { display: flex; flex-direction: column; }
.work-more { margin-top: auto; padding-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--orange-ink); }
.work-more::after { content: " →"; }

/* pojedyncza realizacja */
.work-lead { margin-top: 18px; }
.work-lead p { margin: 0; }
.case .wrap > * + * { margin-top: clamp(32px, 5vw, 56px); }
.case-photo { margin: 0; }
.case-photo img { width: 100%; max-height: 760px; object-fit: cover; box-shadow: 0 16px 30px -18px rgba(14,26,46,.45); }
.case-content > .alignwide { margin-inline: auto; }
.case-content > :is(h2) { padding-top: .2em; }
.case-content > :is(h2)::after { content: ""; display: block; width: 44px; height: 3px; background: var(--orange); margin-top: 12px; }
.narrow-box { max-width: 820px; margin-inline: auto; }
.case-compare { gap: clamp(20px, 3vw, 40px); }
.case-compare .wp-block-image { margin: 0; }
.case-compare .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-compare figcaption {
  font-weight: 500; font-size: .9375rem; color: var(--text-muted);
}
.entry-content .wp-block-gallery img { box-shadow: none; }

/* elementy wzorca „Case study”, których nie uzupełniono, nie wyświetlają się */
.entry-content p:empty, .entry-content li:empty,
.entry-content .wp-block-image:not(:has(img[src])),
.entry-content .wp-block-gallery:not(:has(img)),
.entry-content .wp-block-column:not(:has(img[src])):not(:has(p:not(:empty))) { display: none; }
.entry-content .wp-block-columns:not(:has(img[src])):not(:has(p:not(:empty))),
.entry-content .wp-block-list:not(:has(li:not(:empty))) { display: none; }

.more-works-title { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 28px; }
/* pas CTA tuż pod „Zobacz też” – biały, bez faz */
.more-works + .cta-band { background: var(--white); clip-path: none; }
.more-works + .cta-band::before, .more-works + .cta-band::after { content: none; }

/* galeria we wpisach i realizacjach: równa siatka kadrów 4:3 */
.entry-content .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image { width: auto !important; margin: 0 !important; }
.entry-content .wp-block-gallery.has-nested-images.is-cropped img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* =========================================================
   Podstrona Kontakt – dane firmy i osoby po lewej, mapa po prawej;
   na dole zaproszenie do zapytania i formularz (jak na stronie głównej)
   ========================================================= */
.contact-page { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.page-heading { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.contact-map { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(28px, 3.5vw, 44px); }

/* dane firmy i osoby: białe karty z pomarańczową linią u góry */
.company-facts, .contact-page .person { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange); }
.company-facts { display: grid; grid-template-columns: 5em minmax(0, 1fr); margin: 0 0 24px; padding: 8px 22px; }
.company-facts dt, .company-facts dd { padding: 13px 0; border-bottom: 1px dashed var(--grey-300); }
.company-facts dt { padding-top: 15px; font-size: .9375rem; color: var(--text-muted); }
.company-facts dd { margin: 0; padding-left: 20px; color: var(--text); }
.company-facts dt:last-of-type, .company-facts dd:last-of-type { border-bottom: 0; }
.company-facts dd:first-of-type { font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; }
.contact-page .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; }
.contact-page .person { padding: 22px 22px 20px; }
.contact-page .person + .person { border-top: 3px solid var(--orange); }
.contact-page .person :is(h2, h3) { font-size: 1.3125rem; margin-bottom: 12px; }
.contact-page .person ul { gap: 2px; }
.contact-page .contact-link .lbl { display: none; }
.contact-page .contact-link.phone .val { font-size: 1.375rem; }

/* mapa (OpenStreetMap – bez ciasteczek): ścięty dolny prawy narożnik z linią spoiny */
.map { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.map-frame {
  --cut: 36px;
  position: relative; aspect-ratio: 4 / 3.4; background: var(--grey-100); border-top: 3px solid var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.map-frame::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: var(--cut); height: var(--cut); pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - var(--seam) - .5px), var(--orange) calc(50% - var(--seam)), var(--orange) 50%, transparent calc(50% + .5px));
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 14px; font-size: .9375rem; color: var(--text-muted); }
.map figcaption a { color: var(--navy); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--grey-300); }
.map figcaption a:hover { border-bottom-color: var(--orange); color: var(--orange-dark); }
.cta-actions { margin-top: 28px; }
@media (max-width: 900px) {
  .contact-map { grid-template-columns: 1fr; }
  .map { position: static; }
  .map-frame { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 560px) { .contact-page .people { grid-template-columns: 1fr; } }

.main-nav ul a[aria-current="page"] { border-bottom-color: var(--orange); }

/* Języki obsługi zapytań – pod wstępem sekcji Kontakt */
.contact-langs { margin: -24px 0 32px; font-weight: 600; color: var(--navy); }
