/* =============================================================
   non.agency — Strony krajowe SEO 2026
   Szablon: template-strona-krajowa.php
   Markup:  template-parts/country-page-2026.php

   Trzy rzeczy trzymają charakter tej strony i najłatwiej je zgubić:
     1. ujemny tracking na dużym tekście (−0.05em w H1, −0.04em w H2),
     2. hairline zamiast kart — 1 px między wierszami, 3 px nad blokiem,
     3. gołe liczby: duże, bez ramek, bez tła.

   Breakpointy (handoff §2):
     ≥ 1200 px  szyna + margines na adnotacje
     900–1199   szyna schodzi, adnotacje wchodzą pod akapit
     < 900      jedna kolumna, tabele stają się kartami
   ------------------------------------------------------------- */

.cp {
  --cp-rail: 260px;
  --cp-col: 660px;
  --cp-gap: 48px;
  --cp-pad: 72px;
  --cp-max: 1440px;
  /* Wysokość przyklejonego nagłówka serwisu — kotwice muszą się o nią odbić,
     inaczej nagłówek sekcji chowa się pod paskiem. */
  --cp-offset: 96px;

  font-family: var(--font-sans);
  color: var(--non-ink);
  background: var(--non-bg);
  letter-spacing: -0.02em;
  overflow-x: clip;
}

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

/* Reset przez :where() — zerowa waga, więc reguły komponentów niżej wygrywają
   bez podbijania specyficzności. Bez tego `.cp p` biło `.cp-text > * + *`
   i akapity zlepiały się w jeden blok. */
:where(.cp) p,
:where(.cp) figure,
:where(.cp) blockquote,
:where(.cp) dl,
:where(.cp) dd {
  margin: 0;
  color: inherit;
  letter-spacing: inherit;
}

:where(.cp) a {
  color: var(--non-purple);
  text-decoration: none;
  transition: color 0.15s ease;
}

:where(.cp) a:hover {
  color: var(--non-purple-deep);
}

.cp :focus-visible {
  outline: 3px solid var(--non-purple);
  outline-offset: 3px;
}

/* ---------- elementy wspólne ---------- */

.cp-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--non-mute);
}

.cp-eyebrow--purple {
  color: var(--non-purple);
}

.cp-star {
  display: block;
  flex: none;
}

.cp-h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: var(--non-ink);
  max-width: 22ch;
}

.cp-h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--non-ink);
}

.cp-source {
  font-size: 13px;
  color: var(--non-mute);
  white-space: nowrap;
}

.cp-aside-label {
  padding-top: 14px;
  margin-bottom: 4px;
  border-top: 3px solid var(--non-ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--non-mute);
}

/* ---------- typografia treści ---------- */

.cp-text > * + * {
  margin-top: 18px;
}

.cp-text p {
  font-size: 18px;
  line-height: 1.55;
}

.cp-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-text li {
  padding-left: 16px;
  border-left: 2px solid var(--non-purple);
  font-size: 15px;
  line-height: 1.45;
  color: var(--non-ink);
}

.cp-text code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--non-surface-2);
  border-radius: 6px;
}

.cp-text h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cp-text h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cp-text blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.cp-text table {
  width: 100%;
  border-collapse: collapse;
}

.cp-text th,
.cp-text td {
  padding: 10px 0;
  border-bottom: 1px solid var(--non-surface-2);
  font-size: 16px;
  text-align: left;
  vertical-align: top;
}

.cp-text th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--non-mute);
}

.cp-text td:first-child {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--non-purple);
}

.cp-text dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cp-text dt {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--non-purple);
}

.cp-text dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--non-mute);
}

.cp-text--lead p {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.32;
  letter-spacing: -0.035em;
  color: var(--non-ink);
}

.cp-text--small p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--non-mute);
}

.cp-text--small > * + * {
  margin-top: 12px;
}

.cp-text--strong p {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--non-ink);
}

.cp-text--pull p {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--non-purple);
  max-width: 34ch;
}

.cp-text--figure p {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--non-purple);
}

.cp-text .is-link a {
  font-weight: 700;
}

/* ---------- przyciski ---------- */

.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 8px 0 22px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  /* Jak w makiecie. Bez tego dłuższa etykieta łamie się na dwie linijki,
     pill rośnie, a promień 999px robi z niego owal — plakietka strzałki
     przestaje wtedy pasować do łuku. */
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cp-btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 14px;
  font-size: 16px;
}

/* Podwójna klasa, bo `.cp a` ma tę samą wagę co `.cp-btn--*` — bez tego
   etykieta przycisku dziedziczy fiolet linku i znika na fioletowym tle. */
.cp .cp-btn--purple {
  background: var(--non-purple);
  color: #fff;
}

.cp .cp-btn--purple .cp-btn__arrow {
  background: var(--non-purple-deep);
  color: #fff;
}

.cp .cp-btn--purple:hover {
  background: var(--non-purple-deep);
  color: #fff;
}

.cp .cp-btn--green {
  background: var(--non-green);
  color: var(--non-purple);
}

.cp .cp-btn--green .cp-btn__arrow {
  background: #fff;
  color: var(--non-purple);
}

.cp .cp-btn--green:hover {
  background: var(--non-purple);
  color: #fff;
}

.cp .cp-btn--outline {
  padding: 0 22px;
  border: 2px solid var(--non-ink);
  background: transparent;
  color: var(--non-ink);
}

.cp .cp-btn--outline .cp-btn__arrow {
  width: auto;
  height: auto;
}

.cp .cp-btn--outline:hover {
  background: var(--non-ink);
  color: #fff;
}

