/*
Theme Name: CarClinic Trójmiasto
Theme URI: https://carclinictrojmiasto.pl
Author: IT Solutions
Description: Własny motyw CarClinic Trójmiasto — detailing, folie PPF, oklejanie. Cała treść żyje w szablonach motywu, bez konfiguracji stron w panelu.
Version: 0.2.0
License: proprietary
Text Domain: carclinic
Tags: landing-page, responsive-layout
*/

/* Manrope, variable 300–800, from the theme (functions.php preloads the
   latin file). latin-ext carries the Polish letters. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/manrope-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. TOKENS
   Kolory marki z obecnej strony (Blocksy, palette-color-*); font: Manrope.
   ========================================================================== */
:root {
  --purple:      #7E4994;   /* główny fiolet marki — przyciski, akcenty */
  --lavender:    #CFADD9;   /* hover, tekst na ciemnym tle */
  --grey:        #D2D7DC;
  --purple-deep: #441D61;
  --purple-dk:   #2C1047;   /* sekcje B2B / "executive" */
  --night:       #1C0435;   /* prawie czarny fiolet — ciemne tło */
  --night-2:     #130226;   /* stopka, o ton ciemniej niż --night */

  --bg:          #FFFFFF;
  --bg-2:        #F5F2F7;
  --ink:         #160A22;
  --ink-2:       #4A4054;
  --muted:       #7D7487;
  --line:        #E6E1EB;
  --line-dark:   rgba(255, 255, 255, .14);

  --r:           6px;
  --nav-h:       44px;      /* the thin Lexus bar */
  --container:   1240px;
  --gutter:      24px;
  --slide-ms:    7000ms;     /* how long one service stays in the slider */

  --font:        'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease:        cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* no automatic text inflation on phones (landscape, "readability"
     boosting); the visitor's own text size and zoom still work, and a slide
     that outgrows the screen then scrolls (js/deck.js, fit()) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* short pages keep the footer at the bottom of the window */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }

img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }

/* links are black: the brand purple is for the logo and the glows */
a { color: var(--ink); }
a:hover { color: #555; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: #fff;
  color: var(--night);
  border-radius: var(--r);
}
.skip-link:focus { left: 8px; }

.ico { width: 20px; height: 20px; flex: none; }

/* Section labels — "Jak pracujemy", "Kontakt", the services in the slider:
   plain small capitals, letter-spaced, black on white and white over the
   film and photos. No pill: they label the section, they do not compete
   with the pictures. */
.eyebrow {
  margin: 0 0 16px;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.4;
  text-transform: uppercase;
}
.slide-copy .eyebrow { color: rgba(255, 255, 255, .92); }

.section-title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.12;
  margin-bottom: 28px;
}
.section-title em { font-style: normal; color: var(--purple); }

/* --- buttons: pills, after the Lexus hero ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 30px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-pill { border-radius: 999px; }
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: 14px; }
.btn .ico { width: 18px; height: 18px; }

.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--lavender); color: var(--night); }

.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

/* the calls to action on white: a black outline, so the photos and films
   stay what the eye goes to; filled black under the pointer */
.btn-outline { border-color: #111; background: transparent; color: #111; }
.btn-outline:hover { background: #111; color: #fff; }

/* --- the round pause/play button the film and the slider share ---------- */
.media-toggle {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(10, 2, 20, .35);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s;
}
.media-toggle:hover { background: rgba(10, 2, 20, .6); }
.media-toggle .ico { width: 18px; height: 18px; }
.media-toggle-play,
.media-toggle.is-paused .media-toggle-pause { display: none; }
.media-toggle.is-paused .media-toggle-play { display: block; }

/* ==========================================================================
   3. NAV — a thin full-width bar, after lexus-polska.pl
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #fff;
  color: var(--ink);
}
.nav-inner {
  height: 100%;
  display: grid;
  /* equal outer columns keep the links centred on the window, not on
     whatever space the logo and the contact happen to leave */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}

.logo-link { display: block; justify-self: start; }
.logo-img { width: auto; height: 22px; }

.nav-panel { display: contents; }
.nav-panel-head { display: none; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
}
.nav-links a:hover { color: var(--purple); }

.nav-end { display: flex; align-items: center; justify-self: end; gap: 18px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
}
.nav-phone .ico { width: 15px; height: 15px; color: inherit; }
.nav-phone:hover { color: var(--purple); }
.nav-end .btn-sm { min-height: 30px; padding: 4px 16px; font-size: 13px; }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-burger,
.nav-burger::before,
.nav-burger::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  content: '';
  transition: transform .2s, background .2s;
}
.nav-burger::before { transform: translateY(-6px); }
.nav-burger::after  { transform: translateY(4px); }
.nav.is-open .nav-burger { background: transparent; }
.nav.is-open .nav-burger::before { transform: translateY(0) rotate(45deg); }
.nav.is-open .nav-burger::after  { transform: translateY(-2px) rotate(-45deg); }

