/* Klawikowski · Tapicernia — theme.css @version 1.12.1
   Czysty CSS na tokenach design systemu (Klawikowski · Tapicernia). Prefiks komponentów DS: kt-.
   Układ i sekcje: z draftu strony (kontener 1320, gutter 40, sekcje 120/120). Mobile first w sekcjach, desktop przez max-width. */

/* ---------- Tokeny (z tokens.json design systemu) ---------- */
:root {
  --surface: #F3EEE5; --surface-linen: #E6DCCB; --surface-field: #FAF7F1; --surface-dark: #2E2621;
  --ink: #2E2621; --ink-muted: #5F554B; --on-dark: #EFE7DA; --on-dark-muted: #B9AD9E;
  --line: #D3C7B4; --line-control: #847463;
  --accent: #6B1E2B; --accent-hover: #561722; --on-accent: #F3EEE5; --on-accent-muted: #E3C9CC; --accent-text: #6B1E2B; --focus-ring: #6B1E2B;
  --signal-error: #8A3A12; --signal-ok: #3E5B3B;
  --texture-thread: rgba(46, 38, 33, 0.045); --scrim: rgba(31, 26, 22, 0.55);
  --shadow-soft: 0 1px 2px rgba(46, 38, 33, 0.06), 0 10px 30px rgba(46, 38, 33, 0.08);
  --shadow-layer: 0 2px 4px rgba(46, 38, 33, 0.06), 0 24px 48px rgba(46, 38, 33, 0.12);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 144px;
  --radius-xs: 16px; --radius-sm: 16px; --radius-md: 16px; --radius-lg: 16px; /* jedno zaokrąglenie dla całej strony, jak header; koła tylko w pieczęci */
  --content-max: 1240px; --text-max: 64ch; --gutter: 20px;
  --font-serif: "Brygada 1918", "Iowan Old Style", Georgia, serif;
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* Mapowanie układu draftu na tokeny */
  --bg: var(--surface); --fg: var(--ink); --muted: var(--ink-muted); --muted-2: var(--line-control);
  --dark: var(--surface-dark); --dark-card: #3A302A; --dark-line: rgba(239, 231, 218, 0.14); --dark-soft: rgba(239, 231, 218, 0.06);
  --light-line: #E3DACB; --light-soft: rgba(46, 38, 33, 0.06); --light-icon: var(--surface-linen);
  --yellow: var(--accent); --on-yellow: var(--on-accent);
  --font: var(--font-sans);
  --navbar-h: 62px;
  color-scheme: light;
}

