:root {
  --cw-blue: #2457c6;
  --cw-blue-dark: #1c47a6;
  --cw-yellow: #ffc73b;
  --cw-bg: #ffffff;
  --cw-card-bg: #fafafa;
  --cw-text: #000000;
  --cw-text-muted: rgba(0, 0, 0, .6);
  --cw-border: rgba(0, 0, 0, .2);
  --cw-green: #59b78b;
  --cw-red: #e4410d;
  /* Ten sam zabieg, który kanon stosuje do zieleni: marka daje kolor
     WYPEŁNIEŃ, a tekst potrzebuje ciemniejszego wariantu. #e4410d jako
     tekst daje 3.86–4.15:1 (poniżej AA), ten 5.34–5.74:1. */
  --cw-red-text: #bd3409;
  --cw-radius: .3vw;
}

body.cw-kdz, .cw-kdz * { box-sizing: border-box; }

/* The browser's own <small> is 0.8em — about 13px here, under the floor this
   design keeps. Set once for the whole service rather than per component,
   since <small> turns up in forms, the header and the footer alike. */
body.cw-kdz small { font-size: 0.9375rem; }

body.cw-kdz {
  margin: 0;
  font-family: "futura-pt", sans-serif;
  /* Kanon: body 16px. Futura ma małą x-height, przez co tekst poniżej
     15px czyta się jak 12px w zwykłym kroju — stąd jawna podstawa i
     hojna interlinia zamiast polegania na domyślnych wartościach. */
  font-size: 1rem;
  line-height: 1.55;
  background: var(--cw-bg);
  color: var(--cw-text);
}

:where(.cw-kdz) a { color: var(--cw-blue); }

/* Shared project wordmark and navigation. */
body.cw-kdz {
  --cw-radius: clamp(10px, 1.05vw, 16px);
  --cw-radius-lg: clamp(14px, 1.5vw, 20px);
  --cw-yellow-hover: #ffea84;
}
.cw-kdz .cw-kdz-header { background: var(--cw-bg); color: var(--cw-text); }
.cw-kdz .cw-kdz-header-inner { width: 88vw; margin: 0 auto; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cw-kdz .cw-kdz-logo { display: flex; flex-direction: column; color: var(--cw-text); text-decoration: none; font-size: 24px; font-weight: 700; line-height: 1.15; }
.cw-kdz .cw-kdz-logo small { font-size: 0.9375rem; font-weight: 500; color: var(--cw-blue); margin-top: 4px; }
.cw-kdz .cw-kdz-brand-dot { color: var(--cw-blue); }
.cw-kdz .cw-kdz-nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.cw-kdz .cw-kdz-nav a { color: var(--cw-text); text-decoration: none; padding: 10px 0; }
.cw-kdz .cw-kdz-nav a:hover { color: var(--cw-blue); }
.cw-kdz .cw-kdz-nav .cw-kdz-nav-cta { color: var(--cw-blue); font-weight: 500; }
.cw-kdz .cw-kdz-skip { position: absolute; top: 8px; left: 6vw; transform: translateY(-200%); background: var(--cw-bg); padding: 10px 16px; z-index: 10; }
.cw-kdz .cw-kdz-skip:focus { transform: none; }
.cw-kdz :is(a, button, summary, input):focus-visible { outline: 2px solid var(--cw-blue); outline-offset: 4px; }
@media (min-width: 761px) and (max-width: 1025px) {
  .cw-kdz .cw-kdz-header-inner { width: 92vw; }
  .cw-kdz .cw-kdz-nav { gap: 18px; }
}
@media (max-width: 760px) {
  .cw-kdz .cw-kdz-header-inner { width: 90vw; flex-wrap: wrap; gap: 16px; padding: 20px 0 12px; }
  .cw-kdz .cw-kdz-logo { font-size: 22px; }
  .cw-kdz .cw-kdz-nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 15px; }
}

