/* MapaVPN – style strony. Style samej mapy: /assets/world-map/src/maps.css
   Jasny i ciemny motyw – według ustawień systemu albo wyboru w przełączniku w nagłówku (<html data-theme>).
   Kolory tylko w zmiennych poniżej; mapy (także kolory danych w map.js) też biorą je ze zmiennych. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --surface: #ffffff;
  --text: #13222f;
  --text-soft: #3d4f5f;
  --muted: #6a7b8a;
  --border: #e3e9ee;
  --border-strong: #cfd9e1;
  --accent: #0f8a76;
  --accent-strong: #0b6a5b;
  --accent-soft: #e4f5f1;
  --navy: #0b1f33;
  --radius: 12px;
  --radius-sm: 8px;
  --accent-hover: #0b6a5b;
  /* ciemne pasy: stopka, link „przejdź do treści”, ramka zachęty */
  --band: #0b1f33;
  --cta-bg: #0b1f33;
  --header-bg: rgba(255, 255, 255, 0.92);
  --glass: rgba(255, 255, 255, 0.88);
  --tip-bg: rgba(11, 31, 51, 0.94);
  --tip-fg: #fff;
  --chip-bg: #eef2f5;
  --chip-ring: #c3ced7;
  --row-hover: #fafcfd;
  --warn-bg: #fff7e0;
  --warn-border: #ecd9a8;
  --warn-ink: #7a5200;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%230b6a5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* mapy: tło, ląd, granice; kolory danych (liczba dostawców, rodzaj lokalizacji) – map.js, provider.php */
  --map-ocean: #eaf2f5;
  --map-land: #d7dfe5;
  --map-land-hover: #c2cdd6;
  --map-border: #ffffff;
  --map-hover-outline: #0b1f33;
  --map-ocean-soft: #f4f9fb;
  --map-land-soft: #dfe5ea;
  --map-1: #c9ece3;
  --map-2: #33b39b;
  --map-3: #0b5f56;
  --map-physical: #0b6a5b;
  --map-virtual: #4fb3a0;
  --map-unconfirmed: #a3b1bd;
  --map-here: #0b6a5b;
  --shape-border: #b9e2d8;
  --shadow: 0 1px 2px rgba(16, 34, 47, 0.04), 0 4px 16px rgba(16, 34, 47, 0.06);
  --wrap: 1240px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

