/* ============================================================
   Akademia LeadYa - hub materialow i strony artykulow
   Ladowany po style.css i responsive.css.
   Wszystkie klasy maja prefiks .ac- zeby nie ruszac reszty strony.
   ============================================================ */

:root {
  --ac-purple: #6a49f2;
  --ac-purple-dark: #5332d8;
  --ac-ink: #32236f;
  --ac-body: #4a4c72;
  --ac-muted: #7a869e;
  --ac-line: #ebe5fb;
  --ac-tint: #f6f4fe;
  --ac-tint-2: #eef6ff;
  --ac-shadow: 0 8px 30px rgba(192, 186, 215, 0.42);
}

/* ---------- wspolne drobiazgi ---------- */

.ac-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

.ac-badge--light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ac-badge--purple {
  background: var(--ac-tint);
  color: var(--ac-purple);
}

/* ---------- naglowek strony artykulu ---------- */

/* Naglowek artykulu jest wyzszy niz zwykly bred_crumb (badge + lead + metryki),
   wiec bez dodatkowego gornego marginesu jego pierwszy element wchodzi pod menu. */
.bred_crumb.ac-hero {
  min-height: 600px;
  padding-top: 160px;
}

.bred_crumb.ac-hero .bred_text {
  max-width: 860px;
  margin: 0 auto;
}

.bred_crumb.ac-hero .bred_text h1 {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.ac-hero__kicker {
  margin-bottom: 16px;
}

.bred_crumb .bred_text .ac-hero__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 24px;
}

.bred_crumb .bred_text .ac-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
}

.bred_crumb .bred_text .ac-hero__meta li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.bred_crumb .bred_text .ac-hero__meta li i {
  font-size: 16px;
  opacity: 0.9;
}

/* ---------- uklad artykulu ---------- */

.ac-article {
  padding-bottom: 60px;
}

.ac-panel {
  background: #fff;
  border-radius: 26px;
  padding: 46px 52px;
  margin-top: -110px;
  position: relative;
  box-shadow: var(--ac-shadow);
}

/* ---------- typografia tresci ---------- */

.ac-body {
  color: var(--ac-body);
  font-size: 16.5px;
  line-height: 1.78;
}

.ac-body > p {
  margin-bottom: 20px;
}

.ac-body__lede {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ac-ink);
  font-weight: 500;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ac-line);
}

.ac-body h2 {
  color: var(--ac-ink);
  font-size: 27px;
  line-height: 1.35;
  font-weight: 700;
  margin: 44px 0 16px;
  scroll-margin-top: 100px;
}

.ac-body h2:first-child {
  margin-top: 0;
}

.ac-body h3 {
  color: var(--ac-ink);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  margin: 30px 0 12px;
  scroll-margin-top: 100px;
}

.ac-body h4 {
  color: var(--ac-ink);
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
}

.ac-body strong {
  color: var(--ac-ink);
  font-weight: 600;
}

.ac-body a:not(.btn) {
  color: var(--ac-purple);
  font-weight: 600;
  border-bottom: 1px solid rgba(106, 73, 242, 0.3);
}

.ac-body a:not(.btn):hover {
  border-bottom-color: var(--ac-purple);
}

.ac-body ul,
.ac-body ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}

.ac-body ul > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.ac-body ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ac-purple);
}

.ac-body ol {
  counter-reset: acnum;
}

.ac-body ol > li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 12px;
  counter-increment: acnum;
}

.ac-body ol > li::before {
  content: counter(acnum);
  position: absolute;
  left: 0;
  top: 3px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--ac-tint);
  color: var(--ac-purple);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- callouty ---------- */

.ac-note {
  display: flex;
  gap: 16px;
  border-radius: 16px;
  padding: 22px 24px;
  margin: 30px 0;
  background: var(--ac-tint);
  border: 1px solid var(--ac-line);
}

.ac-note__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ac-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.ac-note__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ac-note h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ac-ink);
}

.ac-note p:last-child,
.ac-note ul:last-child {
  margin-bottom: 0;
}

