/* ==========================================================================
   Gutzeka Group - one page
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */
/* Against: logotyp i krótkie etykiety (brak ą ę ś ć ż ź ń - nie używać w zdaniach) */
@font-face {
  font-family: "Against";
  src: url("../fonts/against-regular.woff2") format("woff2"),
       url("../fonts/against-regular.ttf") format("truetype");
  font-display: swap;
}
/* Billie Eilish: nagłówki (pełne polskie znaki; brak cyfry 1 - bez liczb) */
@font-face {
  font-family: "Billie";
  src: url("../fonts/billie-eilish.woff2") format("woff2"),
       url("../fonts/billie-eilish.ttf") format("truetype");
  font-display: swap;
}
/* Inter (SIL OFL): tekst ciągły */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  --paper: #f5f2ec;
  --paper-2: #e4ded3;
  --sand: #ebe6dd;
  --ink: #141414;
  --ink-soft: #3a3835;
  --muted: #7d776e;
  --line: #d6d0c5;
  --accent: #5b6150; /* stonowana oliwka */

  --f-logo: "Against", "Times New Roman", serif;
  --f-head: "Billie", "Times New Roman", serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 14vw, 180px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* starsze Safari (< 16) nie znają overflow: clip */
@supports not (overflow: clip) { body { overflow-x: hidden; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Type helpers ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.h2 {
  font-family: var(--f-head);
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -.005em;
}
.lead {
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-soft);
}

/* Buttons / links --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 13px/1 var(--f-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 16px; }

/* Header ------------------------------------------------------------------ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(245, 242, 236, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: inline-block; line-height: 0; text-decoration: none; }
.logo img { height: 30px; width: auto; }
@media (max-width: 480px) { .logo img { height: 24px; } }
.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 13px; font-weight: 450; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  transition: color .3s;
}
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: block; position: relative;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span {
    position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink);
    transition: transform .35s var(--ease), top .35s var(--ease);
  }
  .nav-toggle span:nth-child(1) { top: 18px; }
  .nav-toggle span:nth-child(2) { top: 26px; }
  .nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav a:last-child { border-bottom: 0; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .header { background: var(--paper); border-color: var(--line); }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px;
  padding-bottom: 72px;
  position: relative;
}
/* Trzy obszary: słowa w kroju logo, połączone cienką linią jak oś w Podejściu */
.hero__pillars {
  list-style: none; padding: 0;
  display: flex; align-items: center; flex-wrap: wrap;
  margin: 0 0 clamp(28px, 4.5vh, 56px);
}
.hero__pillars li { display: flex; align-items: center; }
.hero__pillars li + li::before {
  content: ""; display: block;
  width: clamp(20px, 5vw, 64px); height: 1px; background: var(--ink);
  margin: 0 clamp(12px, 1.6vw, 22px);
  opacity: .35;
}
.hero__pillars a {
  position: relative;
  display: inline-flex; align-items: flex-start; gap: 6px;
  font-family: var(--f-logo);
  font-size: clamp(21px, 2.5vw, 32px);
  line-height: 1;
  text-decoration: none;
  padding-bottom: 8px;
}
.hero__pillars a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.hero__pillars a:hover::after { transform: scaleX(1); }
.hero__pnum {
  font-family: var(--f-body);
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  color: var(--muted);
  margin-top: -2px;
}
@media (max-width: 480px) {
  .hero__pillars { flex-wrap: nowrap; }
  .hero__pillars a { font-size: clamp(14px, 4.3vw, 20px); gap: 3px; }
  .hero__pillars li + li::before { width: 2.5vw; margin: 0 2vw; }
  .hero__pnum { font-size: 9px; letter-spacing: 0; }
}
.hero__title {
  font-family: var(--f-head);
  font-size: clamp(48px, min(8.6vw, 13.5vh), 132px);
  line-height: .95;
  letter-spacing: -.01em;
  max-width: 11ch;
}
.hero__bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 32px;
  margin-top: clamp(28px, 5vh, 64px);
}
.hero__sub { margin: 0; max-width: 30ch; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px;
  width: 1px; height: 48px; background: var(--line); overflow: hidden;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 0; top: -48px; width: 1px; height: 48px;
  background: var(--ink);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 48px; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll::after { animation: none; } }
@media (max-height: 700px) { .hero__scroll { display: none; } }

/* Ł / ł w kroju Billie (main.js) -----------------------------------------------
   Billie nie ma "ł", a jego "Ł" jest bez kreski. Litera zostaje w tekście
   (czytniki, wyszukiwarki, kopiowanie), a kreskę dorysowujemy w stylu kroju:
   włoskowa ukośna linia przez trzon (trzon "l"/"L": 0.067-0.147 em). */