/* ---------- Fonty (lokalne pliki, zero CDN) ---------- */
@font-face { font-family: "Brygada 1918"; src: url("../fonts/Brygada1918.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Brygada 1918"; src: url("../fonts/Brygada1918-Italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/HankenGrotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Podstawa ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; font-feature-settings: "kern", "liga"; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 1320px; margin-inline: auto; }
.container--text { max-width: 820px; }
.section-padding { padding-block: var(--space-9); padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
.section-padding--l { padding-block: var(--space-10); }
.section-padding--s { padding-block: var(--space-8); }
.is-dark { background: var(--dark); color: var(--on-dark); }
@media (max-width: 991px) { .section-padding { padding-block: 80px; } .section-padding--l { padding-block: var(--space-9); } .section-padding--s { padding-block: var(--space-8); } }
@media (max-width: 767px) { .section-padding, .section-padding--s { padding-block: var(--space-8); } .section-padding--l { padding-block: 80px; } .section-padding { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--on-yellow); padding: 12px 16px; z-index: 20; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.is-dark :focus-visible { outline-color: var(--on-dark); }
.kt-ico { width: 1em; height: 1em; flex: none; }

/* ---------- Typografia (z draftu, kroje z DS) ---------- */
.subtitle { display: inline-flex; align-items: center; gap: 4px; font-size: 18px; line-height: 21.6px; font-weight: 600; }
.subtitle .slash { color: var(--muted-2); }
.is-dark .subtitle .slash { color: #E09AA3; }
.h-56 { font-family: var(--font-serif); font-size: 52px; line-height: 58px; font-weight: 500; letter-spacing: -0.005em; text-wrap: balance; }
.h-42 { font-family: var(--font-serif); font-size: 42px; line-height: 50.4px; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.h-42 .half { color: var(--ink-muted); }
.is-dark .h-42 .half { color: var(--on-dark-muted); }
.h-32 { font-family: var(--font-serif); font-size: 32px; line-height: 41.6px; font-weight: 500; }
.h-24 { font-family: var(--font-serif); font-size: 24px; line-height: 34px; font-weight: 500; }
.h-24 .half { color: var(--ink-muted); }
.p-16 { font-size: 16px; line-height: 22.4px; color: var(--muted); }
.p-16 .em { color: var(--fg); font-style: italic; }
.is-dark .p-16 { color: var(--on-dark-muted); }
.is-dark .p-16 .em { color: var(--on-dark); }
.p-18 { font-size: 18px; line-height: 25px; }
.label { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 767px) { .h-56 { font-size: 36px; line-height: 42px; } .h-42 { font-size: 32px; line-height: 40px; } .h-32 { font-size: 26px; line-height: 34px; } }

/* ---------- Przyciski (pigułki draftu) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 400 16px/19.2px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out; }
/* .btn-yellow = główny przycisk; wygląd wspólny z .kt-btn--primary (pikowana skóra bordo), patrz niżej */
.btn-yellow { font-weight: 600; }
.btn-dark { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 400; }
.btn-dark:hover { background: #46392F; border-color: #46392F; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; line-height: 21.6px; text-decoration: none; color: inherit; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line-control); transition: text-decoration-color 160ms ease-out; }
.btn-link:hover { text-decoration-color: currentColor; }
.btn-link .kt-ico { width: 14px; height: 14px; }
.is-dark .btn-outline { color: var(--on-dark); border-color: var(--on-dark); }
.is-dark .btn-outline:hover { background: var(--on-dark); color: var(--dark); }
.tag { display: inline-block; padding: 8px 14px; border-radius: var(--radius-xs); font-size: 15px; line-height: 19.2px; background: var(--light-soft); color: var(--fg); text-decoration: none; }
.is-dark .tag { background: var(--dark-soft); color: rgba(239, 231, 218, 0.75); }
.tag.is-active { background: var(--fg); color: var(--bg); }

/* Para przycisków: główny + Zadzwoń z numerem (zawsze razem) */
.cta-pair { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; align-items: stretch; justify-content: start; }
.cta-pair > * { white-space: nowrap; }
.btn-call { gap: 8px; }
.btn-call .kt-ico { width: 18px; height: 18px; }
.btn-call b { font-weight: 600; font-variant-numeric: tabular-nums; }
.btn-outline.is-light { color: var(--on-dark); border-color: rgba(239, 231, 218, 0.7); }
.btn-outline.is-light:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
@media (max-width: 479px) { .cta-pair { grid-auto-flow: row; grid-auto-columns: auto; } }
/* Trzy przyciski: wycena ze zdjęć, nowy mebel na wymiar, telefon. Równe szerokości, gdy się mieszczą; inaczej zawijają się i wypełniają rząd. */
.cta-pair--3 { display: flex; flex-wrap: wrap; }
.cta-pair--3 > * { flex: 1 1 0; min-width: max-content; }
/* „Zamów mebel na wymiar”: tło z drewna (drewno.jpg), przyciemnione, żeby jasny napis miał kontrast; ten sam wygląd na jasnym i ciemnym tle */
.cta-pair .cta-new, .is-dark .cta-pair .cta-new {
  color: var(--on-dark); font-weight: 600; border: 0;
  background-color: #7A5A3C;
  background-image: linear-gradient(rgba(46, 30, 18, 0.40), rgba(46, 30, 18, 0.40)), url("../images/drewno.jpg");
  background-size: cover, 320px auto; background-position: center, center 40%; background-repeat: no-repeat, repeat;
  text-shadow: 0 1px 1px rgba(30, 18, 8, 0.7), 0 0 8px rgba(30, 18, 8, 0.4);
  box-shadow: inset 0 1.5px 0 rgba(255, 236, 205, 0.28), inset 0 -2px 0 rgba(40, 24, 10, 0.45), inset 0 0 0 1px rgba(40, 24, 10, 0.45), 0 1px 1px rgba(46, 38, 33, 0.28), 0 6px 14px -6px rgba(46, 38, 33, 0.55);
  transition: box-shadow 160ms ease-out, transform 160ms ease-out, filter 160ms ease-out;
}
.cta-pair .cta-new:hover, .is-dark .cta-pair .cta-new:hover { color: var(--on-dark); filter: brightness(0.92); transform: translateY(-1px); box-shadow: inset 0 1.5px 0 rgba(255, 236, 205, 0.28), inset 0 -2px 0 rgba(40, 24, 10, 0.45), inset 0 0 0 1px rgba(40, 24, 10, 0.5), 0 1px 1px rgba(46, 38, 33, 0.3), 0 10px 18px -8px rgba(46, 38, 33, 0.6); }
.cta-pair .cta-new:active { transform: translateY(1px); filter: brightness(0.84); box-shadow: inset 0 0 0 1px rgba(40, 24, 10, 0.6), inset 0 3px 8px rgba(40, 24, 10, 0.55); }
.is-dark .cta-pair .cta-new:focus-visible, .hero .cta-pair .cta-new:focus-visible { outline-color: var(--on-dark); }
@media (max-width: 479px) { .cta-pair--3 { flex-direction: column; } .cta-pair--3 > * { flex: none; min-width: 0; } }
/* Telefon: numer jest w dolnym pasku, więc w hero zostają dwa przyciski (wycena + nowy mebel) */
@media (max-width: 767px) { .hero .cta-pair .hero_call { display: none; } }

/* ---------- Przycisk DS: skóra pikowana bordo (kt-btn--primary) ---------- */
.kt-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-5); font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer; }
.kt-btn--primary, .btn-yellow {
  background-color: var(--accent); color: var(--on-accent);
  background-image: url("../images/skora-bordo.png"); background-size: 60px 48px; background-position: center 2px; background-repeat: repeat; border: 0;
  text-shadow: 0 1px 1px rgba(20, 6, 9, 0.6), 0 0 8px rgba(20, 6, 9, 0.35);
  box-shadow: inset 0 1.5px 0 rgba(255, 228, 228, 0.18), inset 0 -2px 0 rgba(25, 6, 10, 0.45), inset 0 0 0 1px rgba(25, 6, 10, 0.5), inset 0 0 10px rgba(25, 6, 10, 0.35), 0 1px 1px rgba(46, 38, 33, 0.28), 0 6px 14px -6px rgba(46, 38, 33, 0.55);
  transition: box-shadow 160ms ease-out, transform 160ms ease-out, filter 160ms ease-out;
}
.kt-btn--primary:hover, .btn-yellow:hover { filter: brightness(0.92); transform: translateY(-1px); box-shadow: inset 0 1.5px 0 rgba(255, 228, 228, 0.18), inset 0 -2px 0 rgba(25, 6, 10, 0.45), inset 0 0 0 1px rgba(25, 6, 10, 0.5), inset 0 0 10px rgba(25, 6, 10, 0.35), 0 1px 1px rgba(46, 38, 33, 0.3), 0 10px 18px -8px rgba(46, 38, 33, 0.6); }
.kt-btn--primary:active, .btn-yellow:active { transform: translateY(1px); filter: brightness(0.84); box-shadow: inset 0 0 0 1px rgba(25, 6, 10, 0.6), inset 0 3px 8px rgba(25, 6, 10, 0.55), 0 1px 1px rgba(46, 38, 33, 0.3); }
.kt-btn--primary.hero_sofa { font-weight: 600; padding: 18px 32px; min-height: 57px; }
.hero_call { min-height: 57px; }
.kt-btn--secondary { transition: box-shadow 160ms ease-out, transform 160ms ease-out; }
.kt-btn--secondary:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 100px rgba(46, 38, 33, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 1px rgba(46, 38, 33, 0.2), 0 8px 14px -8px rgba(46, 38, 33, 0.4); }
.kt-btn--secondary:active { transform: translateY(1px); box-shadow: inset 0 0 0 100px rgba(46, 38, 33, 0.08), inset 0 3px 8px rgba(46, 38, 33, 0.3); }
.is-dark .kt-btn--secondary:focus-visible, .hero .kt-btn--secondary:focus-visible { outline-color: var(--on-dark); }
.cta-pair .btn, .cta-pair .kt-btn { min-height: 48px; }
.cta-pair .hero_sofa, .cta-pair .hero_call, .hero .cta-pair .cta-new { min-height: 57px; }
.sticky-bar .kt-btn { min-height: 48px; }
.kt-btn--secondary { background-color: var(--surface-linen); color: var(--ink); border-color: var(--ink); background-image: url("../images/tkanina-len.jpg"); background-size: 256px 256px; background-position: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -6px 10px -8px rgba(46, 38, 33, 0.28), 0 1px 1px rgba(46, 38, 33, 0.16), 0 4px 10px -6px rgba(46, 38, 33, 0.3); }

/* ---------- Placeholder zdjęcia (brandowy, do podmiany z panelu) ---------- */
.ph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background-color: #D8CDB9; background-image: repeating-linear-gradient(0deg, var(--texture-thread) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, var(--texture-thread) 0 1px, transparent 1px 4px); color: #4F463E; overflow: hidden; }
.is-dark .ph { background-color: #4A3E36; color: #BCB0A1; }
.ph > span { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 0 16px; }
.ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.06) 100%); }
.img-frame { background: var(--light-soft); border-radius: var(--radius-md); padding: 8px; }
.img-frame .ph, .img-frame img { border-radius: var(--radius-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.is-dark .img-frame { background: var(--dark-soft); }
.kt-editor-hint { padding: 12px 16px; border: 1px dashed var(--signal-error); border-radius: var(--radius-sm); color: var(--signal-error); font-size: 14px; }

/* ---------- Navbar (fixed, szkło) + menu mobilne na CSS ---------- */
.navbar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 9; padding: 16px max(40px, env(safe-area-inset-right, 0px)) 0 max(40px, env(safe-area-inset-left, 0px)); }
.navbar_wrapper { position: relative; max-width: 1320px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; height: var(--navbar-h); padding: 16px 32px; border-radius: var(--radius-lg); color: var(--on-dark);
  /* Szkło: półprzezroczysty brąz-grafit, mocny blur tła, cienka jasna krawędź i połysk u góry */
  background: linear-gradient(180deg, rgba(239, 231, 218, 0.10) 0%, rgba(239, 231, 218, 0.02) 42%, rgba(239, 231, 218, 0) 100%), rgba(46, 38, 33, 0.52);
  -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(239, 231, 218, 0.16);
  box-shadow: inset 0 1px 0 rgba(239, 231, 218, 0.18), 0 10px 30px -12px rgba(20, 15, 12, 0.45);
  transition: background-color 200ms ease-out; }
/* Po przewinięciu (nad jasnymi sekcjami) szkło gęstnieje, żeby tekst zachował kontrast */
.navbar.is-scrolled .navbar_wrapper { background: linear-gradient(180deg, rgba(239, 231, 218, 0.08) 0%, rgba(239, 231, 218, 0) 60%), rgba(46, 38, 33, 0.80); }
html:not(.js) .navbar_wrapper { background: rgba(46, 38, 33, 0.9); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .navbar_wrapper, .navbar.is-scrolled .navbar_wrapper { background: rgba(46, 38, 33, 0.94); } }
.navbar_logo { display: flex; align-items: center; min-height: 44px; }
.navbar_logo img { height: 30px; width: auto; }
.kt-logo { display: inline-block; text-decoration: none; line-height: 1; }
.navbar_logo, .footer_logo { text-decoration: none; }
.kt-logo__name { font-family: var(--font-serif); font-weight: 560; font-size: 24px; line-height: 1; letter-spacing: 0.06em; color: var(--on-dark); }
.kt-logo--ciemne .kt-logo__name { color: var(--ink); }
.navbar_logo .kt-logo__name { font-size: 22px; }
.footer_logo .kt-logo__name { font-size: 26px; }
.navbar_menu { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.navbar_menu > li > a { font-size: 16px; line-height: 19px; color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 0; border-bottom: 1px solid transparent; }
.navbar_menu > li > a:hover { border-bottom-color: rgba(239, 231, 218, 0.5); }
.navbar_menu > li > a.current { font-weight: 600; border-bottom-color: var(--on-dark); }
.navbar_menu sup { font-size: 10px; line-height: 1; }
.navbar_right { display: flex; align-items: center; gap: 24px; }
/* ---------- Mega menu (desktop): panel pod headerem, hover + focus, kryjące tło (szkło zostaje tylko w pasku) ---------- */
.navbar_menu > li.has-mega { position: static; }
.navbar_menu > li.has-mega > a { align-items: center; gap: 6px; }
.mega_chev { width: 10px; height: 10px; transition: transform 160ms ease-out; }
.has-mega:hover .mega_chev, .has-mega:focus-within .mega_chev, .has-mega.is-open .mega_chev { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 2; padding: 28px; border-radius: var(--radius-lg); background: #2A231E; border: 1px solid rgba(239, 231, 218, 0.12); box-shadow: 0 24px 60px -20px rgba(15, 11, 9, 0.7); color: var(--on-dark);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 0s linear 220ms; }
/* Most nad przerwą między paskiem a panelem: kursor nie gubi hovera */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.is-open > .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s, 0s, 0s; }
.has-mega.is-closed > .mega { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.mega_inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.mega_inner--cases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mega_main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mega_card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--on-dark); }
.mega_thumb { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--dark-card); }
.mega_thumb img, .mega_thumb .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; transition: transform 300ms ease-out; }
.mega_thumb .ph > span { font-size: 10px; }
.mega .ph { background-color: #4A3E36; color: #BCB0A1; }
.mega_card:hover .mega_thumb img { transform: scale(1.04); }
.mega_card-title { font-family: var(--font-serif); font-size: 20px; line-height: 26px; font-weight: 500; text-wrap: balance; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color 160ms ease-out; }
.mega_card:hover .mega_card-title, .mega_card:focus-visible .mega_card-title { text-decoration-color: rgba(239, 231, 218, 0.6); }
.mega_card-meta { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.mega_label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 8px; }
.mega_list { list-style: none; margin: 0; padding: 0; display: grid; }
.mega_list a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 16px; line-height: 22px; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(239, 231, 218, 0.1); transition: padding-left 160ms ease-out, color 160ms ease-out; }
.mega_list li:last-child a { border-bottom: 0; }
.mega_list a:hover, .mega_list a:focus-visible { padding-left: 6px; color: #fff; }
.mega_foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(239, 231, 218, 0.12); }
.mega_foot .btn-link { font-size: 16px; }
.mega_foot-note { font-size: 15px; line-height: 22px; color: var(--on-dark-muted); }
.mega_foot-note a { color: var(--on-dark); text-underline-offset: 4px; }
.mega a:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }
@media (max-width: 1199px) { .mega_inner { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 28px; } .mega { padding: 22px; } }
/* Mobile: lista usług rozwijana natywnym <details> (działa bez JS) */
.mobile-sub { border-bottom: 1px solid var(--dark-line); }
.mobile-sub summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 0; font-size: 18px; color: var(--on-dark); cursor: pointer; list-style: none; }
.mobile-sub summary::-webkit-details-marker { display: none; }
.mobile-sub[open] .mega_chev { transform: rotate(180deg); }
.mobile-sub .mega_chev { width: 12px; height: 12px; }
.navbar_mobile .mobile-sub a { padding: 10px 0 10px 16px; font-size: 16px; color: var(--on-dark-muted); border-bottom: 0; }
.navbar_mobile .mobile-sub a.mobile-sub_all { color: var(--on-dark); font-weight: 600; padding-bottom: 14px; }
.navbar_mobile { max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain; }

.navbar_right .btn-link { font-size: 18px; }
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-btn { display: none; cursor: pointer; font: 500 16px/19px var(--font); color: var(--on-dark); padding: 8px 4px; min-height: 44px; align-items: center; }
.menu-btn__close { display: none; }
.navbar_mobile { display: none; max-width: 1320px; margin: 8px auto 0; border-radius: var(--radius-lg); background: var(--surface-dark); color: var(--on-dark); padding: 8px 24px 20px; }
.navbar_mobile a { display: block; padding: 12px 0; min-height: 44px; font-size: 18px; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--dark-line); }
.navbar_mobile a:last-child { border: 0; }
.navbar_mobile a[aria-current="page"] { font-weight: 600; }
.menu-toggle:checked ~ .menu-btn .menu-btn__open, .navbar.is-open .menu-btn__open { display: none; }
.menu-toggle:checked ~ .menu-btn .menu-btn__close, .navbar.is-open .menu-btn__close { display: inline; }
.navbar:has(.menu-toggle:checked) .navbar_mobile, .navbar.is-open .navbar_mobile { display: block; }
.menu-toggle:focus-visible ~ .menu-btn { outline: 2px solid var(--on-dark); outline-offset: 3px; }
@media (max-width: 991px) { .navbar_nav, .navbar_right { display: none; } .menu-btn { display: inline-flex; } .navbar { padding: 12px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); } .navbar_wrapper { padding: 12px 20px; height: 56px; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; padding: 120px max(40px, env(safe-area-inset-right, 0px)) 48px max(40px, env(safe-area-inset-left, 0px)); display: grid; color: var(--on-dark); background: var(--dark); overflow: hidden; }
.hero_img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.hero_overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46, 38, 33, 0.94) 0.13%, rgba(46, 38, 33, 0.9) 22.53%, rgba(31, 26, 22, 0.32) 91.46%); }
.hero_component { position: relative; max-width: 1320px; width: 100%; margin-inline: auto; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero_title { font-family: var(--font-serif); font-size: clamp(40px, 6.2vh, 64px); line-height: 1.18; font-weight: 500; max-width: 760px; }
.hero_name { display: block; }
.hero_span { display: block; font-weight: 400; color: rgba(239, 231, 218, 0.65); }
.hero_content { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero_cta { max-width: 454px; }
.hero_cta p { font-size: 18px; line-height: 25px; color: rgba(239, 231, 218, 0.75); margin-bottom: 24px; }
.hero_cta p .em { color: var(--on-dark); font-style: italic; font-weight: 500; }
.hero_awards { display: flex; gap: 48px; align-items: flex-end; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.award { display: grid; justify-items: center; gap: 2px; text-align: center; position: relative; padding: 0 22px; }
.award::before, .award::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 14px; border: 1.5px solid rgba(239, 231, 218, 0.7); border-right: 0; border-radius: 14px 0 0 14px; left: 0; }
.award::after { left: auto; right: 0; border: 1.5px solid rgba(239, 231, 218, 0.7); border-left: 0; border-radius: 0 14px 14px 0; }
.award b { font-size: 22px; line-height: 26px; font-weight: 600; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.award span { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(239, 231, 218, 0.7); max-width: 110px; }
@media (max-width: 991px) { .hero { padding: 100px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)); } .hero_title { font-size: clamp(34px, 5.6vh, 48px); } .hero_overlay { background: linear-gradient(180deg, rgba(46, 38, 33, 0.9) 0%, rgba(46, 38, 33, 0.75) 60%, rgba(31, 26, 22, 0.5) 100%); } }
@media (max-width: 767px) { .hero { height: 100svh; min-height: 560px; } .hero_title { font-size: clamp(30px, 4.6vh, 36px); } .hero_awards { gap: 14px 20px; } .award { padding: 0 16px; } .award b { font-size: 18px; } .hero_cta .cta-pair { width: 100%; } }

/* ---------- Nagłówek podstrony ---------- */
.page-head { padding: 150px max(40px, env(safe-area-inset-right, 0px)) 64px max(40px, env(safe-area-inset-left, 0px)); }
.page-head .container { display: grid; gap: 20px; max-width: 1320px; }
.page-head .h-56 { max-width: 20ch; }
.page-head_h2 { font-family: var(--font-sans); font-size: 18px; line-height: 26px; font-weight: 500; color: var(--on-dark-muted); max-width: 60ch; }
.page-head_lead { max-width: 64ch; color: rgba(239, 231, 218, 0.8); }
.page-head_meta { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 767px) { .page-head { padding: 110px 20px 48px; } }

/* ---------- About ---------- */
.section-header.is-middle { display: grid; justify-items: center; text-align: center; gap: 0; margin-bottom: 60px; }
.about_title { max-width: 760px; margin-top: 20px; }
.about_details { max-width: 453px; margin-top: 30px; }
.home_about_image-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.home_about_image-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 645 / 430; }
.home_about_image-item .ph, .home_about_image-item img { height: 100%; width: 100%; object-fit: cover; }
.about_badge { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--yellow); border: 8px solid var(--bg); display: grid; place-items: center; color: var(--on-yellow); }
.about_badge svg { width: 100%; height: 100%; }
.about_badge text { font: 700 10.5px var(--font); letter-spacing: .24em; fill: var(--on-accent-muted); }
.about_badge .yr { font: 500 44px var(--font-serif); fill: var(--on-yellow); letter-spacing: 0; }
.content-align_center { display: flex; justify-content: center; margin-top: 60px; }
.about_counter-wrapper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 48px; margin: 100px 0 0; }
.about_counter-item { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.counter_number { margin: 0; font-family: var(--font-serif); font-size: 60px; line-height: 60px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.counter_number small { font-size: 0.5em; font-weight: 400; margin-left: 2px; vertical-align: 0.42em; }
.counter_subtext { margin-top: 12px; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--muted); }
@media (max-width: 767px) { .home_about_image-wrap { gap: 12px; } .about_badge { width: 100px; height: 100px; border-width: 5px; } .about_badge .yr { font-size: 20px; } .about_counter-wrapper { grid-template-columns: 1fr 1fr; gap: 32px 16px; margin-top: 56px; } .counter_number { font-size: 44px; line-height: 44px; } .counter_subtext { font-size: 15px; line-height: 21px; margin-top: 8px; } .content-align_center { margin-top: 32px; } .section-header.is-middle { margin-bottom: 40px; } }

/* ---------- Usługi ---------- */
.services_header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.services_head-left { max-width: 500px; display: grid; gap: 20px; }
.services_head-right { max-width: 532px; justify-self: end; display: grid; gap: 32px; justify-items: start; }
/* Trzy główne usługi: duże zdjęcie 3:2 (7/12) + tekst (5/12), zdjęcia naprzemiennie lewo/prawo */
.services_component { display: grid; gap: 0; }
.services_item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--dark-line); text-decoration: none; color: inherit; }
.services_item:last-child { border-bottom: 1px solid var(--dark-line); }
.services_item:nth-child(even) .services_media { order: 2; }
.services_media { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--dark-card); }
.services_media img, .services_media .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.services_media img { object-fit: contain; display: block; transition: transform 400ms ease-out; }
.services_item:hover .services_media img { transform: scale(1.02); }
.services_body { display: grid; gap: 20px; justify-items: start; align-content: center; }
.services_serial { display: flex; gap: 4px; font-size: 18px; line-height: 21.6px; font-weight: 700; color: rgba(239, 231, 218, 0.6); font-variant-numeric: tabular-nums; }
.services_serial b { color: #E09AA3; font-weight: 700; }
.services_name { color: var(--on-dark); font-size: 36px; line-height: 44px; text-wrap: balance; }
.services_desc { font-size: 17px; line-height: 26px; color: rgba(239, 231, 218, 0.75); max-width: 46ch; }
.services_tag-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.services_item .btn-link { font-size: 16px; }
@media (max-width: 991px) { .services_header { grid-template-columns: 1fr; } .services_head-right { justify-self: start; } .services_item { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; } .services_item:nth-child(even) .services_media { order: 0; } .services_name { font-size: 28px; line-height: 34px; } .services_body { gap: 14px; } }

/* Bento: pozostałe usługi (rozmiary z panelu, układ dense) */
.bento_header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin: 80px 0 32px; }
.bento_header .p-16 { max-width: 532px; justify-self: end; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 320px; grid-auto-flow: dense; gap: 22px; }
.bento_item { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: var(--on-dark); background: var(--dark-card); }
.bento_item .ph, .bento_item .bento_img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento_item .ph > span { position: absolute; top: 20px; left: 20px; padding: 0; opacity: .7; }
.bento_content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; padding: 28px; background: linear-gradient(rgba(31, 26, 22, 0) 30%, rgba(31, 26, 22, 0.96) 82%); transition: padding 200ms ease-out; }
.bento_content h3 { font-family: var(--font-serif); font-size: 24px; line-height: 29px; font-weight: 500; text-wrap: balance; max-width: 20ch; }
.bento_content p { font-size: 15px; line-height: 21px; color: rgba(239, 231, 218, 0.75); max-width: 44ch; }
.bento_content .btn-link { font-size: 16px; position: absolute; left: 28px; bottom: 28px; opacity: 0; transform: translateY(6px); transition: opacity 200ms ease-out, transform 200ms ease-out; }
.bento_item:hover .bento_content, .bento_item:focus-visible .bento_content { padding-bottom: 60px; }
.bento_item:hover .bento_content .btn-link, .bento_item:focus-visible .bento_content .btn-link { opacity: 1; transform: none; }
.bento_item:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.bento_item .tag { position: absolute; top: 20px; right: 20px; background: rgba(31, 26, 22, 0.72); color: var(--on-dark); }
.is-duzy { grid-column: span 2; grid-row: span 2; }
.is-szeroki { grid-column: span 2; }
.is-bardzo-szeroki { grid-column: span 2; }
.is-duzy .bento_content h3 { font-size: 32px; line-height: 38px; }
.is-bardzo-szeroki .bento_content h3 { max-width: 30ch; }
.is-maly .bento_content p, .is-maly .ph > span { display: none; }
@media (max-width: 991px) { .bento_header { grid-template-columns: 1fr; margin-top: 56px; } .bento_header .p-16 { justify-self: start; } .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; gap: 14px; } .is-bardzo-szeroki { grid-column: span 2; } .bento_content { padding: 20px; } .is-duzy .bento_content h3 { font-size: 26px; line-height: 32px; } }
@media (max-width: 479px) { .bento { grid-template-columns: 1fr; } .is-duzy, .is-szeroki, .is-bardzo-szeroki { grid-column: span 1; grid-row: span 1; } .is-maly .bento_content p { display: block; } }