.ac-note--warn {
  background: #fff6ef;
  border-color: #ffe0c7;
}

.ac-note--warn .ac-note__icon {
  background: #f08a24;
}

.ac-note--pro {
  background: #eef6ff;
  border-color: #d8e8ff;
}

.ac-note--pro .ac-note__icon {
  background: #2f74d0;
}

/* ---------- przykladowe wiadomosci ---------- */

.ac-chat {
  background: var(--ac-tint);
  border: 1px solid var(--ac-line);
  border-radius: 18px;
  padding: 24px 24px 18px;
  margin: 28px 0;
}

.ac-chat__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ac-muted);
  margin-bottom: 16px;
}

.ac-chat__msg {
  max-width: 82%;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  position: relative;
}

.ac-chat__msg--in {
  background: #fff;
  color: var(--ac-body);
  border: 1px solid var(--ac-line);
  border-bottom-left-radius: 5px;
}

.ac-chat__msg--out {
  background: var(--ac-purple);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.ac-chat__msg--bad {
  background: #fbeaea;
  color: #8f2f2f;
  border: 1px solid #f3cfcf;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.ac-chat__who {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 4px;
}

.ac-chat__verdict {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ac-muted);
  font-style: italic;
}

/* ---------- tabele ---------- */

.ac-tablewrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 16px;
  border: 1px solid var(--ac-line);
}

.ac-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
}

.ac-table th,
.ac-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ac-line);
}