.lsl { position: relative; --lsl-base: .999em; } /* --lsl-base: od góry litery do linii bazowej (main.js) */
.lsl--low { -webkit-text-fill-color: transparent; } /* ukryty zastępczy glif "ł" */
.lsl--low::before {
  content: "l";
  position: absolute; left: 0;
  top: calc(var(--lsl-base) - .999em); /* .999em = wysokość Billie nad linią bazową */
  line-height: normal;
  -webkit-text-fill-color: currentColor;
}
.lsl::after {
  content: "";
  position: absolute;
  left: .002em; width: .21em;
  height: max(1px, .017em);
  top: calc(var(--lsl-base) - var(--lsl-y));
  background: currentColor;
  transform: rotate(-26deg);
}
.lsl--low { --lsl-y: .34em; }
.lsl--cap { --lsl-y: .3em; }

/* Pola kropek (assets/js/dots.js) ------------------------------------------ */
.dots { position: absolute; pointer-events: none; display: block; }
.hero__pillars, .hero__title, .hero__bottom { position: relative; z-index: 1; }
.hero__dots {
  --s: min(30vw, 48vh, 460px);
  width: var(--s); height: var(--s);
  right: calc(var(--gutter) - 12px); top: calc(50% - 6px);
  transform: translateY(-50%);
}
@media (max-width: 760px) {
  .hero__dots { --s: 46vw; right: 0; top: 74px; transform: none; opacity: .75; }
}

/* Image slots ------------------------------------------------------------- */
.media {
  position: relative; overflow: hidden;
  background: var(--paper-2);
}
.media picture { display: contents; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-empty img { display: none; }

.band { aspect-ratio: 21 / 9; }
/* Paralaksa: zdjęcie ma 16% zapasu i przesuwa się wolniej niż strona (main.js) */
.band img {
  position: absolute; left: 0; top: -8%;
  height: 116%;
  will-change: transform;
}
@media (max-width: 700px) { .band { aspect-ratio: 4 / 3; } }

/* Approach ---------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section--line { border-top: 1px solid var(--line); }
.section--tint { background: var(--sand); }
.section--tight-b { padding-bottom: clamp(64px, 8vw, 112px); }
.section--tight-t { padding-top: clamp(64px, 8vw, 112px); }

.approach__grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 8vw, 120px);
}
.approach__text p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .approach__grid { grid-template-columns: 1fr; } }

/* Chain: interaktywna oś - pozioma (desktop) / pionowa (mobile) ------------- */
.chain {
  --steps: 6;
  margin-top: clamp(72px, 10vw, 128px);
  position: relative;
}

/* Klamry nad osią: otoczenie (4 kroki) i człowiek (2 kroki) */
.chain__groups {
  display: grid; grid-template-columns: repeat(var(--steps), 1fr);
  margin-bottom: 26px;
}
.chain__group {
  position: relative;
  display: flex; align-items: baseline; gap: 10px;
  padding: 0 0 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.chain__group::before, .chain__group::after {
  content: ""; position: absolute; bottom: -1px; width: 1px; height: 7px; background: inherit;
  background: currentColor; opacity: .5;
}
.chain__group::before { left: 0; }
.chain__group::after { right: 0; }
.chain__group em {
  font-style: normal; font-family: var(--f-logo);
  font-size: 15px; letter-spacing: .04em; text-transform: none;
  color: var(--ink); opacity: .35; transition: opacity .5s var(--ease);
}
.chain__group--world { grid-column: 1 / 5; margin-right: 24px; }
.chain__group--human { grid-column: 5 / 7; }
.chain.is-world .chain__group--world,
.chain.is-human .chain__group--human { color: var(--ink); border-color: var(--ink); }
.chain.is-world .chain__group--world em,
.chain.is-human .chain__group--human em { opacity: 1; }

/* Oś */
.chain__track { position: relative; }
.chain__rail {
  position: absolute; left: 0; right: calc(100% / var(--steps) - 7px); top: 7px;
  height: 1px; background: rgba(20, 20, 20, .18);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.4s var(--ease);
}
.chain.is-in .chain__rail { transform: scaleX(1); }
.chain__fill {
  position: absolute; inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(calc(var(--active) / (var(--steps) - 1)));
  transition: transform .8s var(--ease);
}

.chain__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--steps), 1fr);
}
.chain__step {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; padding: 0 12px 0 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  color: var(--ink); font: inherit;
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.chain.is-in .chain__step { opacity: 1; transform: none; }
.chain__steps li:nth-child(2) .chain__step { transition-delay: .1s; }
.chain__steps li:nth-child(3) .chain__step { transition-delay: .2s; }
.chain__steps li:nth-child(4) .chain__step { transition-delay: .3s; }
.chain__steps li:nth-child(5) .chain__step { transition-delay: .4s; }
.chain__steps li:nth-child(6) .chain__step { transition-delay: .5s; }

.chain__dot {
  position: relative; z-index: 1;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--sand); border: 1px solid var(--ink);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.chain__dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid var(--ink); opacity: 0; transform: scale(.6);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.chain__step.is-done .chain__dot { background: var(--ink); }
.chain__step.is-active .chain__dot { background: var(--ink); transform: scale(1.15); }
.chain__step.is-active .chain__dot::after { opacity: .35; transform: scale(1); animation: chainBreath 5.6s ease-in-out infinite; }
/* Aktywny krok oddycha w tym samym rytmie co kropki w hero */
@keyframes chainBreath {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.7); opacity: .08; }
}
.chain__step:hover .chain__dot { transform: scale(1.15); }

