/* =========================================================
   Halsted Plumbing & Sewer - Chicago
   Graphite + deep blue + safety amber.
   Schibsted Grotesk / Hanken Grotesk.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --ink:        #14181E;
  --ink-2:      #20262F;
  --ink-3:      #2E3743;
  --paper:      #F2F1ED;
  --paper-2:    #E8E7E1;
  --cream:      #F7F1E3;
  --surface:    #FFFFFF;

  /* Text */
  --fg:         #14181E;
  --muted:      #565E69;
  --muted-2:    #666E79;
  --on-dark:    #EDEFF4;
  --on-dark-2:  #A3A9B2;
  --on-blue:    #C5D0E8;

  /* Lines */
  --line:       #DEDCD4;
  --line-2:     #C9C6BC;
  --line-dark:  rgba(255,255,255,.12);

  /* Accents */
  --blue:       #17458F;
  --blue-600:   #113670;
  --blue-700:   #0C2A57;
  --blue-tint:  #E7EDF8;
  --amber:       #F5B417;
  --amber-600:   #DB9C05;
  --amber-tint:  #FDF3D9;
  --red:        #B5342A;
  --green:      #1C7A46;

  --ring:      0 0 0 3px #FFFFFF, 0 0 0 6px rgba(23, 69, 143, .5);
  --ring-dark: 0 0 0 3px var(--ink), 0 0 0 6px rgba(245, 180, 23, .65);

  /* Type */
  --f-display: "Schibsted Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --f-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radii - generous, matching the reference look */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(20, 24, 30, .06);
  --sh-sm: 0 2px 6px rgba(20, 24, 30, .06), 0 1px 2px rgba(20, 24, 30, .04);
  --sh-md: 0 8px 24px -10px rgba(20, 24, 30, .16), 0 2px 6px rgba(20, 24, 30, .05);
  --sh-lg: 0 30px 60px -24px rgba(20, 24, 30, .34), 0 8px 20px -12px rgba(20, 24, 30, .18);
  --sh-blue: 0 14px 30px -14px rgba(23, 69, 143, .8);

  /* Easing */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 76px;
  --util-h: 42px;
  /* O tyle sekcja „intro" nasuwa się na hero - hero dolicza to sobie do wysokości,
     żeby przy starcie nie było widać ani skrawka drugiego panelu. */
  --intro-lap: clamp(2rem, 3.5vw, 4rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 18px); }

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--fg);
  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; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
}

::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: .9rem 1.3rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--amber-600); }
.eyebrow--center { justify-content: center; }
.eyebrow--on-blue { color: var(--amber); }
.eyebrow--on-blue::before { background: var(--amber); }

.h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.032em; }
.h2--light { color: #fff; }
.h2--balance { text-wrap: balance; }
.h2--sm { font-size: clamp(1.8rem, 3.4vw, 2.5rem); text-wrap: balance; }

.section-head { max-width: 660px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.section-lead { margin-top: 1rem; font-size: clamp(1rem, 1.7vw, 1.12rem); color: var(--muted); line-height: 1.66; }
.section-lead a { color: var(--blue); font-weight: 700; }

.stars { color: #C98A05; letter-spacing: 2px; }

/* Jedna skorupa karty dla wszystkich sekcji: usługi, cennik, liczniki,
   opinie i godziny otwarcia wyglądają tak samo. */
.rates__col, .intro__stats li, .review, .hours {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

/* Jedna ikona faktu: niebieskie kółko, tak jak w kartach usług i kontakcie. */
.factlist { display: flex; flex-direction: column; gap: .75rem; }
.factlist li { display: flex; align-items: center; gap: .7rem; }
.factlist__ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue);
}
.factlist__ic svg { width: 16px; height: 16px; }
.factlist__label {
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  letter-spacing: -.01em; color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px;
  padding: .8rem 1.5rem;
  font-family: var(--f-display); font-weight: 700; font-size: .96rem; line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap;
  transition: transform 150ms var(--ease-out), background-color 180ms ease,
              border-color 180ms ease, color 180ms ease, box-shadow 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn__arrow { transition: transform 200ms var(--ease-out); }
.btn svg { flex: none; }

.btn--amber  { --btn-bg: var(--amber); --btn-fg: var(--ink); --btn-bd: var(--amber); }
.btn--blue  { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); box-shadow: var(--sh-blue); }
.btn--dark  { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--glass { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .9rem; }
.btn--lg { min-height: 58px; padding: 1rem 1.9rem; font-size: 1.04rem; }
.btn--block { width: 100%; }

.btn__ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--amber); color: var(--ink); margin-left: -.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow { transform: translateX(3px); }
  .btn--amber:hover  { background: var(--amber-600); border-color: var(--amber-600); }
  .btn--blue:hover  { background: var(--blue-600); border-color: var(--blue-600); box-shadow: 0 18px 36px -16px rgba(23,69,143,.95); }
  .btn--dark:hover  { background: var(--blue); border-color: var(--blue); }
  .btn--glass:hover { background: rgba(255,255,255,.2); border-color: #fff; }
}

/* ---------- Utility bar ---------- */
.util { background: var(--ink); color: var(--on-dark-2); font-size: .84rem; }
.util__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 42px; }
.util__list { display: flex; align-items: center; gap: 1.4rem; min-width: 0; }
.util__list li { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.util__list svg { width: 15px; height: 15px; color: var(--amber); flex: none; }
.util__list a { display: inline-block; padding-block: .6rem; transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .util__list a:hover { color: #fff; } }

.util__right { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.util__status { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.util__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 2.6s var(--ease-out) infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,180,23,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(245,180,23,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,180,23,0); }
}
.util__socials { display: inline-flex; gap: .3rem; }
.util__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  transition: background-color 180ms ease, color 180ms ease;
}
.util__socials svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .util__socials a:hover { background: var(--amber); color: var(--ink); } }
.util__socials a:focus-visible { box-shadow: var(--ring-dark); }

/* ---------- Header ---------- */
/* Przezroczysty nad hero, pełny po przewinięciu. Bez backdrop-filter -
   czytelność daje delikatny gradient, nie rozmycie. */
.header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,19,31,.66) 0%, rgba(9,19,31,.10) 100%);
  transition: opacity 260ms ease;
}
.header.is-scrolled {
  background: rgba(242,241,237,.95);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(20,24,30,.28);
}
.header.is-scrolled::before { opacity: 0; }

