/* ============================================================
   IKS - Katalog szkolen (catalog/course_list.html)
   ============================================================ */

/* ---------- Hero katalogu ---------- */
.catalog-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background: var(--bg);
}

.catalog-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ch-orb {
  position: absolute;
  border-radius: 50%;
}

.ch-orb-1 {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -80px;
  background: radial-gradient(circle, rgba(113, 0, 255, 0.08), transparent 68%);
  filter: blur(40px);
}

.ch-orb-2 {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: -60px;
  background: radial-gradient(circle, rgba(0, 246, 160, 0.10), transparent 68%);
  filter: blur(40px);
}

.catalog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.catalog-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.catalog-hero-media {
  position: relative;
  min-width: 0;
}

.catalog-photo-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.catalog-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-photo-blob {
  position: absolute;
  z-index: 1;
  width: 72%;
  aspect-ratio: 1;
  top: -8%;
  right: -7%;
  border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%;
  background: var(--mint);
  opacity: 0.82;
}

.catalog-hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 20px 0 22px;
  color: var(--ink);
}

.catalog-hero-accent {
  color: var(--violet);
  position: relative;
  display: inline-block;
}

.catalog-hero-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.14em;
  background: var(--mint);
  border-radius: 2px;
  z-index: -1;
}

.catalog-hero-lead {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 36em;
  line-height: 1.6;
}

/* ---------- Pasek gratis ---------- */
.catalog-perks.section {
  padding-top: 16px;
  padding-bottom: 52px;
}

.catalog-perks-banner {
  background: linear-gradient(135deg, var(--violet-50) 0%, rgba(230, 255, 246, 0.6) 100%);
  border: 1px solid var(--violet-100);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cpb-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--violet);
  white-space: nowrap;
  flex-shrink: 0;
}

.cpb-label svg {
  width: 16px;
  height: 16px;
  color: var(--mint);
  flex-shrink: 0;
}

.cpb-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  flex: 1;
}

.cpb-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.cpb-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--violet);
}

.cpb-icon svg {
  width: 17px;
  height: 17px;
}

.cpb-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cpb-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.cpb-text span {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.3;
}

/* ---------- Glowna sekcja katalogu ---------- */
.catalog-main.section.section-alt {
  padding-top: 72px;
}

.catalog-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ---------- Filtry kategorii ---------- */
.catalog-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  background: #fff;
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.cf-btn svg {
  width: 15px;
  height: 15px;
  color: var(--gray-600);
  flex-shrink: 0;
  transition: color 0.2s;
}

.cf-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.cf-btn:hover svg {
  color: var(--violet);
}

.cf-btn.is-active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(113, 0, 255, 0.45);
}

.cf-btn.is-active svg {
  color: #fff;
}

.catalog-results {
  margin-top: 48px;
  transition: opacity 0.2s ease;
}

.catalog-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Pusty stan ---------- */
.catalog-empty {
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.catalog-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--violet-50);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--violet);
}

.catalog-empty-icon svg {
  width: 30px;
  height: 30px;
}

.catalog-empty h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--ink);
}

.catalog-empty p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 28px;
}

/* ---------- CTA Zespol ---------- */
.catalog-team-cta.section {
  padding: 72px 0 96px;
}

.ctc-card {
  background: var(--violet);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 320px;
  position: relative;
}

.ctc-body {
  position: relative;
  z-index: 2;
  padding: 60px 56px;
}

.ctc-body .eyebrow {
  color: var(--ink);
  background: var(--mint);
  margin-bottom: 22px;
}

.ctc-body .eyebrow .dot {
  background: var(--violet);
}

.ctc-body h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.ctc-body p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16.5px;
  max-width: 32em;
  margin-bottom: 32px;
  line-height: 1.6;
}

.ctc-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ctc-body .btn-primary {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 16px 40px -20px rgba(0, 246, 160, 0.6);
}

.ctc-body .btn-primary:hover {
  background: #4affbd;
}

.ctc-body .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.ctc-body .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ctc-visual {
  position: relative;
  padding: 48px 44px 48px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.ctc-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ctc-orb-1 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 246, 160, 0.18), transparent 65%);
  filter: blur(30px);
}

.ctc-orb-2 {
  width: 200px;
  height: 200px;
  top: -50px;
  left: 20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
  filter: blur(20px);
}

.ctc-features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.ctc-feat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(4px);
}

.ctc-feat svg {
  width: 22px;
  height: 22px;
  color: var(--mint);
  flex-shrink: 0;
}

.ctc-feat span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
}

/* ---------- Responsywnosc ---------- */
@media (max-width: 980px) {
  .catalog-hero {
    padding: 68px 0 56px;
  }

  .catalog-perks-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 26px;
  }

  .catalog-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .catalog-hero-media {
    max-width: 620px;
  }

  .cpb-items {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .catalog-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .ctc-card {
    grid-template-columns: 1fr;
  }

  .ctc-visual {
    padding: 0 36px 44px;
    justify-content: flex-start;
  }

  .ctc-features {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .catalog-hero {
    padding: 52px 0 44px;
  }

  .catalog-hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .catalog-hero-lead {
    font-size: 16px;
  }

  .catalog-hero-grid {
    gap: 32px;
  }

  .catalog-photo-wrap {
    border-radius: 20px;
  }

  .cpb-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .catalog-filters {
    gap: 6px;
  }

  .cf-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .ctc-body {
    padding: 40px 28px;
  }

  .ctc-body h2 {
    font-size: 1.8rem;
  }

  .ctc-actions {
    flex-direction: column;
  }

  .ctc-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