.cp .cp-btn--link {
  min-height: 0;
  padding: 0;
  gap: 10px;
  background: none;
  color: var(--non-purple);
  font-size: 17px;
}

.cp-btn--link .cp-btn__arrow {
  width: auto;
  height: auto;
  border-radius: 0;
}

.cp-btn--lg {
  min-height: 72px;
  /* 14 px zamiast 12 — patrz komentarz przy .cp-btn--sm niżej. */
  padding: 0 14px 0 32px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.cp-btn--lg .cp-btn__arrow {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  font-size: 20px;
}

/*
 * Wariant mały. Plakietka MUSI się tu zmniejszyć — `.cp-btn--lg` ma swoją
 * regułę, a `--sm` jej nie miał, więc w pillu 48 px siedziała plakietka 36 px
 * z bazowego `.cp-btn__arrow`. To 75% wysokości przycisku: zostawało po 6 px
 * nad i pod nią, a jej narożniki wchodziły w łuk zaokrąglenia (promień 999px
 * = połowa wysokości). Stąd wrażenie, że strzałka wychodzi z przycisku.
 * Widać to głównie na pasku mobilnym, bo tam jest właśnie `--sm`.
 */
.cp-btn--sm {
  min-height: 48px;
  padding: 0 8px 0 18px;
  font-size: 14px;
}

.cp-btn--sm .cp-btn__arrow {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  font-size: 15px;
}

/* =============================================================
   HERO
   ------------------------------------------------------------- */

.cp-hero {
  position: relative;
  background: var(--non-purple-deep);
  overflow: hidden;
  color: #fff;
}

.cp-hero__map {
  position: absolute;
  right: -14%;
  top: 20px;
  width: 70%;
  max-width: 1020px;
  color: var(--non-purple);
  opacity: 0.4;
  pointer-events: none;
}

.cp-hero__map svg {
  display: block;
  width: 100%;
  height: auto;
}

.cp-hero__inner {
  position: relative;
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 56px var(--cp-pad) 0;
}

.cp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 56px;
  color: var(--non-green);
  font-size: 14px;
  letter-spacing: 0;
}

.cp-hero__top {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--cp-pad);
  align-items: end;
  padding-bottom: 64px;
}

.cp-hero__h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.7vw, 82px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #fff;
  max-width: 17ch;
}

.cp-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 10px;
}

.cp-hero__lead {
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
}

.cp-hero__sub {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.cp-hero__data {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 32px 0 40px;
}

.cp-hero__datahead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cp-hero__datalabel {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--non-green);
}

.cp-hero__datasource {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.cp-hero__bar {
  display: flex;
  gap: 3px;
  margin-top: 20px;
  height: 6px;
}

.cp-hero__seg--white {
  background: #fff;
}

.cp-hero__seg--green {
  background: var(--non-green);
}

.cp-hero__seg--faded {
  background: rgba(255, 255, 255, 0.24);
}

.cp-hero__numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.cp-hero__value {
  font-size: clamp(30px, 2.9vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.cp-hero__value--white {
  color: #fff;
}

.cp-hero__value--green {
  color: var(--non-green);
}

.cp-hero__value span {
  font-size: 0.55em;
}

.cp-hero__caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- pasek mobilny ---------- */

.cp-sticky {
  display: none;
  position: sticky;
  /* Navbar motywu (.navbar6_component) jest `position: fixed` i ma 64 px na
     telefonie / 72 px wyżej. Przy `top: 0` ten pasek parkował dokładnie pod
     nim, a mając z-index 50 przy navbarze bez z-indexu — zasłaniał menu.
     --cp-offset jest już skalibrowany pod tę wysokość. */
  top: var(--cp-offset);
  z-index: 50;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--non-surface-2);
}

.cp-sticky__text {
  font-size: 13px;
  line-height: 1.3;
  color: var(--non-mute);
}

.cp-sticky__text strong {
  color: var(--non-ink);
}

/* =============================================================
   KORPUS: szyna + treść
   ------------------------------------------------------------- */

.cp-body {
  display: grid;
  grid-template-columns: var(--cp-rail) minmax(0, 1fr);
  align-items: start;
  max-width: var(--cp-max);
  margin: 0 auto;
}

.cp-rail {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 64px 28px 64px var(--cp-pad);
  border-right: 1px solid var(--non-surface-2);
}

.cp-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
}

.cp-rail__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-top: 1px solid var(--non-surface-2);
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--non-ink);
}

.cp-rail__nav a:last-child {
  border-bottom: 1px solid var(--non-surface-2);
}

.cp-rail__nav a:hover,
.cp-rail__nav a.is-active {
  color: var(--non-purple);
}

.cp-rail__nav a.is-active {
  font-weight: 700;
}

.cp-rail__cta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 28px;
  padding-left: 16px;
  padding-right: 6px;
  font-size: 14px;
}

/*
 * Szyna ma na treść tylko ~160 px: kolumna 260 px minus padding lewy
 * (var(--cp-pad) = 72 px) i prawy (28 px). „Porozmawiajmy” przy 14 px bold
 * to ~91 px, a plakietka z reguły bazowej ma 36 px:
 *   16 (padding) + 91 (tekst) + 8 (gap) + 36 (plakietka) + 8 = 159 px
 * czyli praktycznie równo z dostępnymi 160 px. Przy `white-space: nowrap`
 * nadwyżka nie łamie tekstu, tylko wypycha plakietkę za prawą krawędź pilla —
 * i to widać jako „strzałka wyjeżdża poza przycisk”.
 *
 * Mniejsza plakietka i ciaśniejszy padding dają ~9 px zapasu.
 */