/* Wordmark leży na hero na każdej szerokości. */
.header:not(.is-scrolled) .brand__name { color: #fff; }
.header:not(.is-scrolled) .brand__sub { color: var(--amber); }

/* Linki nav rozjaśniamy tylko na desktopie - na mobile to biały panel off-canvas. */
@media (min-width: 901px) {
  .header:not(.is-scrolled) .nav__link { color: #fff; }
  .header:not(.is-scrolled) .nav__link::after { background: var(--amber); }
  .header:not(.is-scrolled) .nav__link.is-active { color: var(--amber); }
}
.header:not(.is-scrolled) .nav-toggle { border-color: rgba(255,255,255,.45); }
.header:not(.is-scrolled) .nav-toggle span { background: #fff; }
.header:not(.is-scrolled) .nav-toggle[aria-expanded="true"] span { background: var(--ink); }
.header__inner { min-height: var(--header-h); display: flex; align-items: center; gap: 1.2rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; flex: none; margin-right: auto; }
.brand__mark { border-radius: 12px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--f-display); font-weight: 900; font-size: 1.5rem;
  letter-spacing: -0.04em; color: var(--ink);
}
.brand__sub {
  font-family: var(--f-display); font-weight: 600;
  font-size: .62rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--blue); margin-top: 4px;
}
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--amber); }

.nav { display: flex; align-items: center; gap: .1rem; }
.nav__link {
  position: relative; padding: .55rem .78rem; border-radius: var(--r-sm);
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: color 180ms ease;
}
.nav__link::after {
  content: ""; position: absolute; left: .78rem; right: .78rem; bottom: .22rem; height: 2px;
  border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.nav__link.is-active { color: var(--blue); }
.nav__link.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--blue); }
  .nav__link:hover::after { transform: scaleX(1); }
}
.nav__phone { display: none; }

.header__cta { flex: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1.5px solid var(--line-2); flex: none;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 260ms var(--ease-out), opacity 160ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Hero wsuwa się pod przezroczysty nagłówek - stąd ujemny margines.
   Wysokość: cały ekran pomniejszony o pasek kontaktowy i powiększony o zakładkę
   sekcji niżej - dzięki temu przy załadowaniu widać wyłącznie hero. */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: calc(100vh - var(--util-h) + var(--intro-lap));
  min-height: calc(100svh - var(--util-h) + var(--intro-lap));
  margin-top: calc(-1 * var(--header-h));
  background: var(--ink); overflow: hidden;
}
.hero picture { display: contents; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; }
/* Grafika ma już własną ciemną strefę po lewej - scrim tylko ją domyka. */
/* Bez wygaszania w kolor tła - kremowy gradient na ciemnym zdjęciu dawał
   szarą mgłę i widoczny szew. Przejście robi zaokrąglona krawędź sekcji niżej. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(9,19,31,.94) 0%, rgba(9,19,31,.78) 30%, rgba(9,19,31,.22) 54%, rgba(9,19,31,0) 72%),
    linear-gradient(0deg, rgba(9,19,31,.8) 0%, rgba(9,19,31,0) 42%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  /* góra: wysokość nagłówka + oddech; dół: więcej niż strefa wygaszania scrimu */
  padding-block: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)) clamp(5rem, 10vw, 8rem);
}
.hero__content { max-width: 920px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--amber);
  margin-bottom: clamp(1.1rem, 2.5vw, 1.6rem);
}
.hero__rule { width: 30px; height: 3px; border-radius: 2px; background: var(--amber); }

.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.4rem, 5.9vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.04em;
  color: #fff; margin-bottom: clamp(1.1rem, 2.4vw, 1.6rem);
}
.hero__title em { font-style: normal; color: var(--amber); }

.hero__sub { font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.6; color: #C9CFDC; max-width: 60ch; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: clamp(1.6rem, 3vw, 2.2rem); }

.hero__card {
  display: flex; align-items: center; gap: .9rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-lg); padding: .9rem 1.2rem .9rem .9rem;
}
.hero__avatars { display: flex; align-items: center; }
.hero__avatars img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.85); margin-right: -12px; background: var(--ink-3);
}
.hero__avatars-more {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--amber); color: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: .72rem;
  border: 2px solid rgba(255,255,255,.85); position: relative;
}
.hero__card-body .stars { display: block; font-size: .82rem; line-height: 1; color: var(--amber); }
.hero__card-body p { margin-top: .25rem; font-size: .82rem; color: #C9CFDC; line-height: 1.3; }
.hero__card-body strong { color: #fff; font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Intro ---------- */
/* Nasuwa sie na hero zaokraglona krawedzia: czyste przejscie zamiast gradientu.
   Uklad: kolumna tekstu + kolaz zdjec, pod spodem trzy karty z licznikami. */
.intro {
  position: relative; z-index: 2;
  margin-top: calc(-1 * var(--intro-lap));
  border-radius: clamp(30px, 3.4vw, 56px) clamp(30px, 3.4vw, 56px) 0 0;
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--paper);
  /* Panel lezy NA zdjeciu: cien do gory + wlos swiatla na krawedzi. */
  box-shadow: 0 -34px 64px -30px rgba(9, 19, 31, .62);
}
.intro::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85) 20%, rgba(255,255,255,.85) 80%, transparent);
  pointer-events: none;
}

