/* ════════════════════════════════════════════════════════════════
   katalog-scenariuszy.css — pełny styl katalogu z okładkami
   Niezależny plik dołączany TYLKO na podstronie /katalog-scenariuszy.html
   Zero modyfikacji głównego styles.css
   ────────────────────────────────────────────────────────────────
   Sekcje:
     0) HERO - kompaktowy nagłówek strony (breadcrumb + h1 + lede)
     1) FILTRY - bar, chipy, dropdowny, search, sort
     2) ACTIVE FILTERS - paski wybranych
     3) RESULTS - head, grid, paginacja, empty, skeleton
     4) CARD - kontener karty
     5) THUMB - okładka (background, signature, content)
     6) BACKGROUNDS - 8 gradientów
     7) SIGNATURES - 10 wzorów graficznych
     8) CARD BODY - opis pod okładką
     9) PADDINGI / RESPONSYWNOŚĆ
   ════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   0) HERO - kompaktowy nagłówek strony
   Świadomie minimalny — klient już zna produkt z poprzedniej
   strony, na katalogu od razu chce widzieć scenariusze.
   ────────────────────────────────────────────────────────────── */

.ks-hero {
  padding: 76px 0 22px; /* 52px header mobile + 24px oddech */
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.ks-hero .program-breadcrumb {
  margin-bottom: 12px;
}
.ks-hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 8px;
  max-width: 780px;
}
.ks-hero-lede {
  font-size: 14px;
  color: var(--slate-500);
  letter-spacing: -0.005em;
  line-height: 1.55;
  margin: 0;
  max-width: 780px;
}
@media (min-width: 640px) {
  .ks-hero { padding: 84px 0 26px; } /* 56px header desktop + 28px oddech */
  .ks-hero-title { font-size: 28px; margin-bottom: 10px; }
  .ks-hero-lede { font-size: 15px; }
}
@media (min-width: 1024px) {
  .ks-hero-title { font-size: 30px; }
}


/* ──────────────────────────────────────────────────────────────
   1) FILTRY - listwa nad katalogiem
   ────────────────────────────────────────────────────────────── */

.ks-filters {
  position: sticky;
  top: 52px; /* header height mobile */
  z-index: 40;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
@media (min-width: 640px) {
  .ks-filters { top: 56px; } /* header height desktop */
}
.ks-filters-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ks-filters-left,
.ks-filters-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ks-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Chip - przycisk otwierający dropdown */
.ks-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  font-family: var(--font);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
  min-height: 36px;
}
.ks-chip:hover { border-color: var(--slate-300); color: var(--navy-900); }
.ks-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.ks-chip.active .ks-icon { stroke: var(--white); }
.ks-chip-label,
.ks-sort-label {
  display: inline-block;
  letter-spacing: -0.005em;
}

.ks-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.ks-chevron {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}
.ks-dropdown.open .ks-chip .ks-chevron,
.ks-dropdown.open .ks-sort-btn .ks-chevron {
  transform: rotate(180deg);
}

/* Dropdown wrapper */
.ks-dropdown {
  position: relative;
}

.ks-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px -12px rgba(15,23,42,0.18);
  padding: 8px;
  z-index: 60;
}
.ks-dropdown.open .ks-dropdown-content { display: block; }

.ks-dd-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px 8px;
}
.ks-dd-search {
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.ks-dd-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 13px;
  color: var(--slate-700);
  outline: none;
  transition: border-color var(--t);
}
.ks-dd-search input:focus { border-color: var(--accent); }

.ks-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--t);
}
.ks-dd-item:hover { background: var(--slate-50); }
.ks-dd-item.selected { background: var(--accent-glow); }

.ks-dd-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.ks-dd-item .name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
}
.ks-dd-item.selected .name { color: var(--navy-900); font-weight: 600; }
.ks-dd-item .count {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  background: var(--slate-100);
  border-radius: 4px;
}

