/* =========================================================
   BRANT · szczelność dachu — styles
   Bazowy projekt: Figma 1920 px, marginesy 80 px.
   Wartości "clamp(min, Xvw, max)" skalują się liniowo do 1920 px.
   ========================================================= */

/* ---------- Fonty (self-hosted, bez Google Fonts – zgodne z RODO) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/archivo-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/archivo-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/archivo-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/archivo-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/archivo-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/archivo-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/archivo-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/archivo-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --navy: #091321;
  --orange: #ff5a1f;
  --orange-hover: #ff7442;
  --grey: #5b6472;
  --bg-grey: #eef0f3;
  --line: #d9dde3;
  --line-input: #c4cad3;
  --white: #fff;

  --pad: clamp(20px, 4.1667vw, 80px);
  --nav-h: clamp(72px, 5.625vw, 108px);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }

section[id] { scroll-margin-top: var(--nav-h); }

.container {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--orange);
  color: var(--navy);
  padding: 12px 18px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Typografia wspólna ---------- */
.h2 {
  font-weight: 500;
  font-size: clamp(30px, 2.5vw, 48px);
  line-height: 1.125;
  letter-spacing: -0.021em;
  text-transform: uppercase;
  color: var(--navy);
}
.h3 {
  font-weight: 500;
  font-size: clamp(18px, 1.146vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}
.h4 {
  font-weight: 500;
  font-size: clamp(18px, 1.042vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: var(--navy);
}
.lead { font-size: 16.5px; line-height: 28px; color: var(--grey); }
.text { font-size: 15.5px; line-height: 26px; color: var(--grey); }
.num  { font-size: 13px; line-height: 1.3; color: var(--grey); }

.section--grey { background: var(--bg-grey); }
.section--dark { background: var(--navy); color: var(--white); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font);
  text-transform: uppercase;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--orange {
  background: var(--orange);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 22px 30px;
}
.btn--orange:hover { background: var(--orange-hover); }
.btn--white {
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.3px;
  padding: 13px 22px;
}
.btn--white:hover { background: var(--orange); }
.btn--block {
  width: 100%;
  justify-content: space-between;
  font-weight: 600;
}
.btn--block span:last-child { font-size: 15px; letter-spacing: 0; transition: transform .2s ease; }
.btn--block:hover span:last-child { transform: translateX(4px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .56);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: var(--white);
  transition: background-color .25s ease;
}
.nav.is-scrolled { background: rgba(9, 19, 33, .92); }
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { width: clamp(46px, 3.594vw, 69px); height: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__menu a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav__menu a:not(.btn):hover { color: var(--orange); }
.nav__menu a.is-strong { font-weight: 700; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   01 HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 560px;
  height: 100vh;
  height: 100svh;
  max-height: 940px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: #1d2a2c;
}
.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg img { object-fit: cover; object-position: 50% 50%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: clamp(32px, 3.333vw, 64px);
}
.hero__eyebrow {
  font-size: clamp(12px, 1.146vw, 22px);
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: clamp(16px, 1.5625vw, 30px);
}
.hero__title {
  font-weight: 500;
  font-size: clamp(38px, 3.958vw, 76px);
  line-height: 1.026;
  letter-spacing: -0.0526em;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 1.5625vw, 30px);
}
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero__lead {
  max-width: 620px;
  font-size: 18px;
  line-height: 30px;
  color: rgba(255, 255, 255, .82);
}

/* =========================================================
   PARAMETRY
   ========================================================= */
.params {
  padding-top: clamp(40px, 3.7vw, 71px);
  padding-bottom: clamp(24px, 1.875vw, 36px);
}
.params__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
}
.param { display: flex; flex-direction: column; gap: 10px; }
.param__value {
  font-weight: 500;
  font-size: clamp(28px, 1.875vw, 36px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: #000;
}
.param__label {
  font-size: 14.5px;
  line-height: 22px;
  color: rgba(0, 0, 0, .6);
}

/* =========================================================
   02 MANIFEST
   ========================================================= */
.manifest {
  padding-top: clamp(72px, 7.292vw, 140px);
  padding-bottom: clamp(64px, 6.771vw, 130px);
}
.manifest__title {
  max-width: 1000px;
  font-weight: 500;
  font-size: clamp(30px, 2.604vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.024em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 31px;
}
.manifest__text {
  max-width: 580px;
  font-size: 18px;
  line-height: 31px;
  color: var(--grey);
}

/* =========================================================
   03 USŁUGI
   ========================================================= */
.services {
  padding-top: 40px;
  padding-bottom: clamp(72px, 7.292vw, 140px);
}
.services__head {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 3.333vw, 64px);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service { display: flex; flex-direction: column; gap: 22px; }
.service__img {
  width: 100%;
  aspect-ratio: 570.67 / 700;
  object-fit: cover;
  background: var(--bg-grey);
}
.service__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.service__desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 23px;
  color: var(--grey);
}

/* =========================================================
   04 PRZYCZYNY
   ========================================================= */
.causes { padding-block: clamp(72px, 6.771vw, 130px); }
.causes__head {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-bottom: clamp(48px, 4.167vw, 80px);
}
.causes__head .lead { max-width: 520px; }
.causes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.cause {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
}

/* =========================================================
   05 METODY
   ========================================================= */
.methods {
  padding-top: clamp(64px, 4.115vw, 79px);
  padding-bottom: 43px;
}
.methods__head { display: flex; flex-direction: column; gap: 8px; }
.methods__title {
  font-weight: 500;
  font-size: clamp(32px, 2.917vw, 56px);
  line-height: 1.107;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.methods__lead {
  max-width: 1156px;
  font-size: 16.5px;
  line-height: 28px;
  color: rgba(255, 255, 255, .65);
}
.methods__list {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.583vw, 88px);
  margin-top: clamp(40px, 4.583vw, 88px);
}
.method {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-block: 48px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.method__body {
  flex: 0 1 600px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.method__title {
  font-weight: 500;
  font-size: clamp(26px, 1.771vw, 34px);
  line-height: 1.118;
  letter-spacing: -0.8px;
  text-transform: uppercase;
}
.method__text {
  font-size: 16.5px;
  line-height: 28px;
  color: rgba(255, 255, 255, .72);
}
.method__img {
  flex: 0 1 708px;
  min-width: 0;
  width: 100%;
  aspect-ratio: 708 / 250;
  object-fit: cover;
  background: #1b2333;
}

/* =========================================================
   06 PROCES
   ========================================================= */
.process {
  padding-top: clamp(56px, 3.802vw, 73px);
  padding-bottom: 48px;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 4.167vw, 80px);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 48px;
  position: relative;
}
.step__axis {
  position: relative;
  display: block;
  height: 14px;
  margin-right: -48px;          /* oś biegnie do następnego kroku */
  margin-bottom: 6px;           /* 20 px odstępu do treści (6 + gap 14) */
}
.step__axis::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: var(--white);
}
.step__axis::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 0;
  top: 6.5px;
  height: 1px;
  background: rgba(15, 27, 45, .25);
}
.step--last .step__axis::before { background: var(--orange); border-color: var(--orange); }
.step--last .step__axis::after { background: linear-gradient(90deg, rgba(15, 27, 45, .25), rgba(15, 27, 45, 0)); }

/* =========================================================
   08 FAQ
   ========================================================= */
.faq {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-top: clamp(56px, 3.802vw, 73px);
  padding-bottom: clamp(72px, 7.292vw, 140px);
}
.faq__list {
  flex: 0 1 1000px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}
.qa { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 30px;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .num { flex: 0 0 16px; }
.qa__q {
  flex: 1;
  font-weight: 500;
  font-size: clamp(18px, 1.146vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--navy);
}
.qa__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: background-color .2s ease;
}
.qa__icon::before { content: "+"; }
.qa[open] .qa__icon::before { content: "−"; }
.qa summary:hover .qa__icon { background: var(--orange-hover); }
.qa__a {
  max-width: 812px;
  padding-left: 52px;
  margin-top: -12px;            /* 18 px pod pytaniem (30 − 12) */
  padding-bottom: 30px;
  font-size: 16.5px;
  line-height: 28px;
  color: var(--grey);
}

/* =========================================================
   07 REALIZACJE
   ========================================================= */
.works {
  padding-top: clamp(72px, 7.292vw, 140px);
  padding-bottom: 57px;
}
.works__head { margin-bottom: clamp(40px, 3.333vw, 64px); }
.works__head .lead { max-width: 460px; }
.works__grid { display: flex; flex-direction: column; gap: 24px; }
.works__row { display: grid; gap: 24px; }
.works__row--top { grid-template-columns: 1096fr 640fr; }
.works__row--bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work {
  position: relative;
  overflow: hidden;
  background: #d9dde3;
}
.work img { width: 100%; height: 100%; object-fit: cover; }
.work--a { aspect-ratio: 1096 / 600; }
.work--b { aspect-ratio: 640 / 600; }
.work--c { aspect-ratio: 570.67 / 400; }
.work figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: none;
  line-height: 1.3;
}

