/* =============================================================================
   Zakład Stolarski Broniś — arkusz stylów, wersja 2 „Słoje" (2026-10-01).
   Projekt: płótno Claude Design „kielcestolarz.pl - redesign". Poprzednia wersja
   (v1) leży w stolarz/archive/ i w obrazie stolarz-stolarz:v1-2026-10-01.

   Motywy: słoje drewna (pierścienie przyrostu na ciemnych sekcjach, słoje
   wzdłużne na desce oferty), łukowe kadry jak futryny, miarka stolarska jako
   oś czasu i linia procesu, obracająca się pieczęć „od 1989 roku".
   Wszystkie ścieżki RELATYWNE (fonts/…, img/…) - strona działa pod / i /stolarz/.
   ========================================================================== */

/* ---- 0. Fonty (hostowane lokalnie, licencje OFL w fonts/) ---------------
   Fraunces ZMIENNY z osią SOFT (miękkie zakończenia - „drewniany” charakter),
   Instrument Sans do tekstu. Podzbiory latin + latin-ext (polskie znaki). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- 1. Tokeny --------------------------------------------------------- */
:root {
  --ink:      #1b130d;   /* ciemne tło: hero, kontakt */
  --ink-2:    #241910;   /* pas „przed/po" */
  --ink-3:    #140e09;   /* stopka */
  --paper:    #f4ede1;   /* jasne tło */
  --linen:    #ebe1d0;   /* proces, opinie */
  --board:    #efe6d6;   /* deska oferty */
  --card:     #fbf6ec;
  --text:     #2a211a;
  --mute:     #6e5d4b;   /* 5,6:1 na paper */
  --cream:    #f1e7d7;
  --soft:     #c2ae90;   /* 8:1 na ink */
  --oak:      #c98642;   /* akcent */
  --oak-soft: #dc9a55;
  --oak-deep: #9c6224;   /* akcent na jasnym (kontrast) */
  --line-l:   rgba(42,33,26,.16);
  --line-d:   rgba(241,231,215,.14);
  --ff-disp:  "Fraunces", Georgia, "Times New Roman", serif;
  --ff-sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  --wrap:     1240px;
  --gutter:   clamp(20px, 5vw, 64px);
  --sec:      clamp(80px, 10vw, 124px);
  --ease:     cubic-bezier(.2,.7,.2,1);
}

/* ---- 2. Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--ff-sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--oak); color: var(--ink); }
[hidden] { display: none !important; }

/* ---- 3. Typografia i drobne elementy ---------------------------------- */
.disp, .h1, .h2, .h3 { font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; letter-spacing: -.018em; }
.h1 { font-size: clamp(3.1rem, 7.4vw, 7.2rem); line-height: .96; font-weight: 420; }
.h2 { font-size: clamp(2.3rem, 4.5vw, 3.9rem); line-height: 1.03; font-weight: 450; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; font-weight: 500; }
.h1 em, .h2 em, .h3 em { font-style: italic; font-weight: 380; color: var(--oak-deep); }
.on-dark .h1 em, .on-dark .h2 em, .on-dark .h3 em { color: var(--oak); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--oak-deep); margin-bottom: 14px; }
.on-dark .eyebrow { color: var(--oak); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--mute); max-width: 44ch; }
.on-dark .lead { color: var(--soft); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); position: relative; }
.on-dark { background: var(--ink); color: var(--cream); }
.head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.head .lead { margin-top: 20px; }

/* miarka stolarska */
.ticks { height: 16px; background:
  repeating-linear-gradient(90deg, var(--oak) 0 1.5px, transparent 1.5px 40px) bottom left/100% 16px no-repeat,
  repeating-linear-gradient(90deg, rgba(201,134,66,.6) 0 1px, transparent 1px 8px) bottom left/100% 8px no-repeat,
  linear-gradient(var(--oak), var(--oak)) bottom left/100% 1.5px no-repeat; }

/* słoje: pierścienie przyrostu */
.rings { position: absolute; pointer-events: none; border-radius: 50%; z-index: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 17px, rgba(201,134,66,.13) 17px 18px, transparent 18px 31px),
    repeating-radial-gradient(circle at 48% 52%, transparent 0 43px, rgba(201,134,66,.10) 43px 44.5px, transparent 44.5px 71px);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  animation: breathe 32s ease-in-out infinite alternate; }
/* słoje wzdłużne: deska */
.woodgrain { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-radial-gradient(ellipse 260% 24% at 28% 38%, transparent 0 21px, rgba(156,98,36,.085) 21px 22.5px, transparent 22.5px 36px),
    repeating-radial-gradient(ellipse 320% 20% at 74% 92%, transparent 0 29px, rgba(156,98,36,.06) 29px 30.5px, transparent 30.5px 51px); }
/* Słoje deski są NIERUCHOME celowo: animacja background-position przemalowywała
   całą sekcję w każdej klatce - pomiar 2026-10-01 wskazał ją jako główne źródło
   lagu oferty na telefonie. Ruch zostaje na warstwach kompozytowanych (transform). */
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .09; mix-blend-mode: overlay; pointer-events: none; z-index: 0; }
.rel { position: relative; z-index: 1; }