.cp-rail__cta .cp-btn__arrow {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  font-size: 14px;
}

.cp-rail__meta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--non-mute);
}

.cp-rail__meta strong,
.cp-rail__meta span:first-child {
  color: var(--non-ink);
  font-weight: 700;
}

/*
 * Ocena z profilu (Clutch, Google) — jeden nierozrywalny człon.
 * Bez `nowrap` „Clutch 4.9 ★ · Google 5.0 ★” łamało się w szynie 260 px
 * tak, że sama gwiazdka schodziła do drugiej linijki.
 * Kolor dziedziczy po otoczeniu, żeby link nie świecił fioletem — to nadal
 * ma czytać się jak liczba, a nie jak odnośnik w treści.
 */
/*
 * Oba człony w jednym rzędzie. W szynie jest ~160 px, a „Clutch 4.9 ★ ·
 * Google 5.0 ★” przy 13 px zajmuje ~165 px — dlatego linijka łamała się
 * na spacji przed separatorem. Przy 12 px i ciaśniejszym trackingu wychodzi
 * ~152 px, czyli mieści się z zapasem.
 */
.cp .cp-ratings {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  letter-spacing: -0.04em;
}

.cp .cp-rating {
  white-space: nowrap;
  color: inherit;
  border-bottom: 1px solid var(--non-surface-2);
}

.cp .cp-rating:hover {
  color: var(--non-purple);
  border-bottom-color: var(--non-purple);
}

.cp-rail__toggle {
  display: none;
}

.cp-main {
  padding: 64px var(--cp-pad) 0 56px;
  min-width: 0;
}

/* ---------- wstęp ---------- */

.cp-lead {
  display: grid;
  grid-template-columns: minmax(0, var(--cp-col)) minmax(0, 1fr);
  gap: var(--cp-gap);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--non-surface-2);
}

.cp-lead__main {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}

.cp-lead__text p:first-child {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.32;
  letter-spacing: -0.035em;
  color: var(--non-ink);
}

.cp-lead__text p + p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--non-mute);
}

.cp-lead__main .cp-btn {
  margin-top: 8px;
}

/* ---------- sekcja ---------- */

.cp-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--non-surface-2);
  scroll-margin-top: var(--cp-offset);
}

.cp-section:last-of-type {
  border-bottom: none;
}

.cp-section__head {
  display: grid;
  grid-template-columns: minmax(0, var(--cp-col)) minmax(0, 1fr);
  gap: var(--cp-gap);
  align-items: start;
}

.cp-section__intro > * + * {
  margin-top: 24px;
}

.cp-section__intro .cp-h2 + * {
  margin-top: 24px;
}

.cp-section__aside > * + * {
  margin-top: 24px;
}

.cp-section__body > * + * {
  margin-top: 44px;
}

.cp-section__head + .cp-section__body {
  margin-top: 44px;
}

/* =============================================================
   BLOKI
   ------------------------------------------------------------- */

/* ---------- adnotacja / panel ---------- */

.cp-note--hairline,
.cp-note--hairline-purple,
.cp-note--hairline-thin {
  padding-top: 14px;
}

.cp-note--hairline {
  border-top: 3px solid var(--non-ink);
}

.cp-note--hairline-purple {
  border-top: 3px solid var(--non-purple);
}

.cp-note--hairline-thin {
  border-top: 1px solid var(--non-surface-2);
}

.cp-note--hairline-purple > .cp-eyebrow {
  color: var(--non-purple);
}

.cp-note--dark,
.cp-note--purple {
  padding: 26px 28px 28px;
  color: #fff;
}

.cp-note--dark {
  background: var(--non-ink);
}

.cp-note--purple {
  background: var(--non-purple-deep);
}

.cp-note--dark > .cp-eyebrow,
.cp-note--purple > .cp-eyebrow {
  color: var(--non-green);
}

.cp-note > .cp-eyebrow + .cp-text {
  margin-top: 14px;
}

.cp-note--dark .cp-text p,
.cp-note--purple .cp-text p {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}

.cp-note--dark .cp .cp-text .is-small,
.cp-note--purple .cp .cp-text .is-small {
  color: rgba(255, 255, 255, 0.72);
}

.cp-note--dark .cp-text a,
.cp-note--purple .cp-text a {
  color: var(--non-green);
  font-weight: 700;
}

.cp-note--hairline .cp-text p,
.cp-note--hairline-purple .cp-text p,
.cp-note--hairline-thin .cp-text p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--non-ink);
}

.cp-note--hairline .cp-text > * + *,
.cp-note--hairline-purple .cp-text > * + *,
.cp-note--hairline-thin .cp-text > * + * {
  margin-top: 12px;
}

/* Adnotacje w kolumnie treści dostają pełny stopień pisma. */
.cp-section__body .cp-note--hairline .cp-text p,
.cp-section__body .cp-note--hairline-purple .cp-text p {
  font-size: 17px;
}

/* ---------- kafle ---------- */

.cp-cards--grid {
  display: grid;
  grid-template-columns: repeat(var(--cp-cols, 2), minmax(0, 1fr));
  gap: 32px;
}

.cp-cards--grid .cp-card {
  border-top: 1px solid var(--non-surface-2);
  padding-top: 16px;
}

/* Numeracja biegnie w dół kolumny, nie w poprzek wiersza — 01-02-03 po lewej,
   04-05-06 po prawej. Liczbę wierszy podaje PHP w --cp-rows. */
.cp-cards--numbered {
  display: grid;
  grid-template-columns: repeat(var(--cp-cols, 2), minmax(0, 1fr));
  grid-template-rows: repeat(var(--cp-rows, 1), auto);
  grid-auto-flow: column;
  gap: 0 var(--cp-gap);
}

