/* RobimyWeb · blog „Porady” (strony generuje tools/blog.py; nawigacja, stopka i przyciski ze style.css) */

/* ---------- Lista wpisów ---------- */
.blog-list { padding-bottom: clamp(72px, 9vw, 128px); }
.blog-chips { margin-bottom: clamp(20px, 3vw, 32px); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.pcard { position: relative; display: grid; gap: 10px; align-content: start; padding: 10px 10px 22px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.pcard[hidden] { display: none; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard__img { display: block; overflow: hidden; aspect-ratio: 1200 / 630; border-radius: 16px; background: var(--surface-2); }
.pcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 12px 0; font-size: 13px; color: var(--ink-3); }
.pcard__cat { color: var(--accent); font-weight: 600; }
.pcard__title { padding: 0 12px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcard__title a:focus-visible { outline: none; }
.pcard:has(.pcard__title a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.pcard p { padding: 0 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Artykuł ---------- */
.post__progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.post { padding-top: clamp(112px, 12vw, 150px); }
.post__head { max-width: 1032px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-size: 11px; }
.post__title { max-width: 22ch; margin-top: 16px; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.post__lead { max-width: 62ch; margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.post__meta > span { display: inline-flex; align-items: center; gap: 7px; }
.post__author { color: var(--ink); font-weight: 500; }
.post__cover { max-width: 1032px; margin: clamp(28px, 4vw, 44px) auto 0; }
.post__cover img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--surface-2); box-shadow: var(--shadow); }
.post__cover figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); text-align: right; }

.post__grid, .post__after { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; column-gap: clamp(32px, 5vw, 72px); }
.post__grid { margin-top: clamp(36px, 5vw, 64px); }
.post__after > * { grid-column: 2; }
.post__side { position: sticky; top: 100px; align-self: start; display: grid; gap: 18px; }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; list-style: none; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line-2); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--ink-2); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.post__promo { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 14px; }
.post__promo p { color: var(--ink-2); }
.post__promo .btn { justify-self: start; margin-top: 10px; }

/* treść z Markdown */
.post__body { min-width: 0; font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.post__body > * + * { margin-top: 1.1em; }
.post__body h2 { margin-top: 2.1em; font-size: clamp(25px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; color: var(--ink); scroll-margin-top: 100px; text-wrap: balance; }
.post__body h3 { margin-top: 1.7em; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; color: var(--ink); scroll-margin-top: 100px; }
.post__body h2 + *, .post__body h3 + * { margin-top: .7em; }
.post__body > :first-child { margin-top: 0; }
.post__body a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(45,91,255,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.post__body a:hover { text-decoration-color: currentColor; }
.post__body strong { font-weight: 600; color: var(--ink); }
.post__body ul, .post__body ol { padding-left: 1.3em; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li + li { margin-top: .4em; }
.post__body li::marker { color: var(--accent); }
.post__body blockquote { padding: 16px 20px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--accent-soft); color: var(--ink); }
.post__body code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-family: var(--mono); font-size: .86em; color: var(--ink); overflow-wrap: anywhere; }
.post__body pre { overflow-x: auto; padding: 18px 20px; border-radius: 16px; background: #0E1117; color: #E6E8EE; font-size: 14px; line-height: 1.6; }
.post__body pre code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; }
.post__table { overflow-x: auto; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.post__table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.post__table th, .post__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post__table th { background: var(--surface-2); font-weight: 600; color: var(--ink); white-space: nowrap; }
.post__table tr:last-child td { border-bottom: 0; }
.post__table:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 1em; }

/* FAQ, usługi, wezwanie do działania, kolejne wpisy */
.post__faq, .post__svc { margin-top: clamp(48px, 6vw, 80px); }
.post__faq { display: grid; gap: 10px; }
.post__faq h2, .post__svc h2, .post__more h2 { margin-bottom: 14px; font-size: clamp(25px, 2.6vw, 32px); letter-spacing: -.03em; font-weight: 600; }
.psvcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.psvc { position: relative; display: grid; gap: 4px; padding: 16px 44px 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.psvc:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.psvc b { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.psvc span { font-size: 13.5px; color: var(--ink-3); }
.psvc i { position: absolute; top: 16px; right: 16px; color: var(--accent); }
.post__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; max-width: 1032px; margin: clamp(56px, 7vw, 88px) auto 0; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--ink); color: #fff; }
.post__cta h2 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.035em; font-weight: 600; }
.post__cta p { max-width: 56ch; margin-top: 8px; color: rgba(255,255,255,.72); }
.post__cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.post__cta .btn--light { background: #fff; }
.btn--ghost-light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); }
.post__more { margin-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(72px, 9vw, 128px); }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
  .post__grid, .post__after { grid-template-columns: minmax(0, 720px); }
  .post__after > * { grid-column: 1; }
  .post__side { position: static; }
  .toc { padding: 14px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
  .toc summary { margin: 0; font-size: 14px; color: var(--ink); }
  .toc summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--accent); transition: transform .3s var(--ease); }
  .toc[open] summary { margin-bottom: 10px; }
  .toc[open] summary::after { transform: rotate(45deg); }
  .post__promo { display: none; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .post__body { font-size: 17px; }
  .post__cover img { border-radius: 18px; }
  .post__cta { grid-template-columns: 1fr; border-radius: 22px; }
  .post__cta-btns .btn { flex: 1 1 auto; }
}
@media (max-width: 640px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard__img img, .psvc { transition: none; } }