/* ---- 4. Przyciski ------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font-weight: 600; font-size: 16px;
  padding: 16px 28px; border-radius: 999px; text-decoration: none; transition: transform .25s, background .25s, color .25s, border-color .25s; }
.btn:active { transform: translateY(1px); }
.btn--oak { background: var(--oak); color: var(--ink); }
.btn--oak:hover { background: var(--oak-soft); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid rgba(241,231,215,.24); color: var(--cream); }
.btn--ghost:hover { border-color: var(--oak); color: var(--oak); transform: translateY(-2px); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.pulse { position: relative; isolation: isolate; }
/* Pierścień na ::after animuje tylko transform i opacity (kompozytor) - animowany
   box-shadow wymuszał przemalowanie przycisku w każdej klatce. */
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--oak);
  opacity: 0; pointer-events: none; z-index: -1; animation: pulseRing 2.6s ease-out infinite; }
.linkbtn { color: inherit; text-decoration: underline; font-size: inherit; padding: 0; }

/* ---- 5. Nawigacja ------------------------------------------------------ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav--solid { background: rgba(27,19,13,.9); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); border-bottom-color: var(--line-d); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 86px; transition: height .35s; }
.nav--solid .nav__bar { height: 70px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--cream); text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand b { display: block; font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: 21px; font-weight: 600; line-height: 1.05; }
.brand small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--cream); text-decoration: none; position: relative; }
.nav__links a:not(.btn):not(.nav__tel)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px; background: var(--oak); transition: right .3s; }
.nav__links a:not(.btn):not(.nav__tel):hover::after { right: 0; }
.nav__tel { display: inline-flex; align-items: center; gap: 8px; }
.nav__tel svg { width: 18px; height: 18px; color: var(--oak); }
.nav__links .btn { padding: 11px 22px; font-size: 15px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-d); color: var(--cream); }
.nav__toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .3s, opacity .3s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- 6. Hero ----------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero__lead { margin-top: 30px; max-width: 46ch; font-size: 19px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__media { position: relative; justify-self: end; width: 100%; max-width: 470px; }
.arch { border-radius: 999px 999px 26px 26px; overflow: hidden; }
.hero__photo { aspect-ratio: 4 / 5.4; border: 1px solid var(--line-d); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.seal { position: absolute; left: -58px; bottom: 46px; width: 150px; height: 150px; border-radius: 50%; background: var(--oak); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 20px 44px -18px rgba(0,0,0,.7); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 38s linear infinite; will-change: transform; }
.seal text { font-family: var(--ff-sans); font-size: 15px; font-weight: 600; letter-spacing: 3.6px; fill: var(--ink); }
.seal__mid { position: relative; text-align: center; line-height: 1; }
.seal__mid b { display: block; font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: 44px; font-weight: 600; }
.seal__mid span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.timeline { margin-top: 64px; }
.timeline .ticks { transform-origin: left center; animation: draw 1.6s .7s var(--ease) both; }
.timeline__labels { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 10px; font-size: 13px; color: var(--soft); letter-spacing: .06em; }
.timeline__labels b { font-family: var(--ff-disp); font-size: 20px; color: var(--cream); font-weight: 600; margin-right: 8px; }
/* wjazd nagłówka linijka po linijce */
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; animation: rise 1.1s cubic-bezier(.2,.7,.15,1) both; }
.line:nth-child(2) > span { animation-delay: .12s; }
.line:nth-child(3) > span { animation-delay: .24s; }
.fade-in { animation: fade .9s .55s var(--ease) both; }
.fade-in-2 { animation: fade .9s .75s var(--ease) both; }

/* ---- 7. Oferta: warsztat z wyborem usługi ------------------------------ */
.offer { background: var(--board); overflow: hidden; }
.offer__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.svc-list { margin-top: 44px; border-top: 1px solid var(--line-l); }
/* Wiersz = zakładka (button) + link „Realizacje” obok (link nie może siedzieć
   W buttonie). Kolumna linku jest zarezerwowana w KAŻDYM wierszu, a widoczna
   tylko przy wybranym - nazwa nigdy na nią nie nachodzi i lista nie skacze. */
.svc-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-l); }
.svc { width: 100%; text-align: left; position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; padding: 18px 4px; }
.svc__go { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--cream);
  opacity: 0; transform: translateX(-10px); pointer-events: none; transition: opacity .3s, transform .35s var(--ease), background .25s, color .25s; }
.svc__go span { transition: transform .25s; }
.svc-row.is-on .svc__go { opacity: 1; transform: none; pointer-events: auto; }
.svc__go:hover, .svc__go:focus-visible { background: var(--oak); color: var(--ink); }
.svc__go:hover span { transform: translateX(4px); }
/* Nazwy ZAWSZE w jednej linii: kursywa wybranej pozycji jest węższa, więc przy
   zawijaniu wiersz raz miał jedną, raz dwie linie i lista skakała (pomiar 482↔523 px).
   Na węższych desktopach pigułka zwija się do samej strzałki, żeby zmieściły się nazwy. */