@media (max-width: 999px) {
  .nav-inner { grid-template-columns: 1fr auto; padding: 0 16px; }
  .nav-toggle { display: block; }
  /* the whole screen, bar included, sliding in from the right; it scrolls
     on its own — with "Usługi" open the list is taller than a phone */
  .nav-panel {
    position: fixed;
    z-index: 5;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s;
  }
  .admin-bar .nav-panel { top: var(--wp-admin--admin-bar--height, 0px); }
  .nav.is-open .nav-panel { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  /* its own bar: the logo and a close button where the burger was */
  .nav-panel-head {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    margin: 0 calc(16px - var(--gutter));
    padding: 0;
    background: #fff;
  }
  .nav-close {
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-close .nav-burger { background: transparent; }
  .nav-close .nav-burger::before { transform: translateY(0) rotate(45deg); }
  .nav-close .nav-burger::after  { transform: translateY(-2px) rotate(-45deg); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-end { flex-direction: column; align-items: stretch; justify-self: stretch; gap: 14px; padding-top: 16px; }
  .nav-phone { padding: 6px 0; font-size: 17px; }
  .nav-phone .ico { width: 18px; height: 18px; }
  .nav-end .btn-sm { min-height: 48px; font-size: 15px; }
}

/* ==========================================================================
   5. SERVICES SLIDER — after the hero carousel on lexus-polska.pl
   ========================================================================== */
.services {
  position: relative;
  height: calc(100svh - var(--nav-h));
  min-height: 600px;
  max-height: 980px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.slides { position: absolute; inset: 0; touch-action: pan-y; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s var(--ease), visibility 0s;
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  /* dark where the copy sits (top) and where the tabs sit (bottom); the
     client's photos are bright studio shots, so the top band runs deep */
  background: linear-gradient(180deg,
    rgba(10, 2, 20, .8) 0%,
    rgba(10, 2, 20, .7) 32%,
    rgba(10, 2, 20, .2) 56%,
    rgba(10, 2, 20, .2) 66%,
    rgba(10, 2, 20, .85) 100%);
  pointer-events: none;
}

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* A slow zoom-out: ~30px over 8.5s on a phone. On its own layer and in 3D,
     so the compositor moves it in fractions of a pixel — painted in place,
     it stepped a whole pixel at a time, visibly. */
  transform: scale3d(1.08, 1.08, 1);
  transition: transform calc(var(--slide-ms) + 1500ms) linear;
  will-change: transform;
  backface-visibility: hidden;
}
.slide.is-active .slide-img { transform: scale3d(1, 1, 1); }

.slide-copy {
  position: absolute;
  z-index: 2;
  top: clamp(56px, 11vh, 120px);
  left: 50%;
  width: min(920px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  text-align: center;
}
.slide-copy > * {
  text-shadow: 0 1px 14px rgba(10, 2, 20, .45);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.slide.is-active .slide-copy > * { opacity: 1; transform: none; }
.slide-copy .eyebrow { text-shadow: none; }
.slide.is-active .slide-copy > :nth-child(1) { transition-delay: .25s; }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: .38s; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: .51s; }

.slide-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 300;
  letter-spacing: .06em;
  line-height: 1.08;
  text-transform: uppercase;
}
.slide-lead {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
  font-weight: 500;
}

.slide-cta {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 148px;
  text-align: center;
}
.slide-price {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}

.slider-tabs {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(var(--tabs, 4), 1fr);
  align-items: start;   /* a one-line label must not push its bar down */
  gap: 20px;
  max-width: 1200px;
}

.tab {
  padding: 0 0 6px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .66);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  transition: color .2s;
}
.tab:hover,
.tab.is-active { color: #fff; }

.tab-bar {
  display: block;
  height: 3px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .32);
}
.tab-fill {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.services.is-ready .tab.is-active .tab-fill { animation: tab-fill var(--slide-ms) linear forwards; }
.services.is-paused .tab.is-active .tab-fill { animation-play-state: paused; }
/* without JavaScript nothing advances: just mark the slide that is showing */
.services:not(.is-ready) .tab.is-active .tab-fill { transform: scaleX(1); }

@keyframes tab-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.slider-toggle { top: 24px; right: 24px; }
.services:not(.is-ready) .slider-toggle { display: none; }

@media (max-width: 767px) {
  .services { height: calc(100svh - var(--nav-h)); min-height: 560px; }
  /* The copy sits low, just above the price and the button, where the
     photo is darkest — at the top it began right under the bar and the
     bright photos washed it out. */
  .slide::after {
    background: linear-gradient(180deg,
      rgba(10, 2, 20, .45) 0%,
      rgba(10, 2, 20, .1) 20%,
      rgba(10, 2, 20, .32) 34%,
      rgba(10, 2, 20, .78) 52%,
      rgba(10, 2, 20, .92) 100%);
  }
  /* narrower than the gutters, so long names stay clear of the pager */
  .slide-copy { top: auto; bottom: 214px; width: calc(100% - 72px); }
  .slide-copy > * { text-shadow: 0 1px 10px rgba(10, 2, 20, .7); }
  .slide-copy .eyebrow { margin-bottom: 10px; font-size: 11px; letter-spacing: .18em; }
  .slide-title { margin-bottom: 12px; font-size: 30px; }
  .slide-lead { color: #fff; font-size: 15.5px; line-height: 1.5; }
  .slide-cta { bottom: 84px; }
  .slider-tabs { bottom: 40px; gap: 10px; width: calc(100% - 2 * var(--gutter) - 56px); padding: 0; }
  .tab { padding: 12px 0; }
  .tab-bar { margin: 0; }
  .tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .slider-toggle { top: 16px; right: 16px; }
}

/* ==========================================================================
   5b. DECK — the landing page as four full-screen slides (js/deck.js)
   Only once the script has taken over (.is-deck); without it the slides
   stack like an ordinary page.
   ========================================================================== */
html.has-deck,
html.has-deck body { overflow: hidden; overscroll-behavior: none; }

.deck { position: relative; }

.deck.is-deck {
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
}
/* logged in, WordPress's own bar sits above ours (46px on a phone, 32px on a
   desktop — the --wp-admin--admin-bar--height it sets); without this the
   slides came out that much taller than the screen */
.admin-bar .deck.is-deck { height: calc(100svh - var(--nav-h) - var(--wp-admin--admin-bar--height, 0px)); }
.deck.is-deck > .deck-page {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  /* each slide comes up from below and covers the one before, which drifts
     up more slowly underneath; z-index rises with the order (set by JS) */
  transform: translateY(100%);
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
}
.deck.is-deck > .deck-page.is-before { transform: translateY(-30%); }
.deck.is-deck > .deck-page.is-current { transform: none; }
.deck.is-deck > .deck-page.is-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* clip, not just hidden: a hidden box can still be scrolled by script or by
   focus, and the slider's zoomed photo overhangs its slide */
.deck.is-deck > .deck-page:not(.is-scroll) { overflow: clip; }
.deck.is-deck [inert] { pointer-events: none; }
/* !important: the reduced-motion fade further down would otherwise win, and a
   page opened at #kontakt would show the other slides fading out over it */
.deck.no-anim > .deck-page { transition: none !important; }

.deck-pager {
  position: absolute;
  z-index: 20;
  top: 50%;
  right: 14px;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
  color: #fff;
  transition: color .4s;
}
.deck.on-light .deck-pager { color: var(--ink); }
.deck:not(.is-deck) .deck-pager { display: none; }

.deck-pager button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.pager-bar {
  width: 2px;
  height: 24px;
  border-radius: 1px;
  background: currentColor;
  opacity: .4;
  transition: opacity .3s, height .3s;
}
.pager-label {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .3s, transform .3s;
}
.deck-pager button[aria-current] .pager-bar { height: 36px; opacity: 1; }
/* labels only on hover or focus: shown for the current slide, they ran into
   the process steps and vanished against the white form */
.deck-pager button:hover .pager-label,
.deck-pager button:focus-visible .pager-label { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .deck-pager { right: 2px; }
  .pager-label { display: none; }
}

/* ==========================================================================
   6. JAK PRACUJEMY — four panels, each a scene from the studio's film
   (template-parts/home/process.php, js/process.js)
   ========================================================================== */
.process {
  --step-ms: 7000ms;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
}
.deck:not(.is-deck) .process { min-height: calc(100svh - var(--nav-h)); }

/* the bar of the open step: a CSS animation one step long; when it ends,
   js/process.js opens the next step */
.step-fill { display: block; width: 100%; height: 100%; }
.process.is-ready .is-active .step-fill { animation: step-fill var(--step-ms) linear forwards; }
.process.is-paused .is-active .step-fill { animation-play-state: paused; }
.process:not(.is-ready) .is-active .step-fill { transform: none; }

@keyframes step-fill {
  from { transform: scaleX(0); }
  to   { transform: none; }
}

.pp-head {
  display: flex;
  flex-wrap: nowrap;   /* the pause button stays level with the heading */
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  padding: clamp(24px, 4vh, 48px) clamp(24px, 4vw, 64px) clamp(16px, 3vh, 28px);
}
.pp-head > div { min-width: 0; }
.pp-head .eyebrow { margin-bottom: 10px; }
.pp-head .section-title { margin: 0; font-size: clamp(26px, 3vw, 42px); }

.pp-panels {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 8px;
  padding: 0 clamp(24px, 4vw, 64px) clamp(24px, 4vh, 48px);
}
.pp-panels > video { display: none; } /* parked until the first panel takes it */

.pp-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--purple-dk);
  transition: flex-grow .7s var(--ease);
}
.pp-panel.is-active { flex-grow: 3.4; }

.pp-media {
  position: absolute;
  inset: 0;
  /* clip again here, and on the film itself: a playing <video> is drawn on a
     layer of its own, which a rounded overflow:hidden parent does not always
     crop — on phones the film showed square corners */
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}
.pp-media img,
.pp-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.pp-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 2, 20, .9) 0%, rgba(10, 2, 20, .2) 50%, rgba(10, 2, 20, .45) 100%);
  transition: background-color .5s;
}
.pp-panel:not(.is-active) .pp-media::after { background-color: rgba(10, 2, 20, .35); }