.cp-cards--numbered .cp-card {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--non-surface-2);
}

.cp-card__num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--non-surface-2);
}

.cp-cards--list .cp-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--non-surface-2);
}

.cp-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.cp-cards--numbered .cp-card__title {
  font-size: 22px;
}

.cp-cards--grid .cp-card__title {
  font-size: 18px;
}

.cp-card__value {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--non-purple);
}

.cp-card__title + .cp-text,
.cp-card__value + .cp-text {
  margin-top: 8px;
}

.cp-cards--numbered .cp-card__title + .cp-text p {
  font-size: 16px;
  color: var(--non-ink);
}

/* ---------- wiersze ---------- */

.cp-rows {
  display: flex;
  flex-direction: column;
}

.cp-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding: 26px 0;
  border-top: 1px solid var(--non-surface-2);
}

.cp-row:first-child {
  border-top: 3px solid var(--non-ink);
}

.cp-row:last-child {
  border-bottom: 1px solid var(--non-surface-2);
}

.cp-rows--number .cp-row {
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 32px;
}

.cp-rows--period .cp-row {
  grid-template-columns: 160px minmax(0, 1fr);
}

.cp-row__num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--non-surface-2);
}

.cp-row__title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cp-rows--number .cp-row__title,
.cp-rows--title .cp-row__title {
  margin-top: 0;
}

.cp-rows--number .cp-row__body > .cp-row__title + .cp-text {
  margin-top: 10px;
}

.cp-row__body p {
  font-size: 17px;
  line-height: 1.5;
  max-width: 76ch;
}

/* Wariant numerowany: numer po lewej, tytuł i tekst po prawej. */
.cp-rows--number .cp-row {
  align-items: start;
}

/* ---------- tabela ---------- */

.cp-table__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--non-ink);
  flex-wrap: wrap;
}

.cp-table {
  display: flex;
  flex-direction: column;
}

.cp-table__row {
  display: grid;
  grid-template-columns: 220px repeat(calc(var(--cp-tcols, 3) - 1), minmax(0, 1fr));
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--non-surface-2);
  align-items: baseline;
}

.cp-table--bare .cp-table__row {
  grid-template-columns: repeat(var(--cp-tcols, 2), minmax(0, 1fr));
  gap: 12px 20px;
  padding: 12px 0;
}

.cp-table__row--head {
  padding-bottom: 14px;
  border-bottom: 3px solid var(--non-ink);
}

.cp-table__th {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cp-table__th:first-child {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--non-mute);
}

.cp-flag {
  font-size: 26px;
  line-height: 1;
}

.cp-table__td {
  font-size: 18px;
  line-height: 1.4;
}

.cp-table__td.is-strong {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
}

.cp-table__td code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--non-surface-2);
  border-radius: 6px;
}

.cp-accent--purple {
  color: var(--non-purple);
}

.cp-accent--mute {
  color: var(--non-mute);
}

.cp-accent--ink {
  color: var(--non-ink);
}

.cp-accent--green {
  color: var(--non-green);
}

/* ---------- liczby ---------- */

.cp-stats--big {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--cp-gap);
}

.cp-stats--big .cp-stat {
  padding-top: 18px;
}

.cp-stat--border-ink {
  border-top: 3px solid var(--non-ink);
}

.cp-stat--border-purple {
  border-top: 3px solid var(--non-purple);
}

.cp-stats--big .cp-stat__value {
  margin-top: 12px;
  font-size: clamp(48px, 5.4vw, 76px);
}

.cp-stats--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.cp-stats--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.cp-stats--list .cp-stat {
  padding: 18px 0;
  border-bottom: 1px solid var(--non-surface-2);
  border-top: none;
}

.cp-stat__value {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--non-ink);
}

.cp-stats--list .cp-stat__value,
.cp-stats--grid .cp-stat__value {
  font-size: 40px;
}

.cp-stat__label {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--non-mute);
}

.cp-stat .cp-eyebrow + .cp-stat__value {
  margin-top: 12px;
}

.cp-stat__value + .cp-text {
  margin-top: 12px;
}

.cp-stats--big .cp-stat__value + .cp-text p {
  font-size: 16px;
  color: var(--non-mute);
}

/* ---------- cena ---------- */

.cp-price {
  max-width: 420px;
  padding-top: 16px;
  border-top: 3px solid var(--non-purple);
}

.cp-price--ink {
  border-top-color: var(--non-ink);
}

.cp-price__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.cp-price__value {
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--non-purple);
}

.cp-price--ink .cp-price__value {
  color: var(--non-ink);
}

.cp-price__aff {
  font-size: 16px;
  color: var(--non-mute);
}

.cp-price__row + .cp-text {
  margin-top: 10px;
}

.cp-price .cp-btn {
  margin-top: 18px;
}

/* ---------- case study i dowody ---------- */

.cp-cases--columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--cp-gap);
  align-items: start;
}

.cp-case {
  padding-top: 20px;
}

.cp-case--border-purple {
  border-top: 3px solid var(--non-purple);
}

.cp-case--border-ink,
.cp-case--border-mute {
  border-top: 3px solid var(--non-ink);
}

.cp-cases--panel {
  background: var(--non-surface);
  padding: 40px 40px 44px;
}

.cp-cases--panel .cp-case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
  border-top: none;
  padding-top: 0;
}

.cp-cases--panel .cp-case__side {
  padding-top: 16px;
  border-top: 3px solid var(--non-ink);
}