@media (min-width: 901px) and (max-width: 1180px) {
  .svc__go { width: 46px; height: 46px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .svc__go span { font-size: 18px; }
}
.svc__no { font-family: var(--ff-disp); font-size: 18px; color: rgba(42,33,26,.4); transition: color .3s; }
.svc__name { font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; letter-spacing: -.015em; font-size: clamp(24px, 2.25vw, 32px); line-height: 1.12; font-weight: 450; white-space: nowrap;
  color: rgba(42,33,26,.55); transition: color .3s; }
.svc__arrow { display: none; }   /* zastąpione linkiem .svc__go */
.svc__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--oak); transform: scaleX(0); transform-origin: left center; transition: transform .55s var(--ease); }
.svc:hover .svc__name { color: var(--oak-deep); }
.svc[aria-selected="true"] .svc__no { color: var(--oak-deep); }
.svc[aria-selected="true"] .svc__name { color: var(--ink); font-style: italic; }
.svc[aria-selected="true"] .svc__arrow { opacity: 1; transform: none; }
.svc[aria-selected="true"] .svc__bar { transform: scaleX(1); }
.stage { position: relative; padding-left: 46px; }
.stage__dim { position: absolute; left: 0; top: 0; height: calc(100% - 170px); width: 16px; background:
  repeating-linear-gradient(180deg, var(--oak-deep) 0 1.5px, transparent 1.5px 40px) top left/16px 100% no-repeat,
  repeating-linear-gradient(180deg, rgba(156,98,36,.6) 0 1px, transparent 1px 8px) top left/8px 100% no-repeat,
  linear-gradient(var(--oak-deep), var(--oak-deep)) top left/1.5px 100% no-repeat; }
.stage__arch { position: relative; aspect-ratio: 4 / 4.7; background: #d9ccb6; box-shadow: 0 40px 80px -44px rgba(27,19,13,.75); }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07);
  transition: opacity .7s ease, transform 1.4s var(--ease); }
.stage__img.is-on { opacity: 1; transform: none; }
/* Sterowanie NIE może siedzieć w górnych rogach: łuk kadru je obcina (tak było
   do 2026-10-01 - strzałki i licznik były niewidoczne i nieklikalne). Strzałki
   na bokach w połowie wysokości, licznik na środku górnej krawędzi łuku. */
.stage__ctl { position: absolute; left: 0; right: 0; top: 42%; z-index: 2; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.stage__ctl .stage__arrow { pointer-events: auto; }
.stage__count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(27,19,13,.72); color: var(--cream);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.stage__arrow { width: 44px; height: 44px; border-radius: 50%; background: rgba(27,19,13,.72); color: var(--cream); display: grid; place-items: center; transition: background .25s, color .25s; }
.stage__arrow:hover { background: var(--oak); color: var(--ink); }
.stage__arrow svg { width: 20px; height: 20px; }
.svc__thumb { display: none; }
.stage__card { position: relative; margin: -130px 0 0 -24px; width: min(460px, 94%); background: var(--ink); color: var(--cream);
  border-radius: 22px; padding: 28px 30px 26px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.stage__card { display: grid; }
.stage__panel { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.stage__panel.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease .08s, visibility 0s; }
.stage__foot { margin-top: auto; }
.stage__thumbs { margin-bottom: 20px; }
.stage__tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--oak); }
.stage__card h3 { margin: 8px 0 10px; font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: 32px; line-height: 1.1; font-weight: 500; }
.stage__card p { color: var(--soft); font-size: 16px; line-height: 1.6; }
.stage__thumbs { display: flex; gap: 8px; margin-top: 18px; }
.stage__thumbs img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.stage__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-d); }
.stage__foot span { font-size: 14px; color: var(--soft); }
.stage__foot a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; background: var(--oak); color: var(--ink);
  padding: 12px 20px; border-radius: 999px; transition: background .25s, transform .25s; }
.stage__foot a:hover { background: var(--oak-soft); transform: translateY(-2px); }

/* ---- 8. Przed / po ----------------------------------------------------- */
.baf-sec { background: var(--ink-2); overflow: hidden; }
.baf-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.baf-steps { margin-top: 40px; max-width: 420px; }
.baf-steps li { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line-d); }
.baf-steps li:last-child { border-bottom: 1px solid var(--line-d); }
.baf-steps b { font-family: var(--ff-disp); color: var(--oak); font-size: 22px; width: 30px; flex: none; }
.baf__stage { position: relative; aspect-ratio: 4 / 4.6; --pos: 50%; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.85);
  background: #1a120c; touch-action: pan-y; cursor: ew-resize; isolation: isolate; }
