/* Wiedza w pigułce */

.knowledge-page{
  min-height:calc(100vh - 78px);
  background:#f8fbff;
}

.knowledge-hero{
  background:
    radial-gradient(circle at 78% 18%, rgba(21,87,240,.10) 0 110px, transparent 111px),
    linear-gradient(90deg,#f8fbff 0%,#f1f6ff 100%);
  border-bottom:1px solid #e8eef8;
}

.knowledge-hero-grid{
  min-height:380px;
  display:grid;
  grid-template-columns:1fr 340px;
  gap:44px;
  align-items:center;
  padding:58px 0;
}

.knowledge-hero h1{
  max-width:780px;
  margin:0;
  color:var(--navy);
  font-family:Sora,Manrope,Arial,sans-serif;
  font-size:clamp(38px,5vw,64px);
  line-height:1.05;
  letter-spacing:-2px;
}

.knowledge-hero p:not(.eyebrow){
  max-width:690px;
  margin:24px 0 0;
  color:#344b73;
  font-size:18px;
  line-height:1.75;
}

.knowledge-summary-card{
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:#fff;
  box-shadow:var(--shadow-soft);
  padding:30px;
}

.knowledge-summary-card strong{
  display:block;
  color:var(--blue);
  font-family:Sora,Manrope,Arial,sans-serif;
  font-size:58px;
  line-height:1;
  margin-bottom:8px;
}

.knowledge-summary-card span{
  color:var(--navy);
  font-weight:900;
  font-size:18px;
}

.knowledge-summary-card p{
  margin:14px 0 0;
  color:var(--muted);
  line-height:1.6;
}

.knowledge-catalog{
  padding:54px 0 76px;
}

.knowledge-group-card{
  margin-bottom:30px;
}

.knowledge-group-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}

.knowledge-group-head span{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--blue);
  color:#fff;
  font-family:Sora,Manrope,Arial,sans-serif;
  font-weight:900;
}

.knowledge-group-head h2{
  margin:0;
  color:var(--navy);
  font-family:Sora,Manrope,Arial,sans-serif;
  font-size:30px;
  letter-spacing:-.8px;
}

.knowledge-topic-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.knowledge-topic-card{
  min-height:190px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.knowledge-topic-card::before{
  content:"";
  width:42px;
  height:4px;
  border-radius:999px;
  background:var(--blue);
  display:block;
  margin-bottom:18px;
}

.knowledge-topic-card h3{
  margin:0 0 12px;
  color:var(--navy);
  font-family:Sora,Manrope,Arial,sans-serif;
  font-size:18px;
  line-height:1.35;
  letter-spacing:-.35px;
}

.knowledge-topic-card p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.knowledge-topic-card a{
  margin-top:auto;
  color:var(--blue);
  font-weight:900;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.knowledge-topic-card a span{
  transition:.18s ease;
}

.knowledge-topic-card a:hover span{
  transform:translateX(4px);
}

@media(max-width:1100px){
  .knowledge-topic-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .knowledge-hero-grid{
    grid-template-columns:1fr;
  }

  .knowledge-summary-card{
    max-width:420px;
  }
}

@media(max-width:760px){
  .knowledge-page{
    min-height:calc(100vh - 68px);
  }

  .knowledge-hero-grid{
    min-height:auto;
    padding:42px 0;
  }

  .knowledge-hero h1{
    font-size:38px;
  }

  .knowledge-hero p:not(.eyebrow){
    font-size:16px;
  }

  .knowledge-topic-grid{
    grid-template-columns:1fr;
  }

  .knowledge-topic-card{
    min-height:168px;
    padding:22px;
  }

  .knowledge-group-head h2{
    font-size:25px;
  }
}

@media(max-width:520px){
  .knowledge-catalog{
    padding:38px 0 56px;
  }

  .knowledge-summary-card{
    padding:24px;
  }

  .knowledge-summary-card strong{
    font-size:48px;
  }
}

/* FIX: wyśrodkowanie ostatnich kafelków i sekcji F-gazy */
.knowledge-topic-grid{
  display:flex !important;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
  gap:18px;
}

.knowledge-topic-card{
  box-sizing:border-box;
  flex:0 1 calc((100% - 36px) / 3);
  width:calc((100% - 36px) / 3);
}

.knowledge-group-card:last-child{
  text-align:center;
}

.knowledge-group-card:last-child .knowledge-group-head{
  justify-content:center;
}

.knowledge-group-card:last-child .knowledge-topic-grid{
  margin:0 auto;
}

.knowledge-group-card:last-child .knowledge-topic-card{
  text-align:left;
}

@media(max-width:1100px){
  .knowledge-topic-card{
    flex-basis:calc((100% - 18px) / 2);
    width:calc((100% - 18px) / 2);
  }
}

@media(max-width:760px){
  .knowledge-topic-card{
    flex-basis:100%;
    width:100%;
  }

}

/* FIX: wszystkie tytuły sekcji w Pigułce wiedzy wyśrodkowane */
.knowledge-group-card{
  text-align:center;
}

.knowledge-group-head{
  justify-content:center !important;
  text-align:center;
}

.knowledge-group-head h2{
  text-align:center;
}

.knowledge-topic-card{
  text-align:left;
}
.knowledge-topic-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:auto}.knowledge-topic-actions a{margin-top:0}.knowledge-topic-actions .knowledge-exam-link{margin-left:auto;padding:9px 12px;border:1px solid #164fd6;border-radius:10px;background:#164fd6;color:#fff;white-space:nowrap;transition:background .18s ease,border-color .18s ease,transform .18s ease}.knowledge-topic-actions .knowledge-exam-link:hover{transform:translateY(-1px);border-color:#0d3fae;background:#0d3fae;color:#fff}