.intro__inner {
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center;
}
.intro__lead {
  margin-top: clamp(1rem, 2.2vw, 1.5rem);
  font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.75;
  color: var(--muted); max-width: 46ch;
}

/* --- kolaz zdjec --- */
.intro__media {
  position: relative;
  display: grid; grid-template-columns: .78fr 1fr; gap: 14px;
}
.intro__shot {
  overflow: hidden; border-radius: var(--r-lg);
  background: var(--paper-2); box-shadow: var(--sh-md);
}
.intro__shot img { width: 100%; height: 100%; object-fit: cover; }
.intro__shot--tall { grid-column: 2; grid-row: 1 / span 2; }
.intro__shot--sq   { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; }
.intro__shot--wide { grid-column: 1; grid-row: 2; aspect-ratio: 5 / 4; }

/* --- trzy karty z licznikami --- */
.intro__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: clamp(2.4rem, 5vw, 3.8rem);
}
.intro__stats li { padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.3rem, 2.6vw, 1.7rem); }
.intro__num {
  display: block;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 3.2rem); line-height: 1;
  color: var(--blue); letter-spacing: -0.045em;
}
.intro__label {
  display: block; margin-top: .55rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -.02em; color: var(--ink);
}
.intro__note { display: block; margin-top: .3rem; font-size: .9rem; line-height: 1.55; color: var(--muted); }

/* Podpis na duzym zdjeciu: informacja, nie efekt na hover. */
.intro__shot { position: relative; }
.intro__cap {
  position: absolute; left: .7rem; right: .7rem; bottom: .7rem;
  padding: .55rem .8rem; border-radius: var(--r-sm);
  background: rgba(20,24,30,.66);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--f-display); font-weight: 600;
  font-size: .78rem; line-height: 1.35; letter-spacing: -.01em;
}

/* Z kim pracujemy: logotypy w jednej wadze i jednym kolorze, zeby pasek
   czytal sie jak jeden rzad, a nie jak szesc roznych grafik. */
.partners {
  width: 100%; max-width: var(--container); margin: clamp(2.6rem, 5vw, 3.8rem) auto 0;
  padding: clamp(1.4rem, 3vw, 2rem) var(--gutter) 0;
  border-top: 1px solid var(--line);
}
.partners__label {
  font-family: var(--f-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: clamp(1.1rem, 2.4vw, 1.5rem);
}
.partners__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
}
/* Odstep siedzi na elemencie, nie w `gap`: przy `gap` polowa sciezki nie rowna
   sie odleglosci miedzy powtorzeniami i petla podskakuje przy zawijaniu. */
.partners__track {
  display: flex; align-items: center; width: max-content;
  animation: partnersScroll 46s linear infinite;
}
@keyframes partnersScroll { to { transform: translateX(-50%); } }

.plogo {
  display: inline-flex; align-items: center; gap: .6rem; flex: none;
  margin-right: clamp(2.2rem, 5vw, 4rem);
  color: var(--ink); opacity: .55; white-space: nowrap;
  transition: opacity 200ms ease, color 200ms ease;
}
.plogo__mark { width: 26px; height: 26px; flex: none; }
.plogo__name { font-family: var(--f-display); font-size: 1.02rem; line-height: 1.15; letter-spacing: -.02em; }
.plogo__name b { font-weight: 800; }
.plogo__name--stack { font-weight: 500; font-size: .95rem; }
.plogo__name--serifish { font-weight: 600; letter-spacing: .04em; }
.plogo__name--wide { font-weight: 500; letter-spacing: .01em; }
.plogo__name--plain { font-weight: 600; }
.plogo__name--caps { font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; }
.plogo__name--caps b { font-weight: 800; letter-spacing: .1em; }
@media (hover: hover) and (pointer: fine) {
  .plogo:hover { opacity: 1; color: var(--blue); }
  .partners:hover .partners__track { animation-play-state: paused; }
}

/* ---------- Featured work ---------- */
.work { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--surface); }
.work__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.work__head-right { display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; }
.work__head-right p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }

/* 4 kolumny: karta 1 i 6 zajmują 2 kolumny - siatka wypełnia się bez dziur. */
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 285px; gap: 14px; }
.wcard {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--paper-2); display: block;
}
.wcard--wide { grid-column: span 2; }
.wcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.wcard::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(20,24,30,.88) 0%, rgba(20,24,30,.28) 38%, rgba(20,24,30,0) 66%);
  transition: opacity 380ms ease;
}
.wcard__label {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 2;
  display: flex; flex-direction: column;
}
.wcard__name {
  font-family: var(--f-display); font-weight: 800; font-size: 1.22rem;
  letter-spacing: -0.025em; color: #fff;
}
.wcard__meta { font-size: .84rem; color: #BFC7D6; margin-top: .12rem; }

/* Pełnoekranowy cień wjeżdżający na zdjęcie + tekst wysuwający się od dołu. */
.wcard__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(23,69,143,.86) 0%, rgba(12,17,26,.92) 100%);
  opacity: 0;
  transition: opacity 380ms var(--ease-out);
}
.wcard img { transition: transform 800ms var(--ease-out); }
.wcard__reveal {
  display: block;
  font-size: .88rem; line-height: 1.52; color: #E8EDF8;
  opacity: 0; transform: translateY(14px);
  transition: opacity 300ms ease, transform 420ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .wcard:hover img { transform: scale(1.07); }
  .wcard:hover .wcard__veil { opacity: 1; }
  .wcard:hover::after { opacity: 0; }
  .wcard:hover .wcard__reveal { opacity: 1; transform: translateY(0); transition-delay: 90ms; }
  .wcard:hover .wcard__meta { opacity: 0; transform: translateY(-6px); }
  .wcard__meta { transition: opacity 220ms ease, transform 300ms var(--ease-out); }
  .wcard__reveal { max-height: 0; overflow: hidden; }
  .wcard:hover .wcard__reveal { max-height: 14em; margin-top: .5rem; }
}
/* Bez hovera (dotyk) szczegół jest widoczny od razu, bez zasłony. */
@media (hover: none), (pointer: coarse) {
  .wcard__veil { display: none; }
  .wcard__reveal { opacity: 1; transform: none; margin-top: .35rem; }
  .wcard__meta { display: none; }
}