.chain__idx {
  margin-top: 26px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--muted);
}
.chain__label {
  margin-top: 6px;
  font-family: var(--f-head);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.1;
  color: var(--muted);
  transition: color .4s var(--ease);
}
.chain__step:hover .chain__label,
.chain__step.is-done .chain__label { color: var(--ink-soft); }
.chain__step.is-active .chain__label { color: var(--ink); }
.chain__desc { display: none; }

/* Duży panel aktywnego kroku */
.chain__panel {
  display: grid; grid-template-columns: auto 1fr 1fr; align-items: end;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
  min-height: 150px;
}
.chain__count {
  font-family: var(--f-body); font-weight: 200;
  font-size: clamp(56px, 7vw, 104px); line-height: .8; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.chain__count small {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--muted);
  margin-left: 10px; vertical-align: top;
}
.chain__word {
  margin: 0;
  font-family: var(--f-head);
  font-size: clamp(48px, 6.4vw, 96px); line-height: .9;
}
.chain__text {
  margin: 0 0 6px; max-width: 34ch;
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; font-weight: 300; color: var(--ink-soft);
}
.chain__panel .is-swap { animation: chainSwap .6s var(--ease); }
@keyframes chainSwap {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Mobile: pionowa oś, opis rozwija się przy aktywnym kroku */
@media (max-width: 760px) {
  .chain__groups, .chain__panel { display: none; }
  .chain__rail {
    left: 7px; right: auto; top: var(--rail-top, 22px); width: 1px;
    height: var(--rail-h, 290px);
    transition: transform 1.4s var(--ease), height .5s var(--ease);
    transform-origin: top; transform: scaleY(0);
  }
  .chain.is-in .chain__rail { transform: scaleY(1); }
  .chain__fill {
    bottom: auto; height: var(--fill-h, 0px);
    transform: none;
    transition: height .8s var(--ease);
  }
  .chain__steps { grid-template-columns: 1fr; }
  .chain__step {
    display: grid; grid-template-columns: 15px auto 1fr; column-gap: 0;
    align-items: baseline; padding: 14px 0;
  }
  .chain__dot { align-self: center; }
  .chain__idx { margin: 0 14px 0 22px; }
  .chain__label { margin: 0; font-size: 26px; }
  .chain__desc {
    display: block; grid-column: 3; max-height: 0; overflow: hidden;
    font-size: 15px; line-height: 1.5; color: var(--ink-soft);
    transition: max-height .5s var(--ease), margin .5s var(--ease);
  }
  .chain__step.is-active .chain__desc { max-height: 90px; margin-top: 8px; }
}

/* Pillars ----------------------------------------------------------------- */
.pillars__head { max-width: 760px; margin-bottom: clamp(56px, 8vw, 96px); }
.pillars__grid {
  --pgap: clamp(24px, 3vw, 44px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(var(--pgap) * 2);
  border-top: 1px solid var(--ink);
}
.pillar {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 0 8px;
}
.pillar + .pillar::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--pgap) * -1);
  width: 1px; background: var(--line);
}
.pillar__media { aspect-ratio: 4 / 5; margin-bottom: 36px; }
.pillar__num {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; color: var(--muted);
  margin-bottom: 18px;
}
.pillar__title {
  font-family: var(--f-logo);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  margin-bottom: 10px;
}
.pillar__kicker {
  font-size: 14px; font-weight: 450; color: var(--muted); margin-bottom: 26px;
}
.pillar__body { color: var(--ink-soft); font-size: 16px; flex: 1; }
.pillar__cta { margin-top: 18px; align-self: flex-start; }