/* ---------- Proces ---------- */
.process_component { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.process_left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 600px; }
.process_details { max-width: 493px; display: grid; gap: 32px; justify-items: start; }
.process_list-header { padding-left: 80px; margin-bottom: 24px; }
.process_list-header .subtitle { display: block; margin-bottom: 24px; font-size: 16px; color: var(--muted); }
ol.process_list-item_wrap { list-style: none; margin: 0; padding: 0; }
.process_list-item { border-top: 1px solid var(--light-line); padding-left: 48px; }
.process_list-item:last-child { border-bottom: 1px solid var(--light-line); }
.process_list_item-content { display: flex; gap: 20px; padding: 32px; align-items: flex-start; }
.process_list_num { flex: none; width: 52px; font-family: var(--font-serif); font-size: 26px; line-height: 1; font-weight: 500; color: var(--ink-muted); font-variant-numeric: lining-nums tabular-nums; padding-top: 2px; }
.process_list_text-wrap h4 { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--fg); margin-bottom: 8px; }
.process_list_text-wrap p { font-size: 16px; line-height: 22.4px; color: var(--muted); max-width: 378px; }
@media (max-width: 991px) { .process_component { grid-template-columns: 1fr; gap: 48px; } .process_list-header { padding-left: 0; } .process_list-item { padding-left: 0; } .process_list_item-content { padding: 24px 0; } }

