/* Artykul danych. Typografia i tabela dopasowane do reszty serwisu:
   odstepy z rytmu sekcji, kolor akcentu z tokenu marki, zero nowych barw. */

.art-lead{
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-900);
  max-width: 62ch;
  margin: 28px 0 0;
}
.art-lead strong{ font-weight: 500; }

.art-p{
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-600);
  max-width: 68ch;
  margin: 20px 0 0;
}

.art-h2{
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink-900);
  margin: 10px 0 0;
}

.art-h3{
  font-size: 19px;
  font-weight: 400;
  color: var(--ink-900);
  margin: 32px 0 0;
}

/* Tabela: bez ramek dookola, same linie poziome. Liczby w jednej szerokosci znaku,
   zeby kolumna czytala sie jako kolumna, a nie jako rzad roznych szerokosci. */
.art-tabela{
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  margin: 30px 0 0;
  font-size: 16px;
}
.art-tabela th,
.art-tabela td{
  text-align: left;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
}
.art-tabela thead th{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
  border-bottom-color: var(--ink-900);
}
.art-tabela td:nth-child(2),
.art-tabela td:nth-child(3){
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.art-tabela td:nth-child(2){ color: var(--ink-900); font-weight: 400; }
.art-tabela td:nth-child(3){ color: var(--ink-400); }
.art-tabela tbody tr:last-child td{
  border-bottom: none;
  font-weight: 500;
  color: var(--ink-900);
}

/* Zestawienie pozycji cenowej. Dwie karty obok siebie, bez ozdobnikow. */
.art-pozycja{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 32px 0 0;
  max-width: 640px;
}
.art-pozycja > div{
  background: var(--paper-50);
  padding: 26px 26px 28px;
}
.art-pozycja b{
  display: block;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.art-pozycja span{
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-400);
}

.art-powody{ margin: 26px 0 0; padding: 0; list-style: none; max-width: 68ch; }
.art-powody li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-600);
}
.art-powody li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--brick-600);
}
.art-powody b{ font-weight: 500; color: var(--ink-900); }

.art-zrodlo{
  margin: 44px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-400);
  max-width: 76ch;
}
.art-zrodlo a{ color: var(--ink-600); text-decoration: underline; text-underline-offset: 3px; }

.art-cta{ margin-top: 36px; }

@media (max-width: 640px){
  .art-pozycja{ grid-template-columns: minmax(0, 1fr); }
  .art-tabela th, .art-tabela td{ padding: 12px 12px 12px 0; font-size: 15px; }
}

/* Tabela porownawcza rynkow: trzy kolumny liczbowe, wyroznienie ostatniego wiersza
   przeniesione na wiersz biezacego roku zamiast na stopke. */
.art-tabela.rynki td:nth-child(4){ font-variant-numeric: tabular-nums; color: var(--ink-400); white-space: nowrap; }
.art-tabela.rynki td:nth-child(3){ color: var(--ink-900); }
.art-tabela.rynki tbody tr:last-child td{ font-weight: 500; }

/* FAQ: kazde pytanie jako osobny blok z linia, zeby lista czytala sie jak lista,
   a nie jak ciag akapitow. */
.faq{ margin-top: 34px; max-width: 72ch; }
.faq-item{ border-top: 1px solid var(--line); padding: 26px 0 4px; }
.faq-item:last-child{ border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.faq-item h3{
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-900);
  margin: 0;
}
.faq-item p{
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-600);
  margin: 10px 0 18px;
}

.art-uwaga{
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-400);
  max-width: 64ch;
}

/* ===== Wersja 13.10.2026: naglowek z metryczka, kafle, zdjecia, wykres, metoda ===== */
.art-head{ padding-bottom: 56px; }
.art-meta{
  list-style: none; padding: 0; margin: 30px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  font-size: 13px; font-weight: 400; color: var(--ink-900);
}
.art-meta span{
  display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-400); margin-bottom: 4px;
}
.art-kpi{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin: 40px 0 0; max-width: 980px;
}
.art-kpi > div{ background: var(--paper-50); padding: 26px 26px 24px; }
.art-kpi b{
  display: block; font-weight: 200; font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.02em; color: var(--ink-900); font-variant-numeric: tabular-nums;
}
.art-kpi span{ display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-600); }
.art-kpi em{ display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--ink-400); }

/* Zdjecia: pelna szerokosc kontenera, podpis z autorem zdjecia. */
.art-foto{ margin: 0; }
.art-foto img{ display: block; width: 100%; height: auto; object-fit: cover; background: var(--paper-100); }
.art-foto figcaption{ margin-top: 10px; font-size: 12px; color: var(--ink-400); }
.art-foto-hero{ max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x) 80px; }
.art-foto-hero img{ aspect-ratio: 16 / 9; max-height: 78vh; }
.art-galeria{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 36px 0 0;
}
.art-galeria img{ aspect-ratio: 4 / 5; }

