/*
 * Podstrona "Dodatkowa pomoc" — layout 2026
 * Figma: WIP / dodatkowe_wsparcie (597:6592), ramka 1366 px.
 * Wymiary desktopowe 1:1 z projektu; elementy banera skalują się proporcjonalnie (%).
 */

#content.dp26 {
  padding-top: 0; /* motyw: #content { padding-top: 30px } — baner przylega do zielonego paska */
  display: flow-root; /* margines .dp26-intro nie może wyjść poza #content (prześwit koloru body pod banerem) */
  background: #fff; /* body motywu ma #f2f4f5; w projekcie treść jest na białym */
}

.dp26 {
  --dp26-ink: #044142;
  --dp26-yellow: #ffdd73;
  --dp26-yellow-light: #ffebad;
  color: var(--dp26-ink);
}

.dp26 *,
.dp26 *::before,
.dp26 *::after {
  box-sizing: border-box;
}

/* kontener 1238 px (64 px marginesu przy 1366) */
.dp26-wrap {
  width: 100%;
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.dp26-intro {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-top: 60px;
}

.dp26-intro__arrow {
  flex: none;
  display: block;
  width: 75px;
  height: auto;
  margin-top: 0;
}

.dp26-intro__text {
  max-width: 674px;
}

.dp26-intro h1 {
  margin: 0;
  font-family: 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 23px;
  line-height: 26px;
  color: var(--dp26-ink);
}

.dp26-intro p {
  margin: 9px 0 0;
  font-family: 'GeomanistBook', Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: var(--dp26-ink);
}

/* ---------- karty ---------- */

.dp26-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1232px;
  margin: 59px auto 62px;
}

.dp26-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 533px;
  padding: 47px 34px 30px;
  background: var(--dp26-yellow-light);
  border-radius: 12px;
}

.dp26-card h2 {
  margin: 0 0 35px;
  font-family: 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 23px;
  line-height: 28px;
  text-align: center;
  color: var(--dp26-ink);
}

.dp26-card p {
  width: 100%;
  max-width: 540px;
  margin: 0;
  font-family: 'GeomanistBook', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 22px;
  text-align: left;
  color: var(--dp26-ink);
}

.dp26-card__logo {
  display: block;
  width: 241px;
  max-width: 80%;
  height: auto;
  margin: 20px 0 27px;
}

.dp26-card__photo {
  display: block;
  width: 366px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 366 / 166;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 6px;
  margin: 23px 0 30px;
}

.dp26-btn,
.dp26-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 191px;
  max-width: 100%;
  height: 48px;
  margin-top: 15px;
  padding: 0 16px;
  border-radius: 48.44px;
  background: var(--dp26-ink);
  color: #fff;
  font-family: 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 16px;
  letter-spacing: 0.288px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dp26-btn:hover,
.dp26-btn:focus-visible {
  background: #0b5f61;
  color: #fff;
  text-decoration: none;
}

.dp26-btn:focus-visible {
  outline: 2px solid var(--dp26-ink);
  outline-offset: 3px;
}

/* ---------- responsywność ---------- */

@media (max-width: 1023px) {
  .dp26-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 608px;
  }

  .dp26-card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .dp26-intro {
    gap: 12px;
    margin-top: 32px;
  }

  .dp26-intro__arrow {
    width: 48px;
  }

  .dp26-intro h1 {
    font-size: 20px;
    line-height: 24px;
  }

  .dp26-intro p {
    font-size: 16px;
    line-height: 22px;
  }

  .dp26-cards {
    margin: 32px auto 40px;
  }

  .dp26-card {
    padding: 32px 20px 28px;
  }

  .dp26-card h2 {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 20px;
  }
}


/* ---------- wyrównanie kart na desktopie ----------
   Karty współdzielą wiersze siatki (subgrid): tytuły, akapity, logo/zdjęcie i przyciski
   leżą na tych samych wysokościach niezależnie od długości tekstów. Starsze przeglądarki
   bez subgrid zostają przy układzie flex powyżej. */
@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .dp26-cards {
      grid-template-rows: repeat(5, auto);
      row-gap: 0;
    }

    .dp26-card {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
      row-gap: 0;
      justify-items: center;
      align-items: start;
    }

    .dp26-card p {
      justify-self: center;
    }

    .dp26-card__logo,
    .dp26-card__photo {
      align-self: center;
    }

    .dp26-btn {
      align-self: start;
    }
  }
}