/* Search input */
.ks-search {
  position: relative;
  display: flex;
  align-items: center;
}
.ks-search-icon {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  stroke: var(--slate-400);
  pointer-events: none;
}
.ks-search input {
  padding: 8px 14px 8px 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 13px;
  color: var(--slate-700);
  width: 220px;
  outline: none;
  transition: border-color var(--t);
  min-height: 36px;
}
.ks-search input:focus { border-color: var(--accent); }
.ks-search input::placeholder { color: var(--slate-400); }

/* Sort */
.ks-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  font-family: var(--font);
  cursor: pointer;
  transition: border-color var(--t);
  min-height: 36px;
}
.ks-sort-btn:hover { border-color: var(--slate-300); }
.ks-sort-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px -12px rgba(15,23,42,0.18);
  padding: 6px;
  z-index: 30;
}
.ks-sort.open .ks-sort-menu,
.ks-sort-menu.open { display: block; }
.ks-sort-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--r);
  font-size: 13px;
  font-family: var(--font);
  color: var(--slate-700);
  cursor: pointer;
  background: none;
  border: none;
  transition: background var(--t);
}
.ks-sort-option:hover { background: var(--slate-50); }
.ks-sort-option.active { background: var(--accent-glow); color: var(--accent); font-weight: 700; }


/* ──────────────────────────────────────────────────────────────
   2) ACTIVE FILTERS - tagi wybranych filtrów
   ────────────────────────────────────────────────────────────── */

.ks-active-strip {
  background: var(--slate-50);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.ks-active-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ks-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.ks-x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--accent-glow);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--t);
  padding: 0;
}
.ks-x-btn:hover { background: var(--accent); }
.ks-x-btn:hover .ks-icon { stroke: var(--white); }
.ks-x-btn .ks-icon {
  width: 10px;
  height: 10px;
  stroke: var(--accent);
  stroke-width: 2.5;
}
.ks-clear-all {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--r);
  transition: color var(--t), background var(--t);
}
.ks-clear-all:hover { color: var(--accent); background: var(--white); }


/* ──────────────────────────────────────────────────────────────
   3) RESULTS - head, grid, paginacja, empty, skeleton
   ────────────────────────────────────────────────────────────── */

.ks-results { padding: 32px 0 64px; }

.ks-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.ks-results-count {
  font-size: 14px;
  color: var(--slate-600);
  letter-spacing: -0.01em;
}
.ks-results-count strong {
  color: var(--navy-900);
  font-weight: 700;
}
.ks-results-count .sep {
  display: inline-block;
  color: var(--slate-300);
  margin: 0 8px;
}
.ks-results-count .ctx-tag {
  color: var(--accent);
  font-weight: 600;
}
.ks-results-view {
  font-size: 12px;
  color: var(--slate-500);
  font-variant-numeric: tabular-nums;
}

/* Grid */
.ks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px)  { .ks-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .ks-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Paginacja */
.ks-pagination {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ks-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t);
}
.ks-load-more:hover { background: var(--navy-800); }
.ks-load-count {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

/* Empty state */
.ks-empty {
  display: none;
  padding: 64px 20px;
  text-align: center;
  color: var(--slate-500);
}
.ks-empty h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.ks-empty p {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 18px;
}
.ks-empty-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t);
}
.ks-empty-reset:hover { background: var(--navy-800); }

/* Skeleton (loading) */
.ks-skeleton {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ks-sk-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(110deg, var(--slate-50) 30%, var(--slate-100) 50%, var(--slate-50) 70%);
  background-size: 200% 100%;
  animation: ks-shine 1.4s linear infinite;
}
.ks-sk-body { padding: 18px; }
.ks-sk-line {
  height: 11px;
  background: var(--slate-100);
  border-radius: 3px;
  margin-bottom: 8px;
}
.ks-sk-line.short { width: 60%; }
@keyframes ks-shine {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}


/* ──────────────────────────────────────────────────────────────
   4) CARD - kontener karty (article, nieklikalny)
   ────────────────────────────────────────────────────────────── */