/* ---------- Realizacje ---------- */
.section-header.is-case-study { max-width: 520px; display: grid; gap: 20px; margin-bottom: 60px; }
.case-study_slider { display: grid; grid-auto-flow: column; grid-auto-columns: 649px; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--dark-line) transparent; }
.case-study_item { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 649 / 426; scroll-snap-align: start; text-decoration: none; color: var(--on-dark); background: var(--dark-card); }
.case-study_item .ph, .case-study_item .case_img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-study_content-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px; background: linear-gradient(rgba(31, 26, 22, 0) 52%, rgba(31, 26, 22, 0.82) 84%, rgba(31, 26, 22, 0.94) 100%); border-radius: var(--radius-md); }
.case-study_text-wrap { max-width: 585px; display: grid; gap: 4px; }
.case-study_text-wrap h3, .case-study_text-wrap .h3 { font-family: var(--font-serif); font-size: 22px; line-height: 27px; font-weight: 500; text-wrap: balance; }
.case-study_text-wrap p { font-size: 16px; line-height: 22.4px; color: rgba(239, 231, 218, 0.75); }
.case-study_text-wrap .btn-link { justify-self: start; margin-top: 4px; font-size: 14px; }
.slider-nav { display: flex; gap: 20px; margin-top: 40px; align-items: center; flex-wrap: wrap; }
.slider-nav_all { margin-left: auto; }
.slider-arrow { all: unset; cursor: pointer; width: 56px; height: 56px; border-radius: var(--radius-sm); border: 1px solid var(--dark-line); display: grid; place-items: center; color: var(--on-dark); }
.slider-arrow .kt-ico { width: 22px; height: 22px; stroke-width: 1.5; }
.slider-arrow:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cases-grid .case-study_item { aspect-ratio: 4 / 3; }
@media (max-width: 991px) { .cases-grid { grid-template-columns: 1fr 1fr; } }
/* Telefon: zdjęcie nad tekstem zamiast tekstu na zdjęciu (tytuł i opis nie mieściły się w karcie i były ucinane) */
@media (max-width: 767px) { .case-study_item, .cases-grid .case-study_item { aspect-ratio: auto; display: flex; flex-direction: column; } .case-study_item .ph, .case-study_item .case_img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; flex: none; } .case-study_content-wrap { position: static; flex: 1; justify-content: flex-start; background: none; border-radius: 0; }
  .case-study_slider { grid-auto-columns: 86%; gap: 16px; } .case-study_content-wrap { padding: 20px; } .cases-grid { grid-template-columns: 1fr; } .slider-nav_all { margin-left: 0; width: 100%; } }