.cw-kdz-main { width: 88vw; margin: 0 auto; padding: 0 0 4vw; position: relative; }
.cw-kdz-main::before {
  content: "";
  position: absolute;
  top: 1vw;
  left: 4vw;
  width: 42vw;
  height: 28vw;
  background: url("https://cleanwhale.pl/assets/frontend/images/icons/main-bg.svg") center / contain no-repeat;
  opacity: .32;
  pointer-events: none;
  z-index: -1;
}

/* Single-column hero: the search field is the page, so it gets the middle of
   the screen and nothing sits beside it competing for the eye. */
.cw-kdz-hero-single {
  max-width: 44rem;
  margin: 0 auto;
  padding: 7vw 0 5vw;
  text-align: center;
}
.cw-kdz-hero-single h1 {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1.05;
  margin: 0 0 28px;
}
.cw-kdz-hero-single .cw-kdz-search { max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; }
.cw-kdz-hero-single .cw-kdz-search-input { box-shadow: 0 0 1.4vw rgba(0, 0, 0, .1); }
.cw-kdz-proof { margin: 18px 0 0; color: var(--cw-text-muted); }
.cw-kdz-proof strong { color: var(--cw-text); }

/* Hero + search */
.cw-kdz-first-view {
  min-height: 35vw;
  padding: 3.5vw 0 2.2vw;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(31rem, 1.12fr);
  align-items: center;
  gap: 4vw;
}
.cw-kdz-hero { text-align: left; padding: 0; }
.cw-kdz-eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: 10vw;
  background: var(--cw-yellow);
  color: #000;
  font-size: 0.9375rem;
  font-weight: 700;
}
.cw-kdz-hero h1 { max-width: 37rem; font-size: clamp(2.8rem, 4vw, 4.7rem); line-height: 1; margin: 0 0 14px; }
.cw-kdz-hero-sub { color: var(--cw-text-muted); max-width: 560px; margin: 0; line-height: 1.55; }
.cw-kdz-main > .cw-kdz-hero { padding: 40px 0 8px !important; text-align: center; }
.cw-kdz-main > .cw-kdz-hero h1 { max-width: none; font-size: 2.2rem; }
.cw-kdz-main > .cw-kdz-hero .cw-kdz-hero-sub { margin-left: auto; margin-right: auto; }

.cw-kdz-search {
  max-width: 610px;
  margin: 24px 0 0;
  padding: 13px;
  border-radius: var(--cw-radius);
  background: var(--cw-card-bg);
  box-shadow: 0 0 1.4vw rgba(0, 0, 0, .08);
}
.cw-kdz-search > label {
  display: block;
  margin: 0 0 6px 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  opacity: .58;
}
.cw-kdz-search-row { display: flex; gap: 8px; }
.cw-kdz-search-input {
  flex: 1;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--cw-radius);
  font-size: 1.05rem;
  color: var(--cw-text);
  background: #fff;
  box-shadow: 0 0 .8vw rgba(0, 0, 0, .05);
}
.cw-kdz-search-input:focus { outline: 2px solid var(--cw-blue); border-color: var(--cw-blue); }
.cw-kdz-search-button {
  background: var(--cw-blue);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
}
.cw-kdz-search-button:hover { filter: brightness(0.96); }
.cw-kdz-search-error { color: var(--cw-red-text); font-size: 0.9375rem; margin: 10px 0 0; }
.cw-kdz-search-hint { color: var(--cw-text-muted); font-size: 1rem; margin: 10px 0 0; }