.baf__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.baf__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
.baf__tag { position: absolute; top: 16px; z-index: 3; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.baf__tag--before { left: 16px; background: rgba(27,19,13,.7); color: var(--cream); }
.baf__tag--after { right: 16px; background: var(--oak); color: var(--ink); }
.baf__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); transform: translateX(-50%); z-index: 4; width: 54px; display: grid; place-items: center; pointer-events: none; }
.baf__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: var(--oak); }
.baf__handle svg { position: relative; width: 54px; height: 54px; padding: 14px; background: var(--oak); color: var(--ink); border-radius: 50%; box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.baf__stage:focus-visible { outline: 3px solid var(--oak); outline-offset: 4px; }

/* ---- 9. Realizacje: filtr + galeria „bento" ----------------------------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button { font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(42,33,26,.22); color: var(--text); transition: all .25s; }
.filter button:hover { border-color: var(--ink); }
.filter button.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filter .count { opacity: .65; margin-left: 4px; font-weight: 500; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
/* Układ nadaje main.js (data-b = pozycja w bieżącym widoku mod 7), nie nth-child -
   ukryte przez filtr kafle liczyłyby się do nth-child i rozbijały wzór. */
.tile { position: relative; overflow: hidden; border-radius: 22px; padding: 0; background: #d9ccb6; grid-column: span 4; }
.tile[data-b="0"] { grid-column: span 6; grid-row: span 2; }
.tile[data-b="1"] { grid-column: span 3; }
.tile[data-b="2"] { grid-column: span 3; grid-row: span 2; }
.tile[data-b="3"] { grid-column: span 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile .cap { position: absolute; left: 14px; bottom: 14px; background: rgba(27,19,13,.78); color: var(--cream); padding: 7px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; transform: none; }
.tile:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }
.gallery__more { display: flex; justify-content: center; margin-top: 44px; }
.gallery__err { grid-column: 1 / -1; color: var(--mute); text-align: center; }

/* ---- 10. Proces na miarce ---------------------------------------------- */
.process { background: var(--linen); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 30px; }
.steps b { display: block; font-family: var(--ff-disp); font-size: 64px; font-weight: 300; line-height: 1; color: var(--oak-deep); }
.steps h3 { margin: 14px 0 8px; font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: 24px; font-weight: 550; line-height: 1.2; }
.steps p { color: var(--mute); }

/* ---- 11. Opinie -------------------------------------------------------- */
.reviews { background: var(--linen); padding-top: 0; }
.reviews__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.score { display: flex; align-items: flex-end; gap: 18px; }
.score b { font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: clamp(96px, 10vw, 132px); line-height: .85; font-weight: 350; color: var(--ink); }
.score__stars { display: flex; gap: 3px; color: var(--oak); }
.score__stars svg { width: 24px; height: 24px; }
.score small { display: block; margin-top: 6px; color: var(--mute); font-size: 15px; }
.score small.score__asof { margin-top: 2px; font-size: 12px; opacity: .8; }
.reviews__link { display: inline-flex; gap: 10px; margin-top: 28px; font-weight: 600; color: var(--oak-deep); }
.rvbox { min-height: 320px; background: var(--card); border: 1px solid var(--line-l); border-radius: 24px; padding: 18px; }

/* ---- 12. Kontakt ------------------------------------------------------- */
.contact { overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__phones { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.contact__phones span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.contact__phones a { font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: clamp(30px, 3.4vw, 42px); font-weight: 450; line-height: 1.15; text-decoration: none; color: var(--cream); }
.contact__phones a:hover { color: var(--oak); }
/* Drugi numer ×0,89: Fraunces ma cyfry PROPORCJONALNE (bez tnum w subsecie), a „608 040 844”
   (szerokie 0/8/6/4) przy tym samym font-size jest o ~12% szerszy niż „731 394 939” (wąskie 1/3/7)
   i wyglądał na większy. 0,89 = stosunek sum szerokości cyfr z hmtx - zmiana numeru = przelicz. */
.contact__phones a + a { font-size: clamp(26.7px, 3.03vw, 37.4px); }
.contact__addr { margin-top: 30px; display: flex; gap: 16px; align-items: flex-start; }
.contact__addr svg { width: 22px; height: 22px; color: var(--oak); flex: none; margin-top: 3px; }
.contact__addr .sub { color: var(--soft); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-d); display: grid; place-items: center; color: var(--cream); transition: all .25s; }
.socials a:hover { border-color: var(--oak); color: var(--oak); }
.socials svg { width: 21px; height: 21px; }
.map { margin-top: 26px; position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-d); background: #2e2218; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ext { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--oak); text-decoration: none; }
.map__ext:hover { color: var(--cream); }
.form { background: rgba(241,231,215,.04); border: 1px solid var(--line-d); border-radius: 26px; padding: clamp(24px, 3.4vw, 40px); }
#formInner { display: flex; flex-direction: column; gap: 22px; }
.field label, .field__label { display: block; font-size: 13px; font-weight: 600; color: var(--soft); }
.field label .req, .form__note .req { color: var(--oak); }
.field__label .opt { font-weight: 400; opacity: .75; }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(241,231,215,.25); border-radius: 0;
  color: var(--cream); padding: 10px 0 12px; outline: none; transition: border-color .25s; }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c98642' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { background: var(--ink); color: var(--cream); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--oak); }
.field input::placeholder, .field textarea::placeholder { color: rgba(194,174,144,.55); }
.field--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form .field-error { border-color: #e07a62 !important; }
.field__err { display: none; margin-top: 8px; font-size: 14px; line-height: 1.45; color: #f3b9a8; }
.field__err.show { display: block; }
.field label .opt { font-weight: 400; opacity: .75; }
section[id] { scroll-margin-top: 76px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form__note, .form__hint { font-size: 13px; color: var(--soft); }
.form__hint { margin-top: 8px; }
.form__legal { font-size: 12px; line-height: 1.55; color: var(--soft); opacity: .9; }
.form__legal a { color: var(--oak); }
.form__msg { border-radius: 12px; padding: 13px 16px; font-size: 15px; display: none; }
.form__msg.show { display: block; }
.form__msg.err { background: rgba(190,70,50,.16); border: 1px solid rgba(190,70,50,.5); color: #f3c9bf; }
.form__msg.ok { background: rgba(110,160,90,.16); border: 1px solid rgba(120,170,95,.5); color: #d6e9c8; }
/* załączniki */
.drop { position: relative; margin-top: 10px; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field .drop__zone { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed rgba(241,231,215,.25); border-radius: 16px;
  color: var(--soft); cursor: pointer; font-size: 15px; font-weight: 400; transition: border-color .2s, background .2s; }
.field .drop__zone .drop__ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(201,134,66,.16); color: var(--oak); display: grid; place-items: center; flex: none; }
.field .drop__zone svg { width: 22px; height: 22px; }
.field .drop__zone b { color: var(--cream); font-weight: 600; }
.drop__zone:hover, .drop--over .drop__zone { border-color: var(--oak); background: rgba(201,134,66,.08); }
.drop__input:focus-visible + .drop__zone { outline: 3px solid var(--oak); outline-offset: 3px; }
.drop--err .drop__zone { border-color: #d0674f; }
.drop__list { display: grid; gap: 8px; margin-top: 10px; }
.drop__list:empty { display: none; }
.drop__item { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 1px solid var(--line-d); border-radius: 12px; }
.drop__thumb { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; background: rgba(201,134,66,.14); display: grid; place-items: center;
  color: var(--oak); font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.drop__meta { flex: 1; min-width: 0; line-height: 1.35; }
.drop__name { display: block; color: var(--cream); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop__size { color: var(--soft); font-size: .78rem; }
.drop__rm { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--soft); flex: none; }
.drop__rm:hover { background: rgba(190,70,50,.18); color: #f3c9bf; }
.drop__rm svg { width: 16px; height: 16px; }
@media (hover: none) { .drop__or { display: none; } }

/* ---- 13. Stopka -------------------------------------------------------- */
.footer { background: var(--ink-3); color: var(--cream); padding: 90px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--soft); max-width: 36ch; margin-top: 18px; }
.footer h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--oak); margin-bottom: 14px; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer ul a, .footer ul span { color: var(--soft); text-decoration: none; }
.footer ul a:hover { color: var(--cream); }
.footer .ticks { margin-top: 60px; opacity: .6; }
.footer__bottom { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #8f7c62; }
.footer__legal a, .footer__legal .linkbtn { color: #8f7c62; }
.footer__legal a:hover, .footer__legal .linkbtn:hover { color: var(--cream); }

/* ---- 14. Podstrony ----------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: 150px 0 clamp(56px, 7vw, 90px); }
.page-hero .lead { margin-top: 22px; max-width: 58ch; }
.page-hero .hero__cta { margin-top: 30px; }
/* Podstrony usług (od 2026-10-02): tylko nagłówek „Realizacje” i galeria, bez tekstu
   i FAQ (decyzja właściciela) - nagłówek niższy, galeria zaczyna się zaraz pod nim. */
.page-hero--slim { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero--slim + .section { padding-top: clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--soft); margin-bottom: 20px; }
.crumbs a { color: var(--oak); text-decoration: none; }
.crumbs a:hover { color: var(--cream); }
.crumbs span[aria-hidden] { opacity: .5; }
.prose { max-width: 780px; }
.prose h3 { font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 550; line-height: 1.2; margin: 36px 0 10px; color: var(--text); }
.prose ol { list-style: decimal; padding-left: 1.3em; margin: 10px 0; }
.prose ol li::marker { color: var(--oak-deep); font-weight: 600; }
.prose h2 { font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; line-height: 1.15; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--mute); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose a, .prose .linkbtn { color: var(--oak-deep); }
.prose b { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line-l); vertical-align: top; color: var(--mute); }
.prose th { color: var(--text); font-weight: 600; }

/* ---- 15. Mobilny pasek akcji (pływający) ------------------------------- */
.ctabar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 85; display: none;
  grid-template-columns: 1fr 1.3fr; gap: 8px; transition: transform .35s var(--ease); }
.ctabar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.ctabar__call { background: #1f160f; border: 1px solid rgba(241,231,215,.18); color: var(--cream); }
/* Bez backdrop-filter: na iOS rozmycie na przyklejonym elemencie migotało przy
   przewijaniu. Chowanie (.ctabar--away) steruje js/main.js. */
.ctabar--away { transform: translateY(calc(100% + 24px)); pointer-events: none; }
.ctabar__call svg { width: 20px; height: 20px; color: var(--oak); }
.ctabar__quote { background: var(--oak); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(201,134,66,.9); }
body.lock .ctabar { display: none !important; }

/* ---- 16. Lightbox ------------------------------------------------------ */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(15,9,5,.95); display: none; align-items: center; justify-content: center; padding: clamp(14px, 4vw, 48px); }
.lb.open { display: flex; }
.lb__img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb__btn { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; transition: background .2s; }
.lb__btn:hover { background: rgba(201,134,66,.85); }
.lb__btn svg { width: 24px; height: 24px; }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: clamp(8px, 3vw, 28px); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(8px, 3vw, 28px); top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--soft); font-size: .85rem; letter-spacing: .14em; }
body.lock { overflow: hidden; }

/* ---- 17. Baner zgody (js/consent.js) ----------------------------------- */
.consent { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(calc(100% + 40px)); z-index: 95; width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 36px); overflow: auto; background: rgba(27,19,13,.97); backdrop-filter: blur(10px); border: 1px solid var(--line-d);
  border-radius: 20px; padding: 22px 24px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); color: var(--cream); transition: transform .45s var(--ease); }
.consent.show { transform: translateX(-50%) translateY(0); }
.consent__title { display: block; font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: 1.2rem; font-weight: 550; margin-bottom: 6px; }
.consent p { font-size: .9rem; color: var(--soft); line-height: 1.6; }
.consent a { color: var(--oak); }
.consent__prefs { display: grid; gap: 10px; margin-top: 14px; }
.consent__opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-d); border-radius: 12px; font-size: .86rem; color: var(--soft); cursor: pointer; line-height: 1.5; }
.consent__opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--oak); flex: none; }
.consent__opt b { display: block; color: var(--cream); font-size: .92rem; }
.consent__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.consent__btns .btn { padding: 12px 20px; flex: 1 1 auto; font-size: 15px; }