/* ---------- Co w środku ---------- */
.team_header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.team_head-left { max-width: 320px; display: grid; gap: 20px; }
.team_head-right { max-width: 532px; justify-self: end; }
.team_component { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.inside_photo { margin: 0; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-linen); }
.inside_photo img, .inside_photo .ph { width: 100%; height: 100%; object-fit: cover; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; }
.layers li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--light-line); }
.layers li:last-child { border-bottom: 1px solid var(--light-line); }
.layers .num { grid-row: span 2; font-family: var(--font-serif); font-size: 26px; line-height: 1; color: var(--ink-muted); font-variant-numeric: lining-nums tabular-nums; padding-top: 2px; }
.layers .name { font-family: var(--font-serif); font-size: 22px; line-height: 28px; color: var(--fg); }
.layers .role { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.team_image-wrap { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 312 / 380; margin-bottom: 20px; }
.team_image-wrap .ph, .team_image-wrap img { height: 100%; width: 100%; object-fit: cover; }
.team_content { display: flex; gap: 8px; align-items: flex-start; }
.team_icon { flex: none; width: 24px; height: 24px; display: grid; place-items: center; }
.team_icon .kt-ico { width: 22px; height: 12px; }
.team_text .name { font-family: var(--font-serif); font-size: 20px; line-height: 26px; color: var(--fg); margin-bottom: 4px; }
.team_text .role { font-size: 15px; line-height: 22px; color: var(--muted); }
@media (max-width: 991px) { .team_header { grid-template-columns: 1fr; } .team_head-right { justify-self: start; } .team_component { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Opinie ---------- */
.section_testimony { padding-block: 60px; }
.testimony_component { display: grid; grid-template-columns: minmax(0, 534fr) minmax(0, 726fr); gap: 60px; align-items: start; }
.testimony_image { background: var(--light-soft); border-radius: var(--radius-lg); padding: 10px; }
.testimony_image .ph, .testimony_image img { border-radius: var(--radius-md); aspect-ratio: 514 / 557; height: auto; width: 100%; object-fit: cover; }
.testimony_content { padding-left: 100px; display: grid; gap: 48px; }
.testimony_header { max-width: 520px; display: grid; gap: 20px; }
.testimony_score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.testimony_score b { font-family: var(--font-serif); font-size: 28px; line-height: 1; font-weight: 500; }
.testimony_score .stars { letter-spacing: 3px; color: var(--fg); }
.testimony_score .muted { color: var(--muted); }
.testimony_score .btn-link { font-size: 16px; }
.testimony_slider-wrap { display: grid; max-width: 640px; }
.testimony_comment { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 34px; font-weight: 400; color: var(--fg); margin: 0 0 32px; }
.testimony_client .name { font-size: 18px; line-height: 24px; color: var(--fg); margin-bottom: 4px; }
.testimony_client .role { font-size: 15px; line-height: 22px; color: var(--muted); }
.testimony_arrows { display: flex; gap: 20px; justify-content: flex-end; margin-top: 24px; }
.testimony_arrows .slider-arrow { border-color: rgba(46, 38, 33, 0.16); color: var(--fg); }
.js .testimony_q { display: none; }
.js .testimony_q.is-active { display: block; }
.testimony_q + .testimony_q { margin-top: 32px; }
@media (max-width: 991px) { .testimony_component { grid-template-columns: 1fr; } .testimony_content { padding-left: 0; } .testimony_arrows { justify-content: flex-start; } .testimony_comment { font-size: 20px; line-height: 30px; } }

/* ---------- Porady ---------- */
.blog_header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 60px; }
.blog_head-right { max-width: 532px; justify-self: end; display: grid; gap: 32px; justify-items: start; }
.blog_item { display: grid; grid-template-columns: minmax(0, 828fr) minmax(0, 402fr); gap: 24px; padding: 32px; background: var(--surface-field); border: 1px solid var(--light-line); margin-top: -1px; text-decoration: none; color: var(--fg); align-items: stretch; transition: background-color 160ms ease-out; }
.blog_item:hover { background: #FFFDF9; }
.blog_item-left { display: flex; gap: 60px; align-items: flex-start; }
.blog_content { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; max-width: 563px; align-self: stretch; }
.blog_content .btn { align-self: flex-start; }
.blog_text-wrap h3 { font-family: var(--font-serif); font-size: 24px; line-height: 32px; font-weight: 500; margin-bottom: 16px; }
.blog_text-wrap p { font-size: 16px; line-height: 22.4px; color: var(--muted); }
.blog_tag-group { display: flex; gap: 8px; flex-wrap: wrap; }
.blog_image-wrapper { align-self: start; }
.blog_image-wrapper .ph, .blog_image-wrapper img { aspect-ratio: 386 / 324; height: auto; width: 100%; object-fit: cover; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
@media (max-width: 991px) { .blog_header { grid-template-columns: 1fr; } .blog_head-right { justify-self: start; } .blog_item { grid-template-columns: 1fr; padding: 24px; } .blog_content { min-height: 0; gap: 32px; } .blog_item-left { flex-direction: column; gap: 24px; } }

/* ---------- Wycena / formularz ---------- */
.cta_header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.cta_head-left { max-width: 480px; display: grid; gap: 20px; }
.cta_head-right { max-width: 532px; justify-self: end; }
.cta_component { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.cta_form-wrap { background: var(--dark-card); border-radius: var(--radius-lg); padding: 60px 32px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 30px; }
.form_field { position: relative; display: grid; gap: 6px; }
.form_label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(239, 231, 218, 0.8); }
.form_label small { font-weight: 400; letter-spacing: 0; text-transform: none; }
.quick .form_label { color: var(--ink-muted); }
.form_field.is-full, .form_file, .form_consent, .form_error, .form_ok, .form_alt, .button-container { grid-column: 1 / -1; }
.form_input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(239, 231, 218, 0.5); color: var(--on-dark); font: 400 18px/25.7px var(--font); padding: 0 0 12px 16px; border-radius: 0; min-height: 44px; }
.form_input::placeholder { color: rgba(239, 231, 218, 0.7); }
.form_input:focus { outline: none; border-bottom-color: var(--on-dark); }
.form_input:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 4px; }
.form_field--tel .form_prefix { position: absolute; left: 16px; top: 22px; font: 400 18px/25.7px var(--font); color: rgba(239, 231, 218, 0.7); pointer-events: none; }
.form_field--tel .form_input { padding-left: 58px; font-variant-numeric: tabular-nums; }
select.form_input { appearance: none; -webkit-appearance: none; color: rgba(239, 231, 218, 0.8); background-image: linear-gradient(45deg, transparent 50%, rgba(239, 231, 218, 0.7) 50%), linear-gradient(135deg, rgba(239, 231, 218, 0.7) 50%, transparent 50%); background-position: calc(100% - 20px) 10px, calc(100% - 14px) 10px; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
select.form_input option { color: var(--dark); }
textarea.form_input { min-height: 68px; resize: vertical; }
.form_file { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-left: 16px; border-bottom: 1px solid rgba(239, 231, 218, 0.5); padding-bottom: 12px; font: 400 16px/24px var(--font); color: rgba(239, 231, 218, 0.75); cursor: pointer; position: relative; }
.form_file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form_file .btn { padding: 8px 16px; min-height: 40px; font-size: 14px; }
.form_file:focus-within { outline: 2px solid var(--on-dark); outline-offset: 4px; }
.form_consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: rgba(239, 231, 218, 0.8); cursor: pointer; }
.form_consent input { flex: none; width: 20px !important; height: 20px !important; min-width: 20px !important; max-width: 20px !important; min-height: 20px !important; max-height: 20px !important; margin: 1px 0 0; appearance: auto !important; -webkit-appearance: checkbox !important; accent-color: var(--accent); cursor: pointer; }
.form_consent a { color: var(--on-dark); }
.form_error { font-size: 15px; line-height: 22px; font-weight: 600; color: #E8946B; margin-top: -16px; }
.form_ok { font-size: 15px; line-height: 22px; font-weight: 600; color: #9DBE96; }
.form_alt { font-size: 15px; line-height: 22px; color: rgba(239, 231, 218, 0.7); }
.form_alt a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button-container .btn { width: 100%; height: 60px; font-weight: 600; }
.button-container .btn[disabled] { opacity: .6; cursor: progress; }
.cta_image-wrapper { background: var(--dark-soft); border-radius: var(--radius-lg); padding: 8px; }
.cta_image-wrapper .ph, .cta_image-wrapper img { border-radius: var(--radius-md); aspect-ratio: 629 / 514; height: auto; min-height: 100%; width: 100%; object-fit: cover; }
.cta_side { display: grid; gap: 24px; align-content: start; }
.cta_steps { display: grid; gap: 16px; }
.cta_steps ol { margin: 0; padding-left: 20px; color: var(--on-dark-muted); display: grid; gap: 8px; font-size: 16px; line-height: 24px; }
.cta_sent { background: var(--dark-card); border-radius: var(--radius-lg); padding: 60px 32px; display: grid; gap: 20px; color: var(--on-dark); }
.cta_sent .queue { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: baseline; margin: 0; }
.cta_sent .queue dt { font-family: var(--font-serif); font-size: 42px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.cta_sent .queue dd { margin: 0; color: var(--on-dark-muted); }
.cta_sent ol { margin: 0; padding-left: 20px; color: var(--on-dark-muted); display: grid; gap: 8px; }
@media (max-width: 991px) { .cta_header, .cta_component { grid-template-columns: 1fr; } .cta_head-right { justify-self: start; } .cta_form-wrap { padding: 40px 20px; } .form { grid-template-columns: 1fr; gap: 28px; } .form_field { grid-column: 1 / -1; } .cta_image-wrapper { order: -1; } .cta_side .cta_image-wrapper { order: 0; } }

/* Szybki kontakt (aside) – jasny wariant formularza */
.quick { background: var(--surface-field); border: 1px solid var(--light-line); border-radius: var(--radius-lg); padding: 28px 24px; display: grid; gap: 12px; }
.quick .form { gap: 20px; }
.quick .form_input { color: var(--fg); border-bottom-color: var(--line-control); }
.quick .form_input::placeholder { color: var(--muted); }
.quick .form_field--tel .form_prefix { color: var(--muted); }
.quick .form_input:focus { border-bottom-color: var(--fg); }
.quick .form_input:focus-visible { outline-color: var(--focus-ring); }
.quick .form_consent { color: var(--muted); }
.quick .form_consent a { color: var(--fg); }
.quick .form_error { color: var(--signal-error); margin-top: -8px; }
.quick .form_ok { color: var(--signal-ok); }
.quick .button-container .btn { height: 52px; }

/* ---------- Podstrony: artykuł, usługa, realizacja ---------- */
.article_figure { margin: 0 0 40px; border-radius: var(--radius-md); overflow: hidden; }
.article_figure img { width: 100%; height: auto; }
.prose { font-size: 17px; line-height: 27px; max-width: var(--text-max); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-family: var(--font-serif); font-size: 30px; line-height: 36px; font-weight: 500; margin-top: 44px; }
.prose h3 { font-family: var(--font-serif); font-size: 24px; line-height: 30px; font-weight: 500; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent-text); text-underline-offset: 4px; }
.prose img { border-radius: 10px; }
.prose blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--line); font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 32px; }
.article_author { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--light-line); font-size: 15px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.service_grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: start; }
.service_side { display: grid; gap: 24px; position: sticky; top: 100px; }
.service_box { border: 1px solid var(--light-line); border-radius: var(--radius-md); padding: 24px; display: grid; gap: 12px; }
.service_box p { font-size: 15px; line-height: 22px; color: var(--muted); }
.service_box .btn { justify-self: start; }
.service_list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.service_list a { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; line-height: 22px; color: var(--fg); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.service_list a:hover { border-bottom-color: var(--line-control); }
.service_list .kt-ico { width: 12px; height: 12px; }
.service_local { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--light-line); display: grid; gap: 16px; font-size: 16px; line-height: 25px; color: var(--muted); max-width: var(--text-max); }
.service_local h2 { color: var(--fg); }
.service_local p { margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.service-card { display: grid; gap: 16px; text-decoration: none; color: var(--fg); align-content: start; }
.service-card .img-frame .ph, .service-card .img-frame img { aspect-ratio: 4 / 3; height: auto; }
.service-card_body { display: grid; gap: 12px; padding: 0 8px; }
.service-card:hover .h-24 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
/* Przed/po: suwak porównania (zakres natywny, dostępny z klawiatury) */
.ba { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-linen); margin-bottom: 48px; user-select: none; }
.ba_layer { position: absolute; inset: 0; margin: 0; }
.ba_layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba_before { clip-path: inset(0 calc(100% - var(--ba)) 0 0); }
.ba_handle { position: absolute; top: 0; bottom: 0; left: var(--ba); width: 2px; background: var(--surface); transform: translateX(-1px); pointer-events: none; }
.ba_handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-layer); background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 2px 14px, 2px 14px; background-position: 16px center, 26px center; background-repeat: no-repeat; }
.ba_tag { position: absolute; top: 16px; background: var(--surface); color: var(--fg); pointer-events: none; }
.ba_tag--before { left: 16px; }
.ba_tag--after { right: 16px; }
.ba_control { position: absolute; inset: 0; margin: 0; display: block; }
.ba_range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; appearance: none; -webkit-appearance: none; }
.ba_range:focus-visible { opacity: 1; outline: 2px solid var(--focus-ring); outline-offset: -4px; background: transparent; }
.case_ba-tag { position: absolute; top: 16px; left: 16px; background: var(--surface); color: var(--fg); z-index: 1; }
.case_media { display: grid; gap: 22px; margin-bottom: 48px; }
.case_media.has-before { grid-template-columns: 1fr 1fr; }
.case_photo { position: relative; margin: 0; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-linen); }
.case_photo img, .case_photo .ph { width: 100%; height: 100%; object-fit: cover; }
/* Scena realizacji: stała wysokość, szerokość z proporcji zdjęcia (--r), nigdy szerzej niż kolumna. */
.case_stage { --stage-h: clamp(300px, 62vh, 560px); width: min(100%, calc(var(--stage-h) * var(--r, 1.5))); aspect-ratio: var(--r, 1.5); margin-inline: auto; }
.case_photo.case_stage { margin-inline: auto; }
.case_photo figcaption { position: absolute; top: 16px; left: 16px; background: var(--surface); color: var(--fg); }
.case_grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: start; }
.specs { margin: 0; display: grid; gap: 16px; padding: 24px; border: 1px solid var(--light-line); border-radius: var(--radius-md); }
.specs div { display: grid; gap: 4px; }
.specs dt { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-size: 16px; line-height: 22px; }
.case_gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.case_gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.case_gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.post-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 56px; align-items: center; }
.post-nav .btn-outline { max-width: 100%; white-space: normal; text-align: left; }
.links-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border: 1px solid var(--light-line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; font-variant-numeric: tabular-nums; }
.pagination .page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.is-dark .pagination .page-numbers { border-color: var(--dark-line); }
.is-dark .pagination .page-numbers.current { background: var(--on-dark); color: var(--dark); }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 991px) { .service_grid, .case_grid { grid-template-columns: 1fr; gap: 40px; } .service_side { position: static; } .services-grid { grid-template-columns: 1fr 1fr; } .case_gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .services-grid { grid-template-columns: 1fr; } .case_media.has-before { grid-template-columns: 1fr; } .case_gallery { grid-template-columns: 1fr; } }
/* Mobile: treść przed boczną nawigacją (CSS order), formularz szybkiego kontaktu u góry */
@media (max-width: 991px) { .service_side { order: 2; } .service_main { order: 1; } .service_side .quick { order: -1; } }