/* Ciemny motyw: według systemu (bez wyboru w przełączniku) albo wybrany ręcznie – te same zmienne w obu blokach. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c1620;
    --bg-alt: #101c28;
    --surface: #142230;
    --text: #e2eaf1;
    --text-soft: #b3c2cf;
    --muted: #8597a7;
    --border: #213345;
    --border-strong: #30465a;
    --accent: #13917b;
    --accent-strong: #5ed3ba;
    --accent-hover: #0f7a67;
    --accent-soft: #11332f;
    --navy: #f0f5f9;
    --band: #08111a;
    --cta-bg: #15304a;
    --header-bg: rgba(12, 22, 32, 0.9);
    --glass: rgba(20, 34, 48, 0.9);
    --tip-bg: rgba(232, 240, 246, 0.96);
    --tip-fg: #0b1f33;
    --chip-bg: #1d2d3c;
    --chip-ring: #3a5064;
    --row-hover: #132331;
    --warn-bg: #2d2511;
    --warn-border: #5e4b1d;
    --warn-ink: #f2cb6e;
    --danger: #ff8b7e;
    --danger-bg: #331614;
    --danger-border: #6e2b25;
    --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%235ed3ba' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --map-ocean: #0a131c;
    --map-land: #24384a;
    --map-land-hover: #304a60;
    --map-border: #0a131c;
    --map-hover-outline: #e2eaf1;
    --map-ocean-soft: #0a131c;
    --map-land-soft: #24384a;
    --map-1: #9fdccb;
    --map-2: #2b9f88;
    --map-3: #0e5f55;
    --map-physical: #12806d;
    --map-virtual: #5cc4ae;
    --map-unconfirmed: #7b8b99;
    --map-here: #2fb89d;
    --shape-border: #2b6d61;
    --rm-dark-frame: #30465a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0c1620;
  --bg-alt: #101c28;
  --surface: #142230;
  --text: #e2eaf1;
  --text-soft: #b3c2cf;
  --muted: #8597a7;
  --border: #213345;
  --border-strong: #30465a;
  --accent: #13917b;
  --accent-strong: #5ed3ba;
  --accent-hover: #0f7a67;
  --accent-soft: #11332f;
  --navy: #f0f5f9;
  --band: #08111a;
  --cta-bg: #15304a;
  --header-bg: rgba(12, 22, 32, 0.9);
  --glass: rgba(20, 34, 48, 0.9);
  --tip-bg: rgba(232, 240, 246, 0.96);
  --tip-fg: #0b1f33;
  --chip-bg: #1d2d3c;
  --chip-ring: #3a5064;
  --row-hover: #132331;
  --warn-bg: #2d2511;
  --warn-border: #5e4b1d;
  --warn-ink: #f2cb6e;
  --danger: #ff8b7e;
  --danger-bg: #331614;
  --danger-border: #6e2b25;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%235ed3ba' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --map-ocean: #0a131c;
  --map-land: #24384a;
  --map-land-hover: #304a60;
  --map-border: #0a131c;
  --map-hover-outline: #e2eaf1;
  --map-ocean-soft: #0a131c;
  --map-land-soft: #24384a;
  --map-1: #9fdccb;
  --map-2: #2b9f88;
  --map-3: #0e5f55;
  --map-physical: #12806d;
  --map-virtual: #5cc4ae;
  --map-unconfirmed: #7b8b99;
  --map-here: #2fb89d;
  --shape-border: #2b6d61;
  --rm-dark-frame: #30465a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  margin: 0 0 0.4em;
}
h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  margin: 1.6em 0 0.5em;
}
h3 {
  font-size: 1.1rem;
  margin: 1.4em 0 0.4em;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.prose-wrap {
  max-width: 820px;
}
/* Sekcja mapy: cała szerokość okna, tylko z marginesem bocznym. */
.wrap-wide {
  max-width: 2200px;
  padding: 0 clamp(12px, 1.6vw, 28px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 100;
  transform: translateY(-200%);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--band);
  color: #fff;
}
.skip-link:focus {
  transform: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
}
.lead {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 70ch;
}
.kicker {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Nagłówek – dyskretny
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--navy);
}
.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover {
  color: var(--navy);
  background: var(--bg-alt);
}
.site-nav a[aria-current='page'] {
  color: var(--navy);
  font-weight: 600;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-switch,
.maps-switch {
  position: relative;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}
/* „Inne mapy”: lista jak przy wyborze języka, napis jak zwykły link menu */
.maps-switch summary {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px 6px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.maps-switch summary::-webkit-details-marker {
  display: none;
}
.maps-switch summary:hover,
.maps-switch[open] summary {
  color: var(--navy);
  background: var(--bg-alt);
}
.maps-switch summary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
.maps-switch[open] summary svg {
  transform: rotate(180deg);
}
.site-nav .maps-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: block;
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lang-switch summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
}
.lang-switch summary::-webkit-details-marker {
  display: none;
}
.lang-switch summary:hover,
.lang-switch[open] summary {
  color: var(--navy);
  background: var(--bg-alt);
}
.lang-switch summary svg {
  width: 16px;
  height: 16px;
}
.site-nav .lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: block;
  min-width: 160px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lang-switch a[aria-current='true'] {
  color: var(--accent-strong);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
/* Przełącznik motywu: słońce / auto / księżyc w jednej pigułce – moduł theme (assets/theme/theme.css) na zmiennych */
.site-header {
  --theme-switch-gap-left: 4px; --theme-switch-gap-left-compact: auto;
  --theme-switch-bg: var(--bg-alt); --theme-switch-border: var(--border); --theme-switch-bg-compact: transparent;
  --theme-switch-fg: var(--muted); --theme-switch-fg-active: var(--navy); --theme-switch-active: var(--surface);
  --theme-switch-focus: var(--accent);
}
.site-header .theme-switch { flex: 0 0 auto; }
.site-header .theme-switch button[aria-pressed='true'] { box-shadow: 0 0 0 1px var(--border); }
/* Tuż nad progiem menu na telefon pozycje menu ciaśniej – z przełącznikiem motywu mieszczą się też dłuższe nazwy (FR) */
@media (min-width: 1081px) and (max-width: 1240px) {
  .site-nav a {
    padding: 6px 7px;
  }
  .header-inner {
    gap: 12px;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
    order: 1;
    margin-left: 4px;
  }
  .theme-switch {
    margin-left: auto;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 8px 20px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
  }
  .site-nav a {
    padding: 10px 8px;
    font-size: 1rem;
  }
  .site-nav .lang-switch,
  .site-nav .maps-switch {
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .maps-switch summary {
    padding: 10px 8px;
    font-size: 1rem;
  }
  .site-nav .maps-switch ul {
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .lang-switch summary {
    padding: 10px 8px;
    font-size: 1rem;
  }
  .site-nav .lang-switch ul {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
/* Na wąskim ekranie jeden przycisk z bieżącym trybem – dotknięcie przełącza auto → jasny → ciemny (moduł theme) */
@media (max-width: 480px) {
  .site-header .theme-switch button[aria-pressed='true'] { box-shadow: none; }
}
  .theme-switch svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   Okruszki, nagłówki stron
   ========================================================================== */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: '/';
  margin-right: 4px;
  color: var(--border-strong);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--accent-strong);
}

.page-head {
  padding-top: 24px;
  padding-bottom: 8px;
}
.page-head .meta {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   Mapa na stronie głównej
   ========================================================================== */

/* Mapa na całą szerokość okna, zaraz pod menu. Wysokość = mniejsza z dwóch:
   naturalna wysokość mapy przy tej szerokości (proporcje ~2.23 : 1 po przycięciu)
   albo wysokość okna pod menu – cała mapa jest widoczna od razu, bez ucinania dołu. */
.map-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.map-stage {
  --gutter: clamp(12px, 1.6vw, 28px);
  --side-w: clamp(270px, 21vw, 360px);
  --gap: 12px;
  --map-w: calc(100vw - 2 * var(--gutter) - var(--side-w) - var(--gap));
  --stage-h: clamp(600px, calc(var(--map-w) / 2.23), calc(100vh - 53px - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-w);
  grid-template-areas: 'map side';
  gap: var(--gap);
  height: var(--stage-h);
  padding: 12px var(--gutter);
}
@supports (height: 100svh) {
  .map-stage {
    --stage-h: clamp(600px, calc(var(--map-w) / 2.23), calc(100svh - 53px - 24px));
  }
}

.map-area {
  grid-area: map;
  position: relative;
  min-width: 0;
  height: 100%;
  border-radius: 14px;
  background: var(--map-ocean);
  overflow: hidden;
}
.vpn-map {
  height: 100%;
  --wm-ocean: var(--map-ocean);
  --wm-sphere-stroke: transparent;
  --wm-land: var(--map-land);
  --wm-land-hover: var(--map-land-hover);
  --wm-border: var(--map-border);
  --wm-hover-outline: var(--map-hover-outline);
}
/* Wszystkie mapy: przyciski przybliżania i dymki w kolorach motywu strony */
.wm,
.rm {
  --wm-control-bg: var(--surface);
  --wm-control-fg: var(--text);
  --wm-control-border: var(--border-strong);
  --wm-tooltip-bg: var(--tip-bg);
  --wm-tooltip-fg: var(--tip-fg);
  --rm-control-bg: var(--surface);
  --rm-control-fg: var(--text);
  --rm-control-border: var(--border-strong);
  --rm-tooltip-bg: var(--tip-bg);
  --rm-tooltip-fg: var(--tip-fg);
}
.vpn-map .wm-country.wm-hover[data-fill] {
  filter: brightness(0.92) saturate(1.15);
}

/* Podpowiedź „Ctrl + kółko” – mała etykieta przy kursorze, raz na wizytę. */
.map-wheel-hint {
  position: fixed;
  z-index: 50;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tip-bg);
  color: var(--tip-fg);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s, transform 0.2s;
}
.map-wheel-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Legenda: nakładka w lewym dolnym rogu (południowy Pacyfik – pusto). */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 0.8rem;
}
.map-area .map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(16, 34, 47, 0.08);
}
.map-legend-static {
  margin: 10px 2px 8px;
}
.lg-label {
  color: var(--text-soft);
  font-weight: 600;
}
.lg-scale {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lg-bar {
  display: inline-block;
  width: 100px;
  height: 8px;
  border-radius: 4px;
}
.lg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lg-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.lg-none {
  background: var(--map-land);
}

/* Karta po prawej: tytuł, wyszukiwarka, filtr i dostawcy w kraju. */
.map-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.side-intro {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.side-intro h1 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.map-sub {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}
.map-stats {
  color: var(--muted);
  white-space: nowrap;
}
.side-controls {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.map-search {
  position: relative;
}
.map-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.map-search input,
.provider-select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}
.map-search input {
  padding: 0 10px 0 33px;
}
.provider-select {
  padding: 0 8px;
  cursor: pointer;
}
.map-search input:focus,
.provider-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.vpn-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  font-size: 0.9rem;
}
.vp-hint {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-soft);
}
.vp-hint svg {
  flex: 0 0 36px;
  height: 36px;
  padding: 7px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.vp-hint p {
  margin: 0;
}
.vp-popular-title {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vp-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vp-popular a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  text-decoration: none;
}
.vp-popular a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.vp-popular a span {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.vp-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vp-title {
  margin: 2px 0 4px;
  font-size: 1.35rem;
}
.vp-count {
  margin: 0 0 12px;
  color: var(--text-soft);
}
.vp-count strong {
  color: var(--accent-strong);
}
.vp-empty {
  margin: 8px 0;
  color: var(--text-soft);
}
.vp-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.vp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Nazwa, etykiety i przycisk partnera nie zawsze mieszczą się w wąskim panelu – przycisk przechodzi wtedy do drugiej linii (bez poziomego przewijania). */
.vp-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-sm);
}
.vp-item + .vp-item {
  border-top: 1px solid var(--border);
}
.vp-item.is-active {
  background: var(--accent-soft);
}
.vp-item .badge {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 0.7rem;
}
.vp-name {
  font-weight: 600;
  color: var(--navy);
}
.vp-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
  cursor: help;
}
/* Dostawca nie mówi, które lokalizacje są wirtualne */
.vp-tag-unconfirmed {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--chip-ring);
  font-weight: 500;
}
.vp-cta {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.vp-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}
.vp-tag + .vp-cta,
.vp-name + .vp-cta {
  margin-left: auto;
}
/* Oznaczenie partnera (link afiliacyjny) – zawsze widoczne, z wyjaśnieniem w podpowiedzi i w notce pod listą. */
.partner-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--warn-border);
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  vertical-align: middle;
  cursor: help;
}
.partner-note {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.partner-note .partner-tag {
  margin-left: 0;
}
.vp-card .partner-note {
  margin: 12px 0 0;
}
.provider-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.provider-cta .partner-note {
  margin: 0;
  max-width: 260px;
  text-align: right;
}
.vp-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.vp-more::after {
  content: ' →';
}

.map-noscript {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
}

.vp-zoom-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.vp-zoom-hint kbd {
  padding: 0 4px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-alt);
  font: inherit;
  font-size: 0.75rem;
}