/* Category chips */
.cw-kdz-chips { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-start; margin: 18px 0 0; }
.cw-kdz-chip {
  display: inline-flex;
  align-items: center;
  border: none;
  background: #fafafa;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.9375rem;
  color: var(--cw-text);
  text-decoration: none;
  white-space: nowrap;
}
.cw-kdz-chip:hover, .cw-kdz-chip[aria-current="true"] { background: var(--cw-yellow); color: #000; }
.cw-kdz-chip.cw-kdz-chip-spam { color: var(--cw-red-text); }
.cw-kdz-recent-panel {
  padding: 24px;
  border-radius: var(--cw-radius);
  background: var(--cw-card-bg);
  box-shadow: 0 0 2.4vw rgba(0, 0, 0, .11);
}
.cw-kdz-recent-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.cw-kdz-recent-head span { color: var(--cw-blue); font-size: 0.9375rem; font-weight: 700; }
.cw-kdz-recent-head h2 { margin: 3px 0 0; font-size: 1.45rem; }
.cw-kdz-recent-head > b {
  min-width: 33px;
  padding: 5px 10px;
  border-radius: 10vw;
  background: var(--cw-yellow);
  text-align: center;
  font-size: 0.9375rem;
}
.cw-kdz-recent-preview { display: flex; flex-direction: column; gap: 7px; }
.cw-kdz-recent-preview a {
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(8rem, .82fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: var(--cw-radius);
  background: #fff;
  color: var(--cw-text);
  text-decoration: none;
}
.cw-kdz-recent-preview a:hover { box-shadow: 0 0 .9vw rgba(0, 0, 0, .08); }
.cw-kdz-preview-number { font-weight: 700; font-variant-numeric: tabular-nums; }
.cw-kdz-preview-owner { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cw-text-muted); font-size: 0.9375rem; }
.cw-kdz-recent-preview b {
  padding: 4px 9px;
  border-radius: 10vw;
  background: rgba(36, 87, 198, .09);
  color: var(--cw-blue);
  font-size: 0.9375rem;
  white-space: nowrap;
}
.cw-kdz-recent-preview b.is-spam { background: rgba(228, 65, 13, .09); color: var(--cw-red-text); }
.cw-kdz-data-note,
.cw-kdz-recent-empty { color: var(--cw-text-muted); font-size: 1rem; line-height: 1.45; }
.cw-kdz-data-note { margin-top: 13px; }
.cw-kdz-recent-empty { min-height: 180px; padding: 55px 20px; display: flex; align-items: center; justify-content: center; border-radius: var(--cw-radius); background: #fff; text-align: center; }
.cw-kdz-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 32px;
  border-radius: var(--cw-radius);
  background: var(--cw-card-bg);
  box-shadow: 0 0 1.6vw rgba(0, 0, 0, .07);
}
.cw-kdz-trust-strip > div { padding: 18px 20px; }
.cw-kdz-trust-strip > div + div { box-shadow: -.05vw 0 0 rgba(0, 0, 0, .08); }
.cw-kdz-trust-strip strong,
.cw-kdz-trust-strip span { display: block; }
.cw-kdz-trust-strip strong { margin-bottom: 4px; font-size: 0.9375rem; }
.cw-kdz-trust-strip span { color: var(--cw-text-muted); font-size: 0.9375rem; }

/* Section headings */
.cw-kdz-section-label { font-size: 0.9375rem; color: var(--cw-text-muted); margin: 40px 0 14px; }

/* Recent / category list */
.cw-kdz-list { display: flex; flex-direction: column; gap: 12px; }
.cw-kdz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--cw-card-bg);
  border-radius: var(--cw-radius);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s, box-shadow 0.12s;
}
.cw-kdz-row:hover { transform: translateY(-1px); box-shadow: 0 0 1.2vw rgba(0, 0, 0, .07); }
.cw-kdz-row-number { font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.cw-kdz-row-meta { color: var(--cw-text-muted); font-size: 1rem; margin-top: 2px; }
.cw-kdz-row-badge {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef1fb;
  color: var(--cw-blue);
  white-space: nowrap;
}
.cw-kdz-row-badge.cw-kdz-badge-spam { background: #fbe9e9; color: var(--cw-red-text); }

.cw-kdz-empty { text-align: center; color: var(--cw-text-muted); padding: 50px 20px; }

/* Institution directory (/instytucje) */
.cw-kdz-inst {
  background: var(--cw-card-bg);
  border: 1px solid var(--cw-border);
  border-radius: 14px;
  padding: 16px 18px;
}
.cw-kdz-inst-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cw-kdz-inst-name { font-weight: 700; font-size: 1.02rem; }
.cw-kdz-inst-date { font-size: 0.9375rem; color: var(--cw-text-muted); }
.cw-kdz-inst-numbers { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-kdz-inst-number {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--cw-border);
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  background: var(--cw-bg);
  min-width: 170px;
}
.cw-kdz-inst-number:hover { border-color: var(--cw-blue); background: #fff; }
.cw-kdz-inst-number-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.cw-kdz-inst-number-label { font-size: 1rem; color: var(--cw-text-muted); line-height: 1.35; }

/* Home: "dzwonią do Ciebie z tych numerów" showcase */
.cw-kdz-stat-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 30px 0 4px; }
.cw-kdz-stat { text-align: center; }
.cw-kdz-stat-value { font-size: 1.5rem; font-weight: 700; }
.cw-kdz-stat-label { font-size: 0.9375rem; color: var(--cw-text-muted); }

/* Number detail page */
.cw-kdz-numhead { text-align: center; padding: 40px 0 10px; }
.cw-kdz-numhead-number { font-family: "futura-pt", sans-serif; font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cw-kdz-numhead-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cw-kdz-badge {
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef1fb;
  color: var(--cw-blue-dark);
}
.cw-kdz-badge-owner { background: #fafafa; color: var(--cw-blue); }
.cw-kdz-badge-owner a { color: inherit; }

.cw-kdz-callback-btn {
  display: inline-block;
  background: var(--cw-yellow);
  color: var(--cw-text);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.cw-kdz-callback-btn:hover { filter: brightness(0.96); }

/* ---------- Purchase flow: /oddzwon and /platnosc ----------
   Two columns on desktop — the decision on the left, the call it buys on the
   right — so the page shows the product instead of describing it. On a phone
   the form comes first and the scene follows: the button must not sink under
   an illustration. */
.cw-kdz-buy {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px) 0 8px;
}
/* Payment step: headline across both columns, then packs and scene start on
   the same line (align-items: start) instead of the scene floating mid-way
   down a column twice its height. */
.cw-kdz-buy-pay { align-items: start; row-gap: 8px; }
.cw-kdz-buy-head { grid-column: 1 / -1; }
/* Hero H1 on the canon's scale — clamp(30px, 3.5vw, 56px) — so the slogan
   never outshouts the price it sits above. */
.cw-kdz-buy-title {
  font-size: clamp(30px, 3.5vw, 56px);
  line-height: 1.02;
  font-weight: 700;
  margin: 0 0 16px;
}
.cw-kdz-buy-title span { color: var(--cw-blue); }
.cw-kdz-buy-lead { font-size: clamp(1.05rem, 1.25vw, 1.3rem); line-height: 1.45; margin: 0 0 22px; opacity: .6; max-width: 34em; }

.cw-kdz-buy-target {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #eef2fc;
  color: var(--cw-blue);
}
.cw-kdz-buy-target strong { color: #000; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cw-kdz-buy-target a { color: var(--cw-blue); font-weight: 500; }

.cw-kdz-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Packs are radio buttons dressed as cards. The chosen one turns solid blue —
   an unmistakable "this one" that needs no border (cards carry air and a
   halo, never a frame). The check circle is the control ring, not a frame. */
.cw-kdz-packs {
  border: 0;
  padding: 14px 0 0;
  margin: 0 0 18px;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cw-kdz-pack { position: relative; display: block; cursor: pointer; }
.cw-kdz-pack input { position: absolute; opacity: 0; pointer-events: none; }
.cw-kdz-pack-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 20px 20px;
  border-radius: var(--cw-radius-lg);
  background: #fff;
  color: #000;
  box-shadow: 0 0 max(12px, 1.1vw) rgba(0, 0, 0, .12);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.cw-kdz-pack:hover .cw-kdz-pack-body { box-shadow: 0 0 max(16px, 1.6vw) rgba(0, 0, 0, .18); }
.cw-kdz-pack input:checked + .cw-kdz-pack-body {
  background: var(--cw-blue);
  color: #fff;
  box-shadow: 0 0 max(18px, 1.8vw) rgba(0, 0, 0, .22);
}
.cw-kdz-pack input:focus-visible + .cw-kdz-pack-body { outline: 2px solid var(--cw-blue); outline-offset: 4px; }
.cw-kdz-pack-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: transparent;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .45);
  transition: background-color .18s ease, box-shadow .18s ease;
}
.cw-kdz-pack-check svg { width: 16px; height: 16px; }
.cw-kdz-pack input:checked + .cw-kdz-pack-body .cw-kdz-pack-check {
  background: #fff;
  color: var(--cw-blue);
  box-shadow: none;
}
.cw-kdz-pack-label { font-weight: 700; font-size: 1.05rem; }
.cw-kdz-pack-price {
  font-weight: 700;
  font-size: clamp(2.2rem, 3vw, 2.9rem);
  line-height: 1.05;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
/* Beats the site-wide `body.cw-kdz small` floor on purpose: "zł" is sized
   against the price, and .5em of a 2.2rem price is still above the floor. */
.cw-kdz .cw-kdz-pack-price small { font-size: .5em; font-weight: 700; }
.cw-kdz-pack-unit { margin-top: 8px; opacity: .6; }
.cw-kdz-pack input:checked + .cw-kdz-pack-body .cw-kdz-pack-unit { opacity: 1; color: #dfe8ff; }
/* The canon's price plate (flat yellow, black 700, radius 6) lifted onto the
   card's edge. Solid yellow only — yellow at partial opacity over the blue
   card blends to the olive the owner rejected. Not tilted: the tilted price
   card is an exception scoped to the shop pages (.sh-page) in DESIGN.md. */
.cw-kdz-pack-sticker {
  position: absolute;
  top: -13px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--cw-yellow);
  color: #000;
  font-weight: 700;
  font-size: .9375rem;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 0, 0, .14);
  pointer-events: none;
}

/* The one yellow button in the viewport (design/DESIGN.md), same pill as the
   callback offer on the home page — the whole flow speaks with one CTA. */
.cw-kdz-buy-cta {
  display: block;
  width: 100%;
  padding: 17px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--cw-yellow);
  color: #000;
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.cw-kdz-buy-cta:hover { background: var(--cw-yellow-hover); }
.cw-kdz-buy-cta:active { transform: scale(.99); }
.cw-kdz-buy-cta:focus-visible { outline: 2px solid var(--cw-blue); outline-offset: 3px; }
.cw-kdz-buy-cta:disabled { background: #e9e9e9; color: rgba(0, 0, 0, .5); cursor: not-allowed; }

.cw-kdz-paychips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cw-kdz-paychips li {
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef2fc;
  color: var(--cw-blue);
  font-weight: 500;
  font-size: .9375rem;
}

.cw-kdz-buy-promise { display: flex; align-items: flex-start; gap: 12px; margin: 26px 0 0; line-height: 1.5; }
.cw-kdz-buy-promise svg { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; color: var(--cw-blue); }

.cw-kdz-buy-form .cw-kdz-form-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  font-size: 1.3rem;
  padding: 16px 18px;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  box-shadow: 0 0 max(12px, 1.1vw) rgba(0, 0, 0, .08);
  font-variant-numeric: tabular-nums;
}
.cw-kdz-buy-form .cw-kdz-form-row input:focus { border-color: var(--cw-blue); outline: none; }
.cw-kdz-buy-note { margin: 26px 0 0; font-size: .9375rem; line-height: 1.5; }
.cw-kdz-buy-note strong { color: var(--cw-red-text); }
.cw-kdz-buy-note span { opacity: .7; }
.cw-kdz-buy-meta { margin: 16px 0 0; opacity: .6; font-size: .9375rem; line-height: 1.5; }

/* ---------- The call scene ----------
   The product in two lines of dialogue. Flat blue stage, white bubbles, the
   whale and the yellow "?" as the two speakers. The lines arrive one after
   another and the unknown number rings before it answers, because what is
   being sold is exactly that sequence. */
.cw-kdz-scene {
  margin: 0;
  padding: clamp(22px, 2.6vw, 38px);
  border-radius: var(--cw-radius-lg);
  background: var(--cw-blue);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cw-kdz-scene-row { display: flex; align-items: flex-end; gap: 12px; }
.cw-kdz-scene-them { justify-content: flex-end; }
.cw-kdz-scene-avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.cw-kdz-scene-avatar-us { background: var(--cw-blue-dark); }
.cw-kdz-scene-avatar-us svg { width: 36px; height: auto; }
.cw-kdz-scene-avatar-them { background: var(--cw-yellow); color: #000; font-weight: 700; font-size: 1.7rem; line-height: 1; }
/* The ring is a white stroke that grows and fades — a shape, not a glow, and
   white rather than yellow so nothing semi-transparent yellow meets the blue. */
.cw-kdz-scene-avatar-them::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  opacity: 0;
  animation: cwKdzRing .9s ease-out .6s 2;
}
.cw-kdz-scene-bubble {
  max-width: 34ch;
  padding: 12px 16px 14px;
  border-radius: 18px;
  background: #fff;
  color: #000;
  line-height: 1.45;
  box-shadow: 0 0 12px rgba(0, 0, 0, .12);
}
.cw-kdz-scene-us .cw-kdz-scene-bubble { border-bottom-left-radius: 6px; }
.cw-kdz-scene-them .cw-kdz-scene-bubble { border-bottom-right-radius: 6px; }
.cw-kdz-scene-who { display: block; margin-bottom: 2px; color: var(--cw-blue); font-weight: 700; font-size: .9375rem; }
.cw-kdz-scene-caption { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: #dfe8ff; font-size: .9375rem; }
.cw-kdz-scene-caption svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--cw-yellow); }

.cw-kdz-scene-us { animation: cwKdzSay .45s ease-out .15s both; }
.cw-kdz-scene-them { animation: cwKdzSay .45s ease-out 2.3s both; }
.cw-kdz-scene-caption { animation: cwKdzSay .45s ease-out 2.8s both; }
.cw-kdz-scene--still :is(.cw-kdz-scene-us, .cw-kdz-scene-them, .cw-kdz-scene-caption) { animation: none; }
@keyframes cwKdzSay {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes cwKdzRing {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) {
  .cw-kdz-scene-us, .cw-kdz-scene-them, .cw-kdz-scene-caption { animation: none; }
  .cw-kdz-scene-avatar-them::after { animation: none; }
  .cw-kdz-pack-body, .cw-kdz-pack-check, .cw-kdz-buy-cta { transition: none; }
}

@media (max-width: 760px) {
  .cw-kdz-buy { grid-template-columns: 1fr; gap: 30px; padding-top: 22px; }
  .cw-kdz-buy-pay { row-gap: 8px; }
  .cw-kdz-buy-pay .cw-kdz-buy-art { margin-top: 22px; }
  .cw-kdz-buy-title { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  /* Five chips need ~415px and a phone has ~350: one line of text instead of
     a row that strands "Przelewy24" on its own. */
  .cw-kdz-paychips { gap: 0; opacity: .6; }
  .cw-kdz-paychips li { padding: 0; background: none; color: #000; font-weight: 400; }
  .cw-kdz-paychips li + li::before { content: '·'; padding: 0 .4em; }
  .cw-kdz-packs { gap: 10px; }
  .cw-kdz-pack-body { padding: 16px 14px 18px; }
  .cw-kdz-pack-sticker { right: 8px; }
  .cw-kdz-scene-avatar { width: 44px; height: 44px; }
  .cw-kdz-scene-avatar-us svg { width: 30px; }
}

/* Owner identity card — the answer to "czyj to numer" when we actually know */
.cw-kdz-owner {
  background: var(--cw-card-bg);
  border: 1px solid var(--cw-border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.cw-kdz-owner-verified { border-color: #bfe3cd; background: #f6fcf8; }
.cw-kdz-owner-head { display: flex; align-items: flex-start; gap: 12px; }
.cw-kdz-owner-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cw-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.cw-kdz-owner-check svg { width: 15px; height: 15px; display: block; }
.cw-kdz-owner-name { font-size: 1.15rem; font-weight: 700; }
.cw-kdz-owner-label { color: var(--cw-text-muted); margin-top: 2px; }
.cw-kdz-owner-callsyou {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff8e6;
  border: 1px solid #f2dfae;
  font-weight: 700;
}
.cw-kdz-owner-source { margin: 12px 0 0; font-size: 1rem; color: var(--cw-text-muted); line-height: 1.5; }
.cw-kdz-owner-source :where(.cw-kdz) a { color: var(--cw-blue); }

.cw-kdz-warning {
  border: 1px solid #f3c9c9;
  background: #fdf5f5;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
  line-height: 1.55;
  font-size: 1rem;
}
.cw-kdz-warning strong { display: block; margin-bottom: 4px; color: var(--cw-red-text); }

.cw-kdz-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
  color: var(--cw-text-muted);
  font-size: 0.95rem;
}
.cw-kdz-stats strong { color: var(--cw-text); }
.cw-kdz-spamscore { color: var(--cw-red-text); font-weight: 700; }

.cw-kdz-catbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; max-width: 420px; margin: 0 auto 30px; background: var(--cw-border); }
.cw-kdz-catbar-seg { background: var(--cw-blue); }
.cw-kdz-catbar-seg.cw-kdz-catbar-spam { background: var(--cw-red); }

.cw-kdz-panel {
  background: var(--cw-card-bg);
  border-radius: var(--cw-radius);
  padding: 24px;
  margin-bottom: 24px;
}
.cw-kdz-panel h2 { margin: 0 0 16px; font-size: 1.1rem; }

.cw-kdz-report { padding: 14px 0; border-top: 1px solid var(--cw-border); }
.cw-kdz-report:first-child { border-top: none; padding-top: 0; }
.cw-kdz-report-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.cw-kdz-report-cat { font-size: 0.9375rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef1fb; color: var(--cw-blue-dark); }
.cw-kdz-report-cat.cw-kdz-report-cat-spam { background: #fbe9e9; color: var(--cw-red-text); }
.cw-kdz-report-time { color: var(--cw-text-muted); font-size: 0.9375rem; }
.cw-kdz-report-comment { margin: 0; line-height: 1.5; color: var(--cw-text); }

.cw-kdz-form-row { margin-bottom: 14px; }
/* 700, not 600: the futura-pt kit has 400/500/700 only, and 600 gets faked
   by the browser (design canon forbids it in new code). */
.cw-kdz-form-row label { display: block; font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; color: var(--cw-text); }
/* `input` belongs here too — leaving it out rendered the phone fields on
   /oddzwon and /usun-numer at the browser's default width, a stub next to
   full-width selects. */
/* Every text-like input, not an enumerated list of types — listing them is
   how the phone field got missed once and the e-mail field a second time. */
.cw-kdz-form-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.cw-kdz-form-row select,
.cw-kdz-form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--cw-border);
  border-radius: 10px;
  background: var(--cw-bg);
  color: var(--cw-text);
  font-size: 1rem;
  font-family: inherit;
}
.cw-kdz-form-row textarea { resize: vertical; min-height: 80px; }
.cw-kdz-form-row small { display: block; margin-top: 7px; color: var(--cw-text-muted); font-size: 0.9375rem; line-height: 1.45; }
.cw-kdz-good-faith { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; color: var(--cw-text-muted); font-size: 0.9375rem; line-height: 1.45; }
.cw-kdz-good-faith input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.cw-kdz-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cw-kdz-submit-button {
  background: var(--cw-blue);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}
.cw-kdz-submit-button:hover { background: var(--cw-blue-dark); }

.cw-kdz-flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: 0.9375rem; }
.cw-kdz-flash-success { background: #fafafa; color: #000; }
.cw-kdz-flash-error { background: #fbe9e9; color: var(--cw-red-text); }

.cw-kdz-back { display: inline-block; margin: 26px 0 0; color: var(--cw-text-muted); text-decoration: none; font-size: 0.9375rem; }
.cw-kdz-back:hover { color: var(--cw-blue); }

.cw-kdz-footer {
  padding: 2.5vw 0;
  color: #fff;
  background: #242424;
  font-size: 0.9375rem;
  margin-top: 20px;
}
.cw-kdz-footer-inner { width: 88vw; margin: 0 auto; display: flex; align-items: center; gap: 2vw; }
.cw-kdz-footer img { display: block; width: 9vw; height: auto; }
.cw-kdz-footer p { margin: 0; opacity: .6; flex: 1; }
.cw-kdz-footer a { color: var(--cw-yellow); text-decoration: none; }

@media (min-width: 761px) and (max-width: 1025px) {
  :root { --cw-radius: .5vw; }
  .cw-kdz-header-inner, .cw-kdz-main, .cw-kdz-footer-inner { width: 92vw; }
  .cw-kdz-first-view { min-height: 50vw; grid-template-columns: .8fr 1.2fr; gap: 3vw; }
  .cw-kdz-hero h1 { font-size: 4.8vw; }
  .cw-kdz-recent-preview a { grid-template-columns: minmax(7.4rem, .9fr) minmax(0, 1fr); }
  .cw-kdz-recent-preview a > b { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 760px) {
  :root { --cw-radius: 1vw; }
  .cw-kdz-header-inner, .cw-kdz-main, .cw-kdz-footer-inner { width: 90vw; }
  .cw-kdz-logo svg { height: 7vw; }
  .cw-kdz-nav { width: 100%; justify-content: space-between; }
  .cw-kdz-first-view { min-height: 0; padding: 9vw 0 7vw; grid-template-columns: 1fr; gap: 7vw; }
  .cw-kdz-hero h1 { font-size: 10vw; }
  .cw-kdz-search { border-radius: 1vw; }
  .cw-kdz-search-row { flex-direction: column; }
  .cw-kdz-search-button { padding: 14px 26px; }
  .cw-kdz-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-kdz-chip { min-width: 0; justify-content: center; }
  .cw-kdz-recent-panel { padding: 16px; border-radius: 1vw; }
  .cw-kdz-recent-preview a { grid-template-columns: 1fr auto; border-radius: 1vw; }
  .cw-kdz-preview-owner { grid-column: 1 / -1; grid-row: 2; }
  .cw-kdz-recent-preview b { grid-column: 2; grid-row: 1; }
  .cw-kdz-trust-strip { grid-template-columns: 1fr; border-radius: 1vw; }
  .cw-kdz-trust-strip > div + div { box-shadow: 0 -.05vw 0 rgba(0, 0, 0, .08); }
  .cw-kdz-row { align-items: flex-start; flex-direction: column; }
  .cw-kdz-footer-inner { align-items: flex-start; flex-direction: column; }
  .cw-kdz-footer img { width: 32vw; }
}

@media (max-width: 760px) and (min-aspect-ratio: 7/10) {
  .cw-kdz-first-view { padding-top: 7vw; }
}

/* Official institution artwork (owner-approved); retain original proportions. */
.cw-kdz .cw-kdz-bank-logo { display: block; width: 104px; height: 54px; object-fit: contain; object-position: left center; flex: 0 0 auto; }
.cw-kdz .cw-kdz-owner-head:has(.cw-kdz-bank-logo) { align-items: center; gap: 20px; }
.cw-kdz .cw-kdz-owner-head > div { min-width: 0; }
.cw-kdz .cw-kdz-inst-head:has(.cw-kdz-bank-logo) { align-items: center; gap: 14px; }
.cw-kdz .cw-kdz-inst-head .cw-kdz-bank-logo { width: 80px; height: 42px; }
@media (max-width: 760px) {
  .cw-kdz .cw-kdz-owner-head:has(.cw-kdz-bank-logo) { align-items: flex-start; flex-direction: column; gap: 14px; }
}