.ks-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.ks-card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 8px 24px -8px rgba(15,23,42,0.10);
  transform: translateY(-2px);
}


/* ──────────────────────────────────────────────────────────────
   5) THUMB - okładka karty
   ────────────────────────────────────────────────────────────── */

.ks-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}
.ks-thumb-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ks-thumb-sig {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ks-thumb-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,0.18) 100%
  );
  pointer-events: none;
}
.ks-thumb-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
}
.ks-thumb-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.ks-thumb-tag {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
}
.ks-thumb-duration {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}

.ks-thumb-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ks-thumb-hook {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.ks-thumb-hook.sm { font-size: 22px; }
.ks-thumb-hook.xs { font-size: 18px; }
.ks-thumb-hook .plus {
  display: inline-block;
  margin: 0 6px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.ks-thumb-promise {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}
.ks-thumb-milestone {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}
.ks-thumb-milestone span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.ks-thumb-milestone span.on  { background: var(--white); }
.ks-thumb-milestone span.mid { background: rgba(255,255,255,0.5); }


/* ──────────────────────────────────────────────────────────────
   6) BACKGROUNDS - 8 gradientów kategorialnych
   Adaptacja z platformy: zachowane palety, lekko stonowane
   ────────────────────────────────────────────────────────────── */

.ks-thumb-bg.bg-data       { background: linear-gradient(135deg, #1E88E5 0%, #0D47A1 100%); }
.ks-thumb-bg.bg-dev        { background: linear-gradient(135deg, #16A34A 0%, #14532D 100%); }
.ks-thumb-bg.bg-design     { background: linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%); }
.ks-thumb-bg.bg-ai         { background: linear-gradient(135deg, #DB2777 0%, #831843 100%); }
.ks-thumb-bg.bg-marketing  { background: linear-gradient(135deg, #EA580C 0%, #7C2D12 100%); }
.ks-thumb-bg.bg-finance    { background: linear-gradient(135deg, #0D9488 0%, #134E4A 100%); }
.ks-thumb-bg.bg-system     { background: linear-gradient(135deg, #2E3238 0%, #0B0D10 100%); }
.ks-thumb-bg.bg-notebook   { background: linear-gradient(135deg, #0B1A2E 0%, #1A3056 60%, #0F1F3A 100%); }


/* ──────────────────────────────────────────────────────────────
   7) SIGNATURES - wzory graficzne na okładce
   Adaptacja 1:1 z platformy
   ────────────────────────────────────────────────────────────── */

/* sig-dots (siatka punktów) - bazowa, używana też jako warstwa innych sygnatur */
.ks-thumb-sig .sig-dots {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* sig-quote (cudzysłów wielki w rogu) */
.ks-thumb-sig .sig-quote {
  position: absolute;
  right: -14px;
  bottom: -30px;
  font-family: var(--font);
  font-size: 180px;
  font-weight: 800;
  color: rgba(255,255,255,0.10);
  line-height: 0.7;
  pointer-events: none;
}

/* sig-audit-bars (słupki audytu) */
.ks-thumb-sig .sig-audit-bars {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-30%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  opacity: 0.25;
}
.ks-thumb-sig .sig-audit-bars span {
  width: 4px;
  background: var(--white);
  border-radius: 1px;
}

/* sig-code (znak kodu </>) + linie */
.ks-thumb-sig .sig-code {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 110px;
  font-weight: 400;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  letter-spacing: -6px;
}
.ks-thumb-sig .sig-code-lines {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(10%);
  width: 80px;
  opacity: 0.22;
}
.ks-thumb-sig .sig-code-lines span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  margin-bottom: 3px;
}
.ks-thumb-sig .sig-code-lines span:nth-child(1) { width: 70%; }
.ks-thumb-sig .sig-code-lines span:nth-child(2) { width: 100%; }
.ks-thumb-sig .sig-code-lines span:nth-child(3) { width: 55%; }

/* sig-podcast (waveform) */
.ks-thumb-sig .sig-podcast {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0.2;
  pointer-events: none;
}
.ks-thumb-sig .sig-podcast span {
  width: 3px;
  background: var(--white);
  border-radius: 1.5px;
}

/* sig-flow (linia kropkowana z kropkami procesu) */
.ks-thumb-sig .sig-flow {
  position: absolute;
  inset: 0;
}
.ks-thumb-sig .sig-flow::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 60%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 8px, transparent 8px 14px);
}
.ks-thumb-sig .sig-flow-dots {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 60%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.ks-thumb-sig .sig-flow-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
}
.ks-thumb-sig .sig-flow-dots span.active {
  background: var(--white);
  border-color: var(--white);
}

/* sig-pages (warstwowe strony) */
.ks-thumb-sig .sig-pages {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-40%);
  width: 44px;
  height: 56px;
}
.ks-thumb-sig .sig-pages span {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
}
.ks-thumb-sig .sig-pages span:nth-child(1) { transform: translate(-10px, -8px) rotate(-6deg); opacity: 0.4; }
.ks-thumb-sig .sig-pages span:nth-child(2) { transform: translate(-5px, -4px) rotate(-2deg); opacity: 0.7; }
.ks-thumb-sig .sig-pages span:nth-child(3) { background: rgba(255,255,255,0.1); opacity: 1; }
.ks-thumb-sig .sig-pages span:nth-child(3)::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 8px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  box-shadow:
    0 5px 0 rgba(255,255,255,0.3),
    0 10px 0 rgba(255,255,255,0.25),
    0 15px 0 rgba(255,255,255,0.2);
}

/* sig-faq (znaki zapytania) */
.ks-thumb-sig .sig-faq {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-45%);
  display: flex;
  gap: 10px;
  opacity: 0.25;
  font-family: var(--font);
  font-weight: 800;
  font-size: 34px;
  color: var(--white);
  line-height: 1;
}

/* sig-chart (wykres słupkowy) */
.ks-thumb-sig .sig-chart {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-25%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
}
.ks-thumb-sig .sig-chart span {
  width: 6px;
  background: rgba(255,255,255,0.42);
  border-radius: 1px;
}
.ks-thumb-sig .sig-chart span.hi { background: var(--white); }

/* sig-wave (gradient w dolnej części + linia środkowa) */
.ks-thumb-sig .sig-wave {
  position: absolute;
  inset: 0;
  opacity: 0.75;
}
.ks-thumb-sig .sig-wave::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(255,255,255,0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 55% 90%, rgba(255,255,255,0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 88% 75%, rgba(255,255,255,0.14) 0%, transparent 42%);
}
.ks-thumb-sig .sig-wave::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 2px, transparent 2px 10px);
  opacity: 0.35;
}


/* ──────────────────────────────────────────────────────────────
   8) CARD BODY - tekst pod okładką
   ────────────────────────────────────────────────────────────── */

.ks-card-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.ks-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.ks-card-meta .area { color: var(--accent); }
.ks-card-meta .sep { color: var(--slate-300); }

.ks-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 2px 0 4px;
}
.ks-card-desc {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ks-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.ks-card-foot .tool-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-700);
  padding: 3px 8px;
  background: var(--slate-100);
  border-radius: 4px;
  letter-spacing: -0.005em;
}


/* ──────────────────────────────────────────────────────────────
   9) RESPONSYWNOŚĆ - drobne korekty mobile
   ────────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .ks-filters { padding: 12px 0; top: 52px; }
  .ks-filters-inner { gap: 8px; }
  .ks-filters-left { gap: 6px; }
  .ks-filters-right { width: 100%; gap: 6px; }
  .ks-search input { width: 100%; }
  .ks-search { flex: 1; }
  .ks-dropdown-content { min-width: 260px; left: auto; right: 0; }
  .ks-thumb-hook { font-size: 22px; }
  .ks-thumb-hook.sm { font-size: 18px; }
  .ks-thumb-hook.xs { font-size: 16px; }
}