/* Wykres liniowy: cienkie linie, recesywna siatka, dymek przy najechaniu i dotknieciu. */
.art-wykres{ position: relative; margin: 34px 0 0; max-width: 820px; }
.art-legenda{ display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--ink-600); margin-bottom: 10px; }
.art-legenda i, .art-tip i{ display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.art-wykres-plot svg{ display: block; width: 100%; height: auto; overflow: visible; }
.art-wykres-plot .g{ stroke: var(--line); stroke-width: 1; }
.art-wykres-plot .ax{ font: 400 11px var(--sans); fill: var(--ink-400); }
.art-wykres-plot .lab{ font: 500 12px var(--sans); fill: var(--ink-600); }
.art-wykres-plot .cross{ stroke: var(--ink-400); stroke-width: 1; stroke-dasharray: 3 3; }
.art-wykres-plot .hit{ cursor: crosshair; }
.art-wykres figcaption{ margin-top: 8px; font-size: 12px; color: var(--ink-400); }
.art-tip{
  position: absolute; top: 34px; width: 224px; padding: 12px 14px;
  background: var(--paper-50); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(10,10,10,0.08);
  font-size: 13px; color: var(--ink-900); pointer-events: none;
}
.art-tip b{ display: block; font-weight: 500; margin-bottom: 6px; }
.art-tip span{ display: block; line-height: 1.7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.art-tip em{ font-style: normal; color: var(--ink-400); font-size: 12px; }
.art-caption{ caption-side: top; text-align: left; font-size: 12px; color: var(--ink-400); padding-bottom: 6px; }

/* Tabela rynkow: piec kolumn, liczby w jednej szerokosci znaku. */
.art-tabela.rynki{ max-width: 760px; }
.art-tabela.rynki td:nth-child(n+2){ font-variant-numeric: tabular-nums; white-space: nowrap; }
.art-tabela.rynki td:nth-child(2){ color: var(--brick-600); }
.art-tabela.rynki td:nth-child(3){ color: #1F6FA8; }
.art-tabela.rynki td:nth-child(4){ color: var(--ink-900); }
.art-tabela.rynki td:nth-child(5){ color: var(--ink-400); }

.art-pozycja.trzy{ grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; }
.art-pozycja.trzy b{ font-size: clamp(24px, 2.4vw, 32px); }

/* Metoda: dwie kolumny list, potem numerowane zrodla. */
.art-metoda{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 34px 0 0; max-width: 1000px; }
.art-metoda h3{ font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400); margin: 0 0 12px; }
.art-metoda ul{ margin: 0; padding-left: 18px; }
.art-metoda li{ font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--ink-600); margin-bottom: 10px; }
.art-zrodla{ margin: 16px 0 0; padding-left: 22px; max-width: 80ch; }
.art-zrodla li{ font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--ink-600); margin-bottom: 6px; }
.art-zrodla a{ color: var(--ink-900); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px){
  .art-kpi, .art-pozycja.trzy{ grid-template-columns: minmax(0, 1fr); }
  .art-metoda{ grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .art-galeria{ grid-template-columns: minmax(0, 1fr); }
  .art-galeria img{ aspect-ratio: 4 / 3; }
}
@media (max-width: 640px){
  .art-foto-hero{ padding: 0 16px 48px; }
  .art-foto-hero img{ aspect-ratio: 4 / 3; }
  .art-tabela.rynki th, .art-tabela.rynki td{ padding: 10px 8px 10px 0; font-size: 13px; }
  .art-tabela.rynki{ display: block; overflow-x: auto; }
  .art-tip{ position: static; width: auto; margin-top: 10px; box-shadow: none; }
  .art-wykres-plot .ax{ font-size: 11px; }
}

.art-tabela .za-malo{ color: var(--ink-400) !important; font-size: 13px; }
.art-tabela.metraz td:nth-child(2):not(.za-malo){ color: var(--brick-600); }
.art-tabela.bez-wyroznienia tbody tr:last-child td{ font-weight: 400; }
.art-tabela.bez-wyroznienia tbody tr:last-child td:first-child{ color: var(--ink-900); }

/* ===== Wersja 13.10.2026 b: nasze inwestycje widoczne w trakcie lektury ===== */
.art-wtracenie{ padding: 0 0 8px; background: var(--paper-50); }
.art-wtracenie-in{
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center;
  max-width: 820px; padding: 18px; margin: 48px 0 0;
  background: var(--paper-100); border-left: 3px solid var(--brick-600);
  text-decoration: none; color: var(--ink-900);
}
.art-wtracenie-in img{ width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.art-wtracenie-in b{ display: block; margin-top: 10px; font-size: clamp(17px,1.5vw,20px); font-weight: 400; line-height: 1.4; }
.art-wtracenie-go{ display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--brick-600); }
.art-wtracenie-in:hover .art-wtracenie-go{ text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px){ .art-wtracenie-in{ grid-template-columns: 1fr; gap: 6px; } }

.art-bok{ display: none; }
@media (min-width: 1280px){
  .art-bok{
    display: block; position: fixed; z-index: 50; top: 120px; width: 250px;
    right: calc((100vw - var(--maxw)) / 2 + var(--pad-x));
    background: var(--paper-50); border: 1px solid var(--line); padding: 18px;
    box-shadow: 0 14px 40px rgba(10,10,10,0.08);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 260ms;
  }
  .art-bok.widoczny{ opacity: 1; visibility: visible; transform: none; }
}
.art-bok-tyt{ display: block; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 12px; }
.art-bok-inw{ display: block; text-decoration: none; color: var(--ink-900); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.art-bok-inw img{ width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 10px; }
.art-bok-inw b{ display: block; font-size: 16px; font-weight: 500; }
.art-bok-inw span{ display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-600); }
.art-bok-inw:hover b{ color: var(--brick-600); }
.art-bok-btn{ width: 100%; justify-content: center; }

.art-pasek{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--brick-600); transform: translateY(100%);
  transition: transform 320ms var(--ease);
}
.art-pasek.widoczny{ transform: none; }
.art-pasek a{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 20px; color: #fff; text-decoration: none; font-size: 14px;
}
.art-pasek b{ font-weight: 500; }
.art-pasek-go{ font-weight: 500; white-space: nowrap; }
@media (min-width: 1280px){ .art-pasek{ display: none; } }
@media (min-width: 1280px){ .art-h2, .art-h3{ max-width: 820px; } }
