/* ===== Progresja i rozwój — page-owned styles ===== */

.progresja-page {
  background-color: var(--stone-charcoal);
  color: var(--iron-light);
}

/* Hero */
.hero-progresja {
  position: relative;
  background-color: var(--stone-charcoal);
  border-bottom: 1px solid var(--stone-edge);
  overflow: hidden;
}

.hero-progresja::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(176, 141, 62, 0.08), rgba(176, 141, 62, 0.08)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(58, 55, 51, 0.25) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(58, 55, 51, 0.25) 40px);
  opacity: 0.2;
  pointer-events: none;
}

.hero-progresja__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-editorial);
  margin-inline: auto;
  padding: var(--space-8) var(--page-padding-mobile);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.hero-progresja__card {
  background-color: var(--parchment);
  color: var(--ink);
  border: var(--border-parchment);
  border-radius: var(--radius-0);
  padding: var(--space-6);
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero-progresja__label {
  color: var(--brass);
}

.hero-progresja__title {
  color: var(--ink);
  margin-block-end: 0;
}

.hero-progresja__lead,
.hero-progresja__support {
  margin-block-end: 0;
  max-width: 620px;
}

.hero-progresja__cta {
  margin-top: var(--space-2);
}

/* Sections */
.section-progresja {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--stone-edge);
}

.section-progresja__title {
  color: var(--parchment);
  margin-block-end: var(--space-6);
}

.section-progresja__callout {
  margin-block-end: var(--space-5);
  max-width: 680px;
}

.section-progresja__callout:last-child {
  margin-block-end: 0;
}

.section-progresja__callout-label {
  margin-block-end: var(--space-2);
}

.section-progresja__callout-title {
  color: inherit;
  margin-block-end: var(--space-3);
}

.section-progresja__callout p {
  margin-block-end: var(--space-3);
}

.section-progresja__callout p:last-child {
  margin-block-end: 0;
}

/* Grid for two-column sections */
.section-progresja__grid {
  display: grid;
  gap: var(--space-5);
}

.section-progresja__grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-progresja__grid--2col > * {
  min-width: 0;
}

.section-progresja__grid .section-progresja__callout {
  max-width: none;
  margin-block-end: 0;
}

/* Figures */
.section-progresja__figure {
  margin-block-start: var(--space-6);
  margin-block-end: 0;
  max-width: 100%;
}

.section-progresja__figure img {
  width: 100%;
  height: auto;
  border: var(--border-dark);
  border-radius: var(--radius-0);
  transition: filter var(--transition-fast);
}

.section-progresja__figure img:hover {
  filter: sepia(0.2) saturate(1.1) brightness(1.05);
}

.section-progresja__figure figcaption {
  margin-block-start: var(--space-2);
  color: var(--iron);
  text-align: left;
}

/* Summary */
.section-progresja--podsumowanie {
  border-bottom: none;
}

.section-progresja__summary-card {
  background-color: var(--parchment);
  color: var(--ink);
  border: var(--border-parchment);
  border-radius: var(--radius-0);
  padding: var(--space-6);
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.section-progresja__summary-title {
  color: var(--ink);
  margin-block-end: 0;
}

.section-progresja__summary-card p {
  margin-block-end: 0;
  max-width: 620px;
}

.section-progresja__summary-cta {
  margin-top: var(--space-2);
}

/* Responsive */
@media (min-width: 40rem) {
  .hero-progresja__inner {
    padding-inline: var(--page-padding-tablet);
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero-progresja__card {
    grid-column: 1 / 8;
  }

  .section-progresja__figure--drzewko {
    grid-column: 5 / 13;
    margin-inline-start: auto;
    max-width: 66.666%;
  }

  .section-progresja__figure--fizyka {
    grid-column: 1 / 9;
    margin-inline-end: auto;
    max-width: 66.666%;
  }
}

@media (min-width: 64rem) {
  .hero-progresja__inner {
    padding-inline: var(--page-padding-desktop);
  }

  .section-progresja__figure--drzewko {
    max-width: 66.666%;
  }

  .section-progresja__figure--fizyka {
    max-width: 66.666%;
  }
}

@media (max-width: 63.9375rem) and (min-width: 40rem) {
  .section-progresja__grid--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 39.9375rem) {
  .hero-progresja__inner {
    padding: var(--space-6) var(--page-padding-mobile);
  }

  .hero-progresja__card {
    padding: var(--space-5);
    max-width: 100%;
  }

  .section-progresja {
    padding-block: var(--space-6);
  }

  .section-progresja__grid--2col {
    grid-template-columns: 1fr;
  }

  .section-progresja__callout {
    max-width: 100%;
  }

  .section-progresja__figure--drzewko,
  .section-progresja__figure--fizyka {
    max-width: 100%;
    margin-inline: 0;
  }

  .section-progresja__summary-card {
    padding: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-progresja__figure img {
    transition: none;
  }
}