/* ---------- Services & pricing ---------- */
.svc { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--paper); }

/* Indeks uslug: numer, nazwa, zakres i cena wyjsciowa w jednym wierszu.
   Bez kafelkow i kolek z ikonami - blizej spisu tresci niz katalogu. */
.svcx {
  display: grid; grid-template-columns: minmax(270px, .82fr) 1.45fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.svcx__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.svcx__lead { margin: 0 0 1.7rem; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.svcx__note { margin-top: 1.3rem; font-size: .92rem; line-height: 1.6; color: var(--muted); }
.svcx__note a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.svcx__list { border-top: 1px solid var(--line-2); }
.svcx__row {
  position: relative; display: grid;
  grid-template-columns: auto 1fr auto 22px;
  align-items: center; gap: clamp(.9rem, 2.2vw, 1.8rem);
  padding: clamp(1.25rem, 2.5vw, 1.7rem) 0;
  border-bottom: 1px solid var(--line-2);
}
.svcx__num {
  font-family: var(--f-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; color: var(--muted-2);
  transition: color 200ms ease;
}
.svcx__body { display: block; transition: transform 240ms var(--ease-out); }
.svcx__name {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.28rem, 2.1vw, 1.65rem); letter-spacing: -0.032em; color: var(--ink);
}
.svcx__text { display: block; margin-top: .35rem; font-size: .97rem; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.svcx__price {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -0.03em;
  color: var(--ink); white-space: nowrap;
}
.svcx__price em { font-style: normal; font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--muted-2); margin-right: .35rem; }
.svcx__price i { font-style: normal; font-size: .88rem; color: var(--muted-2); }
.svcx__arrow {
  width: 22px; height: 22px; color: var(--blue);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 180ms ease, transform 240ms var(--ease-out);
}
/* Bursztynowa kreska wysuwa sie od lewej, zamiast podswietlania calego wiersza. */
.svcx__rule {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.svcx__row:active .svcx__body { transform: translateX(3px) scale(.995); }
@media (hover: hover) and (pointer: fine) {
  .svcx__row:hover .svcx__body { transform: translateX(6px); }
  .svcx__row:hover .svcx__num { color: var(--amber-600); }
  .svcx__row:hover .svcx__name { color: var(--blue); }
  .svcx__row:hover .svcx__arrow { opacity: 1; transform: translateX(0); }
  .svcx__row:hover .svcx__rule { transform: scaleX(1); }
}
.svcx__row:focus-visible { border-radius: var(--r-sm); }
.svcx__name { transition: color 200ms ease; }

/* Pelny cennik: te same pozycje rozpisane na wiersze, bez wodzikow z kropek. */
.rates { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.rates__head { max-width: 620px; margin-bottom: clamp(1.2rem, 3vw, 1.7rem); }
.rates__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; }
.rates__sub { margin-top: .55rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.rates__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rates__col { padding: clamp(1.3rem, 2.6vw, 1.8rem); }
.rates__cat {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.08rem; letter-spacing: -0.025em; color: var(--ink);
  padding-bottom: .9rem; margin-bottom: .5rem; border-bottom: 2px solid var(--ink);
}
.rates__cat::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--amber-600); }

.rates__list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem;
  padding: .8rem .8rem; border-radius: var(--r-sm);
}
/* Naprzemienne tlo prowadzi wzrok od nazwy do ceny lepiej niz linia z kropek. */
.rates__list li:nth-child(odd) { background: var(--paper); }
.rates__name { display: flex; flex-direction: column; font-size: 1rem; color: var(--fg); }
.rates__name em { font-style: normal; margin-top: .1rem; font-size: .82rem; color: var(--muted-2); }
/* Bez tabular-nums: w Schibsted przecinek dostaje pelna szerokosc cyfry ($1 , 850). */
.rates__val {
  flex: none; font-family: var(--f-display); font-weight: 700; font-size: 1.14rem;
  color: var(--ink); white-space: nowrap; letter-spacing: -0.02em;
}
.rates__val em {
  font-style: normal; font-family: var(--f-body); font-weight: 400;
  font-size: .82rem; color: var(--muted-2);
}
.rates__val em:first-child { margin-right: .3rem; }

.rates__notes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem clamp(1.2rem, 3vw, 2rem); margin-top: 1.5rem;
}
.rates__notes li { display: flex; align-items: flex-start; gap: .7rem; font-size: .93rem; line-height: 1.6; color: var(--muted); }
.rates__notes strong { color: var(--ink); font-weight: 700; }

/* ---------- Why us ---------- */
.why {
  position: relative; overflow: hidden;
  background: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) 0 0;
}

.why__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr .62fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-bottom: 1rem;
}
/* keep every column above the decorative year */
.why__intro, .why__media, .why__facts { position: relative; z-index: 1; }
/* reserve exactly the band's overlap so left-column text is never clipped */
.why__intro { padding-bottom: 4rem; }

/* --- left column --- */
.why__intro { padding-top: clamp(.5rem, 1.5vw, 1.5rem); }
.why__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em;
  color: var(--ink);
}
.why__title-line { display: block; }
.why__title-line--blue { color: var(--blue); }
.why__rule { display: block; width: 62px; height: 2px; background: var(--blue); opacity: .45; margin: clamp(1.2rem, 3vw, 2rem) 0; }
.why__lead { color: var(--muted); font-size: 1.02rem; line-height: 1.75; max-width: 34ch; }