/* W wariancie kolumnowym `__main` nie tworzy własnego kontekstu — cytat ma
   płynąć dalej w tej samej kolumnie, a nie obok niej. */
.cp-cases--columns .cp-case__main {
  display: contents;
}

.cp-case__main > * + *,
.cp-cases--columns .cp-case > * + * {
  margin-top: 14px;
}

.cp-case .cp-stats--inline {
  margin-top: 24px;
}

.cp-case .cp-btn {
  margin-top: 24px;
}

.cp-case .cp-h3 {
  margin-top: 12px;
}

.cp-cases--columns .cp-case__side {
  margin-top: 20px;
}

/* ---------- cytaty ---------- */

.cp-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--cp-gap);
}

.cp-quote {
  margin: 0;
}

.cp-quote--panel {
  padding-top: 20px;
  border-top: 3px solid var(--non-ink);
}

.cp-quote blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--non-ink);
}

.cp-quote figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--non-mute);
}

.cp-quote__name {
  color: var(--non-ink);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.cp-faq {
  border-top: 3px solid var(--non-ink);
}

.cp-faq__item {
  border-bottom: 1px solid var(--non-surface-2);
  padding: 14px 0;
}

.cp-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}

.cp-faq__item summary::-webkit-details-marker {
  display: none;
}

.cp-faq__q {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  color: var(--non-ink);
}

.cp-faq__sign {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--non-purple);
}

.cp-faq__sign::before,
.cp-faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.cp-faq__sign::after {
  transform: rotate(90deg);
}

.cp-faq__item[open] .cp-faq__sign::after {
  transform: rotate(0deg);
}

.cp-faq__a {
  margin-top: 14px;
}

.cp-faq__a p {
  font-size: 17px;
  line-height: 1.55;
  max-width: 92ch;
  color: var(--non-mute);
}

/* ---------- wykres 90 dni ---------- */

.cp-chart {
  margin-top: 28px;
}

.cp-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.cp-chart__axis {
  stroke: var(--non-ink);
  stroke-width: 2;
}

.cp-chart__curve {
  stroke: var(--non-purple);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  animation: cp-draw 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cp-chart__guide {
  stroke: var(--non-surface-2);
  stroke-width: 2;
}

.cp-chart__dot {
  fill: var(--non-purple);
}

.cp-chart__dot.is-last {
  fill: var(--non-green);
  stroke: var(--non-purple);
  stroke-width: 3;
}

.cp-chart__num {
  fill: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
}

.cp-chart__dot.is-last + .cp-chart__num {
  fill: var(--non-purple);
}

.cp-chart__marker {
  animation: cp-pop 8s ease-out infinite;
  animation-delay: var(--cp-delay, 0s);
  transform-box: fill-box;
  transform-origin: center;
}

.cp-chart__axis-label {
  fill: var(--non-mute);
  font-family: var(--font-sans);
  font-size: 12px;
}

@keyframes cp-draw {
  0% { stroke-dashoffset: 1000; }
  45% { stroke-dashoffset: 0; }
  92% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1000; }
}

@keyframes cp-pop {
  0%, 5% { opacity: 0; }
  12%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

.cp-chart__legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 24px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--non-surface-2);
  list-style: none;
  counter-reset: none;
}

.cp-chart__legend li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--non-mute);
}

.cp-chart__legend-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--non-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Handoff §8: „mniej ruchu” zatrzymuje animację na stanie końcowym. */
@media (prefers-reduced-motion: reduce) {
  .cp-chart__curve,
  .cp-chart__marker {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ---------- zdjęcie i osoby ---------- */

.cp-figure {
  margin: 28px 0 0;
}

.cp-figure__img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center 40%;
  background: var(--non-surface);
}

.cp-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--non-mute);
}

.cp-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 3px solid var(--non-ink);
}

.cp-person__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cp-person__role {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--non-mute);
}

.cp-person__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- blok dwukolumnowy i podsumowanie ---------- */

.cp-split {
  display: grid;
  grid-template-columns: minmax(0, var(--cp-col)) minmax(0, 1fr);
  gap: var(--cp-gap);
  align-items: start;
}

.cp-split__main > * + * {
  margin-top: 18px;
}

.cp-summary {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--cp-gap);
  padding-top: 24px;
  border-top: 3px solid var(--non-ink);
}

/* Bez tytułu tekst idzie na pełną szerokość, w jednej linii z sekcją wyżej. */
.cp-summary--flush {
  grid-template-columns: minmax(0, 1fr);
}

.cp-summary .cp-text {
  max-width: 78ch;
}

.cp-summary__body > * + * {
  margin-top: 24px;
}

/* =============================================================
   CTA
   ------------------------------------------------------------- */

.cp-cta {
  position: relative;
  background: var(--non-purple);
  overflow: hidden;
  scroll-margin-top: var(--cp-offset);
}

.cp-cta__star {
  position: absolute;
  right: -150px;
  bottom: -200px;
  width: 520px;
  color: var(--non-purple-deep);
  opacity: 0.4;
  pointer-events: none;
}

.cp-cta__star svg {
  width: 100%;
  height: auto;
}

.cp-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--cp-pad);
  align-items: end;
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 80px var(--cp-pad);
}

.cp-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #fff;
  max-width: 24ch;
}

.cp-cta__sub {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.cp-cta__person {
  padding-top: 18px;
  border-top: 3px solid var(--non-green);
}

.cp-cta__avatar {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 24px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 35%;
  background: var(--non-purple-deep);
}

.cp-cta__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.cp-cta__role {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.cp-cta__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.cp-cta__links a {
  color: var(--non-green);
}

.cp-cta__links a:hover {
  color: #fff;
}

/* ---------- formularz ---------- */

.cp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  max-width: 620px;
}

.cp-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  padding: 0;
  margin: 0;
}