@media (max-width: 900px) {
  .pillars__grid { grid-template-columns: 1fr; border-top: 0; }
  .pillar { border-top: 1px solid var(--ink); padding: 36px 0 64px; }
  .pillar + .pillar::before { display: none; }
  .pillar__media { aspect-ratio: 3 / 2; }
}

/* About ------------------------------------------------------------------- */
.about { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.about > .wrap { position: relative; z-index: 1; }
.about__dots {
  --s: min(34vw, 460px);
  width: var(--s); height: var(--s);
  top: clamp(24px, 3vw, 48px); right: 0; /* bez ujemnych wartości: Safari na iOS doliczałby wystający canvas do szerokości strony */
}
@media (max-width: 760px) {
  .about__dots { --s: 56vw; right: 0; top: 8px; opacity: .55; }
}
.about .eyebrow { color: #a19b91; }
.about__quote {
  font-family: var(--f-head);
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.06;
  max-width: 18ch;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.about__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.about__people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.about__person { margin: 0; }
.about__person + .about__person { margin-top: clamp(40px, 6vw, 88px); } /* przesunięcie jak w układzie magazynowym */
.about__media { aspect-ratio: 4 / 5; background: #262523; }
.about__name {
  margin-top: 16px;
  font-family: var(--f-head); /* Against nie ma litery Ł */
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  color: var(--paper);
}
.about__text { color: #d9d4ca; font-size: clamp(17px, 1.4vw, 19px); }
.about__text p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

/* Contact ----------------------------------------------------------------- */
.contact__grid {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px);
}
.contact__intro .lead { margin-top: 28px; }
.contact__details { margin-top: 48px; font-size: 16px; }
.contact__details dt {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.contact__details dd { margin: 0 0 22px; }
.contact__details a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__details a:hover { border-color: var(--ink); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; padding: 0;
}
.field input, .field textarea, .field select {
  width: 100%;
  font: 400 17px/1.5 var(--f-body);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }

.topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.topics__list { display: flex; flex-wrap: wrap; gap: 10px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label {
  margin: 0; cursor: pointer;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft);
  transition: border-color .25s, background .25s, color .25s;
}
.topics label:hover { border-color: var(--ink); }
.topics input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.topics input:focus-visible + label { outline: 1px solid var(--ink); outline-offset: 3px; }

.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--muted); }
.consent input {
  flex: 0 0 auto; appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--ink); border-radius: 2px;
  cursor: pointer; display: grid; place-content: center;
}
.consent input::after {
  content: ""; width: 8px; height: 8px; background: var(--ink);
  transform: scale(0); transition: transform .2s var(--ease);
}
.consent input:checked::after { transform: scale(1); }
.consent a { color: var(--ink); }

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

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.form__status { margin: 0; font-size: 14px; }
.form__status.is-error { color: #9a3a2a; }
.form__status.is-ok { color: var(--accent); }

@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Footer ------------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  font-size: 13px; line-height: 1.7; color: var(--muted);
}
.footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px;
  margin-bottom: 40px;
}
.footer .logo img { height: 38px; }
.footer__links { display: flex; gap: 28px; }
.footer__links a { text-decoration: none; color: var(--ink-soft); }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal { max-width: 900px; margin: 0; }
.footer__copy { margin-top: 20px; }

/* Reveal ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .chain__step.is-active .chain__dot::after { animation: none; }
  .js .reveal, .chain__step, .chain__rail { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Legal page -------------------------------------------------------------- */
.legal { padding: 150px 0 var(--section); }
.legal__inner { max-width: 760px; }
.legal h1 {
  font-family: var(--f-head);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  margin-bottom: 18px;
}
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 64px; }
.legal h2 {
  font-family: var(--f-body); /* numeracja - Billie nie ma cyfry 1 */
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 64px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 16px; font-weight: 600; margin: 32px 0 10px; }
.legal ul, .legal ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: .5em; }
.legal .toc { list-style: none; padding: 0; columns: 2; column-gap: 40px; font-size: 15px; }
.legal .toc a { text-decoration: none; border-bottom: 1px solid var(--line); }
.legal .toc a:hover { border-color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.4em; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 500; width: 34%; }
@media (max-width: 600px) {
  .legal .toc { columns: 1; }
  .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: 100%; }
  .legal th { border-bottom: 0; padding-bottom: 0; }
}

/* Strona 404 ------------------------------------------------------------------ */
.notfound { min-height: 82vh; min-height: 82svh; }
@media (min-width: 761px) { .notfound .hero__dots { --s: min(26vw, 40vh, 400px); top: calc(50% - 30px); } }