.why__note {
  position: relative;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  padding-right: 6.5rem;
  color: #8A5F09;
}
.why__note-text {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.35; letter-spacing: -.01em;
  display: block; max-width: 16ch;
}
/* wychodzi lekko poza kolumnę, ale zatrzymuje się przed zdjęciem - inaczej
   grot chowa się pod fotografią */
.why__note-arrow {
  position: absolute; right: -.5rem; bottom: .2rem;
  width: 150px; height: 76px; color: currentColor;
}

/* --- centre photo --- */
.why__media { position: relative; padding: 0 2rem 3rem 0; }
.why__photo {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: var(--r-md);
  border: 9px solid var(--surface);
  box-shadow: var(--sh-lg);
  transform: rotate(1.6deg);
}
.why__inset {
  position: absolute; right: 0; bottom: 0; width: 46%;
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-md);
  border: 7px solid var(--surface);
  box-shadow: var(--sh-md);
  transform: rotate(-3deg);
}

/* --- right facts --- */
.why__facts { padding-top: clamp(1rem, 2.5vw, 2.5rem); }
.why__facts li { padding: clamp(.9rem, 2vw, 1.35rem) 0; border-bottom: 1px solid rgba(23, 69, 143, .22); }
.why__facts li:first-child { padding-top: 0; }
.why__facts li:last-child { border-bottom: none; }
.why__fact-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue);
  margin-bottom: .7rem;
}
.why__fact-ic svg { width: 20px; height: 20px; }
.why__fact-label {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--blue); letter-spacing: -.02em;
}

/* --- blue band --- */
/* Pulled up so the photo and inset overlap it, as in the design. */
.why__band { position: relative; margin-top: -4rem; }
.why__band::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: var(--blue);
}
.why__band-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(.8rem, 2vw, 1.6rem);
  padding-block: clamp(1.1rem, 2.5vw, 1.6rem);
}
.why__badge { flex: none; width: clamp(84px, 8vw, 106px); }
.why__badge svg { width: 100%; height: auto; overflow: visible; }
.why__badge-ring {
  font-family: var(--f-display); font-weight: 700;
  font-size: 10px; letter-spacing: .18em;
  fill: #fff;
}
.why__badge-num {
  font-family: var(--f-display); font-weight: 800;
  font-size: 29px; letter-spacing: -.03em; fill: var(--amber);
}
.btn--on-blue { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
@media (hover: hover) and (pointer: fine) {
  .btn--on-blue:hover { background: rgba(255,255,255,.14); border-color: #fff; }
}

/* --- Why us: responsive --- */
@media (max-width: 1100px) {
  .why__grid { grid-template-columns: 1fr .8fr; grid-template-areas: "intro media" "facts facts"; }
  .why__intro { grid-area: intro; }
  .why__media { grid-area: media; }
  .why__facts { grid-area: facts; padding-top: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .why__facts li { border-bottom: none; border-top: 1px solid rgba(23,69,143,.22); padding-top: 1rem; }
  .why__facts li:first-child { padding-top: 1rem; }
}

@media (max-width: 760px) {
  .why { padding-top: clamp(2.2rem, 6vw, 3rem); }
  .why__intro { padding-top: 0; }
  .why__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "media" "facts"; gap: 2rem; padding-bottom: 2.5rem; }
  .why__note { padding-right: 6.5rem; }
  .why__note-arrow { width: 88px; height: 48px; }
  .why__media { padding: 0 1.4rem 2rem 0; max-width: 420px; }
  .why__facts { grid-template-columns: repeat(2, 1fr); }
  /* w jednej kolumnie pas nie ma czego nachodzić - zdejmujemy podciągnięcie */
  .why__band { margin-top: 0; }
  .why__intro { padding-bottom: 0; }
  .why__band-inner { justify-content: flex-start; }
  .why__badge { width: 76px; }
  .why__band-inner .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .why__facts { grid-template-columns: 1fr; }
  .why__note { padding-right: 0; }
  .why__note-arrow { display: none; }
}

/* ---------- Emergency band ---------- */
.band { position: relative; padding: clamp(2.6rem, 6vw, 4rem) 0; background: var(--ink); overflow: hidden; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,24,30,.95) 20%, rgba(20,24,30,.7) 100%),
              radial-gradient(600px 300px at 90% 50%, rgba(23,69,143,.5), transparent 70%);
}
.band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.band__kicker { font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: .6rem; }
.band__title { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; }
.band__text { margin-top: .8rem; color: #B9C1D1; max-width: 52ch; font-size: 1rem; line-height: 1.6; }
.band__btn { font-size: 1.12rem; }

/* ---------- 24/7 line: powyginana rura, ktora zalewa sie podczas scrolla ---------- */
/* Trasa to serpentyna SVG. Woda to ta sama sciezka rysowana dashoffsetem,
   wiec plynie przez luki dokladnie tak jak korpus. Etapy siedza na trasie
   w punktach liczonych z getPointAtLength (JS ustawia --x i --y). */
.run { position: relative; overflow: hidden; padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); background: var(--blue); }
.run::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 380px at 12% 0%, rgba(245,180,23,.14), transparent 70%);
}
.run > * { position: relative; }
/* Naglowek zostaje kontenerem (inaczej auto-marginesy zesrodkowalyby caly blok),
   szerokosc ograniczamy na tresci. */
.run__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.run__head .h2, .run__lead { max-width: 640px; }
.run__lead { margin-top: 1.1rem; color: var(--on-blue); font-size: 1.02rem; line-height: 1.75; }