.cp-field__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--non-green);
}

.cp-field__req {
  color: rgba(255, 255, 255, 0.6);
}

.cp-form input[type="text"],
.cp-form input[type="email"],
.cp-form textarea,
.cp-form--cf7 input[type="text"],
.cp-form--cf7 input[type="email"],
.cp-form--cf7 input[type="tel"],
.cp-form--cf7 textarea {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.cp-form textarea {
  resize: vertical;
}

.cp-form ::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.cp-form input:focus,
.cp-form textarea:focus {
  border-color: var(--non-green);
  outline: none;
}

.cp-form input[aria-invalid="true"],
.cp-form .is-invalid {
  border-color: var(--non-red);
}

.cp-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.cp-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cp-chip:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cp-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.cp-consent input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--non-green);
}

.cp-consent a {
  color: var(--non-green);
  font-weight: 700;
}

.cp-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cp-form__note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.cp-form__error {
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(216, 0, 39, 0.18);
  border: 2px solid var(--non-red);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.cp-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cp-form--done {
  padding: 28px 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--non-green);
  color: #fff;
}

.cp-form__done-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.cp-form--done p {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================================
   Contact Form 7 w tym samym opakowaniu

   Motyw pochodzi z Webflow i w assets/css/style.css chowa PRAWDZIWY przycisk
   CF7 pięcioma deklaracjami `!important`:

     .wpcf7-submit { position:absolute!important; opacity:0!important;
                     height:0!important; width:0!important; z-index:-1!important }

   Dawniej obok stał atrapowy przycisk Webflow, a JS klikał ten ukryty
   (patrz single-blog.php). Tutaj idziemy drogą z page-kariera.php i
   single-job-offer.php: zdejmujemy ukrycie i stylujemy prawdziwy przycisk.
   Bez tego bloku przycisk „Wyślij” jest NIEWIDOCZNY — to nie jest kosmetyka.

   Globalny arkusz ukrywa też `.wpcf7-list-item-label`, czyli treść zgody RODO,
   i przykleja spinner do prawego dolnego rogu. Oba odkręcamy niżej.
   ------------------------------------------------------------- */

/* .cp-form to DIV owijający formularz, a nie sam <form> — jego flex i gap
   kończą się na jednym dziecku (.wpcf7). Odstępy między polami muszą więc
   powstać na samym <form>, inaczej wszystko się skleja. */
.cp-form--cf7 .wpcf7 {
  width: 100%;
}

.cp-form--cf7 form.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Gdyby autop gdzieś przeszedł (patrz filtr wpcf7_autop_or_not w
   inc/non-2026-country-page.php), akapity nie mają dokładać marginesów. */
.cp-form--cf7 form.wpcf7-form > p {
  margin: 0;
}

/* Etykieta tylko nasza — bez tego zieleń i wersaliki złapałyby również
   treść zgody RODO, która jest zwykłym zdaniem, a nie etykietą pola. */
.cp-form--cf7 .cp-field__label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--non-green);
}

.cp-form--cf7 .wpcf7-form-control-wrap {
  display: block;
}

.cp-form--cf7 select {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
}

/* Zgoda RODO. */
.cp-form--cf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.cp-form--cf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.cp-form--cf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--non-green);
}

/* Nadpisuje globalne `display:none !important` — inaczej klauzula znika.
   Selektor z .wpcf7-acceptance, bo cf7-consent.css (produkcja) ma
   `.wpcf7-acceptance .wpcf7-list-item-label { color: inherit }` i ładuje się
   później — przy równej specyficzności tekst zgody robił się czarny. */
.cp-form--cf7 .wpcf7-acceptance .wpcf7-list-item-label,
.cp-form--cf7 .wpcf7-list-item-label {
  display: inline !important;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  text-transform: none;
  letter-spacing: 0;
}

.cp-form--cf7 .wpcf7-acceptance .wpcf7-list-item-label a,
.cp-form--cf7 .wpcf7-list-item-label a {
  color: var(--non-green);
  font-weight: 700;
}

/* Przycisk wysyłki. Pierwsza linijka zdejmuje globalne ukrycie. */
.cp-form--cf7 input.wpcf7-submit {
  position: static !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  z-index: auto !important;
  min-height: 72px;
  /* 76 px z prawej to miejsce na kółko ze strzałką rysowane przez ::after
     na opakowaniu — <input> nie przyjmuje pseudoelementów. */
  padding: 0 76px 0 32px;
  border: none;
  border-radius: 999px;
  background: var(--non-green);
  color: var(--non-purple);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cp-form--cf7 .cp-cf7-submit {
  position: relative;
  display: inline-flex;
}

.cp-form--cf7 .cp-cf7-submit::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #fff;
  color: var(--non-purple);
  font-size: 20px;
  pointer-events: none;
}

.cp-form--cf7 .cp-cf7-submit:hover input.wpcf7-submit {
  background: var(--non-purple);
  color: #fff;
}

.cp-form--cf7 input.wpcf7-submit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cp-form--cf7 input.wpcf7-submit[disabled] {
  opacity: 0.6 !important;
  cursor: default;
}

