/* N3 „Saga rodu” (Z214) — makieta mockupy/strony-hodowcow/n3-saga/assets/saga.css przeniesiona na zmienne palety strony:
   --bg tło, --surf karta, --surf2 tło drugie, --ink tusz, --muted tekst pomocniczy, --line kreska, --acc/--accInk przyciski;
   pochodne szablonu (Sg.Zmienne): --sg-tekst, --sg-kreska2, --sg-reszta (pozostałe), --sg-mlode, --sg-neutral (plan B), --sg-pasmo.
   Kolor linii: --lk (grafika, kontrast ≥ 3), --lt (tekst, ≥ 4,5) — ustawiane przy elemencie. Jeden krój (Instrument Sans z osią
   szerokości — tytuły zwężone font-stretch). Rozmiary w rem (1rem = 16 px × skala szablonu 1,0625 × A/A+/A++ gościa). */

.sg { --w: 1240px; --g: 40px; color: var(--sg-tekst); font-family: var(--fb); font-size: 1rem; line-height: 1.55; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; position: relative; min-height: 100vh; }
.sg * { box-sizing: border-box; }
.sg-tlo { position: fixed; inset: 0; z-index: -1; background: var(--tlo-zdjecie) center / cover no-repeat; opacity: calc(1 - var(--tlo-oslona, .9)); }
.sg a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--sg-kreska2); }
.sg a:hover { text-decoration-color: currentColor; }
.sg :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sg h1, .sg h2, .sg h3 { font-family: var(--fh); color: var(--ink); margin: 0; font-stretch: 78%; font-weight: 600; letter-spacing: -.015em; line-height: 1.04; overflow-wrap: anywhere; }
.sg h1 { font-size: clamp(2.5rem, 5.2vw, 4.9rem); }
.sg h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); margin-bottom: .5rem; }
.sg h3 { font-size: 1.35rem; letter-spacing: -.005em; }
.sg p { margin: 0 0 1em; }
.sg .w { max-width: calc(var(--w) + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g); }
.sg .ob { font-variant-numeric: tabular-nums; letter-spacing: .01em; font-size: .92em; color: var(--muted); }
.sg .mal { font-size: .82rem; color: var(--muted); }
.sg .meta { color: var(--muted); font-size: .9rem; }
.sg .lead { font-size: 1.12rem; line-height: 1.5; color: var(--sg-tekst); max-width: 36em; }
.sg .maly-t { font-family: var(--fb); font-size: .82rem !important; font-stretch: 100%; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 .6rem; }
.sg .sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* etykieta nad tytułem */
.sg .nad { display: flex; align-items: center; gap: 12px; font-size: .79rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.sg .nad .trzy { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.sg .nad .trzy i { display: block; width: 12px; height: 3px; }
.sg .nad .kreska { width: 36px; height: 3px; background: var(--lk); flex: 0 0 auto; }

/* ——— nagłówek ——— */
.sg-glowa { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 30; }
.sg-glowa .w { display: flex; align-items: stretch; gap: 24px; min-height: 84px; }
.sg .marka { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); padding: 14px 0; flex: 0 1 auto; min-width: 0; }
.sg .marka svg { width: 38px; height: 38px; flex: 0 0 auto; }
.sg .marka b { display: block; font-family: var(--fh); font-size: 1.35rem; font-stretch: 80%; font-weight: 650; letter-spacing: -.01em; line-height: 1.05; overflow-wrap: anywhere; }
.sg .marka small { display: block; font-size: .77rem; color: var(--muted); margin-top: 4px; line-height: 1.2; }
.sg .menu-linie { display: flex; align-items: stretch; margin-left: auto; }
/* przełącznik Jasny/Ciemny gościa (makieta: .motyw-m — księżyc w nagłówku, w telefonie z napisem; .motyw — Jasny | Ciemny w menu telefonu) */
.sg .motyw { display: inline-flex; border: 1px solid var(--sg-kreska2); }
.sg .motyw button { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--muted); padding: 0 14px; min-height: 44px; cursor: pointer; }
.sg .motyw button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.sg .motyw-m { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center; flex: 0 0 auto; font: inherit; font-size: .84rem;
  min-height: 40px; min-width: 40px; padding: 0 9px; background: none; border: 1px solid var(--sg-kreska2); color: var(--ink); cursor: pointer; }
.sg .motyw-m svg { width: 18px; height: 18px; }
.sg .motyw-m span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sg .motyw-w { display: none; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; font: inherit; font-size: .91rem; color: var(--ink); background: none;
  border: 0; border-top: 1px solid var(--line); cursor: pointer; text-align: left; }
.sg .motyw-w:hover { background: var(--surf2); }
.sg .motyw-w svg { width: 16px; height: 16px; }
.sg .motyw-d { display: none; margin-left: 8px; align-self: center; }
.sg .motyw-d button { min-height: 40px; padding: 0 10px; font-size: .84rem; }
@media (min-width: 1321px) {
  .sg .motyw-d { display: inline-flex; margin-left: 4px; }
  .sg .motyw-m { display: none; }
  .sg-glowa .w { gap: 8px; }
  .sg-glowa .menu-reszta { padding-left: 4px; gap: 0; }
  .sg-glowa .menu-reszta > a { padding: 10px 5px; font-size: .82rem; }
  .sg-glowa .jez { margin-left: 4px; }
  .sg-glowa .jez a { padding: 6px 5px; }
  .sg-glowa .nl { padding: 0 8px; max-width: 9rem; overflow: hidden; }
  .sg-glowa .nl::before { left: 8px; right: 8px; }
  .sg-glowa .menu-linie .wsz { padding: 0 8px; }
  .sg-glowa .motyw-d button { padding: 0 7px; }
}
@media (min-width: 981px) and (max-width: 1320px) {
  .sg-glowa:has(.motyw-w) .motyw-m { display: none; }
  .sg .motyw-w { display: flex; }
}
.sg .menu-linie .wsz { white-space: nowrap; display: flex; align-items: center; padding: 0 16px; font-size: .88rem; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line); }
.sg .menu-linie .wsz[aria-current] { color: var(--ink); font-weight: 600; }
.sg .nl { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; text-decoration: none; border-left: 1px solid var(--line); max-width: 13rem; }
.sg .nl::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 4px; background: var(--lk); transform-origin: left; transform: scaleX(.28); }
.sg .nl:hover::before, .sg .nl[aria-current]::before { transform: scaleX(1); }
.sg .nl b { font-size: .97rem; color: var(--ink); font-weight: 600; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.sg .nl small { font-size: .76rem; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.sg .menu-reszta { display: flex; align-items: center; gap: 2px; border-left: 1px solid var(--line); padding-left: 12px; margin-left: auto; }
.sg .menu-linie + .menu-reszta { margin-left: 0; }
.sg .menu-reszta > a { padding: 10px 11px; font-size: .91rem; text-decoration: none; color: var(--sg-tekst); white-space: nowrap; }
.sg .menu-reszta > a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--ink); }
.sg .wiecej { position: relative; }
.sg .wiecej summary { list-style: none; cursor: pointer; padding: 10px 11px; font-size: .91rem; white-space: nowrap; }
.sg .wiecej summary::-webkit-details-marker { display: none; }
.sg .wiecej summary::after { content: ' ▾'; color: var(--muted); }
.sg .wiecej-l { position: absolute; right: 0; top: 100%; min-width: 15rem; background: var(--surf); border: 1px solid var(--sg-kreska2); padding: 6px 0; z-index: 40; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.sg .wiecej-l a { display: block; padding: 10px 16px; text-decoration: none; font-size: .91rem; }
.sg .wiecej-l a:hover, .sg .wiecej-l a[aria-current] { background: var(--surf2); }
.sg .wiecej-l .wl { border-left: 4px solid var(--lk); }
.sg .jez { display: inline-flex; border: 1px solid var(--sg-kreska2); margin-left: 8px; }
.sg .jez a { padding: 6px 9px; font-size: .76rem; text-decoration: none; color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.sg .jez a[aria-current] { background: var(--ink); color: var(--bg); }
.sg .pasek-linii, .sg .dol, .sg-menu { display: none; }

/* ——— przyciski, linki ——— */
.sg .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--acc); color: var(--accInk); border: 1px solid var(--acc);
  font: inherit; font-size: .94rem; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: var(--r, 2px); }
.sg .btn.jasny { background: transparent; color: var(--ink); border-color: var(--sg-kreska2); }
.sg .btn:hover { filter: brightness(1.1); }
.sg .btn small { font-weight: 400; color: inherit; opacity: .8; }
.sg .dalej { font-weight: 600; color: var(--ink); text-decoration-color: var(--lk, var(--ink)); text-decoration-thickness: 2px; display: inline-block; padding: 11px 0; line-height: 1.4; }

.sg .przyciski { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4rem; }

/* pieczęć źródła */
.sg .zr { position: relative; padding-left: 17px; font-size: .8rem; color: var(--muted); line-height: 1.45; margin: 1rem 0 0; }
.sg .zr::before { content: ''; position: absolute; left: 0; top: .32em; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; }
.sg .zr a { color: var(--sg-tekst); }
.sg .zr.hod::before { border-radius: 0; transform: rotate(45deg); width: 8px; height: 8px; left: 1px; }
.sg .zr.wl::before { display: none; }
.sg .zr.wl { padding-left: 0; }