.run__rig { position: relative; aspect-ratio: 1200 / 1560; }
.run__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Rura budowana warstwami: cien, ciemny obrys, korpus z gradientem walca,
   zlaczki co ~310 jednostek trasy, przetarcie swiatla i cien pod spodem. */
.run__shadow {
  stroke: #04101F; stroke-width: 40; stroke-linecap: round; stroke-linejoin: round;
  opacity: .5; filter: url(#softShadow); transform: translateY(14px);
}
.run__casing { stroke: #071528; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.run__body { stroke: url(#steel); stroke-width: 28; stroke-linecap: round; stroke-linejoin: round; }
.run__collars {
  stroke: #21497F; stroke-width: 38; stroke-linecap: butt;
  stroke-dasharray: 13 297; stroke-dashoffset: -150;
}
.run__hi {
  stroke: rgba(255,255,255,.34); stroke-width: 5; stroke-linecap: round;
  transform: translateY(-8px);
}
.run__low {
  stroke: rgba(3,10,22,.55); stroke-width: 6; stroke-linecap: round;
  transform: translateY(9px);
}

/* Woda: gradient w poprzek strumienia + jasny refleks przy gornej sciance
   + czolo slupa, ktore JS przesuwa po trasie. */
.run__flow {
  stroke: url(#water); stroke-width: 17; stroke-linecap: round; stroke-linejoin: round;
  filter: url(#wetGlow);
}
.run__flow-hi {
  stroke: rgba(255,255,255,.5); stroke-width: 3.5; stroke-linecap: round;
  transform: translateY(-4px);
}
.run__front { fill: #CDEFFF; filter: url(#wetGlow); opacity: .9; }

/* --- etapy na trasie --- */
.run__stages { position: absolute; inset: 0; }
.stage { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; }

.stage__joint {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: #0A1D3A; color: rgba(255,255,255,.42);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
  transition: color 320ms ease, background-color 320ms ease, box-shadow 320ms ease;
}
.stage__valve { width: 27px; height: 27px; transition: transform 460ms var(--ease-out); }
.stage.is-on .stage__joint {
  background: #0D2E5C; color: var(--amber);
  box-shadow: inset 0 0 0 2px rgba(245,180,23,.6), 0 0 0 7px rgba(245,180,23,.12);
}
.stage.is-on .stage__valve { transform: rotate(90deg); }

.stage__card {
  position: absolute; left: 50%; width: min(310px, 27vw);
  opacity: 0; transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.stage[data-place="above"] .stage__card { bottom: 42px; transform: translate(-50%, -12px); }
.stage[data-place="below"] .stage__card { top: 42px; transform: translate(-50%, 12px); }
.stage.is-on .stage__card { opacity: 1; transform: translate(-50%, 0); }

.stage__time {
  display: inline-block;
  font-family: var(--f-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber);
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: rgba(10,29,58,.75); border: 1px solid rgba(245,180,23,.34);
}
.stage__what { margin-top: .6rem; font-size: clamp(1.08rem, 1.7vw, 1.35rem); letter-spacing: -0.03em; color: #fff; }
.stage__note { margin-top: .4rem; font-size: .93rem; line-height: 1.6; color: var(--on-blue); }

/* Pionowa rura tylko na waskie ekrany (serpentyna sie tam nie miesci). */
.run__pipe { display: none; }

.run__foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid rgba(255,255,255,.16);
}
.run__sig { font-family: var(--f-display); font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.6); }

/* ---------- Reviews ---------- */
.reviews-sec { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--paper); }
.reviews {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reviews__track { display: flex; gap: 14px; width: max-content; animation: reviewsScroll 70s linear infinite; }
@media (hover: hover) and (pointer: fine) { .reviews:hover .reviews__track { animation-play-state: paused; } }
@keyframes reviewsScroll { to { transform: translateX(-50%); } }

.review {
  flex: none; width: clamp(300px, 31vw, 390px);
  display: flex; flex-direction: column;
  padding: 1.5rem 1.45rem 1.3rem;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .review:hover { transform: translateY(-4px); box-shadow: var(--sh-md); } }
.review .stars { font-size: .92rem; }
.review blockquote { font-size: .97rem; line-height: 1.6; color: var(--fg); margin: .65rem 0 1.15rem; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: .7rem; padding-top: .95rem; border-top: 1px solid var(--line); }
.review figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }
.review figcaption span { display: flex; flex-direction: column; font-size: .84rem; color: var(--muted-2); }
.review figcaption strong { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--surface); }
.faq__layout { display: grid; grid-template-columns: 400px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 28px); }
.faq__lead { margin: 1rem 0 1.6rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.faq { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem .2rem;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.12rem);
  letter-spacing: -0.02em; color: var(--ink);
  transition: color 180ms ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%2317458F' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/15px no-repeat;
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}
.faq__item[open] .faq__q::after {
  transform: rotate(135deg);
  background-color: var(--amber);
}
@media (hover: hover) and (pointer: fine) { .faq__q:hover { color: var(--blue); } }
.faq__q:focus-visible { box-shadow: var(--ring); border-radius: var(--r-sm); }
.faq__a { padding: 0 3rem 1.35rem .2rem; color: var(--muted); line-height: 1.68; font-size: .97rem; }

/* Odpowiedz FAQ wjezdza po rozwinieciu - tylko wejscie, wyjscie zostaje natychmiastowe. */
.faq__item[open] .faq__a { animation: faqIn 240ms var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

@media (hover: hover) and (pointer: fine) {
  .intro__stats li { transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
  .intro__stats li:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
  .intro__shot img { transition: transform 700ms var(--ease-out); }
  .intro__shot:hover img { transform: scale(1.05); }
  .rates__list li { transition: background-color 160ms ease; }
  .rates__list li:hover { background: var(--blue-tint); }
}

/* ---------- Split CTA ---------- */
.split { padding: 0 0 clamp(3.5rem, 8vw, 6rem); background: var(--surface); }
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split__card { border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; }
.split__card--blue { background: var(--blue); color: #fff; }
.split__card--amber { background: var(--amber); color: var(--ink); }
.split__kicker { font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.split__card--blue .split__kicker { color: var(--amber); }
.split__card--amber .split__kicker { color: #5A4600; }
.split__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.032em; }
.split__card--blue .split__title { color: #fff; }
.split__text { margin: .85rem 0 1.6rem; font-size: 1rem; line-height: 1.6; max-width: 42ch; }
.split__card--blue .split__text { color: var(--on-blue); }
.split__card--amber .split__text { color: #4A3A00; }

/* ---------- Contact ---------- */
.contact-sec { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--paper); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
.contact__list { display: grid; gap: .85rem; margin-bottom: 1.5rem; }
.contact__list li { display: flex; align-items: center; gap: .85rem; }
.contact__ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  color: var(--blue); background: var(--blue-tint);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__pair { display: flex; flex-direction: column; min-width: 0; }
.contact__pair em { font-style: normal; font-family: var(--f-display); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.contact__pair a, .contact__pair > span { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); word-break: break-word; transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .contact__pair a:hover { color: var(--blue); } }

.hours { padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.hours__title { font-size: 1.05rem; margin-bottom: .85rem; }
.hours ul { display: grid; gap: .5rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.hours li span:first-child { color: var(--muted); }
.hours li span:last-child { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.hours__closed { color: var(--red) !important; }
.hours__em { padding-top: .55rem; margin-top: .25rem; border-top: 1px dashed var(--line-2); }
.hours__em span:first-child { color: var(--ink) !important; font-weight: 700; }
.hours__em span:last-child { color: var(--green) !important; }


.contact__map { position: relative; height: 250px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.28) contrast(1.03); }
.contact__pin {
  position: absolute; left: .8rem; top: .8rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line);
  padding: .5rem .9rem; border-radius: var(--r-pill);
  font-family: var(--f-display); font-weight: 700; font-size: .82rem; color: var(--ink);
  box-shadow: var(--sh-md);
  transition: transform 160ms var(--ease-out);
}
.contact__pin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(23,69,143,.18); }
.contact__pin:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .contact__pin:hover { transform: translateY(-2px); } }

/* ---------- Form ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--sh-sm); }
.form__title { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -0.03em; }
.form__sub { margin: .4rem 0 1.4rem; color: var(--muted); font-size: .94rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--f-display); font-weight: 600; font-size: .85rem; color: var(--ink); margin-bottom: .4rem; }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: .72rem .9rem;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  font-size: 1rem;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23565E69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
  padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(23,69,143,.15);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); background: #FDF6F5; }
.field__help { margin-top: .35rem; font-size: .8rem; color: var(--muted-2); line-height: 1.45; }
.field__err { display: none; margin-top: .4rem; font-size: .82rem; font-weight: 600; color: var(--red); align-items: center; gap: .35rem; }
.field__err.is-shown { display: flex; }
.field__err::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; }

.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .86rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin-top: 0; accent-color: var(--blue); cursor: pointer; }
.check a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

#form-submit { margin-top: 1.3rem; }
#form-submit[data-state="sending"] { pointer-events: none; opacity: .7; }
.form__alt { margin-top: 1rem; text-align: center; font-size: .88rem; color: var(--muted); }
.form__alt a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
/* Kompaktowa i wyśrodkowana - zostały tylko marka i social media. */
.footer { background: var(--ink); color: var(--on-dark-2); padding: clamp(2rem, 4vw, 2.8rem) 0 1.1rem; text-align: center; }
.footer__inner { padding-bottom: clamp(1.2rem, 2.5vw, 1.6rem); border-bottom: 1px solid var(--line-dark); }
.footer__brand { display: flex; flex-direction: column; align-items: center; }
/* .brand ma margin-right:auto (odpycha nav w nagłówku) - w stopce to psuje
   centrowanie, więc zerujemy. */
.footer .brand { gap: .55rem; margin-right: 0; }
.footer .brand__mark { width: 34px; height: 34px; }
.footer .brand__name { font-size: 1.28rem; }
.footer .brand__sub { font-size: .58rem; }
.socials { display: flex; gap: .45rem; justify-content: center; margin-top: 1.1rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--on-dark-2); background: rgba(255,255,255,.07);
  transition: background-color 200ms ease, color 200ms ease, transform 180ms var(--ease-out);
}
.socials a svg { width: 17px; height: 17px; }
.socials a:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { background: var(--amber); color: var(--ink); } }
.socials a:focus-visible { box-shadow: var(--ring-dark); }

.footer__bottom {
  display: flex; flex-direction: column; align-items: center;
  gap: .3rem; padding-top: 1rem; font-size: .8rem; color: #7B838F;
}
.footer__legal a { color: #99A1AD; padding-block: .3rem; display: inline-block; }
@media (hover: hover) and (pointer: fine) { .footer__legal a:hover { color: #fff; } }

/* ---------- Mobile action bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; gap: .55rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 320ms var(--ease-out);
}
.callbar.is-visible { transform: translateY(0); }
.callbar__btn {
  flex: 1; min-height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--f-display); font-weight: 700; font-size: .98rem;
  border-radius: var(--r-pill); border: 2px solid var(--line-2); color: var(--ink);
  transition: transform 150ms var(--ease-out);
}
.callbar__btn:active { transform: scale(.975); }
.callbar__btn--primary { flex: 1.4; background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--ink); box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(12px) scale(.94); pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), background-color 180ms ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:active { transform: scale(.93); }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--blue); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 130;
  display: flex; align-items: center; gap: .7rem;
  max-width: min(92vw, 470px);
  background: var(--ink); color: #fff;
  padding: .95rem 1.2rem; border-radius: var(--r-md);
  border-left: 4px solid var(--amber);
  box-shadow: var(--sh-lg);
  font-size: .93rem; line-height: 1.4;
  transform: translate(-50%, 130%); opacity: 0;
  transition: transform 400ms var(--ease-out), opacity 260ms ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast::before {
  content: ""; flex: none; width: 21px; height: 21px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 13 4 4L19 7' stroke='%2314181E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav__link { padding: .55rem .6rem; font-size: .9rem; }
  .faq__layout { grid-template-columns: 330px 1fr; }
}

@media (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .rates__notes { grid-template-columns: 1fr; }
  .intro__inner { grid-template-columns: 1fr .9fr; }
}

@media (max-width: 960px) {
  .faq__layout { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .contact { grid-template-columns: 1fr; }
  .split__grid { grid-template-columns: 1fr; }
  .hero__inner { flex-direction: column; align-items: flex-start; }

  /* Boczna kolumna usług i oś czasu schodzą pod siebie. */
  .svcx { grid-template-columns: 1fr; gap: 2rem; }
  .svcx__aside { position: static; }
  /* Serpentyna nie miesci sie na telefonie: wraca prosty pion po lewej. */
  .run__svg { display: none; }
  .run__rig { aspect-ratio: auto; padding-left: 66px; }
  .run__pipe { display: block; position: absolute; left: 10px; top: 0; bottom: 0; width: 26px; }
  .run__bore {
    position: absolute; inset: 0; border-radius: 4px; overflow: hidden;
    background: linear-gradient(90deg, #0A1D3A 0%, #143566 26%, #1E4A8C 50%, #143566 74%, #0A1D3A 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  }
  .run__water {
    position: absolute; left: 0; right: 0; top: 0; height: 100%;
    transform: scaleY(var(--progress, 0)); transform-origin: top;
    transition: transform 320ms linear;
    background: linear-gradient(90deg, #1C6FB8 0%, #46A8EE 30%, #9BD8FF 50%, #46A8EE 70%, #1C6FB8 100%);
  }
  .run__stages { position: static; }
  .stage { position: relative; left: auto; top: auto; width: auto; padding: clamp(1.2rem, 4vh, 2rem) 0; }
  .stage__joint { position: absolute; left: -43px; top: 50%; }
  .stage__card,
  .stage[data-place="above"] .stage__card,
  .stage[data-place="below"] .stage__card {
    position: static; width: auto; transform: translateY(14px);
  }
  .stage.is-on .stage__card { transform: none; }

  /* Kolaż schodzi pod tekst - nadal siatka 2×2, tylko węższa. */
  .intro__inner { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
  .intro__media { max-width: 560px; }
  .intro__lead { max-width: none; }
}

@media (max-width: 900px) {
  .header__inner { gap: .8rem; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 350px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .1rem;
    padding: calc(var(--header-h) + 1.4rem) 1.3rem 2rem;
    background: var(--surface);
    box-shadow: -20px 0 60px -24px rgba(20,24,30,.5);
    transform: translateX(100%);
    transition: transform 340ms var(--ease-out);
    z-index: 99; overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: .9rem .9rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__phone {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: 1.2rem; min-height: 52px;
    background: var(--blue); color: #fff; border-radius: var(--r-pill);
    font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(20,24,30,.55); opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .callbar { display: flex; }
  /* Stopka nie moze konczyc sie pod przyklejonym paskiem telefonu. */
  .footer { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .to-top { display: none; }
  .toast { bottom: calc(5rem + env(safe-area-inset-bottom)); }

  .work__head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 820px) {
  /* `.util__list li` ma wyższą specyficzność - trzeba ją tu przebić. */
  .util__list li.util__hide-lg { display: none; }
}

@media (max-width: 760px) {
  .rates__grid { grid-template-columns: 1fr; }
  .work__grid { grid-auto-rows: 210px; }
  .band__inner { flex-direction: column; align-items: flex-start; }

  /* Cena schodzi pod opis, strzalka znika - nie ma jej czym pokazac na dotyku. */
  .svcx__row { grid-template-columns: auto 1fr; gap: .5rem 1rem; }
  .svcx__price { grid-column: 2; }
  .svcx__arrow { display: none; }
}

@media (max-width: 760px) {
  /* Wąski kadr ucina ciemną strefę grafiki - scrim musi ją odtworzyć. */
  .hero__bg { object-position: 72% center; }
  .hero__scrim {
    background:
      linear-gradient(0deg, rgba(9,19,31,.94) 12%, rgba(9,19,31,.72) 52%, rgba(9,19,31,.55) 100%);
  }
}

@media (max-width: 640px) {
  .util__list li.util__hide-md { display: none; }
  /* Cele dotykowe: ikony w stopce i linki prawne do 44px. */
  .socials a { width: 44px; height: 44px; }
  .footer__legal a { padding-block: .55rem; }
  .util { font-size: .8rem; }
  .util__inner { gap: .8rem; }
  .util__status { display: none; }
  /* Ikony społecznościowe są też w stopce - na wąskim pasku tylko zaśmiecają. */
  .util__socials { display: none; }
  .work__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .wcard--wide { grid-column: span 1; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero__card { width: 100%; }
  .faq__a { padding-right: 1rem; }
  .intro__stats { grid-template-columns: 1fr; }
  .plogo__name { font-size: .92rem; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 1.3rem; }
  .rates__list li { font-size: .95rem; padding-inline: .55rem; }
  .rates__col { padding: 1.2rem 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reviews__track, .partners__track { animation: none !important; }
  .stage__card { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .util, .header, .callbar, .to-top, .toast, .band, .reviews { display: none !important; }
  body { background: #fff; }
  .hero { min-height: 0; }
  .reveal { opacity: 1; transform: none; }
}