/* Telefon i wąskie okna: tytuł → mapa → dostawcy, jedno pod drugim. */
@media (max-width: 900px) {
  .map-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'intro' 'map' 'panel';
    height: auto;
  }
  .map-side {
    display: contents;
  }
  .side-intro {
    grid-area: intro;
    padding: 4px 2px 0;
    border: 0;
  }
  .side-intro h1 {
    font-size: 1.35rem;
  }
  .map-area,
  .vpn-map {
    height: auto;
  }
  .map-area .map-legend {
    position: static;
    max-width: none;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .vpn-panel {
    grid-area: panel;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
}

/* ==========================================================================
   Odznaki dostawców
   ========================================================================== */

.badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--c, var(--band));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.badge-lg {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 0.95rem;
}
.badge-xl {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 1.35rem;
}

/* ==========================================================================
   Sekcje i artykuły
   ========================================================================== */

.section {
  padding: 40px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section > .wrap > h2:first-child,
.section-head h2 {
  margin-top: 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.more-link {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.more-link::after {
  content: ' →';
}

.home-article {
  padding: 40px 0 24px;
}
.home-article .lead {
  font-size: 1.2rem;
  margin-top: 0;
}

.prose {
  color: var(--text-soft);
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2,
.prose h3 {
  color: var(--navy);
}
.prose strong {
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin: 0.35em 0;
}
.prose li::marker {
  color: var(--accent);
}

.check-list {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  margin: 6px 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) var(--check-icon) center / 14px no-repeat;
}
.check-list-lg li {
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}
.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 1rem;
}

.cta-box {
  margin: 40px 0 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--cta-bg);
  color: #d6e2ea;
}
.cta-box h2 {
  margin: 0 0 6px;
  color: #fff;
}
.cta-box p {
  margin: 0 0 16px;
}
.cta-line {
  margin-top: 28px;
  color: var(--text-soft);
}

.related-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
}
.related-list a:hover {
  border-color: var(--accent);
}
.related-list strong {
  display: block;
  color: var(--navy);
}
.related-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   Dostawcy
   ========================================================================== */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.provider-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.provider-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.provider-tile-body strong {
  display: block;
  color: var(--navy);
}
.provider-tile-body span {
  color: var(--muted);
  font-size: 0.84rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th,
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.compare-table thead th {
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}
.compare-table tbody tr:hover {
  background: var(--row-hover);
}
.compare-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.provider-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.yes {
  color: var(--accent-strong);
  font-weight: 600;
}
.no {
  color: var(--muted);
}
.table-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Filtry porównania */
.provider-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
}
.provider-filters-label {
  color: var(--muted);
  font-size: 0.85rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.filter-chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.filter-chip input {
  accent-color: var(--accent);
  margin: 0;
}
.provider-filters-count {
  color: var(--muted);
  font-size: 0.85rem;
}
.filter-reset {
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
.filter-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
}
.feature-tags {
  white-space: normal !important;
  min-width: 150px;
}
.feature-tag {
  display: inline-block;
  margin: 1px 2px 1px 0;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.7;
  cursor: help;
}

/* Raport z danymi: kafelki, wykresy (HTML/CSS), podpowiedzi */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.stat-tiles li {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
.stat-tiles strong {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
.stat-sub {
  margin-left: 6px;
  color: var(--muted);
  font-size: 1rem;
}
.chart-note {
  margin: -4px 0 8px;
  font-size: 0.88rem;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.85rem;
}
.lg-physical,
.seg-physical {
  background: var(--map-physical);
}
.lg-virtual,
.seg-virtual {
  background: var(--map-virtual);
}
/* Dostawca nie mówi, które lokalizacje są wirtualne (jak UNCONFIRMED w map.js) */
.lg-unconfirmed,
.seg-unconfirmed {
  background: var(--map-unconfirmed);
}
.hbar-chart {
  display: grid;
  gap: 4px;
}
.hbar-row {
  display: grid;
  grid-template-columns: minmax(120px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 2px 4px;
  border-radius: 6px;
  outline: none;
}
.hbar-row:hover,
.hbar-row:focus-visible {
  background: var(--bg-alt);
}
.hbar-label {
  overflow: hidden;
  color: var(--text);
  font-size: 0.85rem;
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}
a.hbar-label:hover {
  color: var(--accent-strong);
}
.hbar-track {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
  border-left: 1px solid var(--border-strong);
}
.hbar-seg {
  height: 14px;
}
.hbar-seg.is-end {
  border-radius: 0 4px 4px 0;
}
.hbar-value {
  margin-left: 6px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.col-chart {
  padding-top: 8px;
}
.col-plot {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  gap: 2px;
  height: 220px;
  border-bottom: 1px solid var(--border-strong);
}
.col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  outline: none;
}
.col-bar {
  position: relative;
  width: min(100%, 24px);
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}
.col:hover .col-bar,
.col:focus-visible .col-bar {
  background: var(--accent-hover);
}
.col-value {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 2px;
  color: var(--text-soft);
  font-size: 0.78rem;
}
.col-tick {
  position: absolute;
  top: 100%;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}
.col-axis {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.chart-table {
  margin-top: 12px;
  font-size: 0.9rem;
}
.chart-table summary {
  color: var(--accent-strong);
  cursor: pointer;
}
.chart-table .table-scroll {
  margin-top: 8px;
}
.report-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.report-columns h2 {
  margin-top: 0;
}
.hbar-simple .hbar-row {
  grid-template-columns: minmax(110px, 190px) minmax(0, 1fr);
}
.chart-tip {
  position: fixed;
  z-index: 60;
  max-width: 320px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--tip-bg);
  color: var(--tip-fg);
  font-size: 0.8rem;
  pointer-events: none;
}
.download-links {
  display: flex;
  gap: 8px;
}
.cite {
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.8rem;
  white-space: pre-wrap;
}

/* Widget do osadzenia */
.embed-box summary {
  color: var(--accent-strong);
  font-weight: 600;
  cursor: pointer;
}
.embed-preview {
  margin: 12px 0;
}
.embed-code {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-soft);
  font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
}

/* Dziennik zmian lokalizacji */
.rss-link {
  font-size: 0.9rem;
  font-weight: 600;
}
.rss-link::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  background: #e8833a;
}
.change-day h2 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
}
.change-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.change-list li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.change-mark {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--muted);
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.change-added .change-mark {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Gotowe zestawienia */
.filter-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.filter-links a {
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.85rem;
  text-decoration: none;
}
.filter-links a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.criterion {
  margin: 16px 0 4px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Strona dostawcy: bezpieczeństwo, historia, inne marki grupy */
.feature-list {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.feature-list strong {
  font-weight: 600;
}
.feature-yes strong {
  color: var(--accent-strong);
}
.feature-no strong,
.feature-unknown strong {
  color: var(--muted);
  font-weight: 500;
}
.history {
  padding-left: 14px;
  border-left: 3px solid var(--border-strong);
}
.facts-siblings {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Właściciele */
.owner-groups {
  display: grid;
  gap: 24px;
}
.owner-group h3 {
  margin: 0 0 10px;
}
.owner-list {
  columns: 2 280px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.owner-list li {
  padding: 4px 0;
  break-inside: avoid;
}
.section-tight {
  padding-top: 0;
}

.provider-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.provider-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.provider-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.provider-card h2 {
  margin: 0;
  font-size: 1.2rem;
}
.provider-card h2 a {
  color: var(--navy);
  text-decoration: none;
}
.provider-card h2 a:hover {
  color: var(--accent-strong);
}
.provider-card-head p {
  margin: 0;
  font-size: 0.86rem;
}
.provider-card > p {
  color: var(--text-soft);
  margin: 14px 0 4px;
}
.provider-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.provider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.provider-head > div {
  flex: 1 1 400px;
}
.provider-head .lead {
  margin: 0;
}
.provider-jump {
  margin: 6px 0 0;
}
.provider-jump a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.provider-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}
.provider-main h2 {
  font-size: 1.25rem;
}
.facts {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.facts dl {
  margin: 0;
}
.facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.facts dl > div:last-child {
  border-bottom: 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.facts .fact-note dd {
  color: var(--muted);
  font-weight: 400;
}
.provider-map {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--map-ocean-soft);
  overflow: hidden;
  --wm-ocean: var(--map-ocean-soft);
  --wm-sphere-stroke: transparent;
  --wm-land: var(--map-land-soft);
  --wm-land-inactive: var(--map-land-soft);
  --wm-border: var(--map-border);
  --wm-hover-outline: var(--map-hover-outline);
}
.map-legend-static {
  margin-bottom: 8px;
}

.continent-columns {
  columns: 3 240px;
  column-gap: 32px;
  margin-top: 16px;
}
.continent {
  break-inside: avoid;
  margin-bottom: 16px;
}
.continent h3 {
  margin: 0 0 6px;
}
.country-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.country-list li {
  padding: 2px 0;
}

@media (max-width: 860px) {
  .provider-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Kraje
   ========================================================================== */

.continent-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 8px;
}
.continent-nav a {
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.86rem;
  text-decoration: none;
}
.continent-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.continent-block {
  scroll-margin-top: 64px;
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.country-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
}
.country-grid a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.country-grid .count {
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.country-head {
  display: flex;
  align-items: center;
  gap: 24px;
}
.country-head > div:first-child {
  flex: 1 1 auto;
}
.country-summary {
  max-width: 70ch;
  margin: 0;
  color: var(--text-soft);
}
.country-shape {
  flex: 0 0 220px;
  height: 180px;
  --rm-land: var(--accent-soft);
  --rm-land-inactive: var(--accent-soft);
  --rm-border: var(--shape-border);
  --rm-outline: var(--accent);
  --rm-frame: var(--border);
}
@media (max-width: 700px) {
  .country-shape,
  .country-png {
    display: none;
  }
}

/* Obrazek PNG (moduł export – assets/export/export.css): przycisk i menu formatów na zmiennych serwisu */
:root {
  --export-surface: var(--surface);
  --export-ink: var(--text);
  --export-ink-2: var(--text-soft);
  --export-muted: var(--muted);
  --export-line: var(--border);
  --export-hover: var(--bg-alt);
  --export-radius: var(--radius-sm);
  --export-font: var(--font);
}
.map-area > .map-png {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 12px;
}
.map-legend-static .map-export-wrap {
  position: relative;
  margin-left: auto;
}
.country-png {
  margin: 12px 0 0;
}
.country-png .map-export-wrap {
  position: relative;
  display: inline-block;
}

.offer-list {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.offer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.offer-body {
  flex: 1 1 auto;
  min-width: 0;
}
.offer h3 {
  margin: 0 0 2px;
  font-size: 1.08rem;
}
.offer h3 a {
  color: var(--navy);
  text-decoration: none;
}
.offer h3 a:hover {
  color: var(--accent-strong);
}
.offer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.offer p.muted {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary h2 {
  margin: 0;
  font-size: 1.05rem;
}
.faq-answer {
  padding: 0 0 12px;
  color: var(--text-soft);
}
.faq-answer p {
  margin: 0 0 8px;
}

.page-404 {
  padding: 64px 20px;
}

/* ==========================================================================
   Stopka
   ========================================================================== */

.site-footer {
  margin-top: 48px;
  padding: 40px 0 24px;
  background: var(--band);
  color: #a9bccb;
  font-size: 0.9rem;
}
.site-footer a {
  color: #d6e2ea;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-grid li {
  margin: 6px 0;
}
.brand-footer {
  color: #fff;
}
.brand-footer:hover {
  color: #fff;
}
.footer-about p {
  max-width: 40ch;
}
.footer-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #8aa0b2;
}
.footer-note p {
  margin: 0 0 6px;
}
.footer-note strong {
  color: #d6e2ea;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* ==========================================================================
   Porównania dostawców (/compare/a-vs-b)
   ========================================================================== */

.vs-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.vs-sep {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vs-tiles .stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vs-tiles strong {
  margin-right: 4px;
}
.vs-sub {
  display: block;
  margin-top: 2px;
}
.lg-swatch {
  flex: none;
}
.vs-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
}
.vs-cta .partner-note {
  flex-basis: 100%;
  margin: 0;
}
.vs-choose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  margin-top: 8px;
}
.vs-choose h3,
.vs-lists h3,
.vs-both summary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vs-table th[scope='row'] {
  color: var(--muted);
  font-weight: 500;
}
.vs-table td.is-more {
  font-weight: 700;
}
.vs-lists {
  margin-bottom: 16px;
}
.vs-both-list {
  columns: 4 180px;
}
.vs-pick {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.vs-pick h2 {
  margin-top: 0;
  font-size: 1.1rem;
}
.vs-pick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.vs-pick label {
  display: grid;
  gap: 4px;
  flex: 1 1 200px;
  color: var(--muted);
  font-size: 0.85rem;
}
.vs-pick select {
  padding: 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

/* ==========================================================================
   Jaki mam IP (/what-is-my-ip)
   ========================================================================== */

.ip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.ip-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ip-address {
  margin: 4px 0 16px;
  color: var(--navy);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.ip-facts {
  margin: 0 0 12px;
}
.ip-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.ip-facts dt {
  color: var(--muted);
}
.ip-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.ip-error {
  color: var(--danger);
  font-weight: 600;
}
.ip-map {
  min-height: 260px;
  border-radius: 8px;
  background: var(--bg-alt);
  overflow: hidden;
}
.ip-map {
  --wm-ocean: var(--map-ocean-soft);
  --wm-sphere-stroke: transparent;
  --wm-land: var(--map-land);
  --wm-land-inactive: var(--map-land);
  --wm-border: var(--map-border);
  --wm-marker: #eb6834;
  --wm-marker-stroke: var(--surface);
}
.ip-lookup {
  margin-top: 16px;
}
.ip-lookup label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.ip-lookup-row {
  display: flex;
  gap: 10px;
  max-width: 520px;
}
.ip-lookup input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.ip-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
}
.webrtc-result {
  min-height: 1.5em;
  font-weight: 600;
}
.webrtc-result[data-state='same'],
.webrtc-result[data-state='none'] {
  color: var(--accent-strong);
}
.webrtc-result[data-state='diff'] {
  color: var(--danger);
}
@media (max-width: 720px) {
  .ip-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }
}

/* ==========================================================================
   Kontakt (formularz) i link do Ominuvo w menu „Inne mapy”
   ========================================================================== */

.site-nav .maps-switch li.maps-more {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.site-nav .maps-switch li.maps-more a {
  color: var(--accent-strong);
  font-weight: 600;
}
/* Plakietka języka mapy bez wersji w języku strony (rejestr serii – Series::otherMaps) */
.maps-switch .maps-lang {
  margin-left: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin: 8px 0 24px;
}
.contact-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-field input[type='text'],
.contact-field input[type='email'],
.contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.contact-field textarea {
  min-height: 180px;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact-field [aria-invalid='true'] {
  border-color: var(--danger);
}
.contact-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: start;
}
.contact-consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.contact-consent label {
  margin: 0;
  color: var(--text-soft);
  font-weight: 400;
  font-size: 0.92rem;
}
.contact-consent .contact-error {
  grid-column: 2;
}
.contact-req {
  color: var(--danger);
}
.contact-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}
.contact-required {
  margin: 0;
  font-size: 0.85rem;
}
.contact-form .btn {
  justify-self: start;
}
.contact-notice {
  max-width: 640px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.contact-notice-ok {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
  font-weight: 600;
}
.contact-notice-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}
.contact-clause {
  max-width: 640px;
  font-size: 0.85rem;
}
.contact-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
