/* ============================================================
   TOP Firmy (top-firmy.eu) — szablon „ranking”
   Granat #0f1b33 + złoto #f5b301 na chłodnej szarości. Sora (nagłówki)
   + Inter (tekst). Zaokrąglenia 10–14 px, miękkie granatowe cienie,
   motywy rankingowe: numery miejsc, paski udziału, podium.

   Ładowany PO app.css: sekcja 1 przestawia tokeny app.css, więc podstrony
   (jeszcze bez własnych szablonów) przejmują paletę marki.
   Komponenty szablonu mają prefiks „tp-”.
   ============================================================ */

/* ---------- 1. Tokeny ---------- */
:root {
  --tp-navy:   #0f1b33;
  --tp-navy-2: #1a2b4f;
  --tp-navy-3: #243a66;
  --tp-gold:   #f5b301;
  --tp-gold-d: #c98f00;
  --tp-gold-l: #fff4d1;
  --tp-blue:   #2f5bea;
  --tp-ink:    #111827;
  --tp-muted:  #5b6475;
  --tp-line:   #e3e7ef;
  --tp-bg:     #f4f6fa;
  --tp-card:   #ffffff;
  --tp-silver: #b8c2d3;
  --tp-bronze: #d08a4f;
  --tp-shadow: 0 10px 28px rgba(15,27,51,.08);
  --tp-shadow-lg: 0 18px 44px rgba(15,27,51,.16);
  --tp-font-h: 'Sora', 'Inter', system-ui, sans-serif;
  --tp-font:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* app.css — marka */
  --c-plum:       #0f1b33;
  --c-plum-dark:  #0a1326;
  --c-plum-soft:  #243a66;
  --c-mint:       #f5b301;
  --c-mint-dark:  #c98f00;
  --c-mint-soft:  #fff4d1;
  --c-lilac:      #f4f6fa;

  /* app.css — aliasy komponentów podstron */
  --c-accent:         #0f1b33;
  --c-accent-dark:    #0a1326;
  --c-accent-light:   #dfe5f1;
  --c-accent-xlight:  #eef1f7;
  --c-badge:          #0a1326;
  --c-hero-mid:       #1a2b4f;
  --c-on-dark:        #d5dbea;
  --c-on-dark-soft:   #9aa6c2;
  --c-border-accent:  #c6cfe0;
  --c-star:           #e0a200;
  --c-success:        #1f8f5f;
  --c-phone-bg:       #fff4d1;
  --c-phone-border:   #f2d27a;
  --c-text:           #111827;
  --c-muted:          #5b6475;
  --c-border:         #e3e7ef;
  --c-bg-soft:        #f4f6fa;

  --radius:       10px;
  --radius-lg:    14px;
  --radius-pill:  10px;
  --shadow-sm:    0 2px 6px rgba(15,27,51,.06);
  --shadow:       0 10px 28px rgba(15,27,51,.10);
  --shadow-lg:    0 18px 44px rgba(15,27,51,.16);

  --font:      var(--tp-font);
  --font-head: var(--tp-font-h);
  --header-h:  72px;
}