/*
 * Spinner CF7 — ukryty, i to nie jest kosmetyka.
 *
 * CF7 wstawia `<span class="wpcf7-spinner">` jako RODZEŃSTWO inputa, czyli
 * wewnątrz naszego `.cp-cf7-submit`:
 *
 *   <span class="cp-cf7-submit">
 *     <input class="wpcf7-submit" …>
 *     <span class="wpcf7-spinner"></span>   <-- 24 px + marginesy
 *   </span>
 *
 * Opakowanie było więc szersze od samego przycisku, a plakietka strzałki jest
 * rysowana `::after` na opakowaniu i pozycjonowana od JEGO prawej krawędzi.
 * Ta krawędź leżała poza pillem, więc strzałka wyjeżdżała w prawo — mimo że
 * padding inputa był policzony poprawnie.
 *
 * Ukrycie spinnera zeruje szerokość rodzeństwa i opakowanie zwęża się dokładnie
 * do inputa. Ten sam zabieg jest w assets/css/international-seo.css.
 * Informacją zwrotną przy wysyłce zostaje atrybut `disabled`, który CF7
 * ustawia sam (styl niżej), więc nic nie tracimy.
 */
.cp-form--cf7 .wpcf7-spinner {
  display: none !important;
}

/* Komunikaty walidacji. */
.cp-form--cf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #ffb4b4;
  font-size: 14px;
}

.cp-form--cf7 input[aria-invalid="true"],
.cp-form--cf7 textarea[aria-invalid="true"] {
  border-color: var(--non-red);
}

.cp-form--cf7 .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 14px 18px !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  text-align: left !important;
}

.cp-form--cf7 form.sent .wpcf7-response-output {
  border-color: var(--non-green) !important;
}

.cp-form--cf7 form.invalid .wpcf7-response-output,
.cp-form--cf7 form.failed .wpcf7-response-output {
  border-color: var(--non-red) !important;
}

/* =============================================================
   Modyfikatory akapitu (klasy .is-*)

   Zapisane na końcu i z selektorem `p.is-*`, bo muszą wygrać z regułami
   wariantów kontenera (`.cp-note--dark .cp-text p`, `.cp-text--small p`).
   Bez tego liczba wklejona do adnotacji dziedziczy 15 px z otoczenia.
   ------------------------------------------------------------- */

.cp .cp-text p.is-lead {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.32;
  letter-spacing: -0.035em;
  color: var(--non-ink);
}

.cp .cp-text p.is-small {
  font-size: 15px;
  line-height: 1.5;
  color: var(--non-mute);
}

.cp .cp-text p.is-strong {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--non-ink);
}

.cp .cp-text p.is-pull {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--non-purple);
  max-width: 34ch;
}

.cp .cp-text p.is-figure {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--non-purple);
}

.cp .cp-text p.is-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--non-mute);
}

/* Na ciemnym i fioletowym panelu liczba zostaje biała albo zielona,
   inaczej fiolet na fiolecie znika. */
.cp .cp-note--dark .cp-text p.is-figure,
.cp .cp-note--purple .cp-text p.is-figure {
  color: var(--non-green);
}

.cp .cp-note--dark .cp-text p.is-lead,
.cp .cp-note--purple .cp-text p.is-lead,
.cp .cp-note--dark .cp-text p.is-strong,
.cp .cp-note--purple .cp-text p.is-strong {
  color: #fff;
}

.cp .cp-note--dark .cp-text p.is-small,
.cp .cp-note--purple .cp-text p.is-small {
  color: rgba(255, 255, 255, 0.72);
}

/* Liczby wklejone w panel (lista <dl>) — fiolet na fiolecie nie istnieje. */
.cp .cp-note--dark .cp-text dt,
.cp .cp-note--purple .cp-text dt {
  color: var(--non-green);
}

.cp .cp-note--dark .cp-text dd,
.cp .cp-note--purple .cp-text dd {
  color: rgba(255, 255, 255, 0.78);
}

/* =============================================================
   900–1199 px — szyna schodzi, adnotacje pod akapit
   ------------------------------------------------------------- */

@media (max-width: 1199px) {
  .cp {
    --cp-pad: 40px;
    --cp-gap: 32px;
  }

  .cp-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-rail {
    position: static;
    padding: 32px var(--cp-pad) 0;
    border-right: none;
  }

  .cp-rail__inner {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--non-surface-2);
  }

  .cp-rail__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 24px;
  }

  .cp-rail__nav a:last-child {
    border-bottom: none;
  }

  .cp-rail__cta {
    max-width: 320px;
  }

  .cp-main {
    padding: 40px var(--cp-pad) 0;
  }

  .cp-lead,
  .cp-section__head,
  .cp-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-hero__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .cp-cta__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 56px var(--cp-pad);
  }

  .cp-cases--panel .cp-case {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .cp-cases--panel .cp-quote {
    grid-column: 1;
    grid-row: auto;
  }
}

/* =============================================================
   < 900 px — jedna kolumna, tabele jako karty
   ------------------------------------------------------------- */

