/* Poradnik PD (/pd-measurement-guide/, /pl/poradnik-mierzenia-pd/) - zmienne kolorów, fonty i .gradient z site.css */

.pd-guide-card { max-width: 1040px; padding: 140px 32px 80px;   /* nagłówek strony jest fixed (100px) */
    box-sizing: border-box; }
.pd-guide { display: block; border: 1px solid var(--gray-200); background: var(--color-white); }

.pd-guide-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 48px; border-bottom: 1px solid var(--gray-200); }
.pd-guide-toolbar .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; padding: 8px 20px; }
.pd-guide-toolbar .button svg, .pd-guide-toolbar .button svg path { fill: none !important; }
.pd-guide-toolbar .button svg { float: none; margin: 0; flex-shrink: 0; }   /* site.css: float + margin-left 25px przesuwały napis */   /* site.css wypełnia path w przyciskach */
@media (hover: hover) {   /* hover jak .button-light: gradientowy napis i ramka, ikona w kolorze marki */
    .pd-guide-toolbar .button:hover svg, .pd-guide-toolbar .button:focus svg { stroke: var(--primary-400); }
}
.pd-guide-badge { padding: 6px 14px; background: var(--primary-25); border: 1px solid var(--primary-100); color: var(--primary-400); letter-spacing: .06em; }
.pd-print-only { display: none; }

.pd-section { padding: 48px; border-bottom: 1px solid var(--gray-100); }
.pd-section:last-child { border-bottom: none; }
.pd-gradient-bg { background: linear-gradient(135deg, rgba(186, 17, 118, .14) 0%, rgba(107, 43, 236, .14) 100%); }

.pd-guide h1 { font-size: 3rem; line-height: 3.75rem; margin: 0 0 24px; }
.pd-guide h2 { font-size: 2rem; line-height: 2.5rem; margin: 0 0 16px; }
.pd-guide h3 { margin: 0; }
.pd-guide .gradient { margin-right: 0; }
.pd-guide p { margin: 0; }
.pd-eyebrow { margin: 0; }
.pd-hr { margin: 12px 0 28px; max-width: 120px; height: 2px; }
.pd-lead { max-width: 760px; margin-bottom: 32px !important; color: var(--gray-700); }
.pd-text { margin-bottom: 28px !important; color: var(--gray-700); }

.pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--color-white); border: 1px solid var(--gray-200); }
.pd-stat { padding: 20px 16px; text-align: center; }
.pd-stat + .pd-stat { border-left: 1px solid var(--gray-200); }
.pd-stat-label { color: var(--gray-500); letter-spacing: .06em; margin-bottom: 4px; }
.pd-stat-value { font-size: 1.75rem; line-height: 2.25rem; }

.pd-figure { display: flex; justify-content: center; background: var(--gray-50); border: 1px solid var(--gray-200); padding: 24px; margin-bottom: 24px; }
.pd-diagram { width: 100%; max-width: 600px; height: auto; }

.pd-callout { position: relative; padding: 20px 24px 20px 30px; background: var(--primary-25); border: 1px solid var(--primary-100); }
.pd-callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--color-gradient); }

.pd-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pd-method { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--gray-200); transition: border-color .2s; }
.pd-method:hover { border-color: var(--primary-100); }
.pd-method p { color: var(--gray-700); }
.pd-tag { align-self: flex-start; padding: 4px 10px; letter-spacing: .06em; }
.pd-tag--gradient { background: var(--color-gradient); color: var(--color-white); }
.pd-tag--magenta { background: var(--secondary-25); border: 1px solid var(--secondary-100); color: var(--secondary-700); }
.pd-tag--purple { background: var(--primary-25); border: 1px solid var(--primary-100); color: var(--primary-400); }

.pd-errors { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.pd-errors li { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: rgba(255, 255, 255, .85); border: 1px solid var(--color-white); }
.pd-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-gradient); color: var(--color-white); font-size: .875rem; }

.pd-blog { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: linear-gradient(135deg, rgba(186, 17, 118, .08) 0%, rgba(107, 43, 236, .08) 100%); border-bottom: none; margin: 48px 48px 0; padding: 32px; border: 1px solid var(--primary-100); }
.pd-blog .pd-eyebrow { margin-bottom: 8px; }
.pd-blog h3 { font-size: 1.5rem; line-height: 2rem; }
.pd-blog-link { display: block; margin-top: 4px; text-decoration: underline; text-decoration-color: rgba(186, 17, 118, .4); text-underline-offset: 4px; }
.pd-blog .button { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; }

