/* Perspektywy page styles */

.perspektywy-hero {
  background-color: var(--color-warm-white);
  padding: var(--space-3xl) var(--container-padding);
  position: relative;
}

.perspektywy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 194, 178, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 178, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.perspektywy-hero__inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}

.perspektywy-hero__standfirst {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  max-width: 65ch;
}

.perspektywy-hero__details {
  max-width: 65ch;
}

.perspektywy-hero__cta {
  align-self: flex-start;
}

.perspektywy-featured {
  padding: var(--space-3xl) 0;
}

.perspektywy-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-block-start: var(--space-xl);
}

.perspektywy-featured__card {
  background-color: var(--color-warm-white);
  border: var(--border-card);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--transition-fast);
}

.perspektywy-featured__card:hover {
  border-color: rgba(0, 194, 178, 0.5);
}

.perspektywy-featured__card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-image);
  border: var(--border-image-inner);
}

.perspektywy-featured__card h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  max-width: 55ch;
}

.perspektywy-featured__card p {
  max-width: 55ch;
}

.perspektywy-featured__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--text-caption-size);
  color: var(--color-mid-grey);
  margin-block-start: auto;
}

.perspektywy-categories {
  padding: var(--space-3xl) 0;
  background-color: var(--color-light-stone-grey);
}

.perspektywy-categories__intro {
  max-width: 40ch;
  margin-block-end: var(--space-xl);
}

.perspektywy-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.perspektywy-categories__card {
  background-color: var(--color-warm-white);
  border: var(--border-card);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--color-graphite);
  transition: border-color var(--transition-fast);
}

.perspektywy-categories__card:hover {
  border-color: var(--color-electric-turquoise);
}

.perspektywy-categories__card .overline {
  margin-block-end: 0;
}

.perspektywy-categories__card span:last-child {
  max-width: 40ch;
}

.perspektywy-structure {
  padding: var(--space-3xl) 0;
}

.perspektywy-structure__grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: var(--space-xl);
  align-items: start;
}

.perspektywy-structure__intro p {
  max-width: 60ch;
}

.perspektywy-structure__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background-color: var(--color-light-stone-grey);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.perspektywy-structure__steps li {
  display: flex;
  gap: var(--space-sm);
  align-items: baseline;
}

.perspektywy-structure__steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  font-weight: 700;
  color: var(--color-electric-turquoise);
  min-width: 1.5em;
  text-align: right;
}

.perspektywy-structure__steps {
  counter-reset: step-counter;
}

.perspektywy-team {
  padding: var(--space-3xl) 0;
  background-color: var(--color-light-stone-grey);
}

.perspektywy-team__intro {
  max-width: 55ch;
  margin-block-end: var(--space-xl);
}

.perspektywy-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.perspektywy-team__card {
  background-color: var(--color-warm-white);
  border: var(--border-card);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.perspektywy-team__card h3 {
  margin-block-end: 0;
}

.perspektywy-team__card p {
  max-width: 55ch;
}

.perspektywy-recent {
  padding: var(--space-3xl) 0;
}

.perspektywy-recent__intro {
  max-width: 70ch;
  margin-block-end: var(--space-xl);
}

.perspektywy-recent__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.perspektywy-recent__list li {
  border-block-end: var(--border-card);
}

.perspektywy-recent__list li:last-child {
  border-block-end: none;
}

.perspektywy-recent__list a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  text-decoration: none;
  color: var(--color-graphite);
  transition: background-color var(--transition-fast);
}

.perspektywy-recent__list a:hover {
  background-color: rgba(240, 237, 232, 0.5);
}

.perspektywy-recent__title {
  flex: 1;
  max-width: 70ch;
}

.perspektywy-recent__list time {
  font-size: var(--text-caption-size);
  color: var(--color-mid-grey);
  white-space: nowrap;
}

.perspektywy-trust {
  padding: var(--space-3xl) 0;
  background-color: var(--color-light-stone-grey);
}

.perspektywy-trust__intro {
  max-width: 65ch;
  margin-block-end: var(--space-xl);
}

.perspektywy-trust__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.perspektywy-trust__list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  max-width: 65ch;
}

.perspektywy-trust__list li::before {
  content: "✓";
  color: var(--color-electric-turquoise);
  font-weight: 700;
}

.perspektywy-newsletter {
  padding: var(--space-3xl) 0;
}

.perspektywy-newsletter__panel {
  background-color: var(--color-light-stone-grey);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.perspektywy-newsletter__description {
  max-width: 60ch;
}

.perspektywy-newsletter__form {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

.perspektywy-newsletter__form input[type="email"] {
  flex: 1;
  min-width: 240px;
}

.perspektywy-newsletter__button {
  flex-shrink: 0;
}

.perspektywy-newsletter__consent {
  max-width: 60ch;
}

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

  .perspektywy-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .perspektywy-structure__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .perspektywy-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .perspektywy-hero {
    padding: var(--space-2xl) var(--space-md);
  }

  .perspektywy-hero__inner {
    align-items: center;
    text-align: center;
  }

  .perspektywy-hero__standfirst,
  .perspektywy-hero__details {
    margin-inline: auto;
  }

  .perspektywy-hero__cta {
    align-self: center;
  }

  .perspektywy-featured__grid,
  .perspektywy-categories__grid,
  .perspektywy-team__grid,
  .perspektywy-trust__list {
    grid-template-columns: 1fr;
  }

  .perspektywy-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perspektywy-recent__list a {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .perspektywy-recent__title {
    flex-basis: 100%;
    order: 2;
  }

  .perspektywy-recent__list time {
    order: 3;
  }

  .perspektywy-newsletter__form {
    flex-direction: column;
    align-items: stretch;
  }

  .perspektywy-newsletter__form input[type="email"] {
    min-width: 0;
  }

  .perspektywy-newsletter__button {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .perspektywy-categories__grid {
    grid-template-columns: 1fr;
  }

  .perspektywy-hero h1 {
    font-size: var(--text-h1-size);
  }
}