/* ---------- Stopka (jasna, z siatką linii) ---------- */
.section_footer { padding: 60px max(40px, env(safe-area-inset-right, 0px)) 60px max(40px, env(safe-area-inset-left, 0px)); }
.footer_component { display: grid; grid-template-columns: 611fr 709fr; }
.footer_left { display: grid; grid-template-columns: 250fr 209fr; gap: 80px; padding: 64px 36px 64px 0; }
.footer-general { display: flex; flex-direction: column; gap: 80px; padding-bottom: 96px; }
.footer_logo { display: inline-flex; align-items: center; min-height: 44px; }
.footer_logo img { height: 30px; width: auto; }
.footer-details-text { font-size: 16px; line-height: 22.4px; color: var(--muted); }
.footer-details-text .em { color: var(--fg); font-weight: 500; }
.footer_link_wrap { display: flex; flex-direction: column; gap: 0; }
.footer_link_wrap.mb-60 { margin-bottom: 60px; }
.footer-link-item { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 10px 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--fg); text-decoration: none; }
.footer-link-item .kt-ico, .footer_map .kt-ico { width: 14px; height: 14px; }
.footer-link-item:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-right { display: flex; flex-direction: column; }
.footer_info_wrapper { display: grid; grid-template-columns: 1fr 1fr; flex: 1; }
.footer_info_wrap { padding: 80px; display: flex; flex-direction: column; gap: 80px; }

.footer_info_item .label { font-size: 16px; line-height: 22.4px; color: var(--muted); margin-bottom: 16px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.footer_info_item p, .footer_info_item a { font-size: 16px; line-height: 21px; color: var(--fg); text-decoration: none; display: block; }
.footer_info_item a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; }
.footer_info_item a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer_map { display: inline-flex !important; align-items: center; gap: 4px; margin: 4px 0 -8px !important; min-height: 44px; font-weight: 500; }
.footer_copywrite_wrapper { display: flex; align-items: center; gap: 40px; padding: 32px 42px 0; flex-wrap: wrap; }
.copywrite_text_wrap { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 15px; line-height: 22px; color: var(--muted); }
.copywrite_text_wrap a { color: var(--fg); text-decoration: none; }
@media (max-width: 991px) { .footer_component { grid-template-columns: 1fr; } .footer_left { padding: 40px 0; gap: 40px; } .footer-general { padding-bottom: 0; gap: 40px; } .footer_info_wrap { padding: 32px 24px; gap: 32px; } .footer_copywrite_wrapper { padding: 24px; gap: 20px; } }
@media (max-width: 479px) { .footer_left, .footer_info_wrapper { grid-template-columns: 1fr; }  .section_footer { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: 100px; } }