.pd-signature { text-align: center; }
.pd-signature .subtitle-1 { margin-bottom: 8px; }
.pd-signature .body-2 { color: var(--gray-600); max-width: 560px; margin: 0 auto; }

@media screen and (max-width: 1200px) {
    .pd-guide-card { padding-top: 112px; }   /* nagłówek 80px */
}
@media screen and (max-width: 900px) {
    .pd-methods { grid-template-columns: 1fr; }
    .pd-guide h1 { font-size: 2.25rem; line-height: 2.875rem; }
    .pd-guide h2 { font-size: 1.625rem; line-height: 2.125rem; }
    .pd-blog { flex-direction: column; text-align: center; }
}
@media screen and (max-width: 600px) {
    .pd-guide-card { padding: 96px 0 48px; }
    .pd-guide { border-left: none; border-right: none; }
    .pd-guide-toolbar { justify-content: space-between; padding: 12px 20px; }
    .pd-section { padding: 32px 20px; }
    .pd-blog { margin: 32px 20px 0; padding: 24px 20px; }
    .pd-stats { grid-template-columns: 1fr; }
    .pd-stat + .pd-stat { border-left: none; border-top: 1px solid var(--gray-100); }
    .pd-figure { padding: 12px; }
    .pd-guide h1 { font-size: 1.875rem; line-height: 2.375rem; }
}

/* Druk / "Zapisz jako PDF": tylko sama ściągawka, bez menu, kontaktu i stopki strony */
@media print {
    @page { size: A4; margin: 12mm; }
    html, body { background: #fff !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    body > *:not(.pd-guide-page) { display: none !important; }   /* np. elementy dokładane przez skrypty */
    .header-container, .cookies-prompt-card, #contact, .footer-card, .back-to-top-button, .pd-no-print { display: none !important; }
    .pd-print-only { display: block; }
    .pd-guide-card { max-width: none; padding: 0; }
    .pd-guide { border: none; }
    .pd-guide-toolbar { justify-content: space-between; padding: 0 0 10px; }
    .pd-guide-logo { width: 110px; height: auto; }
    .pd-section { padding: 22px 24px; }
    .pd-guide h1 { font-size: 2rem; line-height: 2.5rem; }
    .pd-guide h2 { font-size: 1.5rem; line-height: 2rem; }
    .pd-methods { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .pd-method { padding: 16px; }
    .pd-blog { margin: 20px 24px 0; padding: 18px 24px; }
    .pd-figure, .pd-callout, .pd-method, .pd-errors li, .pd-stats, .pd-blog, .pd-signature { break-inside: avoid; page-break-inside: avoid; }
    .pd-guide h2, .pd-text { break-after: avoid; page-break-after: avoid; }
    /* tekst z gradientem (background-clip) Chrome drukuje z ramkami - w druku jednolity kolor marki */
    .pd-guide .gradient { background: none !important; -webkit-text-fill-color: #8a1fb0; color: #8a1fb0; }
    .pd-hero { padding-top: 18px; padding-bottom: 18px; }
    .pd-hr { margin: 8px 0 14px; }
    .pd-guide h1 { margin-bottom: 12px; }
    .pd-lead { margin-bottom: 16px !important; font-size: 1rem; line-height: 1.5rem; }
    .pd-text { margin-bottom: 14px !important; }
    .pd-figure { padding: 10px; margin-bottom: 14px; }
    .pd-diagram { max-width: 480px; }
    .pd-callout { padding: 12px 16px 12px 22px; }
    .pd-stat { padding: 10px; }
    .pd-errors { gap: 8px; margin-top: 12px; }
    .pd-errors li { padding: 10px 14px; }
    .pd-method { gap: 8px; }
    .pd-method h3 { font-size: 1rem; line-height: 1.35rem; }
    .pd-blog { margin-top: 14px; padding: 12px 20px; }
    .pd-blog h3 { font-size: 1.125rem; line-height: 1.5rem; }
    .pd-signature { padding-top: 10px; padding-bottom: 0; }
    .pd-section { padding-top: 16px; padding-bottom: 16px; }
    .pd-guide h2 { margin-bottom: 8px; }
    .pd-blog .pd-eyebrow { display: none; }
    .pd-blog-link { display: inline; margin: 0 0 0 4px; }
    .pd-method { padding: 12px; }
    .pd-method p { font-size: .8125rem; line-height: 1.15rem; }
    .pd-errors li p { font-size: .9375rem; line-height: 1.375rem; }
}
