/* Hydro-Serwis Wisłok
   Paleta: granat instalacyjny + żółty z taśmy do oznaczania rur.
   Typografia: Archivo (oś szerokości: nagłówki szerokie, tekst normalny). */

:root {
  --navy-950: #0A1830;
  --navy-900: #10223A;
  --navy-800: #1A3150;
  --navy-700: #264469;
  --yellow: #FFC21A;
  --yellow-deep: #E6A800;
  --paper: #F3F5F8;
  --paper-line: #D8DFE8;
  --ink: #10223A;
  --ink-soft: #46566C;
  --mist: #A9B8CC;
  --water: #4FB3E8;
  --line: rgba(255, 255, 255, .14);

  --font: "Archivo", system-ui, sans-serif;
  --wide: 118;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 3.4vw, 3rem);
  --step-4: clamp(2.5rem, 5.4vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: #fff;
  background: var(--navy-900);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.section--paper :focus-visible { outline-color: var(--navy-700); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--navy-950); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { left: 8px; }
.hidden-field { position: absolute; left: -9999px; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; flex: none; }

/* ---------- typografia ---------- */
.h2 {
  font-size: var(--step-3);
  font-weight: 800;
  font-variation-settings: "wdth" var(--wide);
  letter-spacing: -.01em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 18ch;
}
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--mist); max-width: 52ch; }
.section--paper .lead { color: var(--ink-soft); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  font-variation-settings: "wdth" 108;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--navy-950); }
.btn--yellow:hover { background: #FFD24F; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { min-height: 44px; padding: .5rem 1rem; }
.btn--block { width: 100%; }

/* ---------- taśma awaryjna ---------- */
.tape { background: var(--yellow); color: var(--navy-950); font-weight: 600; font-size: .95rem; }
.tape__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 40px; text-align: center; }
.tape a { font-weight: 800; font-variation-settings: "wdth" 110; text-decoration: none; border-bottom: 2px solid currentColor; white-space: nowrap; }
.tape__flow {
  flex: 0 1 140px; height: 12px;
  background: linear-gradient(135deg, transparent 38%, var(--navy-950) 38% 62%, transparent 62%) 0 0 / 12px 12px repeat-x;
  -webkit-mask: linear-gradient(to right, transparent, #000 30%);
          mask: linear-gradient(to right, transparent, #000 30%);
  opacity: .8;
}
.tape__flow:last-child { -webkit-mask: linear-gradient(to left, transparent, #000 30%); mask: linear-gradient(to left, transparent, #000 30%); }

/* ---------- nagłówek ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 24, 48, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.15rem; line-height: 1; font-variation-settings: "wdth" 120; letter-spacing: -.01em; }
.logo__text small { font-size: .8rem; font-weight: 600; color: var(--yellow); letter-spacing: .02em; margin-top: .25rem; font-variation-settings: "wdth" 125; }

.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__list a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  text-decoration: none; font-weight: 600; color: #DCE4EE; border-radius: var(--radius);
  transition: color .15s ease;
}
.nav__list a:not(.btn):hover { color: var(--yellow); }
.nav__cta { margin-left: .75rem; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 600;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav__list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--navy-950); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a:not(.btn) { min-height: 52px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; min-height: 52px; }
}

/* ---------- rura postępu (tylko szerokie ekrany) ---------- */
.rail { display: none; }
@media (min-width: 1440px) {
  .rail { display: block; position: fixed; left: 34px; top: 50%; transform: translateY(-40%); height: 58vh; width: 14px; z-index: 40; }
  .rail__pipe {
    position: absolute; inset: 0; border-radius: 7px; overflow: hidden;
    background: linear-gradient(90deg, #1A3150, #2D4C74 45%, #1A3150);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  }
  .rail__water {
    position: absolute; left: 2px; right: 2px; top: 0; height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #2E8FC4, var(--water) 50%, #2E8FC4);
    transform-origin: top; transform: scaleY(var(--fill, 0));
  }
  .rail__joints { position: absolute; inset: 0; }
  .rail__joints li { position: absolute; left: -5px; width: 24px; transform: translateY(-50%); }
  .rail__joints a {
    display: block; width: 24px; height: 10px; border-radius: 2px;
    background: #3A5A82; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25);
    transition: background-color .2s ease;
  }
  .rail__joints a.is-past { background: var(--yellow); }
  .rail__joints a span {
    position: absolute; left: 34px; top: 50%; transform: translate(-6px, -50%);
    white-space: nowrap; font-size: .85rem; font-weight: 700; font-variation-settings: "wdth" 110;
    background: var(--navy-950); color: #fff; padding: .25rem .6rem; border-radius: 4px;
    opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
  }
  .rail__joints a:hover span, .rail__joints a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
  /* wydłużony obszar kliknięcia */
  .rail__joints a::before { content: ""; position: absolute; inset: -12px -6px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,24,48,.97) 0%, rgba(10,24,48,.9) 42%, rgba(10,24,48,.45) 72%, rgba(10,24,48,.55) 100%),
    linear-gradient(0deg, rgba(10,24,48,.9), transparent 35%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem);
  min-height: min(86vh, 860px);
}
.hero__place { color: var(--yellow); font-weight: 700; font-variation-settings: "wdth" 112; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.hero__place::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.hero__title {
  font-size: var(--step-4);
  font-weight: 850;
  font-variation-settings: "wdth" 122;
  line-height: .94;
  letter-spacing: -.02em;
}
.hero__title .line { display: block; }
.hero__title .line--sub {
  margin-top: .9rem;
  font-size: .5em; font-weight: 600; letter-spacing: -.005em; line-height: 1.1;
  font-variation-settings: "wdth" 100;
  color: #DCE4EE;
}
.hero__lead { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; color: var(--mist); max-width: 46ch; }

.dispatch { display: flex; flex-wrap: wrap; gap: 0; margin: 2rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10,24,48,.6); max-width: 560px; }
.dispatch__item { flex: 1 1 220px; padding: .9rem 1.2rem; }
.dispatch__item + .dispatch__item { border-left: 1px solid var(--line); }
.dispatch dt { font-size: var(--step--1); color: var(--mist); }
.dispatch dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.125rem; font-variation-settings: "wdth" 108; display: flex; align-items: center; gap: .55rem; }
.dispatch__dot { width: 10px; height: 10px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); flex: none; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* formularz zgłoszenia */
.order {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 8px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.order__title { font-size: 1.6rem; font-weight: 800; font-variation-settings: "wdth" var(--wide); }
.order__note { color: var(--mist); font-size: var(--step--1); margin: .35rem 0 1.1rem; }
.order__status { margin-top: .8rem; font-size: .95rem; min-height: 1.4em; }
.order__status.is-ok { color: #7EE2A8; }
.order__status.is-err { color: #FFB4A8; }
.order .field + .field { margin-top: .8rem; }
.order .btn { margin-top: 1.1rem; }

.field label, .field legend { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .3rem; }
.field__opt { font-weight: 400; color: var(--mist); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem;
  background: var(--navy-950); color: #fff;
  border: 1px solid #36507A; border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC21A' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px; padding-right: 2.4rem; }
.field input::placeholder, .field textarea::placeholder { color: #7489A6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,194,26,.25); }
.field__error { display: none; margin-top: .3rem; font-size: .875rem; color: #FFB4A8; }
.field.is-invalid input { border-color: #FF8A78; }
.field.is-invalid .field__error { display: block; }

/* ---------- sekcje ---------- */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--navy { background: var(--navy-900); }
.section--deep { background: var(--navy-950); }

/* O nas */
.about__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem);
  grid-template-areas: "text photo" "promises promises";
}
.about__text { grid-area: text; align-self: center; }
.about__text .lead { margin-top: 1.4rem; }
.about__text p + p { margin-top: 1rem; max-width: 58ch; color: var(--ink-soft); }
.about__photo { grid-area: photo; position: relative; }
.about__photo::after {
  content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; z-index: 0;
  border: 4px solid var(--yellow); border-radius: 4px;
}
.about__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 9 / 10; object-fit: cover; border-radius: 4px; }

.promises {
  grid-area: promises;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  margin-top: 1rem;
}
.promises li { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--paper-line); }
.promises li:not(:nth-child(3n + 1)) { padding-left: 1.5rem; border-left: 1px solid var(--paper-line); }
.promises h3 { font-size: var(--step-1); font-weight: 800; font-variation-settings: "wdth" 110; display: flex; align-items: center; gap: .6rem; }
.promises h3::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 4px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310223A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.promises p { margin-top: .5rem; color: var(--ink-soft); font-size: 1rem; }

/* Usługi */
.services__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.services__photo { position: sticky; top: 104px; }
.services__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.badge {
  position: absolute; right: -1rem; bottom: 2rem;
  background: var(--yellow); color: var(--navy-950);
  padding: .9rem 1.2rem; border-radius: 4px;
  font-weight: 700; line-height: 1.1; font-variation-settings: "wdth" 110;
  display: flex; align-items: center; gap: .6rem;
}
.badge strong { font-size: 2.6rem; font-weight: 900; font-variation-settings: "wdth" 125; }
.services__body .lead { margin-top: 1.2rem; }
.svc { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.svc__item {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 1.1rem; align-items: start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.svc__icon { width: 44px; height: 44px; padding: 9px; border-radius: 6px; background: var(--navy-800); fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: var(--step-1); font-weight: 750; font-variation-settings: "wdth" 108; }
.svc p { margin-top: .3rem; color: var(--mist); font-size: 1rem; max-width: 50ch; }
.svc__price { font-weight: 800; font-variation-settings: "wdth" 110; color: var(--yellow); white-space: nowrap; padding-top: .15rem; font-feature-settings: "tnum"; }

/* Awaria */
.emergency { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section); background: var(--navy-950); }
.emergency__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.8); }
.emergency::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,24,48,.96) 30%, rgba(10,24,48,.8)); }
.emergency__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.emergency .btn { margin-top: 2rem; }
.steps-now { counter-reset: s; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.steps-now li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: 1.3rem 1.4rem; background: rgba(10,24,48,.88); }
.steps-now li::before {
  content: counter(s); grid-row: span 2;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 2px solid var(--yellow); border-radius: 50%;
  color: var(--yellow); font-weight: 800; font-size: 1.1rem;
}
.steps-now h3 { font-size: var(--step-1); font-weight: 750; font-variation-settings: "wdth" 108; }
.steps-now p { margin-top: .3rem; color: var(--mist); font-size: 1rem; }

/* Cennik / kalkulator */
.pricing__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.calc {
  margin-top: 3rem;
  display: grid; grid-template-columns: 1.35fr 1fr;
  background: #fff; border: 1px solid var(--paper-line); border-radius: 10px; overflow: hidden;
}
.calc__inputs { padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.6rem; align-content: start; }
.calc .field select, .calc .field input { background-color: var(--paper); color: var(--ink); border-color: #C3CDDA; }
.calc .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310223A' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.calc .field select:focus, .calc .field input:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(38,68,105,.2); }
.qty { display: flex; max-width: 220px; }
.qty input { text-align: center; border-radius: 0; -moz-appearance: textfield; font-weight: 700; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty__btn { width: 48px; flex: none; border: 1px solid #C3CDDA; background: #fff; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.qty__btn:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.qty__btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.qty__btn:hover { background: var(--paper); }

.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.choice legend { font-size: .9rem; font-weight: 600; margin-bottom: .45rem; padding: 0; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 64px;
  padding: .65rem .8rem; border: 1px solid #C3CDDA; border-radius: var(--radius);
  font-weight: 700; line-height: 1.25; font-size: .98rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice small { font-weight: 500; color: var(--ink-soft); font-size: .85rem; margin-top: .15rem; }
.choice label:hover span { border-color: var(--navy-700); }
.choice input:checked + span { border: 2px solid var(--navy-900); background: #FFF6D6; padding: calc(.65rem - 1px) calc(.8rem - 1px); }
.choice input:focus-visible + span { outline: 3px solid var(--navy-700); outline-offset: 2px; }

.calc__result { background: var(--navy-900); color: #fff; padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.calc__label { color: var(--mist); font-weight: 600; }
.calc__price {
  margin-top: .4rem;
  font-size: clamp(2.1rem, 8.5vw, 3.6rem); font-weight: 900; line-height: 1; white-space: nowrap;
  font-variation-settings: "wdth" 115; letter-spacing: -.02em; font-feature-settings: "tnum";
  color: var(--yellow);
}
.calc__desc { margin-top: 1rem; font-weight: 600; }
.calc__fine { margin-top: .6rem; color: var(--mist); font-size: .92rem; }
.calc__result .btn { margin-top: auto; }
.calc__fine + .btn { margin-top: 1.75rem; }

/* Przebieg (rura z kołnierzami) */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; }
.flow::before {
  content: ""; position: absolute; left: 22px; right: 12%; top: 16px; height: 12px; border-radius: 6px;
  background: linear-gradient(180deg, #2D4C74, #1A3150 60%, #142842);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.flow__step { position: relative; }
.flow__joint {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--yellow); color: var(--navy-950);
  font-weight: 900; font-size: 1.2rem; font-variation-settings: "wdth" 120;
  box-shadow: 0 0 0 6px var(--navy-900);
}
.flow h3 { margin-top: 1.4rem; font-size: var(--step-1); font-weight: 750; font-variation-settings: "wdth" 110; }
.flow p { margin-top: .45rem; color: var(--mist); font-size: 1rem; max-width: 32ch; }

/* Realizacje */
.works__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.works__head .lead { max-width: 38ch; font-size: 1.05rem; }
.works__grid {
  margin-top: 2.8rem;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem 1.25rem;
}
.work { display: flex; flex-direction: column; }
.work img { width: 100%; object-fit: cover; border-radius: 4px; flex: 1; min-height: 0; }
.work figcaption { margin-top: .8rem; color: var(--mist); font-size: .95rem; }
.work figcaption strong { display: block; color: #fff; font-size: 1.05rem; font-variation-settings: "wdth" 108; }
.work--a { grid-column: span 4; } .work--a img { aspect-ratio: 16 / 10; }
.work--b { grid-column: span 2; } .work--b img { aspect-ratio: auto; height: 100%; }
.work--c, .work--d, .work--e { grid-column: span 2; }
.work--c img, .work--d img, .work--e img { aspect-ratio: 4 / 3; }

/* Opinie + FAQ */
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.reviews__note { margin-top: .8rem; color: var(--ink-soft); font-size: .92rem; }
.review { margin-top: 1.6rem; padding: 1.4rem 1.5rem; background: #fff; border-left: 4px solid var(--yellow); border-radius: 0 6px 6px 0; }
.stars { display: flex; gap: 3px; }
.stars i { width: 16px; height: 16px; background: var(--yellow-deep); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.review blockquote { margin: .7rem 0 0; font-size: 1.06rem; line-height: 1.55; }
.review figcaption { margin-top: .8rem; font-weight: 700; font-size: .95rem; }
.review figcaption span { font-weight: 400; color: var(--ink-soft); margin-left: .4rem; }

.questions .h2 { margin-bottom: 1.6rem; }
.questions details { border-top: 1px solid var(--paper-line); }
.questions details:last-child { border-bottom: 1px solid var(--paper-line); }
.questions summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 64px; padding: .9rem 0;
  font-weight: 700; font-size: 1.12rem; font-variation-settings: "wdth" 106;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC21A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.questions details[open] summary::after { transform: rotate(45deg); }
.questions summary:hover { color: var(--navy-700); }
.questions details p { padding: 0 2.5rem 1.3rem 0; color: var(--ink-soft); max-width: 62ch; }

/* Dojazd */
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.area__text .lead { margin-top: 1.2rem; }
.zones { margin: 2rem 0 0; display: grid; gap: .75rem; }
.zone { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 6px; border-left-width: 5px; }
.zone--1 { border-left-color: var(--yellow); }
.zone--2 { border-left-color: #C9A43A; }
.zone--3 { border-left-color: #6E7F96; }
.zone dt { font-weight: 800; font-variation-settings: "wdth" 110; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; }
.zone dt span { color: var(--yellow); font-weight: 700; }
.zone dd { margin: .25rem 0 0; color: var(--mist); font-size: .98rem; }

.map svg { width: 100%; height: auto; max-width: 560px; margin-inline: auto; display: block; overflow: visible; }
.map__ring { fill: none; stroke-width: 1.5; }
.map__ring--3 { fill: rgba(110,127,150,.08); stroke: rgba(169,184,204,.35); stroke-dasharray: 3 6; }
.map__ring--2 { fill: rgba(201,164,58,.1); stroke: rgba(255,194,26,.45); stroke-dasharray: 3 6; }
.map__ring--1 { fill: rgba(255,194,26,.2); stroke: var(--yellow); }
.map__river { fill: none; stroke: var(--water); stroke-width: 4; stroke-linecap: round; opacity: .8; }
.map__river-label { fill: var(--water); font-size: 15px; font-style: italic; font-weight: 600; }
.map__towns circle { fill: #fff; }
.map__towns text { fill: #DCE4EE; font-size: 15px; font-weight: 600; }
.map__base rect { fill: var(--yellow); }
.map__base text { fill: #fff; font-size: 19px; font-weight: 800; font-variation-settings: "wdth" 115; }
.map__km { fill: var(--mist); font-size: 13px; font-weight: 600; }

/* Kontakt */
.contact { background: var(--yellow); color: var(--navy-950); padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact__phone {
  display: inline-block; margin-top: 1.2rem;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 900; line-height: 1; white-space: nowrap;
  font-variation-settings: "wdth" 118; letter-spacing: -.02em;
  text-decoration: none; font-feature-settings: "tnum";
}
.contact__phone:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.contact__sub { margin-top: .8rem; font-weight: 600; font-size: var(--step-1); }
.contact .btn--ghost { margin-top: 1.8rem; border-color: var(--navy-950); color: var(--navy-950); }
.contact .btn--ghost:hover { background: var(--navy-950); color: var(--yellow); }
.contact :focus-visible { outline-color: var(--navy-950); }
.contact__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; border-top: 3px solid var(--navy-950); padding-top: 1.6rem; }
.contact__facts dt { font-weight: 800; font-variation-settings: "wdth" 110; }
.contact__facts dd { margin: .3rem 0 0; line-height: 1.5; overflow-wrap: anywhere; }

.footer { background: var(--navy-950); color: var(--mist); font-size: .9rem; padding-block: 1.5rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; }

/* dolny pasek na telefonie */
.callbar { display: none; }

/* ---------- animacja wejścia (jedna, w hero) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line, .hero__lead, .dispatch, .hero__actions, .order {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero__title .line:nth-child(2) { animation-delay: .08s; }
  .hero__title .line--sub { animation-delay: .18s; }
  .hero__lead { animation-delay: .26s; }
  .dispatch { animation-delay: .34s; }
  .hero__actions { animation-delay: .42s; }
  .order { animation-delay: .3s; animation-name: slide; }
  .dispatch__dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- responsywność ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .order { max-width: 560px; }
  .calc { grid-template-columns: 1fr; }
  .calc__result .btn { margin-top: 1.75rem; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; grid-template-areas: "text" "photo" "promises"; }
  .about__photo { margin-right: 1.5rem; max-width: 560px; }
  .promises { grid-template-columns: 1fr 1fr; }
  .promises li, .promises li:not(:nth-child(3n + 1)) { padding: 1.3rem 1.2rem 1.3rem 0; border-left: 0; }
  .promises li:nth-child(2n) { padding-left: 1.2rem; border-left: 1px solid var(--paper-line); }

  .services__grid, .emergency__grid, .faq__grid, .area__grid, .contact__grid, .pricing__head { grid-template-columns: 1fr; }
  .services__photo { position: relative; top: 0; max-width: 560px; }
  .services__photo img { aspect-ratio: 4 / 3; }
  .badge { right: 1rem; }

  .flow { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .flow::before { display: none; }

  .works__grid { grid-template-columns: 1fr 1fr; }
  .work--a { grid-column: span 2; }
  .work--b, .work--c, .work--d, .work--e { grid-column: span 1; }
  .work--b img { aspect-ratio: 4 / 3; height: auto; }
}

@media (max-width: 900px) { .tape__flow { display: none; } }
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .tape { font-size: .88rem; }
  .logo__text { font-size: 1rem; }
  .hero__title .line--sub { font-size: .56em; }
  .dispatch__item + .dispatch__item { border-left: 0; border-top: 1px solid var(--line); }
  .hero__actions .btn { width: 100%; }
  .order { padding: 1.3rem 1.1rem; }

  .promises { grid-template-columns: 1fr; }
  .promises li, .promises li:nth-child(2n) { padding: 1.2rem 0; border-left: 0; }

  .svc__item { grid-template-columns: 40px 1fr; gap: .9rem; }
  .svc__icon { width: 40px; height: 40px; padding: 8px; }
  .svc__price { grid-column: 2; padding-top: 0; }

  .steps-now li { grid-template-columns: 2.5rem 1fr; padding: 1.1rem; }
  .steps-now li::before { width: 2.1rem; height: 2.1rem; font-size: 1rem; }

  .choice { grid-template-columns: 1fr; }
  .choice span { min-height: 52px; flex-direction: row; justify-content: space-between; align-items: center; gap: 1rem; }
  .choice small { margin-top: 0; }

  /* rura pionowa w przebiegu na telefonie */
  .flow { grid-template-columns: 1fr; gap: 1.8rem; padding-left: 0; }
  .flow::before { display: block; left: 16px; right: auto; top: 22px; bottom: 22px; width: 12px; height: auto; background: linear-gradient(90deg, #2D4C74, #1A3150 60%, #142842); }
  .flow__step { display: grid; grid-template-columns: 44px 1fr; column-gap: 1.1rem; }
  .flow__joint { grid-row: span 2; }
  .flow h3 { margin-top: .5rem; }

  .works__grid { grid-template-columns: 1fr; }
  .work--a, .work--b, .work--c, .work--d, .work--e { grid-column: auto; }
  .work--a img { aspect-ratio: 4 / 3; }

  .contact__facts { grid-template-columns: 1fr; }
  .questions details p { padding-right: 0; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 8px; background: var(--navy-950); border-top: 1px solid var(--line);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 50px; border-radius: var(--radius);
    font-weight: 800; text-decoration: none; font-variation-settings: "wdth" 110;
  }
  .callbar__call { background: var(--yellow); color: var(--navy-950); }
  .callbar__form { border: 2px solid rgba(255,255,255,.4); color: #fff; }
}

/* mapka: większe opisy na wąskich ekranach (SVG skaluje się w dół) */
@media (max-width: 640px) {
  .map { margin-inline: -8px; }
  .map__towns text { font-size: 23px; }
  .map__towns circle { r: 6px; }
  .map__base text { font-size: 28px; }
  .map__km { font-size: 20px; }
  .map__river-label { font-size: 22px; }
}