@media (max-width: 899px) {
  .cp {
    --cp-pad: 20px;
    --cp-gap: 24px;
    --cp-offset: 72px;
  }

  .cp-hero__inner {
    padding: 28px var(--cp-pad) 0;
  }

  .cp-hero__eyebrow {
    padding-bottom: 24px;
  }

  .cp-hero__top {
    padding-bottom: 32px;
  }

  .cp-hero__map {
    right: -30%;
    width: 100%;
    opacity: 0.28;
  }

  .cp-hero__numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  /*
   * Pasek z progiem cenowym: przyklejony do DOŁU ekranu.
   *
   * Makieta miała go u góry (`position: sticky; top: 0`), ale na żywo
   * konkurował z navbarem serwisu, który jest `position: fixed` — parkował
   * pod nim albo go zasłaniał. Na dole jest widoczny cały czas, nie wchodzi
   * w nawigację i zasłania plakietkę reCAPTCHA v3, która siedzi w prawym
   * dolnym rogu. Stąd `fixed`, nie `sticky`: pasek ma zostać na ekranie
   * przez całą stronę, a nie tylko dopóki jego kontener jest widoczny.
   */
  .cp-sticky {
    display: flex;
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    /* Plakietkę reCAPTCHA Google wstawia skryptem z z-index 2000000000.
       Żeby pasek ją przykrył, musi być wyżej — stąd ta brzydka liczba. */
    z-index: 2000000001;
    border-top: 1px solid var(--non-surface-2);
    border-bottom: none;
    /* Zapas na pasek gestów w iOS / Androidzie. */
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  /*
   * Pasek jest `fixed`, więc zasłaniałby ostatnie ~76 px strony — czyli dół
   * stopki. Padding na <body>, bo stopka jest poza .cp. `:has()` trzyma to
   * przy podstronach krajowych bez dokładania klasy w PHP; gdyby przeglądarka
   * go nie znała, jedyny skutek to zasłonięty dół stopki.
   */
  body:has(.cp-sticky) {
    padding-bottom: 76px;
  }

  .cp-rail {
    padding-top: 24px;
  }

  .cp-rail__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 44px;
    padding: 12px 0;
    border: none;
    border-top: 1px solid var(--non-surface-2);
    border-bottom: 1px solid var(--non-surface-2);
    background: none;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--non-ink);
    cursor: pointer;
  }

  .cp-rail__toggle::after {
    content: "+";
    color: var(--non-purple);
    font-size: 20px;
  }

  .cp-rail__toggle[aria-expanded="true"]::after {
    content: "–";
  }

  .cp-rail__inner > .cp-eyebrow {
    display: none;
  }

  .cp-rail__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
  }

  .cp-rail__nav[hidden] {
    display: none;
  }

  .cp-rail__cta {
    max-width: none;
  }

  .cp-section {
    padding: 40px 0;
  }

  .cp-lead {
    padding-bottom: 32px;
  }

  .cp-section__body > * + * {
    margin-top: 32px;
  }

  .cp-section__head + .cp-section__body {
    margin-top: 32px;
  }

  .cp-cards--grid,
  .cp-cards--numbered {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* Jedna kolumna — kolejność wraca do zwykłej, po wierszach. */
  .cp-cards--numbered {
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .cp-cards--grid .cp-card {
    padding: 16px 0;
    border-top: none;
    border-bottom: 1px solid var(--non-surface-2);
  }

  .cp-cards--grid .cp-card:first-child {
    border-top: 3px solid var(--non-ink);
  }

  .cp-row,
  .cp-summary,
  .cp-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cp-rows--number .cp-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }

  /* Tabela -> karty. Nie skalujemy tabeli desktopowej w dół (handoff §2). */
  .cp-table {
    border-top: 3px solid var(--non-ink);
  }

  .cp-table__row {
    display: block;
    padding: 16px 0;
  }

  .cp-table__row--head {
    display: none;
  }

  .cp-table__td:first-child {
    display: block;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--non-ink);
  }

  .cp-table__td:not(:first-child) {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.4;
  }

  .cp-table__td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--non-mute);
  }

  .cp-table--bare .cp-table__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 0;
  }

  .cp-table--bare .cp-table__td:not(:first-child) {
    margin-top: 0;
  }

  .cp-stats--big,
  .cp-cases--columns,
  .cp-quotes {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .cp-stats--inline {
    gap: 24px;
  }

  .cp-cases--panel {
    padding: 24px 20px 28px;
  }

  .cp-figure__img {
    height: 260px;
  }

  .cp-cta__inner {
    padding: 48px var(--cp-pad);
  }

  .cp-cta__avatar {
    width: 96px;
    height: 96px;
  }

  .cp-btn--lg {
    width: 100%;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 8px 0 22px;
    font-size: 16px;
  }

  .cp-btn--lg .cp-btn__arrow {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .cp-form__foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  /* CF7: przycisk na pełną szerokość, tak jak .cp-btn--lg wyżej. */
  .cp-form--cf7 .cp-cf7-submit {
    display: flex;
    width: 100%;
  }

  .cp-form--cf7 input.wpcf7-submit {
    width: 100% !important;
    min-height: 60px;
    padding: 0 62px 0 22px;
    font-size: 16px;
    text-align: left;
  }

  .cp-form--cf7 .cp-cf7-submit::after {
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  /* Wykres: SVG ma viewBox 660 jednostek i skaluje się do szerokości ekranu.
     Przy ~320 px treści współczynnik to 0,48 — etykieta 12 px renderowała się
     jako ~5,8 px, a liczby na punktach jako ~4,9 px, czyli nieczytelnie.
     Powiększamy w jednostkach SVG, żeby po przeskalowaniu wyszło ~11 px. */
  .cp-chart__axis-label {
    font-size: 22px;
  }

  .cp-chart__num {
    font-size: 18px;
  }

  /* Źródła danych bywają długie („StatCounter / Statista, marzec 2026”).
     `nowrap` przy .cp { overflow-x: clip } nie dawał przewijania, tylko
     ucinał tekst bez śladu — na wąskim ekranie ma się złamać. */
  .cp-source {
    white-space: normal;
  }
}

/* Druk: bez animacji, bez przyklejeń — handoffy chodzą po zespole jako PDF. */
@media print {
  .cp-sticky,
  .cp-rail__cta {
    display: none;
  }

  .cp-rail {
    position: static;
  }

  .cp-chart__curve,
  .cp-chart__marker {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .cp-faq__item > div {
    display: block !important;
  }
}