/* ---- 18. Ruch ---------------------------------------------------------- */
@keyframes breathe { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.07) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.1, 1.45); opacity: 0; } }
.anim-paused, .anim-paused *, .anim-paused *::after { animation-play-state: paused !important; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--oak); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- 19. Responsywność ------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .nav__links .nav__cat { display: none; }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(20,14,9,.98);
    backdrop-filter: blur(12px); padding: 10px var(--gutter) 22px; border-bottom: 1px solid var(--line-d);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
  .nav.open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open { background: rgba(20,14,9,.98); }
  .nav__bar, .nav--solid .nav__bar { height: 70px; }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line-d); font-size: 17px; }
  .nav__links .nav__cat { display: block; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; padding: 15px; }
  .hero { padding: 104px 0 56px; }
  .hero__grid, .offer__grid, .baf-grid, .reviews__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  /* Telefon: najpierw nagłówek i CTA, zdjęcie pod spodem (jak w projekcie mobilnym). */
  .hero__media { justify-self: end; max-width: 300px; margin-top: 12px; }
  .hero__photo { aspect-ratio: 4 / 5; }
  .seal { left: -64px; bottom: 34px; width: 118px; height: 118px; }
  .seal__mid b { font-size: 34px; }
  .timeline { margin-top: 44px; }
  /* Telefon: wszystkie usługi widoczne naraz jako duże kafle z miniaturą
     (poziomy pasek do przewijania ginął - „mało widoczna karuzela”). */
  .svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 0; margin-top: 26px; }
  .svc { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 8px 12px 8px 8px; border: 1.5px solid rgba(42,33,26,.16);
    border-radius: 20px; background: rgba(251,246,236,.75); transition: background .25s, border-color .25s; }
  .svc-row { display: block; border-bottom: 0; }
  .svc-row:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .svc__go { display: none; }
  .svc__thumb { display: block; width: 54px; height: 54px; flex: none; border-radius: 27px 27px 10px 10px; object-fit: cover; }
  .svc__no, .svc__arrow, .svc__bar { display: none; }
  /* nowrap z desktopu NIE na telefonie: tam nazwa ma się łamać w kaflu (inaczej
     „Schody samonośne” wychodziło poza kafel). Kafle mają stałą min. wysokość. */
  .svc__name { font-size: 17px; line-height: 1.2; color: var(--text); white-space: normal; overflow-wrap: break-word; min-width: 0; }
  .svc[aria-selected="true"] { background: var(--ink); border-color: var(--ink); box-shadow: 0 14px 28px -18px rgba(27,19,13,.9); }
  .svc[aria-selected="true"] .svc__name { color: var(--cream); font-style: normal; }
  .stage { padding-left: 0; margin-top: 8px; }
  .stage__dim,   .stage__arch { aspect-ratio: 4 / 4.2; }
  .stage__card { margin: -80px 12px 0; width: auto; padding: 24px 22px 22px; }
  .stage__card h3 { font-size: 28px; }
  /* Koszt renderowania na telefonie: ziarno z mix-blend-mode i rozmycie pod
     stałym menu są na iOS drogie przy każdym przewinięciu; pierścienie stoją. */
  .grain { display: none; }
  .rings { animation: none; }
  .nav--solid, .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20,14,9,.97); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 10px; }
  .tile, .tile[data-b] { grid-column: span 1; grid-row: span 1; }
  .tile[data-b="0"] { grid-column: span 2; grid-row: span 2; }
  .tile .cap { opacity: 1; transform: none; font-size: 11px; left: 10px; bottom: 10px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews__grid { gap: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .ctabar { display: grid; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .consent { bottom: calc(80px + env(safe-area-inset-bottom)); max-height: calc(100vh - 110px); }
  .page-hero { padding: 110px 0 56px; }
}
/* Wąskie telefony: kafel usługi mniejszy, żeby CAŁE słowa („samonośne”) mieściły się
   bez łamania w środku; poniżej 350 px kafle jeden pod drugim. */
@media (max-width: 400px) {
  .svc { gap: 10px; padding: 7px 10px 7px 7px; min-height: 68px; }
  .svc__thumb { width: 44px; height: 44px; border-radius: 22px 22px 8px 8px; }
  .svc__name { font-size: 15.5px; }
}
@media (max-width: 350px) {
  .svc-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .field--row, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { width: 100%; }
  .lb__prev { left: 8px; } .lb__next { right: 8px; }
  .lb__btn { width: 46px; height: 46px; }
}

/* ---- 20. Drobne: dostępność ------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-hero .h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }

/* ---- 21. Przed/po: przełącznik realizacji (2026-10-02) -----------------
   Projekt: płótno Claude Design, plansze „Przed i po”. Miniatura pary pokazuje
   po skosie oba stany (lewa część „przed”, prawa „po”). */
.baf__img { transition: opacity .35s var(--ease); }
.baf__stage.is-swap .baf__img { opacity: .35; }
.baf__bar { display: flex; justify-content: flex-end; margin-top: 22px; }
.baf__nav { flex: none; display: flex; align-items: center; gap: 10px; }
.baf__nav[hidden], .baf__picks[hidden] { display: none; }
.baf__count { font-family: var(--ff-disp); font-size: 20px; margin-right: 6px; white-space: nowrap; }
.baf__count small { font-size: 15px; color: var(--soft); }
.rbtn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(241,231,215,.24); color: var(--cream); display: grid; place-items: center; transition: border-color .25s, color .25s; }
.rbtn svg { width: 20px; height: 20px; }
.rbtn:hover { border-color: var(--oak); color: var(--oak); }
.baf__picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.baf__pick { position: relative; height: 128px; overflow: hidden; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line-d); opacity: .55; transition: opacity .3s, transform .3s var(--ease), border-color .3s; }
.baf__pick:hover { opacity: 1; transform: translateY(-3px); }
.baf__pick[aria-pressed="true"] { opacity: 1; border: 2px solid var(--oak); }
.baf__pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.baf__pick .baf__pick-b { clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%); }
.baf__pick span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; text-align: left; font-family: var(--ff-disp); font-size: 17px; color: var(--cream);
  background: linear-gradient(to top, rgba(20,14,9,.88), rgba(20,14,9,0)); }