.ac-table thead th {
  background: var(--ac-tint);
  color: var(--ac-ink);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.ac-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- podsumowanie ---------- */

.ac-key {
  background: linear-gradient(135deg, #f4efff 0%, #eef6ff 100%);
  border: 1px solid #e3d9fb;
  border-radius: 20px;
  padding: 28px 30px;
  margin: 40px 0 0;
}

.ac-key h3 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.ac-key ul {
  margin-bottom: 0;
}

/* ---------- stopka artykulu ---------- */

.ac-foot {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--ac-line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.ac-foot__author {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ac-foot__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ac-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
}

.ac-foot__author strong {
  display: block;
  color: var(--ac-ink);
  font-size: 15px;
}

.ac-foot__author span {
  display: block;
  color: var(--ac-muted);
  font-size: 13.5px;
}

/* ---------- kolumna boczna ---------- */

.ac-side {
  position: sticky;
  top: 100px;
}

.ac-toc {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 5px 22px rgba(106, 73, 242, 0.08);
}

.ac-toc h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ac-muted);
  margin: 0 0 14px;
}

.ac-toc ol {
  counter-reset: toc;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ac-toc li {
  counter-increment: toc;
  margin-bottom: 9px;
  line-height: 1.45;
}

.ac-toc a {
  color: var(--ac-body);
  font-size: 14.5px;
  display: block;
  padding-left: 26px;
  position: relative;
}

.ac-toc a::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ac-purple);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ac-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-toc a:hover {
  color: var(--ac-purple);
}

.ac-sidecta {
  background: var(--ac-ink);
  color: #fff;
  border-radius: 20px;
  padding: 26px;
  margin-top: 20px;
  background-image: linear-gradient(140deg, #3a2880 0%, #6a49f2 130%);
}

.ac-sidecta h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
}

.ac-sidecta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.ac-sidecta .btn {
  width: 100%;
  text-align: center;
}

.ac-sidecta__note {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

/* ---------- powiazane materialy ---------- */

.ac-related {
  padding-bottom: 100px;
}

.ac-related .section_title {
  margin-bottom: 30px;
}

/* ---------- karty materialow (hub + powiazane) ---------- */

.ac-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.ac-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ac-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(106, 73, 242, 0.16);
  border-color: #d9ccfb;
}

.ac-card__cover {
  position: relative;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, #6a49f2 0%, #9b6bf5 100%);
  overflow: hidden;
}

.ac-card__cover::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.ac-card__cover i {
  color: #fff;
  font-size: 46px;
  position: relative;
  z-index: 1;
}

.ac-card--rozmowa .ac-card__cover {
  background-image: linear-gradient(135deg, #2f74d0 0%, #57b0f0 100%);
}

.ac-card--wynik .ac-card__cover {
  background-image: linear-gradient(135deg, #1f9d76 0%, #58c9a3 100%);
}

.ac-card__step {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.ac-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.ac-card__body h3 {
  color: var(--ac-ink);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.ac-card__body p {
  color: var(--ac-body);
  font-size: 14.8px;
  line-height: 1.62;
  margin-bottom: 16px;
}

.ac-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ac-line);
}

.ac-card__time {
  font-size: 13px;
  color: var(--ac-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ac-card__link {
  color: var(--ac-purple);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ac-card:hover .ac-card__link {
  text-decoration: underline;
}

/* ---------- sciezki na hubie ---------- */

.ac-track {
  margin-bottom: 62px;
}

.ac-track__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 8px;
}

.ac-track__head h2 {
  color: var(--ac-ink);
  font-size: 27px;
  font-weight: 700;
  margin: 0;
}

.ac-track__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-purple);
}

.ac-track > p {
  color: var(--ac-body);
  max-width: 760px;
  margin-bottom: 26px;
}

/* ---------- polecany material ---------- */

.ac-featured {
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--ac-shadow);
  overflow: hidden;
  margin-top: -110px;
  position: relative;
  margin-bottom: 70px;
}

.ac-featured__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.ac-featured__media {
  flex: 1 1 42%;
  min-width: 280px;
  background: var(--ac-tint);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.ac-featured__media img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.ac-featured__text {
  flex: 1 1 52%;
  min-width: 300px;
  padding: 40px 46px;
}

.ac-featured__text h2 {
  color: var(--ac-ink);
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  margin: 14px 0 14px;
}

.ac-featured__text p {
  color: var(--ac-body);
  margin-bottom: 22px;
}

.ac-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--ac-muted);
}

.ac-featured__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- pasek CTA na koncu artykulu ---------- */

.ac-endcta {
  padding-bottom: 90px;
}

.ac-endcta__box {
  background-image: linear-gradient(135deg, #f4efff 0%, #eef6ff 100%);
  border: 1px solid #e3d9fb;
  border-radius: 22px;
  padding: 42px 44px;
  text-align: center;
}

.ac-endcta__box h2 {
  color: var(--ac-ink);
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ac-endcta__box p {
  color: var(--ac-body);
  max-width: 640px;
  margin: 0 auto 24px;
}

.ac-endcta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.ac-endcta__actions .btn {
  min-width: 240px;
}

/* ---------- przycisk do hubu na stronie glownej ---------- */

.ac-hub-cta {
  text-align: center;
  margin-top: 38px;
}

.ac-hub-cta .btn {
  min-width: 300px;
}

/* ---------- intro hubu ---------- */

.ac-intro {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}

.ac-intro h2 {
  color: var(--ac-ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}

.ac-intro p {
  color: var(--ac-body);
  margin-bottom: 0;
}

/* ---------- responsywnosc ---------- */

@media (max-width: 1199.98px) {
  .ac-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .ac-panel {
    padding: 34px 28px;
    margin-top: -80px;
    border-radius: 20px;
  }

  .ac-featured {
    margin-top: -80px;
  }

  .ac-featured__text {
    padding: 30px 28px 36px;
  }

  .ac-side {
    position: static;
    margin-top: 30px;
  }

  .bred_crumb.ac-hero {
    min-height: 520px;
    padding-top: 140px;
  }

  .bred_crumb.ac-hero .bred_text h1 {
    font-size: 31px;
  }

  .ac-body h2 {
    font-size: 24px;
  }
}

@media (max-width: 767.98px) {
  .ac-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ac-panel {
    padding: 26px 20px;
  }

  .ac-body {
    font-size: 16px;
  }

  .ac-body__lede {
    font-size: 17.5px;
  }

  .ac-chat__msg {
    max-width: 92%;
  }

  .ac-note {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .ac-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