/* skład krwi */
.sg .krew { display: flex; height: 10px; width: 100%; background: var(--sg-mlode); margin-top: .5rem; }
.sg .krew i { display: block; height: 100%; background: var(--lk); }
.sg .krew i + i { box-shadow: -2px 0 0 var(--bg); }
.sg .krew-opis { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.sg .krew-opis span { display: inline-flex; align-items: center; gap: 7px; }
.sg .krew-opis span::before { content: ''; width: 10px; height: 10px; background: var(--lk); flex: 0 0 auto; }
.sg .krew-opis b { color: var(--ink); font-weight: 600; }
.sg .krew-blok { margin: .4rem 0 1.3rem; }
.sg .krew-blok h3 { font-family: var(--fb); font-size: .82rem; font-stretch: 100%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }

/* ——— start: nagłówek ——— */
.sg .hero { padding-top: 64px; }
.sg .hero-g { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.sg .hero h1 { max-width: 12ch; }
.sg .hero h1 em { font-style: normal; color: var(--muted); font-weight: 500; }
.sg .hero .lead { margin-top: 1.5rem; }
.sg .motto { font-style: italic; color: var(--muted); margin: 1rem 0 0; }
.sg .tytuly-mini { margin-top: 1.3rem; font-size: .91rem; color: var(--muted); }
.sg .tytuly-mini b { color: var(--ink); font-weight: 600; }
.sg .legenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sg .legenda li { border-bottom: 1px solid var(--line); }
.sg .legenda .wiersz { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 0; text-decoration: none; }
.sg .legenda .pas { width: 44px; height: 10px; background: var(--lk); }
.sg .legenda b { display: block; font-family: var(--fh); font-size: 1.12rem; color: var(--ink); font-weight: 600; font-stretch: 85%; }
.sg .legenda small { display: block; font-size: .82rem; color: var(--muted); }
.sg .legenda .ile { text-align: right; font-family: var(--fh); font-size: 1.65rem; font-stretch: 75%; font-weight: 600; color: var(--lt, var(--ink)); line-height: 1; }
.sg .legenda .ile small { font-family: var(--fb); font-size: .74rem; font-stretch: 100%; font-weight: 500; color: var(--muted); margin-top: 3px; }
.sg .legenda a.wiersz[href]:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--lk); }
.sg .legenda.sezony .wiersz { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
.sg .legenda .rok-s { font-family: var(--fh); font-weight: 600; font-size: 1.12rem; color: var(--ink); font-stretch: 85%; }
.sg .legenda .pasek-s { display: block; height: 10px; background: var(--sg-neutral); margin-bottom: 4px; }
.sg .leg-wsk { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.sg .hero-foto { margin: 2.4rem 0 0; }
.sg .hero-foto img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.sg .siec-wrap { margin-top: 2.6rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.sg .siec-opis { max-width: 46em; color: var(--sg-tekst); }

/* sieć pokoleń */
.sg .siec-sek { margin-top: 2.4rem; border-top: 1px solid var(--line); padding-top: 8px; }
.sg .siec-box { position: relative; }
.sg .siec { display: block; width: 100%; height: auto; overflow: visible; }
.sg .siec-pion { display: none; }
.sg .siec text { font-family: var(--fb); fill: var(--sg-tekst); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.sg .siec .im { font-size: 14px; font-weight: 650; fill: var(--ink); font-stretch: 85%; }
.sg .siec .pod { font-size: 12.5px; fill: var(--muted); font-stretch: 90%; }
.sg .siec .rok { font-size: 13px; fill: var(--muted); stroke-width: 0; }
.sg .siec .rok.akt { fill: var(--ink); font-weight: 650; }
.sg .siec .siatka { stroke: var(--line); stroke-width: 1; }
.sg .siec .kol-sez { fill: var(--ink); opacity: .04; }
.sg .siec .pas { fill: var(--lk); opacity: var(--sg-pasmo); }
.sg .siec .os { stroke: var(--lk); stroke-width: 1.5; opacity: .55; fill: none; }
.sg .siec .kr { stroke: var(--lk); fill: none; stroke-width: 1.8; opacity: .8; }
.sg .siec .kr.plan { stroke-dasharray: 5 5; }
.sg .siec .wz { fill: var(--lk); stroke: var(--bg); stroke-width: 2; }
.sg .siec .wz.zal { fill: var(--bg); stroke: var(--lk); stroke-width: 2.6; }
.sg .siec .wz.obcy { fill: var(--bg); stroke: var(--lk); stroke-width: 2; stroke-dasharray: 3 2.5; }
.sg .siec .wz.plan { fill: var(--bg); stroke: var(--lk); stroke-width: 2; stroke-dasharray: 4 3; }
.sg .siec a:hover .wz, .sg .siec a:focus .wz { stroke: var(--ink); stroke-width: 3; }
.sg .siec .etl { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; fill: var(--lt, var(--muted)); }
.sg .siec .im.obr { font-size: 12.5px; font-weight: 500; fill: var(--muted); font-stretch: 90%; }
.sg .siec .zn-sez { stroke: var(--lk); stroke-width: 3.4; stroke-linecap: round; opacity: .85; }
.sg .siec-pion .zn-sez { stroke-width: 2.6; }
.sg .siec-leg { display: none; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--sg-tekst); margin: .6rem 0 0; }
.sg .siec-leg span { display: inline-flex; align-items: center; gap: 6px; }
.sg .siec-leg i { width: 16px; height: 6px; background: var(--lk); }
.sg .siec-pom { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }
.sg .znaki { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.sg .znaki span { display: inline-flex; align-items: center; gap: 8px; }
.sg .znaki svg { width: 18px; height: 18px; }
.sg .znaki .z-pelny { fill: var(--muted); }
.sg .znaki .z-zal { fill: var(--bg); stroke: var(--muted); stroke-width: 2.2; }
.sg .znaki .z-obcy { fill: var(--bg); stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 3 2.5; }
.sg .znaki .zr { margin: 0 0 0 auto; }

/* karty linii */
.sg .karty-linii { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0 32px; margin: 1.6rem 0; }
.sg .karta-linii { border-top: 4px solid var(--lk); padding: 1.2rem 0 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.sg .karta-linii h3 { font-size: 1.9rem; color: var(--lt); }
.sg .karta-linii h3 a { text-decoration: none; color: inherit; }
.sg .karta-linii .op { font-size: .86rem; color: var(--muted); margin: 0; }
.sg .karta-linii .zal { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .7rem 0; margin: .5rem 0; }
.sg .karta-linii .zal small, .sg .samotne small, .sg .os-pok small { display: block; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sg .karta-linii .zal b { color: var(--ink); font-weight: 600; }
.sg .os-pok { list-style: none; margin: .4rem 0; padding: 0 0 0 22px; border-left: 2px solid var(--lk); }
.sg .os-pok li { position: relative; padding: 0 0 .8rem; }
.sg .os-pok li::before { content: ''; position: absolute; left: -30px; top: 2px; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--lk); background: var(--bg); }
.sg .os-pok span { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .9rem; }
.sg .os-pok em, .sg .samotne em { font-style: normal; font-size: .82rem; color: var(--muted); }
.sg .imie { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.sg .imie i { width: 9px; height: 9px; background: var(--lk); flex: 0 0 auto; }
.sg .samotne { font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: .4rem 0; }
.sg .samotne small { width: 100%; }
.sg .liczby4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0; margin: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sg .liczby4 > div { padding: .8rem 1rem .8rem 0; display: flex; flex-direction: column; }
.sg .liczby4 > div + div { border-left: 1px solid var(--line); padding-left: 1rem; }
.sg .liczby4 dt { font-size: .8rem; color: var(--muted); line-height: 1.3; order: 2; }
.sg .liczby4 dd { margin: 0; font-family: var(--fh); font-size: 1.7rem; font-stretch: 75%; font-weight: 600; color: var(--ink); line-height: 1.05; order: 1; }
.sg .karta-linii .liczby4 { grid-template-columns: 1fr 1fr; }
.sg .karta-linii .liczby4 > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
.sg .karta-linii .liczby4 > div:nth-child(4) { border-top: 1px solid var(--line); }

/* wyniki według linii (start) */
.sg .sezon { margin-top: 7rem; }
.sg .sezon-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 64px; align-items: start; }
.sg .sezon .lead { margin-top: 1rem; }
.sg .belka { margin-top: 6px; }
.sg .belka-opisy { display: flex; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.sg .belka-opisy div { padding-right: 8px; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg .belka-opisy b { display: block; font-family: var(--fh); font-size: 1.55rem; font-stretch: 75%; font-weight: 600; color: var(--lt, var(--ink)); }
.sg .belka-pas { display: flex; height: 34px; background: var(--surf2); }
.sg .belka-pas.maly { height: 14px; margin-top: .6rem; }
.sg .belka-pas i { display: block; height: 100%; background: var(--lk); }
.sg .belka-pas i + i { box-shadow: -2px 0 0 var(--bg); }
.sg .belka-pas i.reszta { background: var(--sg-reszta); }
.sg .belka-lista { display: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 6px 16px; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.sg .belka-lista.widoczna { display: grid; }
.sg .belka-lista span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sg .belka-lista span::before { content: ''; width: 12px; height: 12px; background: var(--lk); flex: 0 0 auto; }
.sg .belka-lista span.reszta::before { background: var(--sg-reszta); }
.sg .belka-lista b { color: var(--ink); }
.sg .linie-wiersze { margin-top: 2.6rem; border-top: 1.5px solid var(--ink); }
.sg .lw { display: grid; grid-template-columns: 1.2fr .62fr 1.1fr 1.75fr; gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.sg .lw::before { content: ''; position: absolute; left: 0; top: -1px; width: 64px; height: 4px; background: var(--lk); }
.sg .lw h3 { font-size: 1.6rem; }
.sg .lw h3 a { text-decoration: none; }
.sg .lw .op { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.sg .lw .duza { font-family: var(--fh); font-size: 3.2rem; font-stretch: 75%; font-weight: 600; color: var(--lt); line-height: .9; }
.sg .lw .duza small { display: block; font-family: var(--fb); font-size: .79rem; font-stretch: 100%; font-weight: 500; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.sg .spark { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.sg .spark i { flex: 1; background: var(--lk); min-height: 2px; opacity: .9; }
.sg .spark i.z { background: var(--line); }
.sg .spark-os { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.sg .spark-os span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sg .lw dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; font-size: .88rem; }
.sg .lw dt { color: var(--muted); }
.sg .lw dd { margin: 0; color: var(--ink); }
.sg .sezon-dol { margin-top: 1rem; }

/* gdzie spotykają się linie */
.sg .spot { margin-top: 7rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.sg .spot-graf { background: var(--surf2); padding: 28px 24px 18px; display: flex; align-items: center; gap: 0; position: relative; }
.sg .spot-graf .pasma { flex: 1.3; min-width: 0; height: auto; display: block; }
.sg .spot-graf .pasma-t { font-family: var(--fb); font-size: 12.5px; font-weight: 650; fill: var(--ink); }
.sg .spot-ptak { flex: 1; min-width: 0; }
.sg .spot-ptak img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sg .spot-ptak svg { width: 100%; height: auto; display: block; }
.sg .spot-graf .podpis { position: absolute; left: 24px; right: 24px; bottom: 6px; font-size: .74rem; color: var(--muted); margin: 0; text-align: right; }
.sg .trzy-liczby { display: flex; flex-wrap: wrap; margin: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sg .trzy-liczby div { padding: 14px 24px 14px 0; margin-right: 24px; border-right: 1px solid var(--line); font-size: .82rem; color: var(--muted); line-height: 1.3; max-width: 12rem; }
.sg .trzy-liczby div:last-child { border-right: 0; margin-right: 0; }
.sg .trzy-liczby b { display: block; font-family: var(--fh); font-size: 2.2rem; font-stretch: 75%; font-weight: 600; color: var(--ink); line-height: 1; margin-bottom: 4px; }

/* przepis na parę */
.sg .zlota { margin-top: 7rem; }
.sg .zlota-g { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; margin-top: 2rem; }
.sg .zlota-g.jeden { grid-template-columns: minmax(0, 46rem); }
.sg .rownanie { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.sg .rodzic { padding: 16px 18px; border-top: 4px solid var(--lk); background: var(--surf); min-width: 0; }
.sg .rodzic b { display: block; font-family: var(--fh); font-size: 1.55rem; font-stretch: 78%; font-weight: 600; color: var(--ink); }
.sg .rodzic b a { text-decoration: none; }
.sg .rodzic .ob { display: block; }
.sg .rodzic .mal { margin: 4px 0 0; }
.sg .rodzic .syl { display: block; width: 7rem; margin-bottom: .4rem; }
.sg .rodzic .syl img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sg .razy { display: flex; align-items: center; justify-content: center; padding: 0 14px; font-size: 1.75rem; color: var(--muted); }
.sg .potomki { list-style: none; margin: 4px 0 0 24px; padding: 0; border-left: 2px solid var(--sg-kreska2); }
.sg .potomki li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); }
.sg .potomki li::before { content: ''; position: absolute; left: -2px; top: 24px; width: 18px; height: 2px; background: var(--lk); }
.sg .potomki li b { font-weight: 600; color: var(--ink); }
.sg .potomki .w2 { font-size: .88rem; color: var(--sg-tekst); text-align: right; }
.sg .potomki .gdzie { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.sg .potomki li.obcy b { font-weight: 500; }
.sg .potomki li.obcy::before { background: repeating-linear-gradient(90deg, var(--lk) 0 4px, transparent 4px 7px); }
.sg .wynik-przepisu { margin-top: 18px; padding: 18px 0 0; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: baseline; }
.sg .wynik-przepisu b { font-family: var(--fh); font-size: 2.7rem; font-stretch: 75%; font-weight: 600; color: var(--ink); line-height: 1; white-space: nowrap; }
.sg .slad h3 { margin-bottom: 6px; }
.sg .slad-lista { list-style: none; margin: 1rem 0; padding: 0 0 0 24px; border-left: 2px solid var(--sg-kreska2); }
.sg .slad-lista li { position: relative; padding: .5rem 0; display: flex; flex-direction: column; }
.sg .slad-lista li::before { content: ''; position: absolute; left: -31px; top: .85rem; width: 12px; height: 12px; border-radius: 50%; border: 2px dashed var(--sg-kreska2); background: var(--bg); }
.sg .slad-lista li.dom::before { border: 0; background: var(--ink); }
.sg .slad-lista b { color: var(--ink); font-weight: 600; }
.sg .slad-lista span { font-size: .82rem; color: var(--muted); }

/* młode z pary */
.sg .zima { margin-top: 7rem; background: var(--surf2); }
.sg .zima .w { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.sg .zima p { font-size: 1.05rem; max-width: 32em; margin-top: 1rem; }
.sg .zima-g { width: 100%; height: auto; display: block; }
.sg .zima-t { font-family: var(--fb); font-size: 14px; font-weight: 650; }
.sg .zima-k { fill: var(--bg); stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 4; }
.sg .zima-r { font-family: var(--fh); font-size: 28px; font-weight: 650; fill: var(--ink); font-stretch: 78%; }
.sg .zima-m { font-family: var(--fb); font-size: 12px; fill: var(--muted); }
.sg .mlode-sek, .sg .asy { margin-top: 7rem; }
.sg .karty3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 1.6rem; }
.sg .golab-k { border-top: 4px solid var(--lk); display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.sg .golab-k-f { background: var(--surf2); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: .6rem; }
.sg .golab-k-f img { width: 100%; height: 100%; object-fit: cover; }
.sg .golab-k-f svg { width: 78%; height: auto; }
.sg .golab-k h3 { font-size: 1.45rem; }
.sg .golab-k h3 a { text-decoration: none; }
.sg .golab-k p { margin: 0; }
.sg .golab-k-l b { font-family: var(--fh); font-size: 1.3rem; font-stretch: 78%; color: var(--ink); }
.sg .cena { font-family: var(--fh); font-size: 1.5rem; font-stretch: 78%; color: var(--ink); font-weight: 600; }

/* sekcje dodatkowe startu */
.sg .blok { margin-top: 6rem; }
.sg .mistrz { max-width: 34rem; }
.sg .mistrz-g { font-size: .79rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-top: 1.5px solid var(--ink); padding-top: .6rem; margin: 0 0 .4rem; }
.sg .tab.mistrz-t th { font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .94rem; border: 0; border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; }
.sg .mistrz-t .m { font-family: var(--fh); font-size: 1.4rem; font-stretch: 78%; color: var(--ink); }
.sg .mistrz-t tr.tytul .m { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.sg .mistrz-t small { color: var(--muted); }
.sg .kronika-l { list-style: none; padding: 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); }
.sg .kronika-l > li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 4px 24px; }
.sg .kronika-l time { color: var(--muted); font-size: .88rem; }
.sg .kronika-l h2, .sg .kronika-l h3 { font-size: 1.45rem; margin-bottom: .3rem; }
.sg .kronika-l h2 a, .sg .kronika-l h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sg .kronika-l .kr-lot { display: block; width: fit-content; margin-top: 2px; }
.sg .kronika-l .kr-lot::first-letter { text-transform: uppercase; }
.sg .kronika-l.duza-l > li.z-foto { grid-template-columns: 9rem minmax(0, 1fr) 12rem; }
.sg .kronika-l img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sg .rekordy { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 28px; }
.sg .rekordy li { border-top: 1px solid var(--line); padding: 1rem 0; display: flex; flex-direction: column; gap: 2px; }
.sg .rekordy .wart { font-family: var(--fh); font-size: 2rem; font-stretch: 75%; color: var(--ink); font-weight: 600; line-height: 1.05; }
.sg .rekordy .wart small { font-family: var(--fb); font-size: .82rem; font-stretch: 100%; color: var(--muted); font-weight: 500; }
.sg .rekordy .n { font-weight: 600; color: var(--ink); }
.sg .galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 16px; margin: 1.4rem 0; }
.sg .galeria figure { margin: 0; }
.sg .galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sg .galeria figcaption { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.sg .film { position: relative; aspect-ratio: 16 / 9; }
.sg .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sg .kontakt-sek .obserwuj { max-width: 60rem; }

/* ——— nagłówki podstron ——— */
.sg .naglowek-str { padding-top: 56px; margin-bottom: 2rem; }
.sg .ns-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; border-bottom: 1.5px solid var(--ink); padding-bottom: 1.8rem; }
.sg .ns-g .lead { margin: 0; }
.sg .wyniki-g { align-items: start; }
.sg .liczby-zd { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 1rem; margin: 1.2rem 0 0; color: var(--sg-tekst); }
.sg .liczby-zd b { font-family: var(--fh); font-size: 1.75rem; font-stretch: 75%; font-weight: 600; color: var(--lt, var(--ink)); }
.sg .okruchy { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; }
.sg .okruchy a { color: var(--sg-tekst); }
.sg .okruchy [aria-current] { color: var(--lt, var(--ink)); font-weight: 600; }
.sg .sek-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 1.4rem; }
.sg .sek-g p { margin: 0; max-width: 40em; }
.sg .skoki { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.sg .skoki a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--sg-kreska2); text-decoration: none; font-size: .88rem; border-left: 4px solid var(--lk, var(--sg-kreska2)); }
.sg .skoki small { color: var(--muted); }

/* tabele */
.sg .tab { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sg .tab th { text-align: left; font-weight: 600; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 10px 10px 0; border-bottom: 1.5px solid var(--ink); }
.sg .tab td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.sg .tab .p { text-align: right; }
.sg .tab-wrap { overflow-x: auto; }
.sg .tab td.zloty { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sg .tab td.podium { font-weight: 600; color: var(--ink); }

/* gołębie */
.sg .grupa { margin-top: 3rem; }
.sg .grupa-g { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 4px solid var(--lk); padding-top: .8rem; margin-bottom: .6rem; }
.sg .grupa-g h2 { font-size: 1.85rem; color: var(--lt, var(--ink)); }
.sg .grupa-g h2 a { text-decoration: none; color: inherit; }
.sg .golebie-t td:first-child a { font-weight: 600; color: var(--ink); text-decoration: none; }

/* karta gołębia */
.sg .golab-str { padding-top: 32px; }
.sg .karta-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sg .karta-g-f { margin: 0; background: var(--surf2); border-bottom: 4px solid var(--lk); }
.sg .karta-g-f img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sg .karta-g-f .sylw { padding: 8% 6%; }
.sg .karta-g-f .sylw svg { width: 100%; height: auto; display: block; }
.sg .karta-g-f figcaption { font-size: .78rem; color: var(--muted); text-align: center; padding: 0 1rem 1rem; }
.sg .karta-g h1 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); }
.sg .karta-g .meta { margin: .6rem 0 1.4rem; }
.sg .miejsce-rod { border-top: 1.5px solid var(--ink); padding-top: .9rem; margin-bottom: 1rem; }
.sg .pokolenia-g { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: .6rem; }
.sg .pokolenia-g span { display: inline-flex; align-items: baseline; gap: 6px; font-size: .85rem; color: var(--sg-tekst); max-width: 14rem; }
.sg .pokolenia-g b { font-family: var(--fh); font-size: 1.8rem; font-stretch: 75%; color: var(--lt); font-weight: 600; }
.sg .cytat { margin: 1.2rem 0; border-left: 3px solid var(--lk, var(--ink)); padding: .2rem 0 .2rem 1.1rem; }
.sg .cytat p { font-size: 1.05rem; color: var(--ink); margin: 0 0 .3rem; }
.sg .cytat footer { font-size: .82rem; color: var(--muted); }
.sg .podglad-uwaga { background: #fff4c2; color: #4a3b00; padding: .6rem .8rem; font-size: .85rem; margin-top: .6rem; }
.sg .rod-sek, .sg .konkursy-g, .sg .kariera, .sg .dwa { margin-top: 5.5rem; }
.sg .brak-rod { border: 1px dashed var(--sg-kreska2); padding: 1.1rem 1.2rem; }
.sg .brak-rod p { margin: 0; }

/* rodowód w pasmach: siatka kart przodków o stałej wysokości wierszy, między kolumnami wstęgi SVG (kolor = linia ścieżki krwi,
   każde pasmo ten sam udział), na prawej krawędzi karty pasek jej pasm; telefon — układ pionowy (.pr-tel) */
.sg .pasma-rod { margin: 1.2rem 0 .4rem; }
.sg .pr-nagl { display: grid; margin-bottom: 8px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sg .pr-siatka { display: grid; row-gap: 8px; }
.sg .pr-k { position: relative; background: var(--surf); border: 1px solid var(--line); border-left: 4px solid var(--lk); padding: .45rem 1.1rem .45rem .7rem;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 1px; min-width: 0; overflow: hidden; font-size: .82rem; line-height: 1.3; }
.sg .pr-k b { font-weight: 650; color: var(--ink); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg .pr-k b a { text-decoration: none; }
.sg .pr-k .ob { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.sg .pr-k .op { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sg .pr-k .lin { color: var(--lt, var(--muted)); font-size: .78rem; font-weight: 600; margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg .pr-k.p3 { justify-content: center; padding-top: .3rem; padding-bottom: .3rem; }
.sg .pr-k.p3 b { font-size: .86rem; }
.sg .pr-k.pusta { background: transparent; border: 1px dashed var(--sg-kreska2); }
.sg .pr-k.ja { padding: 1rem 1.3rem 1rem 1.1rem; }
.sg .pr-k.ja b { font-family: var(--fh); font-size: 2rem; font-stretch: 78%; white-space: normal; overflow-wrap: anywhere; line-height: 1.05; }
.sg .pr-k .udzialy { display: flex; flex-direction: column; gap: 6px; margin-top: 1rem; }
.sg .pr-k .udzialy span { font-size: .86rem; color: var(--muted); display: flex; align-items: baseline; gap: 8px; }
.sg .pr-k .udzialy b { font-family: var(--fh); font-size: 1.65rem; font-stretch: 75%; color: var(--lt); white-space: nowrap; min-width: 3.2rem; }
.sg .pr-strip { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; display: flex; flex-direction: column; }
.sg .pr-strip i { flex: 1 1 0; display: block; }
.sg .pr-strip i.nz, .sg .pr-tel-pas rect.nz { opacity: .35; }
.sg .pr-p { min-width: 0; }
.sg .pr-p svg, .sg .pr-tel-w svg, .sg .pr-tel-pas svg { display: block; width: 100%; height: 100%; }
.sg .pasma-rod .wst { opacity: .38; }
.sg .pasma-rod .wst.nz { opacity: .12; }
.sg .pr-tel { display: none; }
.sg .pr-pra { display: none; margin-top: .6rem; }
.sg .pasma-leg { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: .86rem; color: var(--muted); align-items: center; }
.sg .pasma-leg span { display: inline-flex; gap: 8px; align-items: center; }
.sg .pasma-leg span::before { content: ''; width: 22px; height: 10px; background: var(--lk); opacity: .6; flex: 0 0 auto; }
.sg .pasma-leg span.nz::before { background: transparent; border: 1px dashed var(--sg-kreska2); opacity: 1; }
.sg .pasma-leg b { color: var(--ink); font-weight: 650; }

/* każdy konkurs */
.sg .konk-t .mce { font-family: var(--fh); font-size: 1.35rem; font-stretch: 78%; color: var(--ink); font-weight: 600; }
.sg .konk-t .mce.top { color: var(--lt, var(--ink)); }
.sg .konk-t .m-z { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.sg .konk-t .gdzie { width: 26%; }
.sg .tor { display: block; position: relative; height: 2px; background: var(--line); margin: .4rem 0; }
.sg .tor i { position: absolute; top: -6px; width: 4px; height: 14px; background: var(--lk, var(--ink)); }
.sg .lista-k { list-style: none; padding: 0; margin: 1rem 0; border-top: 1px solid var(--line); }
.sg .lista-k li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: .8rem 0; border-bottom: 1px solid var(--line); border-left: 0; }
.sg .lista-k li[style] { padding-left: 12px; border-left: 4px solid var(--lk); }
.sg .lista-k b { color: var(--ink); font-weight: 600; }
.sg .lista-k .p { text-align: right; color: var(--sg-tekst); font-size: .88rem; }
.sg .lista-k small { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
.sg .dwa { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 48px; }

/* strony linii */
.sg .linia-hero { background: linear-gradient(180deg, var(--surf2), var(--bg)); border-bottom: 1px solid var(--line); padding: 56px 0 48px; position: relative; }
.sg .linia-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--lk); opacity: .7; }
.sg .linia-hero { overflow: hidden; }
.sg .linia-hero .wstega { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 240px; pointer-events: none; display: block; }
.sg .linia-hero .wst-p { fill: var(--lk); opacity: .09; }
.sg .linia-hero .wst-l { fill: none; stroke: var(--lk); stroke-width: 2; opacity: .35; vector-effect: non-scaling-stroke; }
.sg .linia-hero .w { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sg .w-kolorze { color: var(--lt) !important; }
.sg .linia-hero .op { color: var(--muted); margin: .6rem 0 0; }
.sg .linia-foto { margin: 0; }
.sg .linia-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sg .linia-foto .sylw { background: var(--bg); padding: 6%; }
.sg .linia-foto .sylw svg { width: 100%; height: auto; display: block; }
.sg .linia-foto figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.sg .pokolenia, .sg .konczy, .sg .kojarzenia, .sg .nastepne { margin-top: 5.5rem; }
/* „Ród od pary założycielskiej” (makieta linia: .rod) — kolumny pokoleń, łuki rodzic → dziecko rysuje saga.js (svg.rod-linki, od 981 px);
   kolumna nie szersza niż ~21rem, żeby przy 2 pokoleniach łuki nie ginęły w szerokich kartach. Telefon: pokolenia jedno pod drugim,
   każde kolejne wcięte z kreską w kolorze linii (drzewo czytelne bez przewijania w bok). */
.sg .rod-drzewo { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 56px; max-width: calc(var(--n) * 21rem + (var(--n) - 1) * 56px); }
.sg .rod-kol { min-width: 0; position: relative; z-index: 1; }
.sg .rod-drzewo .kol-pok-g { border-bottom: 1.5px solid var(--ink); padding-bottom: .55rem; margin-bottom: .85rem; }
.sg .rod-drzewo .wezel { margin-bottom: 12px; padding: .7rem .85rem .75rem; }
.sg .rod-drzewo .wezel b { font-family: var(--fh); font-size: 1.15rem; font-stretch: 85%; font-weight: 600; line-height: 1.15; }
.sg .rod-drzewo .wezel .ob { font-size: .8rem; }
.sg .rod-drzewo .wezel .mal { line-height: 1.35; margin-top: 3px; }
.sg .wezel.zal { border: 2px solid var(--lk); border-left-width: 4px; background: transparent; }
.sg .wezel.plan { border: 2px dashed var(--lk); border-left-width: 4px; background: transparent; }
.sg .wezel.obcy { background: transparent; }
.sg svg.rod-linki { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.sg svg.rod-linki path { fill: none; stroke-width: 2; opacity: .55; }
.sg .kol-pok-g { font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: .6rem; }
.sg .wezel { background: var(--surf); border: 1px solid var(--line); border-left: 4px solid var(--lk); padding: .6rem .75rem; margin-bottom: 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sg .wezel b { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.sg .wezel b a { text-decoration: none; }
.sg .wezel .chip, .sg .chip { align-self: flex-start; font-size: .7rem; font-weight: 600; color: var(--lt, var(--muted)); border: 1px solid currentColor; padding: 0 6px; margin: 2px 0; }
.sg .wezel.obcy { border-style: dashed; border-left-style: solid; }
.sg .wezel.maly { margin: 0; }
.sg .wezel .z { margin-top: 2px; }
.sg .kropki { display: block; width: 100%; height: auto; margin-top: 1rem; }
.sg .kropki .siatka { stroke: var(--line); }
.sg .kropki .os-t { font-family: var(--fb); font-size: 12px; fill: var(--muted); }
.sg .kropki .os-m { font-family: var(--fb); font-size: 11px; fill: var(--muted); }
.sg .kropki .kr-i { fill: var(--sg-reszta); }
.sg .kropki .kr-l { stroke: var(--bg); stroke-width: 1.5; }
.sg .kropki .et { font-family: var(--fb); font-size: 13px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.sg .top-wyn { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 12px 28px; }
.sg .top-wyn li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: baseline; border-top: 1px solid var(--line); padding-top: .7rem; }
.sg .top-wyn > li > b { font-family: var(--fh); font-size: 2.1rem; font-stretch: 75%; color: var(--lt, var(--ink)); font-weight: 600; line-height: 1; }
.sg .top-wyn > li > span { display: block; color: var(--ink); min-width: 0; }
.sg .top-wyn small { display: block; color: var(--muted); font-size: .8rem; }
.sg .koj { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 10px; align-items: stretch; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.sg .koj > .razy, .sg .koj > .koj-d { align-self: center; }
.sg .koj-d { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sg .koj-d li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sg .nastepne { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0; position: relative; }
.sg .nastepne a { display: flex; flex-direction: column; gap: 4px; padding: 1.4rem 1.4rem 1.4rem 0; text-decoration: none; }
.sg .nastepne a + a { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.sg .nastepne small { font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sg .nastepne b { font-family: var(--fh); font-size: 1.75rem; font-stretch: 78%; color: var(--lt); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* porównanie, oś, kratka */
.sg .porownanie { margin-top: 5.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.sg .wybor { gap: 12px; flex-wrap: wrap; margin-top: 1rem; }
.sg .wybor label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.sg .wybor select { font: inherit; font-size: .94rem; min-height: 46px; padding: 0 10px; background: var(--surf); color: var(--ink); border: 1px solid var(--sg-kreska2); }
.sg .sg-js { display: none; }
html.sh-js .sg .sg-js { display: flex; }
.sg .motyl { border-top: 1.5px solid var(--ink); }
.sg .motyl[hidden] { display: none; }
.sg .motyl-g { display: flex; justify-content: space-between; gap: 16px; padding: .8rem 0; }
.sg .motyl-g b { font-family: var(--fh); font-size: 1.3rem; font-stretch: 80%; color: var(--lt); }
.sg .motyl-w { display: grid; grid-template-columns: minmax(0, 1fr) 11rem minmax(0, 1fr); gap: 10px; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.sg .motyl-w .n { text-align: center; font-size: .78rem; color: var(--muted); line-height: 1.25; }
.sg .motyl-w .l, .sg .motyl-w .p { display: flex; align-items: center; gap: 8px; }
.sg .motyl-w .l { flex-direction: row-reverse; }
.sg .motyl-w i { display: block; height: 14px; background: var(--lk); min-width: 2px; }
.sg .motyl-w b { font-family: var(--fh); font-size: 1.15rem; font-stretch: 80%; color: var(--ink); white-space: nowrap; }
.sg .saga-os { margin-top: 5.5rem; }
.sg .os-lat { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(6.8rem, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.sg .os-lat > li { padding: 1rem 12px 1rem 0; position: relative; }
.sg .os-lat > li::before { content: ''; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.sg .os-lat > li > b { display: block; font-family: var(--fh); font-size: 1.5rem; font-stretch: 78%; color: var(--ink); margin: .3rem 0 .4rem; }
.sg .os-lat p { font-size: .84rem; border-left: 3px solid var(--lk); padding-left: 8px; margin: 0 0 .6rem; }
.sg .os-lat p.neutral { border-left-color: var(--sg-kreska2); }
/* oś „Od pierwszej pary do dziś” (makieta linie: rok nad osią, kropka w kolorze linii na każdy wpis, plan kreskowany, rok z kilkoma
   wpisami — dwie kolumny) */
.sg .saga-os .os-lat { border-top: 0; display: flex; flex-wrap: wrap; row-gap: 1.2rem; }
.sg .saga-os .os-lat > li { padding-top: 0; flex: 1 1 6.6rem; min-width: 0; }
.sg .saga-os .os-lat > li::before { display: none; }
.sg .saga-os .os-lat > li.szeroki { flex: 2 1 13.2rem; }
.sg .saga-os .os-lat p { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.sg .saga-os .os-lat > li > b { margin: 0 0 .5rem; }
.sg .saga-os .kropki { position: relative; display: flex; gap: 4px; height: 12px; margin: 0 0 .9rem; }
.sg .saga-os .kropki::before { content: ''; position: absolute; left: 0; right: -12px; top: 5px; height: 1.5px; background: var(--sg-kreska2); }
.sg .saga-os .kropki i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--lk); border: 2px solid var(--bg); box-sizing: content-box; margin: -2px 0 0 -2px; }
.sg .saga-os .kropki i.neutral { background: var(--ink); }
.sg .saga-os .kropki i.plan { background: var(--bg); border: 2px dashed var(--lk); width: 8px; height: 8px; margin: 0; }
/* karta linii: oś pokoleń z większymi kółkami, młode z par kursywą, „także w linii” jako ostatni krok osi, liczby bez ramek (makieta) */
.sg .karta-linii .os-pok li::before { width: 14px; height: 14px; left: -32px; top: 1px; border-width: 2.5px; }
.sg .karta-linii .os-pok li { padding-bottom: 1rem; }
.sg .karta-linii .os-pok .imie.plan { font-style: italic; color: var(--sg-tekst); }
.sg .karta-linii .os-pok .samotne-k .przecinki { gap: 0 4px; font-size: .84rem; }
.sg .karta-linii .os-pok .samotne-k .imie { gap: 0; }
.sg .karta-linii .os-pok .samotne-k .imie i { display: none; }
.sg .karta-linii .os-pok .samotne-k .imie:not(:last-of-type)::after { content: ','; }
.sg .karta-linii .liczby4 { border: 0; gap: .9rem 1rem; }
.sg .karta-linii .liczby4 > div, .sg .karta-linii .liczby4 > div + div, .sg .karta-linii .liczby4 > div:nth-child(n) { border: 0; padding: 0; }
.sg .karta-linii .liczby4 dd { font-size: 2rem; line-height: 1.12; }
.sg .karta-linii .liczby4 dt { margin-top: 2px; }
@media (min-width: 981px) {
  .sg .karta-linii { position: relative; }
  .sg .karta-linii + .karta-linii::before { content: ''; position: absolute; left: -16px; top: 0; bottom: 0; width: 1px; background: var(--line); }
}
@media (max-width: 760px) {
  .sg .saga-os .os-lat { display: block; border-left: 1.5px solid var(--sg-kreska2); margin-left: 6px; }
  .sg .saga-os .os-lat > li, .sg .saga-os .os-lat > li.szeroki { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0 10px; padding: 0 0 .6rem 14px; }
  .sg .saga-os .os-lat > li > b { grid-row: 1 / span 9; font-size: 1.3rem; }
  .sg .saga-os .kropki { position: absolute; left: -8px; top: 6px; flex-direction: column; height: auto; margin: 0; }
  .sg .saga-os .kropki::before { display: none; }
}
.sg .uczciwie { margin-top: 5.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sg .kratka { display: grid; grid-template-columns: repeat(auto-fill, 18px); gap: 4px; }
.sg .kratka i { width: 18px; height: 18px; background: var(--lk); display: block; }
.sg .kratka i.pusta { background: transparent; border: 1px solid var(--sg-kreska2); }
.sg .kratka-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.sg .kratka-leg span { display: inline-flex; align-items: center; gap: 6px; }
.sg .kratka-leg i { width: 11px; height: 11px; background: var(--lk); display: inline-block; }
.sg .kratka-leg .pusta i { background: transparent; border: 1px solid var(--sg-kreska2); }

/* wyniki sezonu */
.sg .filtr { gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 1rem; padding-bottom: 1rem; }
.sg .filtr button { font: inherit; font-size: .88rem; min-height: 44px; padding: 0 14px; background: none; border: 1px solid transparent; color: var(--sg-tekst); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sg .filtr button i { width: 18px; height: 6px; background: var(--lk); }
.sg .filtr button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.sg .loty { margin-top: 2.6rem; }
.sg .loty-g { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1.5px solid var(--ink); padding-bottom: .4rem; }
.sg .loty-g h2 { font-size: 1.85rem; margin: 0; }
.sg .loty-l { list-style: none; margin: 0; padding: 0; }
.sg .loty-l li { display: grid; grid-template-columns: 2.2rem 3.6rem minmax(0, 1.25fr) minmax(0, 1.8fr) 4.2rem minmax(0, 1.45fr); gap: 14px; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.sg .loty-l .data { color: var(--muted); font-size: .88rem; }
.sg .loty-l .miejsce b { color: var(--ink); font-weight: 600; display: block; }
.sg .loty-l .miejsce b a { text-decoration: none; }
.sg .loty-l .miejsce small, .sg .loty-l .naj small { display: block; font-size: .76rem; color: var(--muted); }
.sg .pas-lotu { display: flex; height: 16px; min-width: 0; }
.sg .pas-lotu i { display: block; height: 100%; background: var(--lk); transition: opacity .2s; }
.sg .pas-lotu i + i { box-shadow: -2px 0 0 var(--bg); }
.sg .pas-lotu i.reszta { background: var(--sg-reszta); }
.sg .pas-lotu i.neutral { background: var(--sg-neutral); }
.sg .pas-lotu i.wlozone { background: var(--sg-mlode); box-shadow: none; }
.sg [data-sg-loty][data-filtr] .pas-lotu i { opacity: .16; }
.sg [data-sg-loty][data-filtr] .pas-lotu i.on { opacity: 1; }
.sg .loty-l .ile { text-align: right; line-height: 1; }
.sg .loty-l .ile b { font-family: var(--fh); font-size: 1.6rem; font-stretch: 75%; color: var(--ink); font-weight: 600; display: block; }
.sg .loty-l .ile small { font-size: .7rem; color: var(--muted); }
.sg .loty-l .naj { font-size: .88rem; min-width: 0; }
.sg .loty-l .naj > span:first-child { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sg .loty-l .naj b { font-family: var(--fh); font-size: 1.1rem; color: var(--ink); }
.sg .kw { display: inline-block; width: 9px; height: 9px; background: var(--lk); }
.sg .legenda-dol { margin-top: 1rem; }
.sg .podsum { margin-top: 5.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 56px; align-items: start; }
.sg .podsum-t .ln { border-left: 4px solid var(--lk); padding-left: 10px; font-weight: 600; color: var(--ink); }
.sg .podsum-t tr.reszta .ln { border-left-color: var(--sg-reszta); color: var(--muted); font-weight: 500; }
.sg .podsum-t .duza-l { font-family: var(--fh); font-size: 1.4rem; font-stretch: 78%; color: var(--lt, var(--ink)); font-weight: 600; }
.sg .archiwum { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 3rem; padding-top: 1rem; position: relative; }
.sg .archiwum a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; }
.sg .archiwum a[aria-current] { font-weight: 700; color: var(--ink); text-decoration-thickness: 2px; }
.sg .archiwum .dalej { margin-left: auto; }

/* lot */
.sg .lot-g .ns-g { align-items: start; }
.sg .lot-pasek .liczby4 { margin-top: 0; }
.sg .zywo { margin-top: 3rem; border: 2px solid var(--ink); padding: 1.6rem; }
.sg .sasiednie { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 4rem; padding-top: 1rem; position: relative; }
.sg .sasiednie::before, .sg .archiwum::before { content: ''; position: absolute; top: 0; left: var(--kl, 0); right: var(--kl, 0); height: 1px; background: var(--line); }
.sg .sasiednie.w, .sg .archiwum.w { --kl: var(--g); }
.sg .sasiednie a { min-height: 44px; display: block; padding: 10px 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.sg .sasiednie small { color: var(--muted); font-weight: 400; }
.sg .sasiednie .nast { text-align: right; }

/* sprzedaż, oferta, rezerwacje */
.sg .oferty { display: flex; flex-direction: column; }
.sg .oferta { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 14rem; gap: 32px; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.sg .oferta-f { margin: 0; background: var(--surf2); border-bottom: 4px solid var(--lk); position: relative; align-self: start; }
.sg .oferta-f img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sg .oferta-f .sylw { padding: 10% 6%; }
.sg .oferta-f .sylw svg { width: 100%; height: auto; display: block; }
.sg .znaczek { position: absolute; left: 8px; top: 8px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 600; padding: 3px 8px; }
.sg .oferta-s h2 { font-size: 1.85rem; }
.sg .oferta-s h2 a { text-decoration: none; }
.sg .pok-zd { font-size: 1.05rem; color: var(--ink); margin: .4rem 0 .2rem; }
.sg .pok-zd b { font-family: var(--fh); font-size: 1.8rem; font-stretch: 75%; color: var(--lt); }
.sg .rodzice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1rem 0; }
.sg .rodzice2 > div { border-top: 2px solid var(--lk); padding-top: .5rem; display: flex; flex-direction: column; min-width: 0; }
.sg .rodzice2 small { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sg .rodzice2 b { color: var(--ink); font-family: var(--fh); font-size: 1.15rem; font-stretch: 80%; }
.sg .oferta-c { border-left: 1px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.sg .oferta-c .cena { font-size: 2rem; }
.sg .trzy-info { margin-top: 5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0; position: relative; }
.sg .trzy-info::before, .sg .nastepne::before { content: ''; position: absolute; top: 0; left: var(--g); right: var(--g); height: 1.5px; background: var(--ink); }
.sg .nastepne::before { height: 1px; background: var(--sg-kreska2); }
.sg .trzy-info > div { padding: 1.4rem 1.4rem 1.4rem 0; }
.sg .trzy-info > div + div { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.sg .trzy-info .duzy { display: block; font-family: var(--fh); font-size: 2.2rem; font-stretch: 75%; color: var(--ink); }
.sg .cena-g { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .8rem 0; margin-bottom: 1rem; flex-wrap: wrap; }
.sg .cena-g .cena { font-size: 2.3rem; }
.sg .cena-g span { font-size: .85rem; color: var(--muted); }
.sg .cena-g span b { color: var(--ink); }
.sg .pary { display: flex; flex-direction: column; gap: 0; }
.sg .para { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.sg .para-s h2 { font-size: 1.85rem; }
.sg .para .rownanie { align-self: start; align-items: stretch; }
.sg .liczby-duze { margin: 1.5rem 0 0; }
.sg .liczby-duze dd { font-size: 2.4rem; }
.sg .liczby-duze dt { font-size: .86rem; margin-top: .3rem; }
.sg .liczby-duze + .maly-t, .sg .liczby-duze + h2 { margin-top: 3rem; }
.sg .rok-sek { margin-top: 5rem; }
.sg .rok-sek .mistrz { max-width: 48rem; }
.sg .rok-sek .top-wyn { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 12px 24px; }
.sg .liczby4.tekst dd { font-size: 1.15rem; font-stretch: 85%; line-height: 1.2; }
.sg .miejsca { display: flex; gap: 6px; flex-wrap: wrap; margin: .8rem 0; }
.sg .miejsca i { width: 22px; height: 22px; border: 1.5px solid var(--ink); display: block; }
.sg .miejsca i.z { background: var(--ink); }
.sg .miejsca i.k { border-style: dashed; border-color: var(--sg-kreska2); }

/* formularze */
.sg .formularz { background: var(--surf); border-top: 3px solid var(--ink); padding: 1.4rem 1.4rem 1.6rem; }
.sg .formularz h3 { margin-bottom: .3rem; }
.sg .pole { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.sg .pole label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.sg .pole input, .sg .pole select, .sg .pole textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--sg-kreska2); border-radius: var(--r, 2px); padding: 10px 12px; min-height: 48px; width: 100%; }
.sg .pole textarea { min-height: 110px; resize: vertical; }
.sg .pola2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sg .wiersz { display: flex; gap: 8px; }
.sg .wiersz input { flex: 1; min-width: 0; }
.sg .ok { background: var(--surf2); border-left: 4px solid var(--ink); padding: .8rem 1rem; color: var(--ink); font-weight: 600; }
.sg .blad { color: #b3261e; font-weight: 600; margin-top: .6rem; }
.sg .obserwuj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: end; border-top: 1.5px solid var(--ink); padding-top: 1.2rem; margin-top: 1.4rem; }
.sg .opinie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 24px; margin: 1.4rem 0; }
.sg .opinia { margin: 0; border-top: 2px solid var(--ink); padding-top: .8rem; }
.sg .opinia blockquote { margin: 0 0 .6rem; font-size: 1rem; color: var(--ink); }
.sg .opinia figcaption { font-size: .82rem; color: var(--muted); }
.sg .opinia .chip { margin-left: 8px; }
.sg .opinia-f summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.sg .opis-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0 0 1.2rem; font-size: .92rem; }
.sg .opis-dl dt { color: var(--muted); }
.sg .opis-dl dd { margin: 0; color: var(--ink); }
.sg .o-hod-g { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sg .o-hod-f { margin: 0 0 1rem; }
.sg .o-hod-f img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sg .kontakt-g { margin-top: 1rem; }
.sg .kontakt-g .obserwuj { grid-template-columns: 1fr; }

/* mapa */
.sg .mapa-g { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.sg .mapa { display: block; width: 100%; height: auto; background: var(--surf2); }
.sg .mapa .m-pl { fill: var(--bg); stroke: var(--sg-kreska2); stroke-width: 1.3; }
.sg .mapa .m-tr { stroke: var(--ink); opacity: .35; stroke-linecap: round; }
.sg .mapa .m-pk { fill: var(--ink); stroke: var(--bg); stroke-width: 2; }
.sg .mapa a:hover .m-pk { fill: var(--sg-neutral); }
.sg .mapa .m-t { font-family: var(--fb); font-size: 13px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--surf2); stroke-width: 4px; }
.sg .mapa .m-tm { display: none; }
.sg .mapa .m-dom { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 3; }
.sg .mapa .m-dom-s { fill: var(--ink); }

/* kronika — wpis */
.sg .wpis { padding-top: 40px; max-width: 52rem; }
.sg .wpis h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1.2rem; }
.sg .wpis-f { margin: 0 0 1.4rem; }
.sg .wpis-f img { width: 100%; display: block; }
.sg .wpis-t p { font-size: 1.08rem; color: var(--ink); }

/* 404 */
.sg .n404 { padding-top: 72px; min-height: 50vh; }

/* stopka */
.sg .stopka { border-top: 1px solid var(--line); margin-top: 7rem; padding: 44px 0 40px; font-size: .86rem; color: var(--muted); }
.sg .stopka-g { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 1.2rem; }
.sg .stopka b { color: var(--ink); font-weight: 600; }
.sg .stopka p { margin: 0 0 6px; }
.sg .stopka .st-herb { display: block; width: 56px; margin-bottom: .6rem; }
.sg .stopka .st-herb svg { width: 100%; height: auto; }
.sg .stopka .st-menu { list-style: none; padding: 0; margin: .6rem 0 0; columns: 2; }
.sg .stopka .st-menu a { display: inline-block; padding: 4px 0; }
.sg .st-mg { font-size: .8rem; }
.sg .zima + .stopka, .sg .zima ~ .w + .stopka { margin-top: 0; }

/* ——— poprawki po przeglądzie zrzutów (23.10) ——— */
.sg .nw { white-space: nowrap; }
.sg .tab td.nw { white-space: nowrap; }
/* zdjęcia gołębi: kadr od góry (głowa nie jest ucinana) */
.sg .karta-g-f img, .sg .linia-foto img, .sg .spot-ptak img, .sg .oferta-f img, .sg .golab-k-f img, .sg .rodzic .syl img { object-position: center top; }
/* tytuły i trofea — oś lat */
.sg .trofea-os { list-style: none; padding: 0; margin: 1.4rem 0 1rem; border-top: 1.5px solid var(--ink); }
.sg .trofea-os > li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 4px 24px; padding: 1rem 0; border-bottom: 1px solid var(--line); position: relative; }
.sg .trofea-os .rok-t { font-family: var(--fh); font-size: 1.7rem; font-stretch: 78%; font-weight: 600; color: var(--ink); line-height: 1.1; }
.sg .trofea-os ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sg .trofea-os ul li { border-left: 3px solid var(--sg-kreska2); padding-left: 12px; display: flex; flex-direction: column; gap: 1px; }
.sg .trofea-os ul li b { color: var(--ink); font-weight: 600; }
.sg .trofea-os ul li.mistrz { border-left-color: var(--ink); }
.sg .trofea-os ul li.mistrz b { font-weight: 700; }
.sg .trofea-os ul li.podium { border-left-color: var(--muted); }
/* mistrzostwa: karty na telefonie */
.sg .mistrz-tel { display: none; list-style: none; padding: 0; margin: 1rem 0; border-top: 1px solid var(--line); }
.sg .mistrz-tel > li { padding: .8rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline; }
.sg .mistrz-tel .rok-t { font-family: var(--fh); font-size: 1.4rem; font-stretch: 78%; color: var(--ink); }
.sg .mistrz-tel .kat { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }
.sg .mistrz-tel .kat .zloty b, .sg .mistrz-tel .kat .podium b { color: var(--ink); }
.sg .mistrz-tel .kat .zloty b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* lot: blok gołębi z konkursem (najlepsza lista każdego gołębia) */
.sg .lot-t .lista-r { display: block; font-size: .76rem; color: var(--muted); }
.sg .przypis { margin-top: .6rem; }
.sg .konkursy-g > p.mal { margin-top: .9rem; }
.sg .lot-pasek .maly-t { margin-bottom: .2rem; }
/* gołębie: stałe szerokości kolumn, roczniki bez wyników zwinięte */
.sg .golebie-t { table-layout: fixed; }
.sg .golebie-t col.c-r { width: 6rem; }
.sg .golebie-t col.c-p { width: 7rem; }
.sg .golebie-t col.c-rod { width: 10rem; }
.sg .golebie-t col.c-k { width: 9rem; }
.sg .golebie-t col.c-c { width: 9rem; }
.sg .golebie-t td:first-child { overflow-wrap: anywhere; }
.sg details.zwin > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--ink); }
/* karty linii: liczby i link na dole karty (równe kolumny) */
.sg .karta-linii .liczby4 { margin-top: auto; }
.sg .karta-linii .dalej { align-self: flex-start; }
.sg .karta-linii .liczby4 + .dalej, .sg .karta-linii .mal + .dalej { margin-top: .2rem; }

/* ——— telefon / tablet ——— */
@media (max-width: 1180px) {
  .sg .nl { padding: 0 12px; } .sg .nl::before { left: 12px; right: 12px; }
  .sg .nl small { display: none; }
  .sg-glowa .menu-linie .wsz { padding: 0 12px; }
  .sg .loty-l li { grid-template-columns: 2rem 3.4rem minmax(0, 1.3fr) minmax(0, 1.5fr) 3.8rem minmax(0, 1.4fr); }
}
@media (max-width: 980px) {
  .sg { --g: 16px; padding-bottom: 76px; }
  .sg-glowa .w { min-height: 64px; gap: 10px; }
  .sg .marka svg { width: 32px; height: 32px; }
  .sg .marka b { font-size: 1.2rem; }
  .sg .menu-linie, .sg .menu-reszta { display: none; }
  .sg .motyw-m { margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 12px; }
  .sg .motyw-m span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .sg .pasek-linii { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--bg); }
  .sg .pasek-linii a { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 10px 6px 12px; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); line-height: 1.15; min-width: 0; }
  .sg .pasek-linii a::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--lk); opacity: .55; }
  .sg .pasek-linii a[aria-current]::before { opacity: 1; height: 5px; }
  .sg .pasek-linii small { font-size: .72rem; color: var(--muted); }
  .sg .pasek-linii b { font-size: .88rem; color: var(--ink); font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
  .sg .dol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surf); border-top: 1px solid var(--sg-kreska2); padding-bottom: env(safe-area-inset-bottom); }
  .sg .dol a, .sg .dol button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; font: inherit; font-size: .74rem; text-decoration: none; color: var(--muted); background: none; border: 0; cursor: pointer; min-width: 0; }
  .sg .dol span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .sg .dol a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 3px 0 var(--ink); }
  .sg .dol svg { width: 22px; height: 22px; }
  html.sh-menu-otwarte .sg-menu { display: block; position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; padding: 16px 16px 90px; }
  .sg-menu-g { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
  .sg-menu-g b { font-family: var(--fh); font-size: 1.3rem; color: var(--ink); font-stretch: 80%; }
  .sg-menu-g button { font: inherit; min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--sg-kreska2); color: var(--ink); cursor: pointer; }
  .sg-menu ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
  .sg-menu li a { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .sg-menu li a[aria-current] { font-weight: 700; }
  .sg-menu-linie i { width: 18px; height: 6px; background: var(--lk); }
  .sg-menu-d { display: flex; gap: 12px; flex-wrap: wrap; }
  .sg-menu-d .tek a, .sg-menu-d .jez a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--sg-kreska2); text-decoration: none; color: var(--ink); margin-right: 4px; }
  .sg-menu-d [aria-pressed="true"], .sg-menu-d [aria-current] { background: var(--ink); color: var(--bg) !important; }
  .sg .hero { padding-top: 30px; }
  .sg .hero-g, .sg .sezon-g, .sg .spot, .sg .zlota-g, .sg .zima .w, .sg .ns-g, .sg .sek-g, .sg .karta-g, .sg .linia-hero .w, .sg .porownanie, .sg .uczciwie,
  .sg .podsum, .sg .mapa-g, .sg .o-hod-g, .sg .para, .sg .obserwuj { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sg .sezon, .sg .spot, .sg .zlota, .sg .mlode-sek, .sg .asy, .sg .blok { margin-top: 4.5rem; }
  .sg .zima { margin-top: 4.5rem; } .sg .zima .w { padding-top: 40px; padding-bottom: 40px; }
  .sg .karty-linii { grid-template-columns: minmax(0, 1fr); }
  .sg .karty3 { grid-template-columns: minmax(0, 1fr); }
  .sg .belka-opisy { display: none; }
  .sg .belka-lista { display: grid; }
  .sg .lw { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; padding: 20px 0; }
  .sg .lw .spark-blok, .sg .lw dl { grid-column: 1 / -1; }
  .sg .lw .duza { text-align: right; font-size: 2.7rem; }
  .sg .rownanie { grid-template-columns: minmax(0, 1fr); }
  .sg .razy { padding: 6px 0; font-size: 1.4rem; }
  .sg .potomki { margin-left: 10px; }
  .sg .potomki li { grid-template-columns: minmax(0, 1fr); }
  .sg .potomki .w2 { text-align: left; }
  .sg .rod-drzewo { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: none; }
  .sg .rod-kol { margin-bottom: 14px; }
  .sg .rod-kol + .rod-kol { margin-left: calc(min(var(--i, 1), 4) * 12px); padding-left: 12px; border-left: 2px solid var(--lk); }
  .sg svg.rod-linki { display: none; }
  .sg .koj { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sg .koj .razy { justify-content: flex-start; }
  .sg .oferta { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sg .oferta-f { max-width: 22rem; }
  .sg .oferta-c { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
  .sg .rod-sek, .sg .konkursy-g, .sg .kariera, .sg .dwa, .sg .pokolenia, .sg .konczy, .sg .kojarzenia, .sg .nastepne, .sg .saga-os, .sg .porownanie, .sg .uczciwie, .sg .podsum { margin-top: 3.5rem; }
  .sg .kronika-l > li, .sg .kronika-l.duza-l > li.z-foto { grid-template-columns: minmax(0, 1fr); }
  .sg .stopka { margin-top: 4.5rem; padding: 32px 0 30px; }
  .sg .stopka-g { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sg .nastepne a + a { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .sg .trzy-info > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .sg .archiwum .dalej { margin-left: 0; }
}
@media (max-width: 760px) {
  .sg .siec-poz { display: none; }
  .sg .siec-pion { display: block; max-width: 420px; margin: 0 auto; }
  .sg .siec-leg { display: flex; }
  .sg .znaki .zr { margin-left: 0; }
  .sg .tab .d { display: none; }
  .sg .tylko-szer { display: none; } /* opisy kolumn, których na telefonie nie ma (kreska „gdzie na liście”, coef.) */
  .sg .tab { font-size: .88rem; }
  .sg .golebie-t .ob { display: block; }
  .sg .loty-l li { grid-template-columns: 3.2rem minmax(0, 1fr) 3.4rem; grid-template-areas: "data miejsce ile" "pas pas pas" "naj naj naj"; gap: 6px 12px; }
  .sg .loty-l .nr { display: none; }
  .sg .loty-l .data { grid-area: data; }
  .sg .loty-l .miejsce { grid-area: miejsce; min-width: 0; }
  .sg .loty-l .pas-lotu { grid-area: pas; }
  .sg .loty-l .ile { grid-area: ile; }
  .sg .loty-l .naj { grid-area: naj; }
  .sg .motyl-w { grid-template-columns: minmax(0, 1fr) 6.5rem minmax(0, 1fr); gap: 6px; }
  .sg .motyl-w b { font-size: 1rem; }
  .sg .pola2 { grid-template-columns: minmax(0, 1fr); }
  .sg .rodzice2 { grid-template-columns: minmax(0, 1fr); }
  .sg .spot-graf { flex-direction: column; padding: 18px 16px 30px; }
  .sg .spot-graf .pasma { width: 100%; }
  .sg .spot-ptak { width: 70%; }
  .sg .trzy-liczby div { padding-right: 12px; margin-right: 12px; max-width: 9rem; }
  .sg .trzy-liczby b { font-size: 1.8rem; }
  .sg .liczby4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg .liczby4 > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .sg .liczby4 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sg .liczby-duze dd { font-size: 2rem; }
  .sg .liczby-duze > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sg .rok-sek { margin-top: 3.5rem; }
  /* rodowód w pasmach na telefonie: pionowo — pasek pradziadków, dziadkowie, rodzice, gołąb */
  .sg .pr-nagl, .sg .pr-siatka { display: none; }
  .sg .pr-tel { display: block; }
  .sg .pr-pra { display: block; }
  .sg .pr-tel-pas { height: 12px; }
  .sg .pr-tel-w { height: 34px; }
  .sg .pr-tel-rz { display: grid; grid-template-columns: repeat(var(--kol, 4), minmax(0, 1fr)); }
  .sg .pr-tel-rz > .pr-k { margin: 0 2px; border-left: 1px solid var(--line); border-top: 4px solid var(--lk); padding: .45rem .5rem; min-height: 4.2rem; }
  .sg .pr-tel-rz > .pr-k.pusta { border: 1px dashed var(--sg-kreska2); }
  .sg .pr-tel-rz > .pr-k.p2 { padding: .4rem .3rem .4rem .4rem; }
  .sg .pr-tel-rz > .pr-k.p2 b { white-space: normal; overflow-wrap: break-word; font-size: .8rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .sg .pr-tel-rz > .pr-k.p1 b { font-size: 1.02rem; }
  .sg .pr-tel-rz > .pr-k.ja b { font-size: 1.7rem; }
  .sg .pr-tel-rz > .pr-k .udzialy { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; margin-top: .5rem; }
  .sg .pr-tel-rz > .pr-k .udzialy b { font-size: 1.25rem; min-width: 0; }
  .sg .kropki .os-m { display: none; }
  .sg .wiersz { flex-direction: column; }
}
@media (max-width: 400px) {
  .sg h1 { font-size: 2.3rem; }
  .sg .hero h1 { font-size: 2.45rem; }
  .sg .legenda .wiersz { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .sg .legenda .pas { width: 30px; }
}
@media (max-width: 760px) {
  .sg .mistrz-szer { display: none; }
  .sg .mistrz-tel { display: block; }
  .sg .trofea-os > li { grid-template-columns: minmax(0, 1fr); }
  .sg .kropki-box, .sg .kropki-opis { display: none; }
  .sg .golebie-t { table-layout: auto; }
  .sg .golebie-t col { width: auto !important; }
  /* kolumny z klasą „d” znikają w komórkach (display:none) — ten sam mechanizm w <col>, inaczej kolumny przesuwają się względem siatki */
  .sg .golebie-t col.c-p, .sg .golebie-t col.c-rod, .sg .golebie-t col.c-c { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .sg .nl::before { transition: transform .25s; }
  .sg .siec circle, .sg .pas-lotu i { transition: opacity .25s; }
}
.sg .hist-tx { margin: 1.2rem 0 1.6rem; }
.sg .hist-tx .lead + .lead { margin-top: .8rem; }

/* Z283 K62: etykiety map — na telefonie większy napis (mapa 620 j. w ~343 px: 20 j. ≈ 11 px), rozmieszczony osobno (.m-tm), bez nakładania */
@media (max-width: 760px) {
  .sg .mapa .m-td { display: none; }
  .sg .mapa .m-tm { display: inline; }
  .sg .mapa .m-t { font-size: 20px; stroke-width: 6px; }
}
/* Z283 K67: sekcja po osi „Historia hodowli” nie skleja się z osią */
.sg .saga-os + section.w { margin-top: 5.5rem; }
@media (max-width: 980px) { .sg .saga-os + section.w { margin-top: 3.5rem; } }
/* Z283 K67: Rezerwacje — para rodziców nad tytułem karty, legenda kwadracików miejsc */
.sg .para-nazwa { margin: 0 0 .2rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sg .miejsca-leg { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: -.3rem 0 .6rem; }
.sg .miejsca-leg span { display: inline-flex; align-items: center; gap: 6px; }
.sg .miejsca-leg i { width: 11px; height: 11px; border: 1.5px solid var(--ink); display: inline-block; }
.sg .miejsca-leg i.z { background: var(--ink); }
.sg .miejsca-leg i.k { border-style: dashed; border-color: var(--sg-kreska2); }
/* Z283 K65: plakietka „zakup potwierdzony” w jednej linii; „Dodaj opinię” z widoczną oznaką rozwijania; zdanie o akceptacji nad formularzem */
.sg .chip { white-space: nowrap; display: inline-block; }
.sg .opinia-info { margin: 1rem 0 .4rem; }
.sg .opinia-f summary { list-style: none; gap: 10px; }
.sg .opinia-f summary::-webkit-details-marker { display: none; }
.sg .opinia-f summary::before { content: '+'; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1.5px solid var(--ink); font-size: 1.1rem; line-height: 1; flex: none; }
.sg .opinia-f[open] summary::before { content: '–'; }
.sg .opinia-f[open] summary { margin-bottom: .6rem; }
@media (max-width: 520px) { .sg .opinia-f .pola2 { grid-template-columns: minmax(0, 1fr); } }
/* Z283 K67: galeria w równych rzędach na komputerze (6 zdjęć = 3+3, nie 4+2) */
@media (min-width: 981px) { .sg .galeria { grid-template-columns: repeat(var(--gk, 4), minmax(0, 1fr)); } }

/* Z283 K67 (poprawki 2): legenda numerów pod mapą (tylko telefon), link „Wszystkie pary”, 404, napisy „zima” */
.sg .tylko-tel { display: none; }
.sg .m-leg { margin: .2rem 0 0; padding-left: 1.6rem; font-size: .9rem; }
.sg .m-leg li { padding: 2px 0; }
.sg .m-leg-t { margin: .8rem 0 0; }
.sg .dalej-pary { margin-top: 1.6rem; }
.sg .n404 h1 { margin: .4rem 0 1rem; }
.sg .n404 .lead { margin: 0 0 1.6rem; }
.sg .n404 .btn { margin-bottom: .4rem; }
.sg .n404 .skoki { margin-top: 2rem; }
.sg .mapa .m-nr { font-weight: 800; }
@media (max-width: 760px) {
  .sg .tylko-tel { display: block; }
  .sg ol.m-leg.tylko-tel { display: block; }
  .sg .zima-t { font-size: 16px; }
  .sg .zima-m { font-size: 15px; }
}
@media (min-width: 761px) {
  .sg .lot-t th:first-child, .sg .lot-t td:first-child { width: 9rem; text-align: left; padding-left: 4px; }
}

/* odbior Kronika: nazwa linii w menu naglowka nie lamie sie (ani w slowie, ani na mysleniku) */
.sg .menu-linie .nl b { display: block; white-space: nowrap; overflow-wrap: normal; text-overflow: ellipsis; -webkit-line-clamp: unset; }
@media (max-width: 1180px) {
  .sg-glowa .w { gap: 12px; }
  .sg .menu-linie .nl b { font-size: .82rem; }
  .sg .menu-linie .nl { padding: 0 9px; } .sg .menu-linie .nl::before { left: 9px; right: 9px; }
  .sg .menu-linie .wsz { padding: 0 9px; font-size: .82rem; }
  .sg .menu-reszta { padding-left: 6px; } .sg .menu-reszta > a { padding: 11px 7px; font-size: .86rem; }
}

/* Z283 K92: porównanie linii — kropka przy wyższej wartości w wierszu (makieta linie: „●” za liczbą) i zdanie pod tabelą */
.sg .motyl-w .wk { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lk); flex: none; align-self: center; margin-top: -6px; }
.sg .motyl .wniosek { margin: 1rem 0 0; font-size: 1rem; line-height: 1.5; max-width: 46em; color: var(--sg-tekst); }

/* K85 Uwaga 2: pasek „Najprościej zadzwonić” pod tytułem strony Kontakt (telefon przed formularzem, Obserwuj na końcu) */
.sg .tel-pasek { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; background: var(--surf); border-top: 3px solid var(--ink); padding: 1.1rem 1.4rem; }
.sg .tel-pasek-w { margin-top: 1.2rem; }
.sg .tel-pasek h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0 0 .15rem; }
.sg .tel-pasek p { margin: 0; font-size: .95rem; }
.sg .tel-pasek .btn.tel { min-height: 52px; font-size: 1.05rem; padding: 0 26px; }
@media (max-width: 640px) { .sg .tel-pasek { flex-direction: column; align-items: stretch; } .sg .tel-pasek .btn.tel { width: 100%; } }
