/* ==========================================================================
   KartaPrepaid.com — międzynarodowa karta telefoniczna
   Kolejność: reset → tokeny → typografia → układ → komponenty → sekcje →
              proza → responsywność → druk
   ========================================================================== */

/* ==========================================================================
   1. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

/* ==========================================================================
   2. TOKENY
   ========================================================================== */
:root {
  /* kolor wiodący — czerwień z dotychczasowej identyfikacji serwisu */
  --brand:         #d81e28;
  --brand-ink:     #b01018;
  --brand-deep:    #8e0c14;
  --brand-soft:    #fdeced;

  /* kolor pomocniczy */
  --navy:          #2c6fd6;
  --navy-soft:     #e8f0fc;

  /* tekst */
  --ink:           #0b1220;
  --text:          #4c596b;
  --muted:         #5f6b7d;

  /* tła i obramowania */
  --bg:            #ffffff;
  --bg-soft:       #f4f7fb;
  --bg-deep:       #0b1220;
  --card:          #ffffff;
  --line:          #e3e9f1;
  --line-strong:   #d2dae6;

  --ok:            #0f7a5f;
  --ok-soft:       #e6f6f1;

  --shadow-sm: 0 1px 2px rgba(11,18,32,.05), 0 6px 16px -8px rgba(11,18,32,.12);
  --shadow-md: 0 1px 2px rgba(11,18,32,.05), 0 18px 40px -20px rgba(11,18,32,.22);
  --shadow-lg: 0 2px 4px rgba(11,18,32,.06), 0 40px 80px -32px rgba(11,18,32,.30);
  --ring: 0 0 0 4px rgba(216,30,40,.20);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;

  --header-h: 72px;
  --maxw: 1160px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand:       #ff5a54;
    --brand-ink:   #ff8079;
    --brand-deep:  #c8262c;
    --brand-soft:  #2a1417;

    --navy:        #5a94ee;
    --navy-soft:   #121f36;

    --ink:         #f2f5fa;
    --text:        #a9b6c9;
    --muted:       #93a1b6;

    --bg:          #0a0f1a;
    --bg-soft:     #0e1524;
    --bg-deep:     #070b14;
    --card:        #121a2b;
    --line:        #1e293c;
    --line-strong: #2b3a55;

    --ok:          #35c79b;
    --ok-soft:     #10261f;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 16px -8px rgba(0,0,0,.6);
    --shadow-md: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -20px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 40px 80px -32px rgba(0,0,0,.8);
    --ring: 0 0 0 4px rgba(255,90,84,.28);
  }
}

/* ==========================================================================
   3. TYPOGRAFIA
   ========================================================================== */
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(2.05rem, 1.4rem + 3vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.12rem, 1.02rem + .45vw, 1.35rem); }
p + p { margin-top: 1em; }
strong, b { color: var(--ink); font-weight: 650; }
code { font-family: var(--mono); }

::selection { background: var(--brand); color: #fff; }

/* ==========================================================================
   4. UKŁAD
   ========================================================================== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 8vw, 116px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* ==========================================================================
   5. KOMPONENTY
   ========================================================================== */

/* --- Ikony --------------------------------------------------------------- */
.ic { width: 18px; height: 18px; flex: none; }
.ic-sm { width: 15px; height: 15px; flex: none; }

/* --- Etykiety ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 6px 14px 6px 10px;
  font-size: .78rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-soft);
  border: 1px solid rgba(216,30,40,.22);
  border-radius: var(--r-full);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.label { margin-bottom: 12px; font-size: .78rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.tag {
  display: inline-block; margin-top: 16px; padding: 5px 12px;
  font-family: var(--mono); font-size: .84rem; font-weight: 600;
  color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-full);
}

/* --- Przyciski ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 1px solid transparent; border-radius: var(--r-full);
  font-size: .98rem; font-weight: 650; letter-spacing: -.01em; cursor: pointer;
  transition: transform .18s cubic-bezier(.3,.8,.4,1), box-shadow .18s, background .18s, border-color .18s, color .18s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* Gradient startuje od --brand, a nie od jaśniejszego odcienia: biały napis na
   #e8262f dawał 4,42:1, poniżej progu WCAG AA (4,5:1) dla tekstu tej wielkości. */
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #c9202a 55%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(142,12,20,.3), 0 14px 28px -12px rgba(216,30,40,.6);
}
.btn-primary:hover { box-shadow: 0 1px 2px rgba(142,12,20,.3), 0 20px 36px -12px rgba(216,30,40,.72); }