/* =========================================================
   09 KONTAKT
   ========================================================= */
.contact { padding-block: clamp(72px, 7.292vw, 140px); }
.contact__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.contact__info { flex: 0 1 640px; min-width: 0; }
.contact__title {
  font-weight: 500;
  font-size: clamp(40px, 3.75vw, 72px);
  line-height: 1.028;
  letter-spacing: -0.0306em;
  text-transform: uppercase;
}
.contact__lead {
  max-width: 540px;
  margin-top: 28px;
  font-size: 17px;
  line-height: 29px;
  color: rgba(255, 255, 255, .7);
}
.contact__list { margin-top: clamp(48px, 5vw, 96px); }
.contact__list > div {
  display: flex;
  align-items: center;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.contact__list dt {
  flex: 0 0 160px;
  font-size: 11.5px;
  letter-spacing: 1.3px;
  color: rgba(255, 255, 255, .45);
}
.contact__list dd {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
}
.contact__list a:hover { color: var(--orange); }

/* Formularz */
.form {
  flex: 0 1 820px;
  min-width: 0;
  background: var(--white);
  color: var(--navy);
  padding: clamp(24px, 2.708vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.form__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.form__title {
  font-weight: 500;
  font-size: clamp(22px, 1.354vw, 26px);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.form__status-tag, .field label.mono, .field legend {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--grey);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-input);
  border-radius: 0;
  background: transparent;
  padding: 14px 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.2;
  color: var(--navy);
  outline: none;
  transition: border-color .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(91, 100, 114, .7); }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--navy); }
