/* Wersja publiczna: własne karty, sylwetki pojazdów, nazwiska zamiast portretów */
.cart { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 9%; text-align: left; background: linear-gradient(155deg, var(--b), var(--a) 70%); color: #fff; box-shadow: inset 0 0 0 5px var(--b); container-type: inline-size; }
.cart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cart b, .fan .cart b { position: relative; font: 400 22cqw/.88 var(--display); text-transform: uppercase; overflow-wrap: anywhere; text-shadow: 0 2px 0 var(--a); }
.cart small { position: relative; font-size: max(10px, 7.5cqw); font-weight: 700; margin-top: 3cqw; }
.cart i { position: absolute; left: 9%; right: 9%; top: 7%; font: 700 max(9px, 7cqw)/1.1 var(--body); }
.front .cart, .fan .cart { filter: grayscale(1) brightness(.55); transition: filter .6s; }
.got .front .cart, .fan .got .cart { filter: none; }
.vart { display: grid; place-items: center; width: 100%; height: 100%; }
.vart svg { width: 100%; height: 100%; }
.cars > .vart { -webkit-mask: none; mask: none; box-sizing: border-box; min-height: 0; padding: 130px 9% 96px; filter: drop-shadow(0 18px 14px #0d0c1a55); }
.reel .vart { background: linear-gradient(#c9c6dc, #9d98c4); padding: 8px; }
.rail.names { flex-wrap: wrap; overflow: visible; gap: 6px 40px; }
.names .portrait { width: auto; aspect-ratio: auto; overflow: visible; background: none; color: var(--cream); text-decoration: none; }
.names .portrait b { position: static; padding: 0; background: none; font-size: clamp(48px, 7.6vw, 118px); }
.names .portrait:hover b { color: var(--lagoon); }
#licenses a { color: var(--lagoon); }
#hub footer .text { font-size: 14px; }
.vart, .vart svg { min-width: 0; min-height: 0; overflow: hidden; }
.pic.drawn { display: block; background: linear-gradient(#c9c6dc, #9d98c4); }
.pic.drawn .vart { padding: 8%; box-sizing: border-box; }
@media (max-width: 760px) { .cars > .vart { width: 100%; height: 100%; margin: 0; padding: 96px 8% 70px; aspect-ratio: auto; -webkit-mask: none; mask: none; } }

/* Prawa do treści i zgłoszenia */
.legal { max-width: 68ch; }
.removal { display: grid; gap: 18px; max-width: 620px; margin-top: 20px; }
.removal .ask { display: grid; gap: 6px; }
.removal .ask span { font-weight: 700; }
.removal :is(input, textarea) { width: 100%; box-sizing: border-box; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); color: var(--ink); font: inherit; resize: vertical; }

/* Dłuższa nazwa strony */
#hubbody .herofoot h1 { font-size: clamp(44px, 7.4vw, 124px); }
.herofoot > .btn { flex: none; white-space: nowrap; }
@media (max-width: 1180px) {
  .herofoot { flex-wrap: wrap; }
  .herofoot > div { flex: 1 1 100%; }
}
@media (max-width: 760px) {
  #hubbody .herofoot h1 { font-size: min(16vw, 110px); }
  .herofoot > .btn { flex: 1; }
}
#hubbody .herofoot h1 { width: fit-content; }
.herosearch .field, .herosearch .field input { min-width: 0; }
@media (max-width: 400px) { .herosearch .btn { padding-inline: 14px; } .herosearch .field { flex: 1 1 0; width: 0; } }
@media (min-width: 761px) and (max-width: 980px) { .panel b { left: 20px; font-size: 20px; } }

/* Reklama: osobny blok z odstępem, daleko od przycisków */
.ad { margin: 56px 0; }
#ad { width: 100%; max-width: var(--wide); margin: 96px auto 64px; padding: 0 var(--gut); box-sizing: border-box; }
.ad[hidden], .ad:has(ins[data-ad-status^=unfill]) { display: none; } /* pusta reklama znika razem z podpisem */
.ad small { display: block; margin-bottom: 8px; color: var(--soft); font-size: 13px; }
.ad > div { min-height: 280px; overflow: hidden; } /* miejsce zajęte od razu, tekst nie skacze */
.ad .adtest { display: grid; place-items: center; border: 2px dashed var(--line); color: var(--soft); }

/* Tekst pod mapą: mapa stoi, a on wjeżdża na nią przy przewijaniu */
html:not([data-page]) { height: auto; overflow: hidden auto; }
html:not([data-page]) body { height: auto; overflow: visible; }
#under { position: relative; z-index: 7; margin-top: 100vh; padding: 120px 0 96px; background: #0d0c1a; color: var(--ink); }
#under:empty, [data-page] :is(#under, #more) { display: none; }
#under > .guide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gut); }
#more { position: fixed; z-index: 4; right: 16px; top: calc(var(--top) + 16px); background: #0d0c1af0; }
html[data-down] #more { visibility: hidden; }
@media (max-width: 940px) { #more { right: 12px; top: calc(var(--top) + 100px); } }
@media (max-width: 760px) { #more { left: 14px; right: auto; top: calc(var(--top) + 68px); } }

/* Poradniki */
.guide > :is(p, ul, details) { max-width: 72ch; }
.guide > h2, #hubbody .guide > h2 { margin: 56px 0 14px; }
.guide > h2:first-child { margin-top: 0; }
.guide > p, .guide li { font-size: 17px; line-height: 1.6; }
.guide .hint { font-size: 14px; }
.guide details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.guide summary { font-weight: 700; cursor: pointer; }
.tablewrap { overflow-x: auto; margin: 24px 0; }
.tablewrap table { border-collapse: collapse; min-width: 560px; width: 100%; max-width: 980px; text-align: left; }
.tablewrap :is(th, td) { padding: 10px 24px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap thead th { color: var(--soft); font-weight: 600; font-size: 14px; }
.tablewrap td { font-variant-numeric: tabular-nums; }
.tablewrap button { white-space: nowrap; padding: 0; }
.guidelist { display: grid; max-width: 980px; }
.guidelist a { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guidelist b { font: 400 34px/1 var(--display); text-transform: uppercase; color: var(--cream); }
.guidelist a:hover b { color: var(--lagoon); }
.guidelist span { color: var(--soft); }
.seg.langs { flex-wrap: wrap; }
#hub footer #langs a { margin: 0 14px 0 0; }
#hub footer #langs [aria-current] { color: var(--ink); font-weight: 700; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--lagoon); }
.legal .btn { color: inherit; }
#hub footer p a + a { margin-left: 14px; }
#hub footer p:nth-child(4) a + a, #hub footer p:nth-child(2) a { margin-left: 0; }

/* Dłuższe napisy w innych językach */
html:not([lang|=en]):not([lang|=pl]) #hubnav a { padding-inline: 11px; }
@media (max-width: 1280px) { html:not([lang|=en]):not([lang|=pl]) #hubnav { display: none; } html:not([lang|=en]):not([lang|=pl]) #burger { margin-left: auto; } }
@media (max-width: 760px) {
  html:not([lang|=en]):not([lang|=pl]) :is(#tools button) { font-size: 13px; padding: 0 4px; min-width: 32px; line-height: 1.1; }
  html:not([lang|=en]):not([lang|=pl]) #credit { font-size: 10px; line-height: 1.35; }
}

/* Strony „gdzie i ile” */
.guide > .answer { font-size: 22px; line-height: 1.45; }
.dotmap { margin: 28px 0; max-width: 520px; }
.dotmap svg { display: block; width: 100%; height: auto; background: #0d0c1a; border-radius: 18px; }
.dotmap path { fill: none; stroke: #ffb2d4; stroke-width: 5; stroke-linecap: round; }
.dotmap figcaption { margin-top: 10px; color: var(--soft); font-size: 14px; }
.guide .spots { display: grid; gap: 8px; padding-left: 20px; max-width: 80ch; }
.guide .spots li { font-size: 16px; line-height: 1.5; }
.guide .spots span { color: var(--soft); }
.guide :is(td, th, h3, .spots) a, .topiclinks a { color: var(--lagoon); }
.topiclinks { display: flex; flex-wrap: wrap; gap: 10px 22px; max-width: 980px; line-height: 1.5; }
.plainlist { display: grid; gap: 6px 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding: 0; list-style: none; }
.plainlist a { color: var(--ink); }
#panel .head h2 { font: inherit; }
/* Treść z pliku HTML jest czytelna od razu; ekran wczytywania zasłania tylko mapę */
[data-page] #load { inset: auto 16px 16px auto; display: block; padding: 10px 16px; border-radius: 14px; background: #0d0c1af0; font-size: 14px; }
[data-page] #load strong { display: none; }

/* Telefon: lżejsza kopia grafiki w nagłówku */
@media (max-width: 760px) { #hub::before { background-image: var(--art-m, var(--art, none)); } }