/* W motywie ciemnym --brand to jaśniejsza czerwień (#ff5a54) — biały napis dałby na niej
   3,07:1. Przycisk i numerowany znacznik dostają więc własny, ciemniejszy gradient. */
@media (prefers-color-scheme: dark) {
  .btn-primary, .icon-box { background: linear-gradient(135deg, #c8262c 0%, #b31c24 55%, #9c1219 100%); }
}

.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }

/* wariant przycisku pobocznego na ciemnym tle */
.hero .btn-ghost, .cta-band .btn-ghost {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.24);
  box-shadow: none; backdrop-filter: blur(8px);
}
.hero .btn-ghost:hover, .cta-band .btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); color: #fff; }

/* --- Karty --------------------------------------------------------------- */
.card {
  padding: 32px 28px 30px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.3,.8,.4,1), box-shadow .25s, border-color .25s;
}
.grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }

.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 20px;
  font-size: 1.05rem; font-weight: 750; color: #fff;
  background: linear-gradient(135deg, var(--brand), #c9202a 55%, var(--brand-deep));
  border-radius: 14px; box-shadow: 0 10px 20px -10px rgba(216,30,40,.8);
}

/* --- Statystyki ---------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin-top: 44px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.stat dt { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 750; letter-spacing: -.035em; color: #fff; line-height: 1.1; }
.stat dd { margin: 6px 0 0; font-size: .84rem; line-height: 1.4; color: #97a5bb; }

/* --- Tabele -------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
table.data { width: 100%; min-width: 560px; font-size: .97rem; }
table.data th, table.data td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-soft); white-space: nowrap;
}
table.data tbody th { font-weight: 550; color: var(--text); }
table.data td { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }
table.data tr.total th { font-weight: 700; color: var(--ink); }
table.data tr.total { background: var(--bg-soft); }
table.data td.price { font-size: 1.25rem; font-weight: 750; color: var(--brand); letter-spacing: -.02em; }

/* --- Paski porównawcze --------------------------------------------------- */
.bars { margin-top: 26px; display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 72px; align-items: center; gap: 16px; }
.bar-label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.bar { display: flex; height: 14px; border-radius: var(--r-full); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.bar i { display: block; height: 100%; }
.bar .seg-a { background: linear-gradient(90deg, #ff6b5e, var(--brand)); }
.bar .seg-b { background: linear-gradient(90deg, var(--navy), #1b4fa3); }
.bar-row b { font-family: var(--mono); font-size: .95rem; color: var(--ink); text-align: right; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.legend li { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .dot-a { background: var(--brand); }
.legend .dot-b { background: var(--navy); }

/* --- Powiadomienie ------------------------------------------------------- */
.notice {
  display: flex; gap: 12px; margin-top: 18px; padding: 14px 18px;
  font-size: .93rem; background: var(--bg-soft);
  border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.notice b { color: var(--brand-ink); }

/* --- Akordeon ------------------------------------------------------------ */
.acc { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.acc details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s;
}
.acc details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.acc summary {
  display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  padding: 22px 24px; font-size: 1.05rem; font-weight: 650; color: var(--ink); letter-spacing: -.015em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; margin-left: auto; width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); border-radius: 1px;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .22s;
}
.acc details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc-body { padding: 0 24px 24px; font-size: 1rem; }

/* --- Pasek wezwania ------------------------------------------------------ */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 80px) clamp(26px, 5vw, 72px); text-align: center;
  background: radial-gradient(110% 140% at 85% 0%, #1a2440 0%, #0c1424 50%, #080d17 100%);
  border-radius: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; inset: auto -10% -60% 40%;
  height: 420px; border-radius: 50%; background: rgba(216,30,40,.35); filter: blur(90px);
}
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin: 18px auto 0; color: #b3c0d4; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* --- Przycisk „do góry” -------------------------------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 50%; box-shadow: var(--shadow-md);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s, transform .22s, visibility .22s, border-color .18s, color .18s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }

/* ==========================================================================
   6. SEKCJE
   ========================================================================== */

/* --- Nagłówek ------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(11,18,32,.5); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.logo-mark { width: 36px; height: 36px; flex: none; border-radius: 11px; box-shadow: 0 6px 14px -6px rgba(216,30,40,.7); }
.logo-text { font-size: 1.12rem; font-weight: 750; letter-spacing: -.03em; color: var(--ink); }
.logo-text span { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-full);
  font-size: .95rem; font-weight: 550; color: var(--text);
  transition: color .16s, background .16s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="true"] { color: var(--brand-ink); background: var(--brand-soft); font-weight: 650; }
.header-cta { margin-left: 8px; }
.nav-cta { display: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 17px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .22s, opacity .22s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.8px; background: var(--ink); border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(56px, 7vw, 104px) clamp(72px, 8vw, 120px);
  background: radial-gradient(120% 130% at 12% 0%, #16203a 0%, var(--bg-deep) 45%, #070b14 100%);
  color: #c3cee0;
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); }
.hero::before { width: 620px; height: 620px; top: -240px; right: -160px; background: rgba(216,30,40,.30); }
.hero::after  { width: 520px; height: 520px; bottom: -300px; left: -180px; background: rgba(40,110,220,.22); }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ff8a7a, #ff3b3b 55%, #ff9d5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 22px; max-width: 54ch; font-size: clamp(1.03rem, .97rem + .3vw, 1.18rem); color: #b3c0d4; }
.hero-lead strong { color: #fff; }

.hero .eyebrow { color: #ffb3ad; background: rgba(216,30,40,.14); border-color: rgba(255,90,84,.35); }
.hero .eyebrow::before { background: #ff5a54; box-shadow: 0 0 0 4px rgba(255,90,84,.22); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 20px; max-width: 54ch; font-size: .9rem; color: #97a5bb; }

.hero-art { position: relative; min-width: 0; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
.hero-art .pulse { transform-origin: center; animation: pulse 3.4s ease-out infinite; }
@keyframes pulse {
  0%   { transform: scale(.55); opacity: .75; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.hero-art .orbit { animation: float 7s ease-in-out infinite; transform-origin: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* --- Pasek krajów -------------------------------------------------------- */
.ticker { padding-block: 18px; background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: ticker 46s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 550; color: var(--muted); white-space: nowrap; }
.ticker-track span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .55; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Przykład połączenia ------------------------------------------------- */
.callout {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 22px; padding: clamp(26px, 3.4vw, 44px);
}
.callout h3 { margin-bottom: 14px; }
.dial { display: grid; gap: 12px; }
.dial li { display: flex; gap: 14px; align-items: baseline; font-size: .98rem; }
.dial li > span:first-child {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  font-size: .78rem; font-weight: 700; color: var(--brand-ink);
  background: var(--brand-soft); border-radius: 50%;
}
.dial code {
  font-size: .95rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  padding: 2px 8px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px;
}

.fineprint { margin-top: 22px; font-size: .9rem; color: var(--muted); }

/* --- Numery dostępowe ---------------------------------------------------- */
.finder { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 28px; }
.search { position: relative; flex: 1 1 320px; }
.search .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 15px 18px 15px 48px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-full);
  color: var(--ink); box-shadow: var(--shadow-sm); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.finder-count { font-size: .92rem; color: var(--muted); }
.finder-count b { color: var(--ink); }

.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.country {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .2s cubic-bezier(.3,.8,.4,1), border-color .2s, box-shadow .2s;
}
.country:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.country[hidden] { display: none; }

/* Chip z flagą. Na systemach bez emoji flag (m.in. Windows) przeglądarka pokazuje
   w tym miejscu dwuliterowy kod kraju — chip sprawia, że w obu przypadkach
   wygląda to spójnie. */
.country-flag {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 28px;
  font-size: 1.05rem; font-weight: 600; line-height: 1; letter-spacing: -.02em;
  color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 7px; overflow: hidden;
}
.country-body { min-width: 0; flex: 1; }
.country-name { display: block; font-size: .95rem; font-weight: 650; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-num { display: block; font-family: var(--mono); font-size: .88rem; color: var(--text); transition: color .16s; }
a.country-num:hover { color: var(--brand); }

.country-pl { border-color: rgba(216,30,40,.45); background: linear-gradient(180deg, var(--brand-soft), var(--card) 70%); }
.country-pl .country-flag { color: var(--brand-ink); border-color: rgba(216,30,40,.30); background: var(--card); }
.country-pl .country-name::after {
  content: "twój kraj"; margin-left: 8px; padding: 2px 8px; vertical-align: 1px; white-space: nowrap;
  font-family: var(--font); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--brand); border-radius: var(--r-full);
}

.copy {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  cursor: pointer; transition: color .16s, border-color .16s, background .16s;
}
.copy:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.copy.is-done { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
/* Bez JS schowek jest niedostępny — przycisk się nie pokazuje.
   Reguła .copy[hidden] jest konieczna: sam atrybut `hidden` (ustawiany przez app.js,
   gdy schowka brak mimo działającego JS — np. na zwykłym http) zostałby zbity przez
   `.js .copy`, bo reguły autora mają pierwszeństwo przed arkuszem przeglądarki. */
.copy { display: none; }
.js .copy { display: grid; }
.copy[hidden] { display: none; }

.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.empty[hidden] { display: none; }

/* „Pomiń listę krajów” — zakotwiczone w sekcji, a nie w oknie. Bez position:relative
   na kontenerze `top: 0` odnosiłoby się do początku dokumentu i link po sfokusowaniu
   przeskakiwał na samą górę strony. */
#numery .container { position: relative; }
.skip-list { top: -60px; }
.skip-list:focus { top: 0; }

/* --- Stopka -------------------------------------------------------------- */
.footer { padding-block: clamp(48px, 6vw, 72px) 34px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-about p { margin-top: 16px; max-width: 42ch; font-size: .95rem; }
.footer h4 { margin-bottom: 16px; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.footer li + li { margin-top: 10px; }
.footer li a { font-size: .95rem; color: var(--text); transition: color .16s; }
.footer li a:hover { color: var(--brand); }
.footer-bar {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.footer-bar a { color: var(--muted); }
.footer-bar a:hover { color: var(--brand); }
.footer-bar .spacer { margin-left: auto; }

/* ==========================================================================
   7. PROZA
   ========================================================================== */
.prose { max-width: 72ch; }
.section > .container > .prose { margin-block: 22px; }
.prose a {
  color: var(--brand-ink); font-weight: 600;
  border-bottom: 1px solid rgba(216,30,40,.35);
  transition: border-color .18s, color .18s;
}
.prose a:hover { border-bottom-color: var(--brand); color: var(--brand); }
.prose .notice a { border-bottom: 0; }

/* ==========================================================================
   8. DOSTĘPNOŚĆ I ANIMACJE
   ========================================================================== */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 20px; background: var(--brand); color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Pojawianie się sekcji — wyłącznie przy działającym JS. Bez skryptów
   cała treść musi być widoczna. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.22,.8,.3,1), transform .65s cubic-bezier(.22,.8,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   9. RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav-cta { display: inline-flex; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 24px 22px; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform-origin: top; transform: scaleY(.9); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: scaleY(1); }
  .nav a { padding: 13px 14px; font-size: 1.02rem; }
  .nav .btn { margin: 10px 0 0; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 440px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .bar-row { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .bar-row .bar { grid-column: 1 / -1; order: 3; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat { display: flex; align-items: baseline; gap: 16px; }
  .stat dt { min-width: 76px; }
  .stat dd { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   10. DRUK
   ========================================================================== */
@media print {
  .header, .ticker, .cta-band, .hero-art, .copy, .nav-toggle, .to-top, .skip-link, .finder, .bars { display: none !important; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .hero { background: #fff; color: #000; padding-block: 0 18pt; }
  .hero h1, .hero h1 em, .stat dt { color: #000; -webkit-text-fill-color: #000; }
  .hero-lead, .hero-note, .stat dd { color: #333; }
  .hero-lead strong { color: #000; }
  .stats { border-top-color: #999; }
  .section { padding-block: 18pt; }
  .countries { grid-template-columns: repeat(3, 1fr); }
  .acc details { break-inside: avoid; }
  .acc details:not([open]) .acc-body { display: block; }
  table.data { min-width: 0; }
}