/* ---------- Dolny pasek akcji (mobile) ---------- */
.sticky-bar { display: none; }
@media (max-width: 767px) {
  .sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(243, 238, 229, 0.96); backdrop-filter: blur(12px); box-shadow: var(--shadow-layer); }
  .sticky-bar .btn { min-height: 48px; }
  .sticky-bar { transition: transform 200ms ease-out, visibility 200ms; }
  .sticky-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
  .sticky-bar--call { grid-template-columns: 1fr; }
  body { padding-bottom: 0; }
  .section_footer { padding-bottom: 110px; }
}


/* ---------- Ton sekcji: każda sekcja działa na jasnym i ciemnym tle (rytm ustala front-page.php) ---------- */
/* O pracowni na ciemnym */
.is-dark .counter_subtext { color: var(--on-dark-muted); }
.is-dark .counter_number { color: var(--on-dark); }
.is-dark .about_badge { border-color: var(--dark); }
/* Usługi na jasnym */
.section_services:not(.is-dark) .services_item, .section_services:not(.is-dark) .services_item:last-child { border-color: var(--light-line); }
.section_services:not(.is-dark) .services_media { background: var(--surface-linen); }
.section_services:not(.is-dark) .services_name { color: var(--fg); }
.section_services:not(.is-dark) .services_desc { color: var(--muted); }
.section_services:not(.is-dark) .services_serial { color: var(--muted); }
.section_services:not(.is-dark) .services_serial b { color: var(--accent-text); }
.section_services:not(.is-dark) .bento_item { background: var(--surface-linen); }
/* Jak pracuję na ciemnym */
.is-dark .process_list-item, .is-dark .process_list-item:last-child { border-color: var(--dark-line); }
.is-dark .process_list_text-wrap h4 { color: var(--on-dark); }
.is-dark .process_list_text-wrap p { color: var(--on-dark-muted); }
.is-dark .process_list_num { color: var(--on-dark-muted); }
.is-dark .process_list-header .subtitle { color: var(--on-dark-muted); }
/* Realizacje na jasnym */
.section_case-study:not(.is-dark) .slider-arrow { border-color: rgba(46, 38, 33, 0.2); color: var(--fg); }
.section_case-study:not(.is-dark) .slider-arrow:focus-visible { outline-color: var(--focus-ring); }
.section_case-study:not(.is-dark) .case-study_slider { scrollbar-color: var(--line) transparent; }
/* Co jest w środku na ciemnym */
.is-dark .layers li, .is-dark .layers li:last-child { border-color: var(--dark-line); }
.is-dark .layers .name { color: var(--on-dark); }
.is-dark .layers .role, .is-dark .layers .num { color: var(--on-dark-muted); }
.is-dark .inside_photo { background: var(--dark-card); }
/* Opinie na ciemnym */
.is-dark .testimony_image { background: var(--dark-soft); }
.is-dark .testimony_comment, .is-dark .testimony_client .name, .is-dark .testimony_score b, .is-dark .testimony_score .stars { color: var(--on-dark); }
.is-dark .testimony_client .role, .is-dark .testimony_score .muted { color: var(--on-dark-muted); }
.is-dark .testimony_arrows .slider-arrow { border-color: var(--dark-line); color: var(--on-dark); }
/* Porady na ciemnym */
.is-dark .blog_item { background: var(--dark-card); border-color: var(--dark-line); color: var(--on-dark); }
.is-dark .blog_item:hover { background: #43372F; }
.is-dark .blog_text-wrap p { color: var(--on-dark-muted); }
.is-dark .blog_image-wrapper { background: var(--dark-soft); }
/* Wycena na jasnym */
.section_cta:not(.is-dark) .cta_form-wrap, .section_cta:not(.is-dark) .cta_sent { background: var(--surface-linen); color: var(--fg); }
.section_cta:not(.is-dark) .form_label { color: var(--muted); }
.section_cta:not(.is-dark) .form_input { color: var(--fg); border-bottom-color: var(--line-control); }
.section_cta:not(.is-dark) .form_input::placeholder { color: var(--muted); }
.section_cta:not(.is-dark) .form_input:focus { border-bottom-color: var(--fg); }
.section_cta:not(.is-dark) .form_input:focus-visible { outline-color: var(--focus-ring); }
.section_cta:not(.is-dark) .form_field--tel .form_prefix { color: var(--muted); }
.section_cta:not(.is-dark) select.form_input { color: var(--fg); background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); }
.section_cta:not(.is-dark) .form_file { color: var(--muted); border-bottom-color: var(--line-control); }
.section_cta:not(.is-dark) .form_file:focus-within { outline-color: var(--focus-ring); }
.section_cta:not(.is-dark) .form_consent { color: var(--muted); }
.section_cta:not(.is-dark) .form_consent a, .section_cta:not(.is-dark) .form_alt a { color: var(--fg); }
.section_cta:not(.is-dark) .form_alt { color: var(--muted); }
.section_cta:not(.is-dark) .form_error { color: var(--signal-error); }
.section_cta:not(.is-dark) .form_ok { color: var(--signal-ok); }
.section_cta:not(.is-dark) .cta_image-wrapper { background: var(--light-soft); }
.section_cta:not(.is-dark) .cta_sent .queue dd, .section_cta:not(.is-dark) .cta_sent ol, .section_cta:not(.is-dark) .cta_steps ol { color: var(--muted); }
.section_cta:not(.is-dark) .cta_sent .queue dt { color: var(--fg); }

/* ---------- Mini-konfigurator zapytania (QuoteForm z design systemu: kt-form, kt-fieldset, kt-field, kt-choices, kt-sent) ----------
   Zawsze jasna karta z ciemnym tekstem, niezależnie od tonu sekcji. */
