/* Poradnik Standify: statyczne strony, ten sam język wizualny co strona główna. */
:root {
  --text: #14181a;
  --text-2: #4c5358;
  --text-3: #7a8085;
  --accent: #12706b;
  --accent-soft: #eaf4f3;
  --sep: #ebe8e4;
  --surface: #ffffff;
  --page: #f4f3f1;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; padding: 8px 12px; background: var(--text); color: #fff; z-index: 20; }
.skip-link:focus { left: 8px; }

/* nagłówek i stopka */
.site-header {
  height: 72px; display: flex; align-items: center; gap: 32px;
  padding: 0 max(16px, calc((100vw - 1360px) / 2));
  background: #fff; border-bottom: 1px solid #f0eeea; position: sticky; top: 0; z-index: 10;
}
.site-brand, .site-nav a { text-decoration: none; color: inherit; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--text); }
.brand-domain { color: var(--text-3); font-weight: 500; }
.site-nav { display: flex; gap: 26px; font-size: 14px; color: #5c6368; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); }
.site-cta {
  margin-left: auto; padding: 10px 16px; border-radius: 10px; background: var(--text); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.site-footer {
  padding: 32px max(16px, calc((100vw - 1304px) / 2)); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; background: #fff; border-top: 1px solid var(--sep); color: var(--text-3); font-size: 14px;
}
.site-footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.site-footer a { color: #5c6368; font-weight: 600; text-decoration: none; }

/* wspólne */
.eyebrow {
  display: inline-block; padding: 4px 10px; border: 1px solid rgba(18,112,107,.25); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.primary-link {
  display: inline-block; padding: 13px 20px; border-radius: 12px; background: var(--accent); color: #fff;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.primary-link:hover { background: #0e5c58; }
.article-page, .hub-page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }

/* artykuł */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.article-header { max-width: 820px; margin-bottom: 36px; }
.article-header h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 14px; }
.article-meta { color: var(--text-3); font-size: 14px; margin: 0; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 56px; align-items: start; }
.article-aside { position: sticky; top: 96px; }
.toc { font-size: 14px; }
.toc strong { display: block; margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sep); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--text-2); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--accent); }

.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose > p:first-child { font-size: 20px; line-height: 1.55; color: var(--text); }
.prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.01em; margin: 48px 0 14px; }
.prose h3 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; }
.prose p, .prose li { color: #2a3033; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.prose code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .9em; background: #ebe9e5; padding: 1px 5px; border-radius: 4px; }
.prose figure { margin: 28px 0; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--sep); }
.prose figcaption { font-size: 14px; color: var(--text-3); margin-top: 8px; }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--sep); border-radius: 14px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sep); }
.prose th { background: #faf9f7; font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose #najczestsze-pytania ~ h3 { padding-top: 16px; border-top: 1px solid var(--sep); }
.prose #zrodla ~ ul, .prose #zrodla ~ ol { font-size: 14px; color: var(--text-2); }
.prose #zrodla ~ ul li, .prose #zrodla ~ ol li { color: var(--text-2); overflow-wrap: anywhere; }

/* CTA i powiązane */
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 56px 0 0;
  padding: 28px; border-radius: 20px; background: #14181a; color: #f4f3f1;
}
.cta-box strong { font-size: 21px; line-height: 1.3; }
.cta-box p { margin: 8px 0 0; color: #b9c0c3; font-size: 16px; max-width: 640px; }
.related { margin-top: 56px; }
.related h2, .hub-page h2 { font-size: 24px; margin: 0 0 18px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border: 1px solid var(--sep);
  border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s;
}
.card a:hover { border-color: var(--accent); transform: translateY(-2px); }
.card strong { font-size: 18px; line-height: 1.3; }
.card-cat { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.card-desc { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.cards-featured { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.cards-featured .card a { background: var(--accent-soft); border-color: rgba(18,112,107,.2); }

/* hub */
.hub-header { max-width: 780px; padding: 32px 0 40px; }
.hub-header h1 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0; }
.hub-header p { font-size: 19px; color: var(--text-2); margin: 0; }
.hub-page section { margin-top: 44px; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-aside { position: static; margin-bottom: 32px; padding: 18px; background: var(--surface); border: 1px solid var(--sep); border-radius: 14px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { gap: 16px; height: 64px; }
  .site-nav { display: none; }
  .prose > p:first-child { font-size: 18px; }
  .prose h2 { font-size: 24px; margin-top: 40px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 22px; }
  .cards-featured { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .card a { transition: none; } .card a:hover { transform: none; } }
