/* ============================================================
   WARIANT B — „Klarowność"
   Chłodna, klarowna elegancja. Sans w nagłówkach, serif w treści.
   Signature: szyna z indeksem sekcji + jawna sekwencja przebiegu.
   ============================================================ */

:root {
  --bg:      #FFFFFF;
  --surface: #F2F4F7;
  --ink:     #1B2A41;
  --steel:   #3E6E8E;
  --muted:   #4A5A6E;
  --line:    #D7DDE5;
  --line-soft: #E8ECF1;

  --display: "Archivo", system-ui, -apple-system, sans-serif;
  --body:    "Newsreader", Georgia, serif;

  --w:   1200px;
  --gut: clamp(20px, 5vw, 56px);
  --sp:  clamp(72px, 10vh, 128px);
  --r:   4px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: clamp(17px, 1.1vw, 18.5px);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

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

.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%; max-width: var(--w);
  margin-inline: auto; padding-inline: var(--gut);
}

/* ---------- typografia ---------- */

.tag {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.9rem;
}

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin: 0 0 0.6em;
  max-width: 17ch;
  text-wrap: balance;
}
.h2--wide { max-width: 26ch; }

.note {
  font-family: var(--display);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- przyciski ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: var(--r);
  transition: background 0.2s ease;
}
.btn:hover { background: var(--steel); }
.btn--sm { padding: 10px 18px; font-size: 0.82rem; }