.kf { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; color: var(--ink); }
.kf[hidden], .kf [hidden], .kf_sent[hidden] { display: none !important; }
.kt-label { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.kt-form { display: grid; gap: var(--space-6); }
.kf_form { background: var(--surface-field); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--shadow-soft); }
.kf_head { display: grid; gap: 8px; }
.kf_title { margin: 0; font-family: var(--font-serif); font-size: 30px; line-height: 38px; font-weight: 500; color: var(--ink); }
.kt-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-3); min-width: 0; }
.kt-fieldset legend, .kt-field > label { padding: 0; margin-bottom: var(--space-1); font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.kf_step { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.kf_form { counter-reset: kf; }
.kf_num::before { counter-increment: kf; content: counter(kf, decimal-leading-zero); }
.kf_num { display: inline-block; min-width: 34px; font-family: var(--font-serif); font-weight: 500; font-size: 17px; color: var(--accent-text); font-variant-numeric: lining-nums tabular-nums; }
.kf small { font-weight: 400; font-size: 13px; color: var(--ink-muted); letter-spacing: 0; text-transform: none; }
.kt-hint { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.kf .kt-hint a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.kf .kt-hint a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kt-field { display: grid; gap: var(--space-1); min-width: 0; }
.kt-field input, .kt-field select, .kt-field textarea { transition: border-color 140ms ease-out, box-shadow 140ms ease-out; width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); font: 400 17px/22px var(--font-sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line-control); border-radius: var(--radius-sm); }
.kt-field textarea { min-height: 112px; resize: vertical; }
.kt-field input::placeholder, .kt-field textarea::placeholder { color: #7A6E62; }
/* Aktywne pole = bordowa obwódka z palety (accent): pole z kursorem, zaznaczony wybór, pole plików pod kursorem */
.kt-field input:focus, .kt-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.kt-field > label.kf_sub, .kf_sub { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
/* Błąd przy polu */
.kt-error { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--signal-error); }
.kt-field--error input, .kt-field--error textarea { border-color: var(--signal-error); box-shadow: 0 0 0 2px var(--signal-error); }
.form_consent.kt-field--error input { outline: 2px solid var(--signal-error); outline-offset: 2px; }
.kt-ok { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--signal-ok); }
/* Wybory: pigułki (radio / checkbox) */
.kt-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.kt-choice { position: relative; }
.kt-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.kt-choice span, .kf_path-box, .kf_tile-box, .kf_add-box { transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out; }
.kt-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-4); border: 1.5px solid var(--line-control); border-radius: var(--radius-sm); font-size: 15px; line-height: 20px; color: var(--ink); background: #fff; transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out; }
.kt-choice input:hover + span { border-color: var(--ink); }
.kt-choice input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.kt-choice input:focus-visible + span, .kf_path input:focus-visible + .kf_path-box, .kf_add input:focus-visible + .kf_add-box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.kt-choice--ico span { gap: 8px; padding-left: 14px; font-weight: 500; }
.kf_bud { width: 20px; height: 20px; flex: none; color: var(--accent-text); }
.kt-choice--ico input:checked + span .kf_bud { color: inherit; }
/* Krok 01: dwie drogi */
.kf_paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.kf_path { position: relative; display: block; }
.kf_path input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.kf_path-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; height: 100%; padding: 18px 18px 20px; border: 1.5px solid var(--line-control); border-radius: var(--radius-sm); background: #fff; transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out; }
.kf_path-text { display: grid; gap: 4px; align-content: center; }
.kf_path-box .kf_ico { width: 64px; height: 64px; }
.kf_path-box b { font-family: var(--font-serif); font-size: 20px; line-height: 26px; font-weight: 500; }
.kf_path-box small { font-size: 14px; line-height: 20px; }
.kf_path input:hover + .kf_path-box { border-color: var(--ink); }
.kf_path input:checked + .kf_path-box { background: var(--ink); color: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.kf_path input:checked + .kf_path-box small { color: var(--on-dark-muted); }
/* Krok 02: kafle z ikoną mebla i podpisem */
.kf_tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1199px) and (min-width: 601px) { .kf_tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kf_tile { position: relative; display: block; }
.kf_tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.kf_tile-box { display: grid; gap: 8px; justify-items: center; align-content: start; height: 100%; padding: 16px 8px 14px; text-align: center; border: 1.5px solid var(--line-control); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out; }
.kf_ico { width: 48px; height: 48px; display: block; }
.kf_tile-name { font-size: 14px; line-height: 18px; font-weight: 500; }
.kf_tile input:hover + .kf_tile-box { border-color: var(--ink); }
.kf_tile input:checked + .kf_tile-box { background: var(--ink); color: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.kf_tile input:focus-visible + .kf_tile-box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (max-width: 600px) { .kf_tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .kf_tile-box { padding: 12px 4px 10px; gap: 6px; } .kf_ico { width: 40px; height: 40px; } .kf_tile-name { font-size: 13px; line-height: 16px; } }
/* Krok 04: zdjęcia i inspiracje */
.kf_upload { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.kf_thumbs { display: contents; }
.kf_thumb { position: relative; aspect-ratio: 1 / 1; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-linen); }
.kf_thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf_thumb-name { display: flex; align-items: center; justify-content: center; height: 100%; padding: 8px; font-size: 12px; line-height: 16px; text-align: center; overflow-wrap: anywhere; }
.kf_thumb-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(46, 38, 33, 0.82); color: var(--surface); font: 400 20px/1 var(--font-sans); cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.kf_thumb-x::after { content: ""; position: absolute; inset: -6px; }
.kf_thumb-x:hover { background: var(--accent); }
.kf_thumb-x:focus-visible { outline: 2px solid var(--surface); outline-offset: -4px; }
.kf_add { position: relative; display: block; cursor: pointer; }
.kf_add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kf_add-box { display: grid; gap: 2px; place-items: center; align-content: center; text-align: center; height: 100%; min-height: 104px; aspect-ratio: 1 / 1; padding: 8px; border: 1.5px dashed var(--line-control); border-radius: var(--radius-sm); background: #fff; transition: border-color 140ms ease-out, background-color 140ms ease-out; }
.kf_add-box b { font-size: 14px; line-height: 18px; font-weight: 600; }
.kf_add-box small { font-size: 12px; line-height: 16px; }
.kf_plus { font-family: var(--font-serif); font-size: 30px; line-height: 30px; color: var(--accent-text); }
.kf_add:hover .kf_add-box, .kf_upload.is-drag .kf_add-box { background: var(--surface-linen); border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.kf_upload:not(.has-files) .kf_add { grid-column: 1 / -1; }
.kf_upload:not(.has-files) .kf_add-box { aspect-ratio: auto; min-height: 132px; padding: 24px; }
.kf_upload:not(.has-files) .kf_add-box b { font-size: 16px; line-height: 22px; }
.kf_upload:not(.has-files) .kf_add-box small { font-size: 14px; line-height: 20px; }
.kf_link { margin-top: var(--space-2); }
.kf_budget { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
/* Krok 06: kontakt */
.kf_grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.kf_tel { position: relative; }
.kf_prefix { position: absolute; left: 16px; top: 37px; /* etykieta 20 + odstęp 4 + 13: stałe względem góry, żeby komunikat błędu pod polem go nie przesuwał */ font: 400 17px/22px var(--font-sans); color: var(--ink-muted); pointer-events: none; }
.kf_tel input { padding-left: 56px; font-variant-numeric: tabular-nums; }
.kt-form__submit { display: grid; gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.kf .form_consent { color: var(--ink-muted); }
.kf .form_consent a { color: var(--ink); }
.kf .form_error { margin: 0; color: var(--signal-error); }
.kf_submit { width: 100%; min-height: 57px; font-size: 17px; }
/* Podsumowanie na żywo i „co dalej” */
.kf_side { display: grid; gap: 20px; position: sticky; top: calc(var(--navbar-h) + 40px); }
.kt-result { display: grid; gap: var(--space-4); padding: var(--space-6) var(--space-5); border-radius: var(--radius-md); align-content: start; }
.kf_summary { background-color: var(--surface-linen); background-image: repeating-linear-gradient(0deg, var(--texture-thread) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, var(--texture-thread) 0 1px, transparent 1px 4px); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.kf_summary-title { margin: 0; font-family: var(--font-serif); font-size: 26px; line-height: 32px; font-weight: 500; color: var(--ink); }
.kf_specs { margin: 0; display: grid; gap: 0; }
.kf_specs > div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.kf_specs dt { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.kf_specs dd { margin: 0; font-size: 16px; line-height: 22px; color: var(--ink); overflow-wrap: anywhere; }
html:not(.js) .kf_summary { display: none; }
.kf_next { display: grid; gap: var(--space-4); padding: var(--space-5); background: var(--surface-field); border: 1px solid var(--line); border-radius: var(--radius-md); }
.kt-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: s; color: var(--ink); }
.kt-steps-list li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-2); font-size: 15px; line-height: 23px; }
.kt-steps-list li::before { content: counter(s) "."; font-family: var(--font-serif); font-size: 18px; color: var(--ink-muted); }
.kt-sent { display: grid; gap: var(--space-4); padding: var(--space-6) var(--space-5); border-radius: var(--radius-md); }
.kf_sent { max-width: 720px; padding: 40px 32px; background: var(--surface-field); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-soft); }
@media (max-width: 991px) { .kf { grid-template-columns: 1fr; } .kf_side { position: static; } }
@media (max-width: 600px) { .kf_path-box { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; } .kf_path-box .kf_ico { width: 56px; height: 56px; } .kf_form { padding: 28px 18px; } .kf_title { font-size: 26px; line-height: 32px; } .kf_paths, .kf_grid { grid-template-columns: 1fr; } .kf_sent { padding: 28px 20px; } .kf_upload { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .kf_add-box { min-height: 0; } }

/* ---------- Drugi ton sekcji: len (zamiast ciemnego brązu) ---------- */
.is-linen { background: var(--surface-linen); color: var(--fg); --light-line: #D3C7B4; --light-icon: var(--surface); --light-soft: rgba(46, 38, 33, 0.08); }
.section_cta.is-linen .cta_form-wrap, .section_cta.is-linen .cta_sent, .is-linen .cta_image-wrapper { background: var(--surface-field); }
.is-linen .cta_form-wrap { border: 1px solid var(--line); }

/* ---------- Kontakt ---------- */
.contact_grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.contact_cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.contact_card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 24px; background: var(--surface-field); border: 1px solid var(--light-line); border-radius: var(--radius-lg); min-width: 0; }
.contact_card .label { margin: 0; }
.contact_card .p-16 { margin: 0; }
.contact_card .btn-link { margin-top: auto; min-height: 44px; }
.contact_ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--surface); margin-bottom: 6px; flex: none; }
.contact_ico .kt-ico { width: 20px; height: 20px; }
.contact_value { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 32px; font-weight: 500; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
a.contact_value { display: inline-flex; align-items: center; min-height: 44px; }
a.contact_value:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact_value--mail { font-size: 19px; line-height: 26px; }
.contact_area { margin: 28px 0 0; max-width: 640px; }
.contact_area .label { display: block; margin-bottom: 8px; }
.contact_map { margin-top: 48px; border-radius: var(--radius-lg); border: 1px solid var(--light-line); background: var(--surface-field); overflow: hidden; min-height: 360px; display: grid; }
.contact_map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.contact_map-gate { display: grid; justify-items: center; align-content: center; gap: 14px; padding: 40px 24px; text-align: center; }
.contact_map-gate .h-24, .contact_map-gate .p-16 { margin: 0; }
.contact_map-gate .p-16 { max-width: 460px; }
.contact_map-gate a { color: var(--fg); }
html:not(.js) .contact_map-gate .btn { display: none; }
@media (max-width: 1100px) { .contact_grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .contact_cards { grid-template-columns: 1fr; } .contact_card { padding: 24px 20px; } .contact_map { margin-top: 32px; } .contact_value--mail { font-size: 16px; line-height: 24px; } }

/* ---------- Ruch ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; } }
@media print { .navbar, .sticky-bar, .section_cta, .slider-nav { display: none !important; } .hero { min-height: 0; } }