.field.has-error input,
.field.has-error textarea { border-bottom-color: #d93a00; }

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.field--chips { gap: 12px; }
.field--chips legend { padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--line-input);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.1;
  color: var(--navy);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip span:hover { border-color: var(--navy); }
.chip input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

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

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 18px;
  color: var(--grey);
  cursor: pointer;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #9aa2ae;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.consent input:checked { background: var(--navy); border-color: var(--navy); }
.consent input:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.consent.has-error input { border-color: #d93a00; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }

.form__msg { font-size: 14px; line-height: 1.4; min-height: 0; margin-top: -14px; }
.form__msg:empty { display: none; }
.form__msg.is-ok { color: #1c7c3c; }
.form__msg.is-error { color: #d93a00; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* =========================================================
   10 STOPKA
   ========================================================= */
.footer { padding-top: clamp(64px, 5.729vw, 110px); padding-bottom: 40px; }
.footer__top {
  display: grid;
  /* proporcje kolumn wg pozycji w Figmie (0 / 792 / 1153 / 1576 z 1760 px) */
  grid-template-columns: minmax(0, 792fr) minmax(max-content, 361fr) minmax(max-content, 423fr) minmax(max-content, 184fr);
  align-items: start;
}
.footer__top > * { padding-right: 24px; }
.footer__top > :last-child { padding-right: 0; }
.footer__brand { max-width: 523px; display: flex; flex-direction: column; }
.footer__name { font-weight: 500; font-size: 16px; }
.footer__desc {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 25px;
  color: rgba(255, 255, 255, .6);
}
.footer__logo { width: 96px; height: auto; margin-top: 42px; }
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
}
.footer__col .mono {
  font-size: 11.5px;
  letter-spacing: 1.3px;
  color: rgba(255, 255, 255, .45);
}
.footer__col a:hover { color: var(--orange); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}
.footer__legal { display: flex; gap: 32px; }
.footer__legal a:hover { color: var(--white); }

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

/* Laptop */
@media (max-width: 1280px) {
  .nav__menu { gap: 28px; }
  .nav__menu a:not(.btn) { font-size: 14px; letter-spacing: 1.2px; }
  .contact__info { flex-basis: 520px; }
}

/* Tablet */
@media (max-width: 1024px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__menu {
    /* absolute względem .nav (backdrop-filter tworzy containing block dla position: fixed) */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px var(--pad) 40px;
    background: var(--navy);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav.is-open { background: var(--navy); }
  .nav.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav__menu a:not(.btn) {
    width: 100%;
    padding: 20px 0;
    font-size: 22px;
    letter-spacing: .5px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .nav__menu .btn { margin-top: 32px; font-size: 13px; padding: 20px 28px; }

  .services__grid { grid-template-columns: 1fr; gap: 48px; }
  .service__img { aspect-ratio: 4 / 3; }

  .causes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }

  .method { flex-direction: column; align-items: stretch; gap: 32px; }
  .method__body { flex: none; max-width: 640px; gap: 20px; }
  .method__img { flex: none; }

  .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .step:nth-child(2) .step__axis::after { background: linear-gradient(90deg, rgba(15, 27, 45, .25), rgba(15, 27, 45, 0)); }

  .faq { flex-direction: column; gap: 32px; }
  .faq__list { flex: none; width: 100%; }

  .works__row--top, .works__row--bottom { grid-template-columns: 1fr; }
  .work--a, .work--b, .work--c { aspect-ratio: 3 / 2; }

  .contact__inner { flex-direction: column; gap: 56px; }
  .contact__info, .form { flex: none; width: 100%; }

  .footer__top { grid-template-columns: repeat(3, max-content); justify-content: space-between; row-gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Telefon */
@media (max-width: 640px) {
  .hero { min-height: 600px; max-height: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__lead { font-size: 16px; line-height: 26px; }
  .hero .btn--orange { width: 100%; justify-content: center; }
  .hero__eyebrow { letter-spacing: 1px; line-height: 1.5; }
  .hero__title { letter-spacing: -0.03em; }
  .hero__bg img { object-position: 42% 50%; }

  .params__list { grid-template-columns: 1fr; gap: 0; }
  .param {
    flex-direction: row;
    align-items: baseline;
    gap: 20px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
  }
  .param:last-child { border-bottom: 0; }
  .param__value { flex: 0 0 130px; font-size: 26px; }
  .param__label br { display: none; }

  .manifest__title br, .h2 br, .methods__title br, .contact__title br { display: none; }
  .manifest__text, .lead, .method__text, .qa__a { font-size: 16px; line-height: 26px; }

  .service__desc br { display: none; }

  .causes__grid { grid-template-columns: 1fr; gap: 0; }
  .cause { padding-block: 24px; border-top: 1px solid #cdd2d9; gap: 12px; }

  .method { padding-block: 32px; }
  .method__title { font-size: 22px; letter-spacing: -0.4px; }
  .method__img { aspect-ratio: auto; }

  /* proces: oś pionowa */
  .process__steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 36px 34px; gap: 10px; }
  .step__axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    height: auto;
    margin: 0;
  }
  .step__axis::after,
  .step:nth-child(2) .step__axis::after {
    left: 6.5px;
    right: auto;
    top: 14px;
    bottom: 0;
    width: 1px;
    height: auto;
    background: rgba(15, 27, 45, .25);
  }
  .step--last .step__axis::after { display: none; }
  .step--last { padding-bottom: 0; }

  .qa summary { gap: 14px; padding-block: 22px; align-items: flex-start; }
  .qa summary .num { padding-top: 4px; }
  .qa__icon { flex-basis: 32px; width: 32px; height: 32px; margin-top: -4px; }
  .qa__a { padding-left: 30px; margin-top: -8px; padding-bottom: 24px; }

  .work--a, .work--b, .work--c { aspect-ratio: 4 / 3; }
  .work figcaption { left: 12px; bottom: 12px; }

  .contact__list > div { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 18px; }
  .contact__list dt { flex: none; }
  .contact__list dd { font-size: 17px; word-break: break-word; }

  .form { gap: 26px; }
  .form__row { grid-template-columns: 1fr; gap: 26px; }

  .footer__top { grid-template-columns: 1fr; row-gap: 36px; }
  .footer__desc br { display: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