body.tp-body { background: var(--tp-bg); color: var(--tp-ink); font-family: var(--tp-font); }
.tp-body h1, .tp-body h2, .tp-body h3, .tp-body h4 { font-family: var(--tp-font-h); letter-spacing: -.02em; font-weight: 700; }
.tp-wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Podstrony: wcześniejsze fioletowe gradienty → granat marki */
.fu-hero, .fu-lhead, .fu-pband, .fu-final, .art-hero, .article-hero, .side-cta { background: linear-gradient(135deg, #1a2b4f 0%, #0f1b33 100%) !important; }
.fu-hero::before, .fu-hero::after, .fu-lhead::after, .fu-pband::after, .fu-final::before { display: none; }
.btn-accent, .hero-search .btn-search, .art-search button, .fu-cta-tag, .feat-flag, .fu-tel { color: #0f1b33 !important; }
.btn-accent:hover, .hero-search .btn-search:hover { color: #0f1b33 !important; }
.topbar-cta, .fu-h1 em, .fu-lhead-count b, .fu-step-n, .fu-cta strong, .art-hero-eyebrow, .fu-railchip.is-on small, .fu-linklist a.is-on b, .fu-final .fu-eyebrow { color: #f5b301 !important; }

/* ---------- 2. Przyciski, drobne elementy ---------- */
.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .9rem var(--tp-font); padding: 12px 22px; border-radius: 10px; border: 0;
  cursor: pointer; white-space: nowrap; transition: background .15s, transform .12s, box-shadow .15s;
}
.tp-btn:active { transform: translateY(1px); }
.tp-btn--gold { background: var(--tp-gold); color: var(--tp-navy); box-shadow: 0 6px 16px rgba(245,179,1,.35); }
.tp-btn--gold:hover { background: #ffc21f; }
.tp-btn--navy { background: var(--tp-navy); color: #fff; }
.tp-btn--navy:hover { background: var(--tp-navy-3); }
.tp-btn--sm { padding: 9px 16px; font-size: .84rem; }

.tp-kicker { display: inline-block; font: 700 .72rem var(--tp-font); letter-spacing: .12em; text-transform: uppercase; color: var(--tp-blue); margin-bottom: 8px; }
.tp-kicker--gold { color: var(--tp-gold); }
.tp-kicker--sm { font-size: .66rem; margin-bottom: 2px; }
.tp-more { font-weight: 700; font-size: .88rem; color: var(--tp-blue); white-space: nowrap; }
.tp-more::after { content: ' →'; }
.tp-more:hover { color: var(--tp-navy); }
.tp-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: #eef1f7; color: var(--tp-navy-2); }
a.tp-tag:hover { background: #dfe5f1; }
.tp-tag--promo { background: var(--tp-gold-l); color: #8a6200; }
.tp-tag--ok { background: #e3f5ec; color: #1f7a50; }
.tp-empty { background: #fff; border: 2px dashed var(--tp-line); border-radius: 14px; padding: 28px; text-align: center; color: var(--tp-muted); }
.tp-empty a { color: var(--tp-blue); font-weight: 700; }

/* ---------- 3. Nagłówek ---------- */
.tp-head { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--tp-line); }
.tp-head-in { max-width: 1220px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 26px; }
.tp-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tp-logo-mark { display: block; }
.tp-logo-word { font-family: var(--tp-font-h); font-size: 1.35rem; font-weight: 500; color: var(--tp-navy); letter-spacing: -.03em; }
.tp-logo-word b { font-weight: 800; margin-right: 2px; }
.tp-logo-word small { font-size: .62em; font-weight: 600; color: var(--tp-gold-d); margin-left: 1px; }
.tp-logo-word--light { color: #fff; }
.tp-logo-word--light small { color: var(--tp-gold); }

.tp-nav { display: flex; align-self: stretch; gap: 4px; }
.tp-nav a {
  position: relative; display: flex; align-items: center; padding: 0 12px;
  font-size: .92rem; font-weight: 600; color: var(--tp-muted); transition: color .15s;
}
.tp-nav a:hover { color: var(--tp-navy); }
.tp-nav a.is-active { color: var(--tp-navy); }
.tp-nav a.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 4px; border-radius: 4px 4px 0 0; background: var(--tp-gold); }

.tp-hsearch { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--tp-bg); border: 1px solid var(--tp-line); border-radius: 10px; padding: 0 12px; color: var(--tp-muted); }
.tp-hsearch input { border: 0; background: transparent; outline: none; font: 500 .88rem var(--tp-font); color: var(--tp-ink); padding: 10px 0; width: 170px; }
.tp-hsearch:focus-within { border-color: var(--tp-navy-3); background: #fff; }
.tp-head-act { display: flex; align-items: center; gap: 16px; }
.tp-head-login { font-size: .9rem; font-weight: 600; color: var(--tp-navy); }
.tp-head-login:hover { color: var(--tp-blue); }

/* ---------- 4. Hero ---------- */
.tp-hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 0 0;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47,91,234,.35), transparent 60%),
    linear-gradient(160deg, #1a2b4f 0%, #0f1b33 60%);
}
.tp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.tp-badge { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--tp-gold); background: rgba(245,179,1,.12); border: 1px solid rgba(245,179,1,.35); border-radius: 8px; padding: 6px 12px; }
.tp-h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; margin: 18px 0 16px; color: #fff; }
.tp-h1 span { color: var(--tp-gold); }
.tp-hero-lead { font-size: 1.05rem; line-height: 1.7; color: #c3cbe0; max-width: 600px; }

.tp-search { margin-top: 28px; display: grid; grid-template-columns: 1.3fr 1fr auto; background: #fff; border-radius: 14px; padding: 6px; box-shadow: var(--tp-shadow-lg); }
.tp-search-f { display: flex; flex-direction: column; padding: 8px 16px; border-right: 1px solid var(--tp-line); min-width: 0; }
.tp-search-f:nth-child(2) { border-right: 0; }
.tp-search-f label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-muted); }
.tp-search-f input { border: 0; outline: none; font: 500 1rem var(--tp-font); color: var(--tp-ink); padding: 4px 0; background: transparent; width: 100%; }
.tp-search-go { border-radius: 10px; padding: 0 26px; box-shadow: none; }

.tp-trending { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .84rem; }
.tp-trending span { color: #9aa6c2; font-weight: 600; margin-right: 2px; }
.tp-trending a { color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 5px 11px; transition: border-color .15s, background .15s; }
.tp-trending a:hover { border-color: var(--tp-gold); background: rgba(245,179,1,.12); }

/* Podium miast */
.tp-podium-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 22px 22px 18px; backdrop-filter: blur(4px); }
.tp-podium-card h2 { font-size: 1.2rem; color: #fff; }
.tp-podium-card > p { font-size: .82rem; color: #9aa6c2; margin-top: 2px; }
.tp-muted-on-dark { color: #9aa6c2; font-size: .9rem; padding: 18px 0; }
.tp-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin-top: 18px; }
.tp-podium-step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tp-podium-city { font-size: .82rem; font-weight: 700; color: #fff; line-height: 1.25; min-height: 2.1em; display: flex; align-items: flex-end; }
.tp-podium-block { width: 100%; border-radius: 10px 10px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 10px; }
.tp-podium-block b { font-family: var(--tp-font-h); font-size: 1.7rem; line-height: 1; color: var(--tp-navy); }
.tp-podium-block small { font-size: .7rem; font-weight: 700; color: rgba(15,27,51,.75); margin-top: 4px; }
.tp-podium-step--p1 .tp-podium-block { height: 118px; background: linear-gradient(180deg, #ffd25a, var(--tp-gold)); }
.tp-podium-step--p2 .tp-podium-block { height: 88px; background: linear-gradient(180deg, #e3e9f3, var(--tp-silver)); }
.tp-podium-step--p3 .tp-podium-block { height: 66px; background: linear-gradient(180deg, #ecb584, var(--tp-bronze)); }
.tp-podium-step:hover .tp-podium-city { color: var(--tp-gold); }
.tp-podium-rest { list-style: none; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.14); counter-reset: poz 3; }
.tp-podium-rest li { counter-increment: poz; display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: .88rem; }
.tp-podium-rest li::before { content: counter(poz); width: 22px; font-weight: 700; color: #9aa6c2; }
.tp-podium-rest a { flex: 1; color: #fff; font-weight: 600; }
.tp-podium-rest a:hover { color: var(--tp-gold); }
.tp-podium-rest span { font-weight: 700; color: var(--tp-gold); }

/* KPI na dole hero */
.tp-kpi { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); }
.tp-kpi > div { padding: 22px 0 26px; }
.tp-kpi > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.tp-kpi dt { font-size: .76rem; font-weight: 600; color: #9aa6c2; text-transform: uppercase; letter-spacing: .08em; }
.tp-kpi dd { font-family: var(--tp-font-h); font-size: 2rem; font-weight: 800; color: #fff; margin-top: 4px; }

/* ---------- 5. Sekcje ---------- */
.tp-sec { padding: 64px 0; }
.tp-sec--tint { background: #fff; border-top: 1px solid var(--tp-line); border-bottom: 1px solid var(--tp-line); }
.tp-sec--navy { background: var(--tp-navy); color: #dfe5f1; }
.tp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.tp-sec-head > div { max-width: 700px; }
.tp-h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.18; color: var(--tp-navy); }
.tp-sec-head p { margin-top: 10px; font-size: .95rem; line-height: 1.7; color: var(--tp-muted); }
.tp-sec-head p a { color: var(--tp-blue); font-weight: 700; }
.tp-sec--navy .tp-h2 { color: #fff; }
.tp-sec--navy .tp-sec-head p { color: #9aa6c2; }

/* Ranking kategorii — paski */
.tp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 48px; align-items: start; }
.tp-sec-head--side { display: block; position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.tp-sec-head--side .tp-more { display: inline-block; margin-top: 18px; }
.tp-bars { list-style: none; background: #fff; border: 1px solid var(--tp-line); border-radius: 16px; padding: 8px 20px; box-shadow: var(--tp-shadow); }
.tp-bars li + li { border-top: 1px solid var(--tp-line); }
.tp-bars a { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 13px 0; }
.tp-bars-n { font-family: var(--tp-font-h); font-weight: 800; color: var(--tp-silver); }
.tp-bars li:nth-child(1) .tp-bars-n { color: var(--tp-gold); }
.tp-bars li:nth-child(2) .tp-bars-n { color: #8d99b0; }
.tp-bars li:nth-child(3) .tp-bars-n { color: var(--tp-bronze); }
.tp-bars-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--tp-bg); display: flex; align-items: center; justify-content: center; }
.tp-bars-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-bars-nm { font-weight: 700; font-size: .94rem; color: var(--tp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-bars-track { height: 8px; background: #eef1f7; border-radius: 8px; overflow: hidden; }
.tp-bars-track span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--tp-navy-3), var(--tp-blue)); }
.tp-bars li:nth-child(1) .tp-bars-track span { background: linear-gradient(90deg, var(--tp-gold-d), var(--tp-gold)); }
.tp-bars-ct { text-align: right; font-family: var(--tp-font-h); font-weight: 800; color: var(--tp-navy); }
.tp-bars a:hover .tp-bars-nm { color: var(--tp-blue); }
.tp-bars li.is-empty { opacity: .5; }

/* Tabela wyników — wiersze firm */
.tp-ranklist { display: flex; flex-direction: column; gap: 14px; }
.tp-rank {
  position: relative; display: grid; grid-template-columns: 52px 64px minmax(0, 1fr) 120px 190px;
  gap: 20px; align-items: center; background: var(--tp-card); border: 1px solid var(--tp-line);
  border-radius: 16px; padding: 18px 22px; transition: box-shadow .18s, border-color .18s;
}
.tp-rank:hover { box-shadow: var(--tp-shadow); border-color: #cfd6e4; }
.tp-rank.is-promo { border-left: 5px solid var(--tp-gold); }
.tp-rank-pos {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--tp-font-h); font-size: 1.25rem; font-weight: 800; background: #eef1f7; color: var(--tp-navy-2);
}
.tp-rank.is-p1 .tp-rank-pos { background: var(--tp-gold); color: var(--tp-navy); }
.tp-rank.is-p2 .tp-rank-pos { background: #dde3ee; color: var(--tp-navy); }
.tp-rank.is-p3 .tp-rank-pos { background: #f1d2b6; color: #6b3d15; }
.tp-rank-logo { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--tp-line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tp-rank-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.tp-rank-logo span { font-family: var(--tp-font-h); font-size: 1.5rem; font-weight: 800; color: var(--tp-navy-3); }
.tp-rank-main { min-width: 0; }
.tp-rank-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tp-rank-name { font-size: 1.12rem; line-height: 1.25; }
.tp-rank-name a { color: var(--tp-navy); }
.tp-rank-name a:hover { color: var(--tp-blue); }
.tp-rank-addr { font-size: .82rem; color: var(--tp-muted); margin-top: 3px; }
.tp-rank-desc { font-size: .86rem; line-height: 1.6; color: #3d4556; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-rank-skills { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: .8rem; }
.tp-rank-skills a { color: var(--tp-blue); font-weight: 600; }
.tp-rank-skills a:hover { text-decoration: underline; }
.tp-rank-score { text-align: center; background: var(--tp-bg); border-radius: 12px; padding: 12px 8px; }
.tp-rank-score b { display: block; font-family: var(--tp-font-h); font-size: 1.8rem; font-weight: 800; line-height: 1; color: var(--tp-navy); }
.tp-rank-score b.is-none { color: var(--tp-silver); }
.tp-stars { display: block; color: var(--tp-gold); letter-spacing: 1px; font-size: .9rem; margin-top: 4px; }
.tp-rank-score small { display: block; font-size: .74rem; color: var(--tp-muted); margin-top: 4px; }
.tp-rank-act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.tp-rank-tel { font: 700 .84rem var(--tp-font); background: var(--tp-gold-l); color: #7a5600; border: 1px solid #f2d27a; border-radius: 10px; padding: 8px 12px; cursor: pointer; text-align: center; }
.tp-rank-tel:hover { background: var(--tp-gold); color: var(--tp-navy); }
.tp-rank-tel.revealed { display: block; }
.tp-rank-www { font-size: .8rem; font-weight: 600; color: var(--tp-muted); text-align: center; }
.tp-rank-www:hover { color: var(--tp-blue); }

/* Top usług — numerowana lista w dwóch kolumnach */
.tp-toplist { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.tp-toplist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--tp-line); }
.tp-toplist-n { font-family: var(--tp-font-h); font-weight: 800; font-size: .9rem; color: var(--tp-silver); width: 26px; }
.tp-toplist li:nth-child(-n+3) .tp-toplist-n { color: var(--tp-gold-d); }
.tp-toplist a { flex: 1; font-weight: 600; color: var(--tp-ink); }
.tp-toplist a:hover { color: var(--tp-blue); }
.tp-toplist-c { font-size: .76rem; font-weight: 700; color: var(--tp-navy-2); background: #eef1f7; border-radius: 6px; padding: 3px 9px; }

/* Miasta — kafle z paskiem */
.tp-cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tp-city { background: var(--tp-bg); border: 1px solid var(--tp-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, background .15s; }
.tp-city:hover { background: #fff; border-color: var(--tp-navy-3); }
.tp-city-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tp-city-top b { font-size: .95rem; color: var(--tp-navy); }
.tp-city-top em { font-style: normal; font-family: var(--tp-font-h); font-weight: 800; color: var(--tp-gold-d); }
.tp-city-bar { height: 6px; background: #e3e7ef; border-radius: 6px; overflow: hidden; }
.tp-city-bar span { display: block; height: 100%; background: var(--tp-navy-3); border-radius: 6px; }
.tp-cities-free { margin-top: 22px; font-size: .88rem; line-height: 1.8; color: var(--tp-muted); }
.tp-cities-free b { color: var(--tp-navy); }
.tp-cities-free a { color: var(--tp-blue); }
.tp-cities-free a:hover { text-decoration: underline; }

/* Porady */
.tp-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-post { background: #fff; border: 1px solid var(--tp-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s; }
.tp-post:hover { box-shadow: var(--tp-shadow); }
.tp-post-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1a2b4f, #0f1b33); color: var(--tp-gold); font-size: 1.8rem; overflow: hidden; }
.tp-post-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tp-post-body h3 { font-size: 1.05rem; line-height: 1.3; }
.tp-post-body h3 a { color: var(--tp-navy); }
.tp-post-body h3 a:hover { color: var(--tp-blue); }
.tp-post-body p { font-size: .86rem; line-height: 1.6; color: var(--tp-muted); }
.tp-post-meta { display: flex; gap: 12px; font-size: .76rem; color: var(--tp-muted); margin-top: auto; padding-top: 8px; }

/* Zasady + lista kontrolna */
.tp-criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tp-criteria article { background: var(--tp-navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 24px; }
.tp-criteria-n { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; font-family: var(--tp-font-h); font-weight: 800; font-size: 1.2rem; background: var(--tp-gold); color: var(--tp-navy); }
.tp-criteria h3 { font-size: 1.1rem; color: #fff; margin: 14px 0 8px; }
.tp-criteria p { font-size: .9rem; line-height: 1.7; color: #b4bed4; }
.tp-checklist { margin-top: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 24px 26px; }
.tp-checklist h3 { font-size: 1.15rem; color: var(--tp-gold); margin-bottom: 14px; }
.tp-checklist ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.tp-checklist li { position: relative; padding-left: 28px; font-size: .9rem; line-height: 1.65; color: #c3cbe0; }
.tp-checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: rgba(245,179,1,.18); color: var(--tp-gold); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.tp-checklist li b { color: #fff; }

/* Pytania */
.tp-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.tp-faq details { background: #fff; border: 1px solid var(--tp-line); border-radius: 14px; padding: 0 20px; }
.tp-faq details[open] { box-shadow: var(--tp-shadow); }
.tp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; padding: 17px 0; font-family: var(--tp-font-h); font-weight: 600; font-size: 1rem; color: var(--tp-navy); }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary::after { content: '+'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: #eef1f7; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--tp-navy); }
.tp-faq details[open] summary::after { content: '−'; background: var(--tp-gold); }
.tp-faq details p { padding: 0 0 18px; font-size: .9rem; line-height: 1.7; color: var(--tp-muted); }

/* Pakiety */
.tp-plans { background: linear-gradient(180deg, var(--tp-gold-l) 0%, #fff 100%); border-top: 1px solid #f2d27a; padding: 64px 0; }
.tp-plans-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.tp-plans-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--tp-navy); line-height: 1.18; }
.tp-plans-head p { margin-top: 10px; color: var(--tp-muted); line-height: 1.7; }
.tp-plans-head b { color: var(--tp-navy); }
.tp-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.tp-plan { position: relative; background: #fff; border: 1px solid var(--tp-line); border-radius: 16px; padding: 24px; }
.tp-plan.is-hot { border: 2px solid var(--tp-gold); box-shadow: var(--tp-shadow); }
.tp-plan h3 { font-size: 1.3rem; color: var(--tp-navy); margin-bottom: 14px; }
.tp-plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tp-plan li { position: relative; padding-left: 22px; font-size: .88rem; color: #3d4556; }
.tp-plan li::before { content: '•'; position: absolute; left: 6px; color: var(--tp-gold-d); font-weight: 800; }
.tp-plans-cta { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- 6. Stopka ---------- */
.tp-foot { background: var(--tp-navy); color: #b4bed4; }
.tp-foot-cta { background: var(--tp-navy-2); border-bottom: 1px solid rgba(255,255,255,.08); }
.tp-foot-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.tp-foot-cta p { font-size: .95rem; color: #d5dbea; }
.tp-foot-cta b { color: var(--tp-gold); }
.tp-foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 34px; padding-top: 48px; padding-bottom: 38px; }
.tp-foot-about p { font-size: .87rem; line-height: 1.75; margin-top: 14px; max-width: 380px; }
.tp-foot-col { display: flex; flex-direction: column; gap: 10px; }
.tp-foot-col h2 { font-family: var(--tp-font); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-gold); margin-bottom: 4px; }
.tp-foot-col a { font-size: .9rem; color: #d5dbea; }
.tp-foot-col a:hover { color: #fff; text-decoration: underline; }
.tp-foot-note { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: .8rem; line-height: 1.7; color: #8894ae; }
.tp-foot-base { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; font-size: .8rem; }
.tp-foot-base-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tp-foot-base a { color: #d5dbea; font-weight: 600; }
.tp-foot-base a:hover { color: var(--tp-gold); }

/* ---------- 7. Dostępność ---------- */
.tp-body a:focus-visible, .tp-body button:focus-visible, .tp-body input:focus-visible, .tp-body summary:focus-visible {
  outline: 3px solid var(--tp-gold); outline-offset: 2px; border-radius: 6px;
}
.tp-body .skip-link { background: var(--tp-navy); border-radius: 8px; }

/* ---------- 8. Responsywność ---------- */
@media (max-width: 1140px) {
  .tp-hsearch { display: none; }
  .tp-head-act { margin-left: auto; }
  .tp-rank { grid-template-columns: 46px 56px minmax(0, 1fr) 110px; }
  .tp-rank-act { grid-column: 3 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tp-rank-logo { width: 56px; height: 56px; }
}
@media (max-width: 980px) {
  .tp-hero-grid, .tp-split { grid-template-columns: 1fr; gap: 32px; }
  .tp-sec-head--side { position: static; }
  .tp-cities { grid-template-columns: repeat(3, 1fr); }
  .tp-posts, .tp-criteria { grid-template-columns: 1fr 1fr; }
  .tp-plans-grid { grid-template-columns: 1fr 1fr 1fr; }
  .tp-foot-grid { grid-template-columns: 1fr 1fr; }
  .tp-foot-about { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  /* Na telefonie nagłówek nieprzyklejony — nawigacja w drugim, przewijanym rzędzie. */
  :root { --header-h: 0px; }
  .tp-head { position: relative; }
  .tp-head-in { height: auto; flex-wrap: wrap; gap: 10px 14px; padding: 12px 18px 0; }
  .tp-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--tp-line); }
  .tp-nav a { padding: 12px 10px; white-space: nowrap; }
  .tp-head-login { display: none; }
  .tp-kpi { grid-template-columns: 1fr 1fr; }
  .tp-kpi > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tp-kpi > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .tp-sec { padding: 46px 0; }
  .tp-toplist, .tp-faq, .tp-checklist ul, .tp-plans-grid { grid-template-columns: 1fr; }
  .tp-cities { grid-template-columns: 1fr 1fr; }
  .tp-rank { grid-template-columns: 46px minmax(0, 1fr) 96px; gap: 14px; padding: 16px; }
  .tp-rank-logo { display: none; }
  .tp-rank-act { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tp-wrap { padding: 0 16px; }
  .tp-logo-word { font-size: 1.15rem; }
  .tp-logo-mark { width: 34px; height: 34px; }
  .tp-head-act .tp-btn { padding: 9px 14px; font-size: .82rem; }
  .tp-search { grid-template-columns: 1fr; }
  .tp-search-f { border-right: 0; border-bottom: 1px solid var(--tp-line); }
  .tp-search-go { padding: 14px; margin-top: 6px; }
  .tp-posts, .tp-criteria { grid-template-columns: 1fr; }
  .tp-rank { grid-template-columns: minmax(0, 1fr) 90px; }
  .tp-rank-pos { position: absolute; top: -10px; left: -6px; width: 34px; height: 34px; font-size: .95rem; }
  .tp-foot-grid { grid-template-columns: 1fr; }
}