.ln {
  font-family: var(--display);
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none;
  color: var(--steel);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.ln:hover { border-color: var(--steel); }

/* ---------- pasek górny ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__in { display: flex; align-items: center; gap: 26px; min-height: 70px; }

.mark { text-decoration: none; display: grid; margin-right: auto; line-height: 1.15; }
.mark__n { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.mark__d {
  font-family: var(--display); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel);
}

.nav { display: flex; gap: 24px; }
.nav a {
  font-family: var(--display);
  font-size: 0.86rem; font-weight: 500;
  text-decoration: none; color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }

/* kreski pozycjonowane absolutnie względem środka — tylko wtedy
   po otwarciu stykają się dokładnie w krzyżyk */
.burger {
  display: none; position: relative;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer;
}
.burger span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  margin-left: -8px; margin-top: -0.75px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger span:first-child  { transform: translateY(-5px); }
.burger span:nth-child(2) { transform: none; }
.burger span:last-child   { transform: translateY(5px); }
body.nav-open .burger span:first-child { transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:last-child  { transform: rotate(-45deg); }

/* ---------- SIGNATURE: szyna z indeksem ---------- */

.rail {
  position: fixed;
  left: clamp(14px, 2.2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.rail.show { opacity: 1; pointer-events: auto; }
.rail ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2px;
  counter-reset: r;
}
.rail li { counter-increment: r; }
.rail a {
  display: grid;
  grid-template-columns: 22px auto;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  padding: 5px 0;
  opacity: 0.5;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.rail a::before {
  content: "";
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease, background 0.25s ease;
  width: 12px;
  justify-self: start;
}
.rail a:hover { opacity: 1; }
.rail a.on { opacity: 1; color: var(--ink); font-weight: 600; }
.rail a.on::before { width: 22px; background: var(--steel); height: 2px; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(60px, 11vh, 116px) 0 clamp(56px, 9vh, 96px);
  border-bottom: 1px solid var(--line-soft);
}
.hero__t {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 1.2rem;
  max-width: 20ch;
}
.hero__t span { color: var(--steel); }
.hero__l { color: var(--muted); max-width: 56ch; margin: 0; font-size: 1.08rem; }

.hero__cta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 26px; margin-top: 2.2rem;
}

.facts {
  margin: clamp(48px, 7vh, 78px) 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid; gap: 22px 30px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.facts dt {
  font-family: var(--display);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 5px;
}
.facts dd { margin: 0; font-size: 0.98rem; line-height: 1.45; }

/* ---------- siatka sekcji ---------- */

.section { padding-block: var(--sp); }
.section--alt { background: var(--surface); }
.section--contact { background: var(--ink); color: #E9EEF4; }

.grid2 {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) 1fr;
  gap: clamp(32px, 5vw, 92px);
  align-items: start;
}
.col-label { position: sticky; top: 104px; }
.col-label__note {
  font-family: var(--display);
  font-size: 0.88rem; line-height: 1.62;
  color: var(--muted); max-width: 34ch;
  margin: 0;
}

.rise { opacity: 0; transform: translateY(14px); }
.rise.in {
  opacity: 1; transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2,.7,.3,1);
}

/* ---------- wiersze obszarów ---------- */

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.rows li:first-child { padding-top: 0; }
.rows li:last-child { border-bottom: none; padding-bottom: 0; }
.rows h3 {
  font-family: var(--display);
  font-weight: 600; font-size: 1.04rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.4em;
}
.rows p { margin: 0; color: var(--muted); max-width: 62ch; font-size: 1rem; }

/* ---------- o mnie ---------- */

.bigger { font-size: 1.2rem; line-height: 1.55; margin-top: 0; }
.col-body > p { color: var(--muted); max-width: 62ch; }
.col-body > .bigger { color: var(--ink); }

.ph { margin: 26px 0 0; }
.ph__box {
  aspect-ratio: 3 / 4;
  max-width: 300px;
  border-radius: var(--r);
  background: linear-gradient(160deg, #E3E9F0, #CFD9E4);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 0.74rem; letter-spacing: 0.12em; color: var(--muted);
}

.creds {
  margin: 2.4rem 0 0; padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 1rem;
}
.creds > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 20px;
  align-items: baseline;
}
.creds dt {
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel);
}
.creds dd { margin: 0; font-size: 0.98rem; }

/* ---------- przebieg (jedyna prawdziwa sekwencja) ---------- */

.path {
  list-style: none; margin: clamp(38px, 5vh, 60px) 0 0; padding: 0;
  display: grid; gap: 0;
  counter-reset: none;
}
.path li {
  display: grid;
  grid-template-columns: clamp(56px, 8vw, 104px) 1fr;
  gap: clamp(16px, 3vw, 42px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.path li:last-child { border-bottom: 1px solid var(--line); }
.path__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  letter-spacing: -0.04em;
  color: var(--line);
  line-height: 1;
  transition: color 0.3s ease;
}
.path li:hover .path__n { color: var(--steel); }
.path h3 {
  font-family: var(--display);
  font-weight: 600; font-size: 1.1rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
}
.path p { margin: 0 0 0.7em; color: var(--muted); max-width: 60ch; }
.path__meta {
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel);
}

/* ---------- cennik ---------- */

.tbl { width: 100%; border-collapse: collapse; margin-bottom: 1.6rem; }
.tbl th, .tbl td {
  text-align: left;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.tbl tr:first-child th, .tbl tr:first-child td { border-top: 1px solid var(--line); }
.tbl th {
  font-family: var(--display);
  font-weight: 600; font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.tbl td {
  font-family: var(--display);
  font-size: 0.86rem; color: var(--muted);
  width: 100px;
}
.tbl__v {
  text-align: right !important;
  font-weight: 700 !important;
  font-size: 1.02rem !important;
  color: var(--ink) !important;
  width: 110px;
}

/* ---------- faq ---------- */

.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none;
  font-family: var(--display);
  font-weight: 600; font-size: 1rem;
  letter-spacing: -0.012em;
  padding: 21px 46px 21px 0;
  position: relative;
  transition: color 0.2s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--steel); }
.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  background: var(--steel);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.qa summary::before { width: 13px; height: 1.5px; margin-top: -0.75px; }
.qa summary::after  { width: 1.5px; height: 13px; margin-top: -6.5px; right: 13.75px; }
.qa[open] summary::after { transform: scaleY(0); opacity: 0; }
.qa > div { padding: 0 46px 24px 0; }
.qa p { margin: 0; color: var(--muted); max-width: 62ch; }

/* ---------- kontakt ---------- */

.section--contact .tag { color: #8FB4CF; }
.section--contact .h2 { color: #fff; }
.section--contact .col-label__note { color: #B9C6D5; }
.section--contact .btn { background: #fff; color: var(--ink); }
.section--contact .btn:hover { background: #C9DCEA; }
.section--contact .ln { color: #A8C6DC; border-bottom-color: rgba(255,255,255,0.25); }
.section--contact .ln:hover { border-bottom-color: #A8C6DC; }

.addr { font-style: normal; }
.addr dl { margin: 0; display: grid; gap: 22px; }
.addr > dl > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 8px 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.13);
}
.addr > dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.addr dt {
  font-family: var(--display);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #8FB4CF;
  padding-top: 4px;
}
.addr dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.addr a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.addr a:hover { border-bottom-color: #fff; }
.addr__x {
  font-family: var(--display);
  font-size: 0.8rem; color: #93A5B8; letter-spacing: 0.01em;
}

/* ---------- stopka ---------- */

.foot {
  background: var(--ink);
  color: #A9B8C8;
  padding-block: 40px 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--display);
  font-size: 0.85rem;
}
.foot__in { display: grid; gap: 14px; }
.foot p { margin: 0; }
.foot__n { color: #fff; font-weight: 600; margin-bottom: 3px !important; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__links a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.foot__links a:hover { border-bottom-color: #fff; }
.foot__crisis {
  margin-top: 12px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem; max-width: 66ch; color: #8FA0B2;
}

/* ---------- responsywność ---------- */

/* szyna potrzebuje ok. 150 px światła obok treści (max-width 1200) */
@media (max-width: 1500px) { .rail { display: none; } }

@media (max-width: 940px) {
  .grid2 { grid-template-columns: 1fr; }
  .col-label { position: static; }
  .h2 { max-width: 24ch; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .topbar__in { gap: 12px; }
  .topbar .btn--sm { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 4px var(--gut) 20px;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a:last-child { border-bottom: none; }

  .path li { grid-template-columns: 1fr; gap: 10px; }
  .path__n { font-size: 1.2rem; }
  .creds > div, .addr > dl > div { grid-template-columns: 1fr; gap: 4px; }
  .tbl th { font-size: 0.94rem; }
  .tbl td { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; }
}