/* ---- 22. Film z realizacji (2026-10-02) ---------------------------------
   Projekt: płótno Claude Design, plansze „Film z realizacji”. Kadr pionowy 9:16
   z łukiem jak reszta strony; sterowanie TYLKO na dole kadru - łuk obcina górne
   rogi (ta sama lekcja co w ofercie). Pasek postępu = transform, nie width. */
.film-sec { overflow: hidden; }
.film-sec[hidden] { display: none; }
.film-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
/* clip-path zamiast samego overflow+border-radius: Chromium rysuje <video> na osobnej
   warstwie i przy samym zaokrągleniu nad łukiem zostawały czarne prostokąty (zrzut
   e2e 2026-10-02). clip-path obcina też cień, więc cień ma rodzic. */
.film__player { border-radius: 999px 999px 28px 28px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }
.film__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 999px 999px 28px 28px; overflow: hidden; isolation: isolate;
  clip-path: inset(0 round 999px 999px 28px 28px); border: 1px solid var(--line-d); background: var(--ink-3); }
.film__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink-3); cursor: pointer; }
.film__frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(20,14,9,.92), rgba(20,14,9,0)); }
.film__big { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(20,14,9,.18); transition: opacity .3s; }
.film__disc { width: 84px; height: 84px; border-radius: 50%; background: var(--oak); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 16px 36px -12px rgba(201,134,66,.9); transition: transform .3s var(--ease); }
.film__disc svg { width: 32px; height: 32px; margin-left: 4px; }
.film__big:hover .film__disc { transform: scale(1.06); }
.film__frame.is-started .film__big { opacity: 0; pointer-events: none; }
.film__ctrl { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 3; display: flex; flex-direction: column; gap: 16px; }
.film__row { display: flex; align-items: center; gap: 14px; }
.film__play { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--oak); color: var(--ink); display: grid; place-items: center; }
.film__play svg { width: 22px; height: 22px; }
.film__play .i-play { margin-left: 3px; }
.film__play .i-pause, .film__frame.is-playing .film__play .i-play { display: none; }
.film__frame.is-playing .film__play .i-pause { display: block; }
.film__meta { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.film__meta b { display: block; font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film__meta span { font-size: 13px; color: var(--soft); }
.film__next { flex: none; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(241,231,215,.24); color: var(--cream);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: border-color .25s, color .25s; }
.film__next:hover { border-color: var(--oak); color: var(--oak); }
.film__bar { position: relative; height: 3px; border-radius: 3px; background: rgba(241,231,215,.18); overflow: hidden; }
.film__bar i { position: absolute; inset: 0; background: var(--oak); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.film__count { font-family: var(--ff-disp); font-variation-settings: "SOFT" 100; font-size: 44px; line-height: 1; font-weight: 400; }
.film__count small { font-size: 20px; color: var(--soft); }
.film__count--sm { display: none; }
.filter--dark button { border-color: rgba(241,231,215,.22); color: var(--cream); min-height: 44px; }
.filter--dark button:hover { border-color: var(--oak); }
.filter--dark button.active { background: var(--oak); border-color: var(--oak); color: var(--ink); }
.film__filter { margin-top: 40px; }
.film__head { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 44px; padding-bottom: 18px; border-bottom: 1px solid var(--line-d); }
.film__arrows { display: flex; gap: 10px; }
.film__arrows .rbtn { width: 48px; height: 48px; }
.film__rail { display: flex; gap: 14px; margin-top: 26px; padding: 6px 2px 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 86%, transparent); }
.film__rail::-webkit-scrollbar { display: none; }
.film__rail.at-start { -webkit-mask-image: linear-gradient(to right, #000 86%, transparent); mask-image: linear-gradient(to right, #000 86%, transparent); }
.film__rail.at-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 6%); mask-image: linear-gradient(to right, transparent, #000 6%); }
.film__rail.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
.film__th { position: relative; flex: none; width: 104px; height: 184px; padding: 0; overflow: hidden; border-radius: 999px 999px 14px 14px; background: var(--ink-2);
  border: 1px solid var(--line-d); opacity: .62; scroll-snap-align: start; transition: opacity .3s, transform .3s var(--ease), border-color .3s; }
.film__th:hover { opacity: 1; transform: translateY(-4px); }
.film__th[aria-current="true"] { opacity: 1; border: 2px solid var(--oak); }
.film__th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__th-lbl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 22px 8px 7px; font-size: 12px; font-weight: 600; color: var(--cream);
  background: linear-gradient(to top, rgba(20,14,9,.85), rgba(20,14,9,0)); }
.film__th-lbl span + span { color: var(--soft); font-weight: 500; }
/* Wskaźnik „teraz gra”: trzy słupki, animowane tylko gdy film faktycznie gra
   (transform, bez repaintu; w sekcji poza ekranem .anim-paused je zatrzymuje). */
.film__th-now { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%;
  background: var(--oak); align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 11px; }
.film__th[aria-current="true"] .film__th-now { display: flex; }
.film__th-now i { width: 3px; height: 12px; background: var(--ink); border-radius: 1px; transform-origin: bottom; transform: scaleY(.45); }
.film-sec:has(.is-playing) .film__th-now i { animation: eq 1s ease-in-out infinite alternate; }
.film__th-now i:nth-child(2) { animation-delay: -.35s !important; }
.film__th-now i:nth-child(3) { animation-delay: -.7s !important; }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.anim-paused .film__th-now i { animation-play-state: paused; }
.film__note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--soft); }
.film__note svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 900px) {
  .baf__picks { gap: 8px; margin-top: 20px; padding-top: 0; border-top: 0; }
  .baf__pick { height: 84px; border-radius: 12px; }
  .baf__pick span { padding: 14px 6px 4px; font-size: 14px; }
  .baf__bar { margin-top: 14px; }
  .baf__nav .rbtn { display: none; }
  .baf__count { font-size: 18px; margin-right: 0; }
  .baf__count small { font-size: 13px; }
  /* Telefon: nagłówek → filtr → kadr → pasek miniatur (jak plansza „telefon”). */
  .film-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .film__side { display: contents; }
  .film__side > .reveal:first-child { order: 1; }
  .film__filter { order: 2; margin-top: 26px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .film__filter::-webkit-scrollbar { display: none; }
  .film__filter button { flex: none; }
  .film__player { order: 3; margin-top: 24px; width: 100%; max-width: 420px; align-self: center; }
  .film__head { display: none; }
  .film__rail { order: 4; gap: 10px; margin-top: 18px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .film__note { order: 5; margin-top: 14px; font-size: 13px; }
  .film__th { width: 76px; height: 135px; border-radius: 999px 999px 12px 12px; }
  .film__th-lbl { justify-content: center; padding: 16px 4px 5px; font-size: 11px; }
  .film__th-lbl span:first-child { display: none; }
  .film__ctrl { left: 16px; right: 16px; bottom: 16px; gap: 14px; }
  .film__row { gap: 12px; }
  .film__play { width: 52px; height: 52px; }
  .film__meta b { font-size: 19px; }
  .film__meta span { font-size: 12px; }
  .film__next { display: none; }
  .film__count--sm { display: block; flex: none; font-size: 18px; }
  .film__count--sm small { font-size: 13px; }
}
