/* PKS certificates (SURE, J.S. Hamilton) closing the "002 - Dlaczego nasz PKS" section. */
.certificates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
  scroll-margin-top: 28px;
}
.cert-panel {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.cert-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  transition: box-shadow .25s;
}
.cert-logo:hover { box-shadow: 0 4px 18px rgba(15, 15, 15, .08); }
.cert-logo img { width: 100%; height: auto; }
.cert-logo--text span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  letter-spacing: .02em;
  color: #1d3f6e;
  text-align: center;
  line-height: 1.15;
}
.cert-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.cert-copy h4 {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.cert-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
}
.cert-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1150px) {
  .certificates { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .certificates { margin-top: 40px; gap: 16px; }
  .cert-panel { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .cert-logo { width: 150px; }
  .cert-copy h4 { font-size: 23px; }
}

/* Certificate preview buttons and dialogs (2026-11-02). */
.cert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.cert-view {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
}
.cert-view:hover { border-color: #b8bcb0; box-shadow: 0 4px 14px rgba(15, 15, 15, .07); }
.cert-view:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cert-meta { font-size: 12px; color: var(--text-secondary); }
.cert-actions + .cert-link { margin-top: 14px; }
.cert-dialog { width: min(960px, calc(100% - 32px)); }
.cert-dialog h2 { margin-bottom: 12px; }
.cert-pages {
  display: grid; gap: 16px;
  margin-top: 20px;
  overflow-x: auto;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.cert-pages img {
  display: block; width: 100%; height: auto;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: zoom-in;
  -webkit-user-drag: none;
}
.cert-pages img.is-zoomed { width: 1406px; max-width: none; cursor: zoom-out; }
.cert-dialog .cert-dialog-note { margin-bottom: 0; }
@media (max-width: 600px) {
  .cert-view { width: 100%; justify-content: center; }
  .cert-pages img.is-zoomed { width: 220%; }
}