.pp-trigger {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 14px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pp-trigger .step-no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
}
.pp-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  /* closed panels are narrow: the title runs up the panel */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.pp-panel.is-active .pp-title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 300;
  white-space: normal;
}

.pp-text {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 24px;
  transition: grid-template-rows .6s var(--ease);
}
.pp-text p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  /* a fixed measure, so the text does not rewrap while the panel widens */
  width: min(440px, 30vw);
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
  line-height: 1.6;
}
.pp-panel.is-active .pp-text { grid-template-rows: 1fr; }
.pp-panel.is-active .pp-text p { padding-bottom: 34px; }

.pp-panel .step-bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .2);
  opacity: 0;
}
.pp-panel.is-active .step-bar { opacity: 1; }
.pp-panel .step-fill { background: #fff; transform-origin: left center; transform: scaleX(0); }

/* in the heading row, so it plainly pauses the whole section rather than
   whichever panel it would otherwise sit on */
.pp-head .process-toggle {
  position: static;
  flex: none;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.pp-head .process-toggle:hover { background: var(--bg-2); }

@media (max-width: 767px) {
  .pp-head { padding: 24px var(--gutter) 16px; }
  .pp-head .section-title { font-size: 26px; }
  .pp-panels { flex-direction: column; gap: 6px; padding: 0 var(--gutter) 20px; }
  .pp-panel { flex: 0 0 56px; transition: flex-grow .6s var(--ease), flex-basis .6s var(--ease); }
  .pp-panel.is-active { flex: 1 1 auto; }
  .pp-panel:not(.is-active) .pp-trigger { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; padding: 0 18px; }
  .pp-title,
  .pp-panel.is-active .pp-title { writing-mode: horizontal-tb; transform: none; }
  .pp-panel.is-active .pp-title { font-size: 24px; }
  .pp-text p { width: auto; }
  .pp-panel.is-active .pp-text p { padding-bottom: 26px; }
  /* steps go by scrolling here, so no timer bar */
  .process.is-stepped .step-bar { display: none; }
  .process .pp-skip { margin: -8px var(--gutter) 16px; font-size: 14px; }
}
@media (min-width: 768px) { .process .pp-skip { display: none; } }

/* ==========================================================================
   7. CONTACT
   ========================================================================== */
.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  /* A lavender half-circle of light rising from the right edge, low on the
     slide. Its radius is capped by the slide's height, so it fades out well
     below the top — anything touching the top edge would show where the bar
     ends and the slide begins. `local` makes it scroll with the slide's
     content instead of staying pinned to the first screen. */
  background:
    radial-gradient(circle min(48vw, 56vh) at 100% 72%, rgba(207, 173, 217, .55), rgba(207, 173, 217, .2) 50%, transparent 100%),
    #fff;
  background-attachment: local;
  color: var(--ink);
}
.deck:not(.is-deck) .contact { min-height: calc(100svh - var(--nav-h)); }

/* the grid takes what the legal bar leaves and centres in it; when the form
   is taller than that, the slide scrolls (.is-scroll) */
.contact-main {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: clamp(32px, 6vh, 72px) 0;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 0 80px;
  align-items: start;
}
.contact-head { grid-column: 1 / -1; margin-bottom: clamp(16px, 3vh, 32px); }
.contact-head .section-title { margin-bottom: 0; }
/* level with the first field's label, which sits below the room the
   floating label needs */
.contact-info { padding-top: 22px; }

.contact-lead { color: var(--ink-2); max-width: 420px; }

.contact-list { margin: 28px 0 0; padding: 0; list-style: none; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .ico { margin-top: 4px; color: var(--ink); }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: #555; }
.contact-list .contact-phone { font-size: 26px; font-weight: 300; letter-spacing: .02em; line-height: 1.2; }
.contact-list span a { color: #111; text-decoration: underline; text-underline-offset: 3px; }

.contact-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.contact-social a:hover { border-color: #111; color: #111; }
.contact-social .ico { width: 18px; height: 18px; }

/* The form sits straight on the slide, fields underlined — the style of
   the form on the client's current site, in black like everything else on
   this slide; the only colour is the glow behind it. */
.contact-form { color: var(--ink); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.field {
  position: relative;
  display: block;
  margin-bottom: 10px;
  padding-top: 18px;   /* room for the label once it floats up */
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #111;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;   /* below 16px iOS zooms the page on focus */
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 76px; }
.field select {
  appearance: none;
  padding-right: 28px;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111111' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
}
/* the open list is drawn by the OS, often on white */
.field select option { color: var(--ink); background: #fff; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 -1px 0 #111;   /* the line thickens without moving the text */
}
.field select:focus-visible { outline: none; }

/* example text only once the field is in use, so it never sits under the label */
.field ::placeholder { color: transparent; transition: color .2s; }
.field :focus::placeholder { color: rgba(22, 10, 34, .35); }

/* Chrome paints autofilled fields light blue with dark text; hold it off */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 600000s 0s;
}

.field-label {
  position: absolute;
  left: 0;
  top: 27px;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
  transform-origin: left top;
  transition: top .2s var(--ease), font-size .2s var(--ease), color .2s, letter-spacing .2s;
}
.field :focus + .field-label,
.field :not(:placeholder-shown) + .field-label,
.field-select .field-label {
  top: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.field abbr, .consent abbr { color: inherit; text-decoration: none; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 24px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}
.consent a { color: #111; }
.consent a:hover,
.contact-list span a:hover { color: #555; }
/* what is missing, under the field (js/contact.js) */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-bottom-color: #b42318; box-shadow: inset 0 -1px 0 #b42318; }
.consent.is-invalid input { border-color: #b42318; }
.field-error { display: block; margin-top: 6px; color: #b42318; font-size: 13px; font-weight: 600; line-height: 1.4; }
.consent { flex-wrap: wrap; }
/* basis 0: with wrap on, a basis of the text's full width pushed it onto its
   own line under the box; it has to shrink into the space beside the box */
.consent > span:not(.field-error) { flex: 1 1 0; min-width: 0; }
.consent .field-error { flex-basis: 100%; margin: 0 0 0 32px; }

/* reCAPTCHA v2: Google's fixed 304 x 78 box, scaled down on the narrowest phones */
.captcha { min-height: 78px; margin: 28px 0 4px; }
.captcha-note { margin: 4px 0 0; color: #b42318; font-size: 14px; font-weight: 600; }
@media (max-width: 359px) {
  .captcha { transform: scale(.88); transform-origin: 0 0; }
}

/* drawn by hand: a square like the old site's, filled when ticked */
.consent input {
  flex: none;
  appearance: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid #111;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.consent input::after {
  content: '';
  width: 10px;
  height: 6px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .15s;
}
.consent input:checked { background: #111; }
.consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.consent input:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; }

/* wide and centred under the fields, as on the old site's form */
.contact-form .btn { display: flex; width: min(100%, 360px); margin: 32px auto 0; }

.form-status {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 3px solid;
  font-size: 15px;
  font-weight: 600;
}
.form-status-ok { border-color: #5BC48A; background: #E8F4EC; color: #1F6B40; }
.form-status-invalid,
.form-status-captcha,
.form-status-failed { border-color: #E5675C; background: #FBEBEA; color: #9F2A20; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 899px) {
  /* The slide scrolls on a phone, so 3/4 of its height lands down by the
     button. Here the glow sits level with the title instead — flattened
     into a half-ellipse, so that it still fades out before the top edge. */
  .contact {
    background:
      radial-gradient(70vw 105px at 100% 120px, rgba(207, 173, 217, .55), rgba(207, 173, 217, .2) 50%, transparent 100%),
      #fff;
    background-attachment: local;
  }
  .contact-main { padding: 48px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-info { padding-top: 0; margin-bottom: 32px; }
}
/* clear of the slide pager on the right: until the container's own margin
   is wide enough, the form ran under its bars */
@media (min-width: 768px) {
  .deck .contact .container { padding-right: max(var(--gutter), calc(72px - max(0px, (100vw - var(--container)) / 2))); }
}
/* a phone: the details compact, so the form starts within the first screen */
@media (max-width: 767px) {
  .contact-main { padding: 22px 0 32px; }
  .contact-head { margin-bottom: 12px; }
  .contact-head .section-title { font-size: 26px; }
  .contact-info { margin-bottom: 18px; }
  .contact-lead { margin: 0; font-size: 14px; line-height: 1.5; }
  .contact-list { margin-top: 12px; }
  .contact-list li { gap: 12px; padding: 8px 0; font-size: 14px; }
  .contact-list .ico { width: 16px; height: 16px; margin-top: 2px; }
  .contact-list .contact-phone { font-size: 19px; font-weight: 400; }
  .contact-social { gap: 8px; margin-top: 12px; }
  .contact-social a { min-height: 34px; padding: 5px 14px; font-size: 13px; }
  .contact-social .ico { width: 16px; height: 16px; }
}
@media (max-width: 559px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form .btn { width: 100%; }
}

/* stands in for the site footer on the landing page */
.legal-bar {
  position: relative;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.legal-bar .container { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.legal-bar a { color: var(--ink-2); text-decoration: none; margin-left: auto; }
.legal-bar a:hover { color: #111; }
@media (max-width: 559px) {
  .legal-bar a { margin-left: 0; }
}

/* ==========================================================================
   8. PAGES
   ========================================================================== */
.cc-page { padding: 72px 0 104px; }
.page-content { max-width: 780px; }
.page-content h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 300; margin-bottom: 32px; }

.legal { font-size: 16px; color: var(--ink-2); }
.legal h2 { margin: 44px 0 14px; font-size: 21px; color: var(--ink); }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal-updated { color: var(--muted); font-size: 14px; }
.legal code { font-size: .92em; }
.legal-cookie-settings { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal li > ol, .legal li > ul, .legal ol > ul { margin-top: 8px; }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
/* light like the rest of the site: a pale grey band, dark type */
.cc-footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p { max-width: 360px; margin-top: 22px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; font-style: normal; }
.footer-col strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cc-footer a { color: var(--ink); text-decoration: none; }
.cc-footer a:hover { color: #555; }
.footer-social { display: flex; gap: 14px; margin-top: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.footer-social a:hover { border-color: #111; }
.footer-social .ico { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);   /* --muted falls short of 4.5:1 on this grey */
  font-size: 13px;
}
.footer-bottom .cookie-settings { color: var(--ink); font-size: 13px; }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   3b. NAV — the services dropdown (js/nav.js)
   Desktop: a white panel under the bar, the services in their three groups.
   Phone: the same list folds open inside the menu panel.
   ========================================================================== */
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  line-height: inherit;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
}
.nav-drop-toggle:hover { color: var(--purple); }
.nav-chev { width: 10px; height: 7px; transition: transform .2s; }
.nav-drop.is-open .nav-chev { transform: rotate(180deg); }

.nav-services {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  display: none;
  background: #fff;
  box-shadow: 0 24px 40px -18px rgba(28, 4, 53, .18);
}
.nav-drop.is-open .nav-services { display: block; }
.nav-services-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 290px));
  justify-content: center;
  gap: 56px;
  padding: 28px 20px 36px;
}
.nav-group-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nav-group ul { margin: 0; padding: 0; list-style: none; }
.nav-group a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.nav-group a small { color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.nav-group a:hover,
.nav-group a[aria-current] { color: var(--purple); }

/* "Realizacje": a small panel under its own button */
.nav-drop-small { position: relative; }
.nav-drop-small .nav-services {
  top: calc(100% + 11px);
  left: 50%;
  right: auto;
  width: 230px;
  padding: 18px 22px 12px;
  border-radius: 0 0 var(--r) var(--r);
  transform: translateX(-50%);
}
.nav-work ul { margin: 0; padding: 0; list-style: none; }
.nav-work a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.nav-work li:last-child a { border-bottom: 0; }
.nav-work a:hover { color: var(--purple); }
.nav-work .ico { width: 18px; height: 18px; }

@media (max-width: 999px) {
  .nav-drop-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .nav-services { position: static; box-shadow: none; }
  .nav-drop-small .nav-services { width: auto; padding: 4px 0 8px 12px; border-radius: 0; transform: none; }
  .nav-services-inner { grid-template-columns: 1fr; gap: 14px; padding: 12px 0 8px 12px; }
  .nav-group a { font-size: 15px; padding: 10px 0; }
}

/* ==========================================================================
   8b. SERVICE PAGES (template-usluga.php)
   ========================================================================== */
.svc { background: #fff; }
.svc section { scroll-margin-top: var(--nav-h); }

/* --- hero: the photo, the copy over it, the price ---------------------- */
.svc-hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--nav-h)));
  display: flex;
  /* safe: copy taller than the screen (big text, zoom) runs down, where the
     slide can scroll to it, not up out of reach */
  align-items: flex-end;
  align-items: safe flex-end;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.svc-hero-media { position: absolute; inset: 0; }
.svc-hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 2, 20, .85) 0%, rgba(10, 2, 20, .35) 45%, rgba(10, 2, 20, .1) 100%);
  pointer-events: none;
}
.svc-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 8vh, 88px);
  pointer-events: none;
}
.svc-hero-copy > * { max-width: 720px; pointer-events: auto; }
.svc-hero .eyebrow { color: rgba(255, 255, 255, .85); }
.svc-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.04;
}
.svc-sub { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: #fff; }
@media (max-width: 767px) { .svc-deck .svc-sub { margin-bottom: 8px; font-size: 14.5px; } }
.svc-intro { color: rgba(255, 255, 255, .86); font-size: 17px; }
.svc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.svc-price-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.svc-price-link:hover { color: rgba(255, 255, 255, .75); }

/* --- shared bits --------------------------------------------------------- */
.svc .section-title { margin-bottom: 16px; }
.svc-lead { max-width: 640px; color: var(--ink-2); font-size: 17px; }
.svc-step-no { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }

/* the inside of a third slide: centred in the screen, clear of the pager */
.slide-inner {
  max-width: var(--container);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 900px) { .slide-inner { padding-right: 72px; } }
/* a phone: compact heads, and price rows reduced to name and amount */
@media (max-width: 767px) {
  .slide-inner,
  .svc-prices-inner { justify-content: flex-start; padding: 16px var(--gutter) 18px; }
  .slide-inner .eyebrow,
  .svc-prices-inner .eyebrow { margin-bottom: 6px; font-size: 10px; }
  .slide-inner .section-title,
  .svc-prices-inner .section-title { margin-bottom: 10px; font-size: 22px; }
  .slide-inner > .svc-lead { display: none; }
  .slide-prices .svc-price-row span { display: none; }
  .slide-prices .svc-price-row { padding: 8px 0; }
  .slide-prices .svc-price-note { margin: 6px 0 10px; }
  .slide-inner .btn { min-height: 40px; padding: 8px 18px; font-size: 14px; }
}

/* --- price lists: a slide of their own, or beside a configurator -------- */
.svc-prices { background: #fff; }
.svc-prices-inner {
  max-width: 760px;
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.svc-price-table { margin: 8px 0 16px; border-top: 2px solid #111; }
.svc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.svc-price-row strong { display: block; font-size: 18px; }
.svc-price-row span { color: var(--ink-2); font-size: 14.5px; }
.svc-price { flex: none; font-size: 19px; font-weight: 600; white-space: nowrap; }
.svc-price-note { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.svc-prices-inner .btn,
.slide-prices .btn { align-self: flex-start; }
.slide-prices { display: flex; flex-direction: column; border-top: 2px solid #111; }

@media (max-width: 559px) {
  .svc-price-row { gap: 12px; padding: 11px 0; }
  .svc-price-row strong { font-size: 15.5px; }
  .svc-price-row span { font-size: 12.5px; }
  .svc-price { font-size: 15px; }
  .svc-price-note { margin-bottom: 14px; font-size: 11.5px; }
}

/* --- features: a slide sizes itself ------------------------------------ */
.svc-feature { padding: 0; background: #fff; }   /* opaque, or it shows through mid-transition */

/* PPF configurator: the client's car photo, the film as lavender light over
   the chosen zones (CSS masks from images/ppf/strefa-*.png), a studio light
   sweeping across it, and with a mouse a soft spot following the pointer */
.ppf-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(10px, 3%, 28px) clamp(8px, 3%, 28px) 6px;
  border-radius: var(--r);
  background:
    radial-gradient(ellipse 58% 16% at 50% 90%, rgba(17, 17, 17, .14), transparent 70%),
    radial-gradient(ellipse 85% 75% at 50% 25%, #ffffff 0%, #ecebf0 70%, #e2e0e8 100%);
}
.ppf-car { position: relative; cursor: default; }
.ppf-car.is-pointing { cursor: pointer; }
.ppf-photo { display: block; width: 100%; height: auto; }
.ppf-film {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--zone) center / 100% 100% no-repeat;
  mask: var(--zone) center / 100% 100% no-repeat;
  background: rgba(190, 140, 215, .3);   /* clear film: a tint, the paint's light shows through */
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .55s var(--ease), background-color .25s;
  pointer-events: none;
}
.ppf-film.is-on { opacity: 1; }
/* with a mouse: the part under the pointer, on or off, shows itself */
.ppf-film.is-hover { opacity: 1; background-color: rgba(215, 180, 232, .48); }
.ppf-film:not(.is-on).is-hover { background-color: rgba(190, 140, 215, .2); }
.ppf-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 140% 0;
}
.ppf-config.is-sweeping .ppf-film.is-on .ppf-sweep { animation: ppf-sweep 1.5s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes ppf-sweep {
  from { background-position: 140% 0; }
  to   { background-position: -40% 0; }
}
.ppf-spot {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 40%), rgba(255, 255, 255, .5), transparent 22%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.ppf-car.is-lit .ppf-spot { opacity: 1; }
.ppf-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.ppf-packages { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ppf-package {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.ppf-package:hover { border-color: #111; }
.ppf-package[aria-checked="true"] { border-color: #111; background: #111; color: #fff; }
.ppf-price { margin: 0 0 12px; font-size: clamp(30px, 3vw, 40px); font-weight: 300; }
.ppf-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.ppf-parts li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.ppf-parts li.is-new { border-color: #111; color: var(--ink); font-weight: 600; }
.ppf-parts li.is-from { display: none; }
.ppf-note { margin: 0 0 20px; color: var(--muted); font-size: 13px; }

@media (max-width: 767px) {
  .ppf-stage { padding: 6px 4px 2px; }
  .ppf-hint { font-size: 11.5px; }
  .ppf-packages { flex-wrap: nowrap; gap: 6px; margin-bottom: 12px; }
  .ppf-package { flex: 1; min-width: 0; min-height: 36px; padding: 6px 4px; font-size: 12.5px; }
  .ppf-price { margin-bottom: 8px; font-size: 24px; }
  .ppf-parts { gap: 4px; margin-bottom: 10px; }
  .ppf-parts li { padding: 3px 8px; font-size: 11.5px; }
  .ppf-parts li.is-inherited { display: none; }
  .ppf-parts li.is-from { display: block; border-style: dashed; }
  .ppf-note { margin-bottom: 12px; font-size: 11px; line-height: 1.4; }
  .ppf-ask { min-height: 40px; padding: 8px 18px; font-size: 14px; }
}

/* water beading over the coating hero */
.beads {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  /* the copy sits bottom-left: keep the water off it */
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 18% 82%, transparent 45%, #000 78%);
  mask-image: radial-gradient(ellipse 62% 58% at 18% 82%, transparent 45%, #000 78%);
}

/* self-healing film over the PPF hero: the canvas takes the drag sideways,
   up and down still turns the slide */
.heal { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.svc-ppf .svc-hero-media { touch-action: pan-y; cursor: crosshair; }
.heal-hint {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 9px 16px;
  border-radius: 14px;
  background: rgba(10, 2, 20, .55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
  transition: opacity .6s;
}
.heal-hint small { color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 500; }
.heal-hint.is-done { opacity: 0; }
.heal-hint-touch { display: none; }
@media (hover: none) {
  .heal-hint-mouse { display: none; }
  .heal-hint-touch { display: inline; }
}
@media (max-width: 767px) {
  .heal-hint { top: 14px; right: auto; left: var(--gutter); padding: 7px 12px; font-size: 12px; }
  .heal-hint small { font-size: 11px; }
}

/* glare on corrected paint: a flare when the page opens, and a spot that
   follows the pointer — or, on a phone, drifts and follows the tilt */
.glare { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.glare-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 62% 35%, #fff 0%, rgba(255, 255, 255, .75) 35%, rgba(255, 255, 255, 0) 75%);
  opacity: 0;
  animation: glare-flash 1.3s ease-out .2s both;
}
@keyframes glare-flash {
  0%   { opacity: 0; }
  16%  { opacity: .95; }
  100% { opacity: 0; }
}
.glare-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 340px at var(--gx, 60%) var(--gy, 30%), rgba(255, 255, 255, .85), rgba(255, 255, 255, .22) 40%, transparent 70%);
  opacity: .45;
  transition: opacity .4s;
}
.glare.is-tracking .glare-spot { opacity: 1; }

/* before / after */
.compare {
  position: relative;
  margin-top: 36px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r);
  background: #000;
  touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-before img { filter: contrast(.86) brightness(.9) saturate(.85); }
.swirls { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}
.compare-handle::after {
  content: '‹ ›';
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-weight: 700;
  transform: translate(-50%, -50%);
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare-tag {
  position: absolute;
  top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare-tag-before { left: 18px; }
.compare-tag-after { right: 18px; }

/* colour change: before / after, the "after" side painted in a canvas */
.compare-paint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.colorizer .compare-before img { filter: none; }
.colorizer-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px #111; }
.swatch-flip { background: conic-gradient(#5b3aa0, #2a8aa0, #3aa06a, #a0903a, #a03a6a, #5b3aa0); }
.colorizer-finish { display: flex; gap: 8px; margin-top: 16px; }
.finish {
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.finish:hover { border-color: #111; }
.finish[aria-checked="true"] { border-color: #111; background: #111; color: #fff; }
.colorizer-name { margin: 12px 0 20px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 767px) {
  /* one row that shrinks with the screen: at a fixed 28px ten swatches
     ran past the edge of a 360px phone, under the slide pager */
  .colorizer-swatches { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
  .swatch { flex: 0 1 28px; width: auto; min-width: 0; height: auto; aspect-ratio: 1; }
  .colorizer-finish { margin-top: 10px; gap: 6px; }
  .finish { flex: 1; min-width: 0; min-height: 34px; padding: 4px 8px; font-size: 13px; }
  .colorizer-name { margin: 8px 0 10px; font-size: 13px; }
  .config.colorizer .compare { aspect-ratio: auto; height: clamp(150px, calc(100svh - var(--nav-h) - 470px), 56vw); }
}

/* detailing: magnifier and close-ups */
.loupe {
  position: relative;
  margin-top: 36px;
  overflow: hidden;
  border-radius: var(--r);
  cursor: none;
  touch-action: none;
}
.loupe img { display: block; width: 100%; height: auto; }
.loupe-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--loupe-img) no-repeat;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.loupe.is-on .loupe-lens { opacity: 1; }
.details-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.details .loupe { margin-top: 0; }
.details .loupe img { max-height: 52vh; object-fit: cover; }
.loupe-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .6);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  transition: opacity .3s;
}
.loupe.is-on .loupe-hint { opacity: 0; }
.details-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.details-strip li { position: relative; overflow: hidden; border-radius: var(--r); }
.details-strip img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.details-strip span {
  position: absolute;
  left: 8px;
  bottom: 6px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
@media (max-width: 899px) {
  .details-grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .details .loupe img { max-height: none; height: clamp(140px, calc(100svh - var(--nav-h) - 470px), 280px); }
  .details-strip { gap: 6px; margin-top: 6px; }
  .details-strip span { display: none; }
  .loupe-lens { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
}

/* sale listing */
.listing {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 60px -30px rgba(28, 4, 53, .3);
}
.listing-gallery { background: #f4f4f6; }
.listing-main { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 54vh; object-fit: cover; }
.listing-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 6px; }
.listing-thumb { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; }
.listing-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.listing-thumb[aria-pressed="true"] { border-color: #111; }
.listing-info { display: flex; flex-direction: column; align-items: stretch; padding: 26px 28px; }
.listing-info .btn { align-self: flex-start; }
.listing-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.listing-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.listing-option strong { font-size: 15px; }
.listing-option span { color: var(--muted); font-size: 13px; }
.listing-option[aria-checked="true"] { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.listing-extra { display: flex; gap: 10px; align-items: center; margin: 4px 0 10px; font-size: 14px; cursor: pointer; }
.listing-extra input { width: 18px; height: 18px; accent-color: #111; }
.listing-badge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.listing-title { margin-bottom: 4px; font-size: 30px; font-weight: 600; }
.listing-sub { color: var(--ink-2); }
.listing-price { margin: 4px 0 16px; font-size: 26px; font-weight: 700; }
.listing-price small { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.listing-facts { width: 100%; margin: 0 0 12px; }
.listing-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.listing-facts dt { color: var(--muted); }
.listing-facts dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 899px) {
  .listing { grid-template-columns: 1fr; border-radius: 8px; }
  .listing-main { max-height: none; height: clamp(120px, calc(100svh - var(--nav-h) - 470px), 260px); }
  .listing-thumbs { display: none; }
  .listing-info { padding: 14px 16px; }
  .listing-badge { display: none; }
  .listing-options { flex-direction: row; gap: 6px; margin-bottom: 6px; }
  .listing-option { flex: 1; padding: 7px 10px; }
  .listing-option strong { font-size: 13.5px; }
  .listing-option span { font-size: 11.5px; }
  .listing-extra { margin: 2px 0 6px; font-size: 13px; }
  .listing-facts div { padding: 5px 0; font-size: 12.5px; }
  .listing-price { margin-bottom: 10px; font-size: 21px; }
}
@media (max-width: 899px) and (max-height: 740px) {
  .listing-facts { display: none; }
}

/* ==========================================================================
   8c. SERVICE PAGES AS A DECK (template-usluga-deck.php)
   ========================================================================== */
/* hero: the why and the when, in short */
.svc-why-short { margin: 0 0 18px; color: rgba(255, 255, 255, .78); font-size: 16px; }
.svc-benefits-short { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.svc-benefits-label {
  margin-right: 4px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.svc-benefits-short ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.svc-benefits-short li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.svc-deck .svc-hero-actions { margin-top: 24px; }

/* process: one step at a time, photo on one side, the list on the other */
.svc-process { background: #fff; }
.stepper {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  height: 100%;
}
.stepper-media { position: relative; overflow: hidden; background: var(--night); }
.stepper-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s var(--ease), transform 1.4s var(--ease);
}
.stepper-media img.is-active { opacity: 1; transform: none; }
.stepper-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vh, 64px) clamp(28px, 6vw, 110px);
}
.stepper-list { margin: 8px 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stepper-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: clamp(12px, 2vh, 18px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: color .3s;
}
.stepper-list li.is-active { color: var(--ink); }
.stepper-list .svc-step-no { margin: 4px 0 0; }
.stepper-list li.is-active .svc-step-no { color: var(--ink); }
.stepper-list h3 { margin: 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; }
.stepper-list p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--ink-2);
  font-size: 16px;
  transition: max-height .45s var(--ease), margin .45s var(--ease), opacity .3s;
}
.stepper-list li.is-active p { max-height: 7em; margin-top: 8px; opacity: 1; }
.stepper-skip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.stepper-skip .ico { width: 16px; height: 16px; transform: rotate(90deg); }

@media (max-width: 899px) {
  .stepper { grid-template-columns: 1fr; grid-template-rows: 42% 1fr; }
  .stepper-copy { justify-content: flex-start; padding: 22px var(--gutter) 24px; }
  .stepper-copy .section-title { font-size: 26px; margin-bottom: 8px; }
  .stepper-copy .eyebrow { margin-bottom: 8px; }
  .stepper-list { margin-bottom: 16px; }
  .stepper-list li { padding: 10px 0; grid-template-columns: 40px 1fr; }
  .stepper-list h3 { font-size: 17px; }
  .stepper-list p { font-size: 15px; }
}
@media (max-width: 899px) and (max-height: 740px) {
  .stepper { grid-template-rows: 32% 1fr; }
  .stepper-copy { padding-top: 14px; padding-bottom: 14px; }
  .stepper-copy .section-title { font-size: 22px; }
  .stepper-list li { padding: 7px 0; }
  .stepper-list h3 { font-size: 15.5px; }
  .stepper-list p { font-size: 13.5px; line-height: 1.45; }
  .stepper-list { margin-bottom: 10px; }
}

/* on a phone each slide fits one screen: smaller type, chips and buttons */
@media (max-width: 767px) {
  /* The photo shows in the top part; the copy sits on a dark band below,
     so it reads over the bright studio shots too. The "po co" line stays
     on wider screens only — with it the copy began a third of the way down. */
  .svc-deck .svc-hero-media::after {
    background: linear-gradient(to top,
      rgba(10, 2, 20, .94) 0%,
      rgba(10, 2, 20, .88) 48%,
      rgba(10, 2, 20, .5) 66%,
      rgba(10, 2, 20, .12) 84%,
      rgba(10, 2, 20, .1) 100%);
  }
  .svc-deck .svc-hero-copy { padding: 0 40px 26px var(--gutter); }
  .svc-deck .svc-hero .eyebrow { margin-bottom: 10px; color: rgba(255, 255, 255, .92); font-size: 10px; }
  .svc-deck .svc-hero h1 { margin-bottom: 10px; font-size: 30px; }
  .svc-deck .svc-intro { margin-bottom: 14px; color: rgba(255, 255, 255, .94); font-size: 15px; line-height: 1.5; }
  .svc-deck .svc-why-short { display: none; }
  .svc-benefits-label { flex-basis: 100%; font-size: 10px; }
  .svc-benefits-short ul { gap: 6px; }
  .svc-benefits-short li { padding: 4px 9px; font-size: 11.5px; }
  /* Neither the button nor the link ever breaks inside: with the phone's
     text size turned up they were squeezed into two lines each. When the
     row is too narrow, the link moves under the button instead. */
  .svc-deck .svc-hero-actions { flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
  .svc-deck .svc-hero-actions .btn { flex: none; min-height: 40px; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
  .svc-deck .svc-price-link { font-size: 14px; white-space: nowrap; }
}

/* --- the page for companies (template-dla-firm.php): plain and specific -- */
.biz-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  max-width: 720px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.biz-facts li { display: flex; align-items: flex-start; gap: 10px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; }
.biz-facts .ico { width: 18px; height: 18px; margin-top: 1px; color: #fff; }

/* the fleet photo is bright: on a wide screen darken the side the copy sits on */
@media (min-width: 768px) {
  .biz .svc-hero-media::after {
    background:
      linear-gradient(90deg, rgba(10, 2, 20, .62) 0%, rgba(10, 2, 20, .3) 50%, transparent 78%),
      linear-gradient(to top, rgba(10, 2, 20, .85) 0%, rgba(10, 2, 20, .35) 45%, rgba(10, 2, 20, .1) 100%);
  }
}

.biz-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 8px 0 16px;
  border-top: 2px solid #111;
}
.biz-offer { padding: 18px 0; border-bottom: 1px solid var(--line); }
.biz-offer h3 { margin: 0; font-size: 19px; font-weight: 700; }
.biz-offer-what { margin: 6px 0 2px; color: var(--ink-2); font-size: 15px; }
.biz-offer-when { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.biz-offer-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.biz-offer-link .ico { width: 15px; height: 15px; }

.biz-process { background: #fff; }
.biz-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 12px 0 32px;
  padding: 0;
  list-style: none;
}
.biz-steps li { padding-top: 16px; border-top: 2px solid #111; }
.biz-steps h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.biz-steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.biz-ask { align-self: flex-start; }

@media (max-width: 899px) {
  .biz-offers { grid-template-columns: 1fr; }
  .biz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 767px) {
  .biz .svc-hero h1 { font-size: 26px; }
  .biz-facts { grid-template-columns: 1fr; gap: 6px; margin-top: 0; }
  .biz-facts li { font-size: 13px; }
  .biz-facts .ico { width: 15px; height: 15px; }
  .biz-offer { padding: 10px 0; }
  .biz-offer h3 { font-size: 15.5px; }
  .biz-offer-what { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; }
  .biz-offer-when,
  .biz-offer-link { display: none; }
  .biz-steps { grid-template-columns: 1fr; gap: 12px; margin: 4px 0 16px; }
  .biz-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding-top: 10px; border-top-width: 1px; }
  .biz-steps .svc-step-no { grid-row: span 2; margin: 2px 0 0; }
  .biz-steps h3 { margin-bottom: 2px; font-size: 15.5px; }
  .biz-steps p { font-size: 13px; line-height: 1.45; }
}

/* paint correction configurator */
.correction { background: #fff; }
.config-inner {
  max-width: var(--container);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.config .section-title { margin-bottom: clamp(16px, 3vh, 28px); }
.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.config .compare { margin-top: 0; max-height: 64vh; }
.swirls-after { opacity: var(--after-swirls, 1); transition: opacity .6s var(--ease); }
.compare-after { filter: contrast(calc(1 + var(--gloss, 0) * .2)) brightness(calc(1 + var(--gloss, 0) * .08)); transition: filter .6s var(--ease); }
/* the gloss the paint gives back: soft highlights, brighter with each stage */
.compare-gloss {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 22% at 58% 20%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(ellipse 22% 16% at 80% 40%, rgba(255, 255, 255, .4), transparent 70%);
  mix-blend-mode: screen;
  opacity: var(--gloss, 0);
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.compare-flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .95) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.compare-flash.is-on { animation: compare-flash 1s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes compare-flash {
  0%   { opacity: var(--flash, .8); background-position: 120% 0; }
  100% { opacity: 0; background-position: -20% 0; }
}
.correction-stages { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.correction-stage {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.correction-stage:hover { border-color: #111; }
.correction-stage[aria-checked="true"] { border-color: #111; background: #111; color: #fff; }
.correction-price { margin: 0 0 12px; font-size: clamp(30px, 3vw, 40px); font-weight: 300; }
.correction-facts { margin: 0 0 14px; border-top: 1px solid var(--line); }
.correction-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.correction-facts dt { color: var(--muted); }
.correction-facts dd { margin: 0; font-weight: 600; }
.correction-text { color: var(--ink-2); font-size: 16px; }
.correction-note { margin: 0 0 20px; color: var(--muted); font-size: 13px; }

/* keep clear of the slide pager on the right */
@media (min-width: 900px) {
  .config-inner { padding-right: 72px; }
  .stepper-copy { padding-right: 96px; }
}

@media (max-width: 899px) {
  .config-grid { grid-template-columns: 1fr; gap: 14px; }
  .config .compare { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
  .config-inner { justify-content: flex-start; padding: 18px var(--gutter) 20px; }
  .config .eyebrow { margin-bottom: 6px; font-size: 10px; }
  .config .section-title { margin-bottom: 12px; font-size: 22px; }
  .correction-stages { flex-wrap: nowrap; gap: 6px; margin-bottom: 12px; }
  .correction-stage { flex: 1; min-height: 36px; padding: 6px 4px; font-size: 12.5px; }
  .correction-price { margin-bottom: 6px; font-size: 24px; }
  .correction-facts { margin-bottom: 8px; }
  .correction-facts div { padding: 6px 0; font-size: 13px; }
  .correction-text { margin-bottom: 8px; font-size: 13.5px; line-height: 1.5; }
  .correction-note { margin-bottom: 12px; font-size: 11px; line-height: 1.4; }
  .correction-ask { min-height: 40px; padding: 8px 18px; font-size: 14px; }
  /* the photo takes what the rest leaves, so the slide fits short phones too */
  .correction .compare { aspect-ratio: auto; height: clamp(150px, calc(100svh - var(--nav-h) - 500px), 56vw); }
  .config .compare-tag { top: 10px; padding: 4px 9px; font-size: 10px; }
  .config .compare-tag-before { left: 10px; }
  .config .compare-tag-after { right: 10px; }
}

/* cookie consent: a thin bar at the foot of the screen over the page dimmed
   until a choice is made (inc/analytics.php, js/consent.js) */
.cookie-consent {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(10, 2, 20, .5);
}
.cookie-consent[hidden] { display: none; }
.cookie-open,
.cookie-open body { overflow: hidden; }
.cookie-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -10px 30px rgba(28, 4, 53, .08);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.cookie-bar:focus { outline: none; }
.cookie-bar-title { display: none; }
/* wider screens: a card in the middle — at the foot of a desktop screen the
   bar was out of sight */
@media (min-width: 768px) {
  .cookie-consent { align-items: center; justify-content: center; padding: var(--gutter); }
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(460px, 100%);
    padding: 30px 32px 26px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(10, 2, 20, .35);
    font-size: 15px;
    line-height: 1.55;
  }
  .cookie-bar-title { display: block; margin: 0 0 8px; color: var(--ink); font-size: 22px; font-weight: 600; }
  .cookie-bar-actions { justify-content: space-between; margin-top: 24px; }
  .cookie-bar .cookie-accept { min-width: 200px; min-height: 50px; font-size: 16px; }
  .cookie-bar .cookie-deny { font-size: 14px; }
}
.cookie-bar-text { margin: 0; }
.cookie-bar-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar-actions { display: flex; flex: none; align-items: center; gap: 18px; }
.cookie-deny {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-2);   /* --muted fell just short of 4.5:1 on white */
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-deny:hover { color: var(--ink); }
.cookie-accept {
  min-height: 44px;
  padding: 10px 34px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.cookie-accept:hover { background: #333; border-color: #333; }
@media (max-width: 767px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; font-size: 12.5px; }
  .cookie-bar-actions { justify-content: space-between; }
  .cookie-accept { flex: 1; max-width: 220px; margin-left: auto; order: 2; }
}

/* "Ustawienia cookies" in the footers: a link that is a button */
.cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  cursor: pointer;
}
.cookie-settings:hover { color: #111; }

/* back to the top: quiet, bottom right */
.to-top {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: #111;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s, background .2s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-shown { opacity: 1; transform: none; }
.to-top:hover { background: #fff; }
@media (max-width: 767px) { .to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 36px; height: 36px; } }

/* ==========================================================================
   9b. SHORT SCREENS — a phone held sideways, a window dragged low
   js/deck.js stands down below this height and the slides stack as an
   ordinary page that scrolls; slides laid out to fill one screen are turned
   into plain sections here. Keep (max-height: 500px) in step with FLAT in
   js/deck.js.
   ========================================================================== */
@media (max-height: 500px) {
  /* the hero copy fills the whole screen: clear of the bar above and of the
     "scratch the paint" hint in the corner */
  .deck:not(.is-deck) .svc-hero-copy { padding-top: 72px; padding-bottom: 28px; }
  .deck:not(.is-deck) .svc-hero h1 { font-size: clamp(28px, 4.4vw, 40px); }
  .deck:not(.is-deck) .svc-why-short { display: none; }
  /* the steps: photo beside the list, as on a desktop — stacked, the photo
     had no height of its own and the list ran into the next section */
  .deck:not(.is-deck) .stepper {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: none;
    height: auto;
    min-height: calc(100svh - var(--nav-h));
  }
  .deck:not(.is-deck) .stepper-copy { justify-content: center; padding: 20px var(--gutter) 24px; }
  /* the page already keeps anchors clear of the bar (scroll-padding-top);
     the service pages' own margin doubled the gap */
  .deck:not(.is-deck) > .deck-page { scroll-margin-top: 0; }
}

/* ==========================================================================
   10. REDUCED MOTION
   The slider keeps advancing, as the Lexus one does: it is how the services
   are presented, and the pause button stops it (WCAG 2.2.2). What goes is the
   decoration — the slow zoom on the photo and the copy sliding in. The
   crossfade stays: it changes opacity, nothing moves.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* the slides swap with a fade instead of a full-screen slide */
  .deck.is-deck > .deck-page { transform: none !important; opacity: 0; transition: opacity .5s; }
  .deck.is-deck > .deck-page.is-current { opacity: 1; }
  .slide-copy > *,
  .slide-img { transition: none; }
  .slide-img,
  .slide-copy > * { transform: none; }
  .pp-panel,
  .pp-text { transition: none; }
}
