/* audyt.jflowlabs.pl — system wizualny 1:1 z jflowlabs.pl (app/globals.css), fonty hostowane lokalnie. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-bold.woff2) format('woff2'); }

:root {
  --paper: #f0f1ea; --ink: #191b16; --muted: #60625a; --lime: #dbff5b; --line: #d1d3c9; --white: #fff;
  --stone: #e6e8de; --dark: #1c2019; --dark-line: #42483b; --dark-muted: #adb5a1;
  --bad: #9b1c0c; --bad-bg: #fbe9e5; --mid: #8a5a00; --mid-bg: #fbf1dc; --good: #2f5a00; --good-bg: #ecf6d6;
  --font-display: Barlow, 'Arial Narrow', Impact, sans-serif;
  --font-body: Geist, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  --shell-gutter: clamp(20px, 4.4vw, 70px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 0.94; letter-spacing: -0.025em; text-wrap: balance; }
h3 { text-wrap: balance; }
img, svg { display: block; max-width: 100%; }
code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(25, 27, 22, 0.06); padding: 1px 5px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.shell { max-width: 1440px; margin-inline: auto; padding-inline: var(--shell-gutter); }
.micro { font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; font-size: 14px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-symbol { display: inline-block; width: 1em; height: 1em; }

/* Nagłówek (jak .site-header na jflowlabs.pl) */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header-inner { min-height: 88px; display: flex; align-items: center; gap: 28px; padding-block: 16px; }
.wordmark { display: flex; align-items: center; gap: 7px; margin-right: auto; flex-shrink: 0; }
.wordmark > span { display: inline-flex; align-items: center; font-size: 36px; font-weight: 750; letter-spacing: -2.5px; line-height: 1; white-space: nowrap; }
.wordmark .brand-star { font-size: 30px; margin-left: 4px; }
.wordmark small { font-family: var(--font-mono); font-size: 10px; writing-mode: vertical-rl; letter-spacing: 0.08em; }
.wordmark .wordmark-tag { margin-left: 10px; padding: 3px 7px; background: var(--lime); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 26px; font-size: 14px; }
.desktop-nav a { padding-block: 10px; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { display: inline-flex; gap: 14px; align-items: center; background: var(--ink); color: var(--paper); padding: 14px 20px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nav-cta:hover { background: #373d29; }
.nav-cta-short { display: none; }
@media (max-width: 1080px) { .desktop-nav { display: none; } }
@media (max-width: 560px) {
  .site-header-inner { min-height: 72px; gap: 12px; }
  .nav-cta-full { display: none; } .nav-cta-short { display: inline; }
  .wordmark > span { font-size: 29px; } .wordmark .wordmark-tag { display: none; }
}

/* Przyciski i linki */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 54px; padding: 17px 22px; font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #3b4229; }
.button-light { background: transparent; border-color: var(--ink); }
.button-light:hover { background: var(--lime); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { background: var(--lime); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { background: var(--lime); }

/* Hero (jak .hero na jflowlabs.pl) */
.hero { padding-top: 30px; }
.hero-topline { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 5%; align-items: start; }
.hero-grid > * { min-width: 0; }
.hero-copy { padding-top: 12px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(42px, 5.5vw, 88px); line-height: 0.87; text-transform: uppercase; }
.hero h1 > span { background: var(--lime); padding: 0 0.05em 0.055em; display: inline-block; margin-left: -0.05em; margin-top: 0.05em; }
.hero-lead { font-size: 18px; line-height: 1.55; margin-top: 30px; max-width: 60ch; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-topline > span:last-child { display: none; } }


/* Ciemny panel obok hero (jak .hero-panel) */
.hero-panel { position: relative; background: var(--dark); color: var(--paper); padding: clamp(26px, 3.2vw, 44px); }
.hero-panel > .micro { display: flex; align-items: center; min-height: 44px; padding-right: 60px; margin-bottom: 14px; color: var(--dark-muted); }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--dark-line); font-size: clamp(15px, 1.3vw, 17.5px); line-height: 1.45; }
.hero-panel li::before { content: ''; position: absolute; left: 0; top: 21px; width: 11px; height: 11px; border-radius: 3px; background: var(--lime); }
.hero-panel a { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }
.hero-panel-call { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-family: var(--font-display); font-size: clamp(28px, 3.1vw, 40px); line-height: 1; letter-spacing: -0.02em; color: var(--paper); }
.hero-panel-call span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.hero-panel-call:hover { color: var(--lime); }
.art-stamp { position: absolute; top: clamp(26px, 3.2vw, 44px); right: clamp(26px, 3.2vw, 44px); width: 44px; height: 44px; border-radius: 10px; background: var(--lime); color: var(--ink); display: grid; place-content: center; }
.art-stamp svg { width: 24px; height: 24px; }
.hero-foot { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; margin-top: 28px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.035em; text-transform: uppercase; }

/* Formularz skanu */
.scan-box { margin-top: 30px; }
.scan-row { display: flex; border: 1px solid var(--ink); background: var(--white); }
.scan-input { flex: 1; min-width: 0; border: 0; padding: 16px 18px; font-size: 17px; background: transparent; }
.scan-input:focus { outline: none; }
.scan-row:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.scan-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; background: var(--ink); color: var(--paper); padding: 0 24px; min-height: 58px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.scan-btn:hover { background: #3b4229; }
.scan-btn[disabled] { opacity: 0.6; cursor: progress; }
.scan-note { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.55; }
.scan-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.scan-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c3c8b7; background: transparent; padding: 6px 11px; font-size: 13px; color: var(--ink); }
.chip:hover { background: var(--lime); border-color: var(--ink); }
.turnstile-slot { margin-top: 14px; }
.form-error { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--bad); background: var(--bad-bg); color: #5e1206; font-size: 15px; line-height: 1.55; }
.form-error strong { display: block; margin-bottom: 4px; }
.scan-progress { display: none; margin-top: 18px; padding: 18px 20px; background: var(--dark); color: var(--paper); }
.scan-progress.is-on { display: block; }
.scan-progress ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--dark-muted); }
.scan-progress li.is-done { color: var(--paper); }
.scan-progress li.is-done::before { content: '✓ '; color: var(--lime); }
.scan-progress li.is-now { color: var(--lime); }
.scan-progress li.is-now::before { content: '→ '; }
@media (max-width: 560px) { .scan-row { flex-direction: column; } }

/* Sekcje */
.section { padding-block: clamp(64px, 8vw, 94px); }
.section-top { display: flex; justify-content: space-between; gap: 20px; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-block: 34px 44px; }
.section-heading h2 { font-size: clamp(44px, 5.5vw, 84px); text-transform: uppercase; }
.section-heading h2 span { color: #7b7e71; }
.section-heading > p { line-height: 1.6; color: var(--muted); max-width: 330px; }
@media (max-width: 820px) { .section-heading { flex-direction: column; align-items: start; } }
.lab-section { background: var(--dark); color: var(--paper); }
.lab-section .micro, .lab-section .section-heading > p { color: var(--dark-muted); }
.lab-section .section-heading h2 span { color: #8e9781; }

/* Karty (jak .offer-card) */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.offer-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offer-card { display: flex; flex-direction: column; min-width: 0; background: var(--stone); border-top: 2px solid var(--ink); padding: clamp(22px, 2.4vw, 34px); }
.offer-card h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.04em; line-height: 1.15; margin: 12px 0 14px; }
.offer-card p { font-size: 15px; line-height: 1.65; color: #3f443a; }
.offer-card .text-link { margin-top: auto; padding-top: 18px; }
.offer-facts { margin: 0; }
.offer-facts > div { padding: 12px 0; border-top: 1px solid #c3c8b7; }
.offer-facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.offer-facts dd { margin: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 980px) { .offer-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .offer-grid, .offer-grid.three { grid-template-columns: 1fr; } }


/* Liczby w ciemnym pasie (jak .proof-facts) */
.proof-facts ul { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--dark-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.proof-facts li { display: grid; align-content: start; gap: 6px; min-width: 0; }
.proof-facts strong { font-family: var(--font-display); font-size: clamp(42px, 4.6vw, 66px); line-height: 0.95; color: var(--lime); }
.proof-facts li span { font-size: 14px; line-height: 1.5; color: #d9ddd0; }
@media (max-width: 820px) { .proof-facts ul { grid-template-columns: 1fr 1fr; } }

/* Lista zasad (jak .rules-list) */
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--ink); }
.rules-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: 14px; row-gap: 6px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.rules-number { grid-row: span 2; height: fit-content; padding: 3px 6px; background: var(--lime); font-family: var(--font-mono); font-size: 11px; }
.rules-list h3 { font-size: 18px; font-weight: 550; letter-spacing: -0.02em; line-height: 1.3; }
.rules-list p { font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (max-width: 980px) { .rules-list, .rules-list.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .rules-list, .rules-list.three { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8%; }
.faq-grid h2 { font-size: clamp(40px, 4.7vw, 70px); line-height: 1; text-transform: uppercase; }
.faq-grid h2 span { color: var(--muted); }
.faq-list details { border-top: 1px solid var(--ink); }
.faq-list details:last-child { border-bottom: 1px solid var(--ink); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 18px; font-weight: 550; letter-spacing: -0.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--font-mono); font-size: 20px; line-height: 1; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details > div { padding: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: #3f443a; max-width: 70ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Limonkowa sekcja kontaktu (jak .contact-section) */
.contact-section { background: var(--lime); padding-block: 64px 72px; }
.contact-section h2 { font-size: clamp(48px, 7vw, 112px); text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8%; margin-top: 40px; }
.contact-grid > * { min-width: 0; }
.contact-copy p { font-size: 17px; line-height: 1.65; max-width: 52ch; }
.contact-copy p + p { margin-top: 14px; }
.contact-direct { margin-top: 26px; display: grid; gap: 4px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-direct span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.price-list { margin-top: 26px; border-top: 1px solid #a5ba59; }
.price-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #a5ba59; font-size: 15px; }
.price-list strong { white-space: nowrap; font-weight: 600; }
.contact-form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.field { display: grid; gap: 4px; }
.field > span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; min-width: 0; padding: 12px 0; border: 0; border-bottom: 1px solid #7f9330; background: transparent; font-size: 16px; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #54632b; opacity: 1; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; }
.consent input { margin-top: 3px; accent-color: var(--ink); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--ink); color: var(--paper); border: 0; padding: 18px 23px; min-height: 59px; font-size: 15px; }
.form-submit:hover { background: #383f27; }
.form-success { background: var(--paper); border: 2px solid var(--ink); padding: 24px; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* W jednej kolumnie odstęp w pionie musi być stały: procent liczy się od wysokości siatki, której przeglądarka
   jeszcze nie zna, więc dół formularza wychodził poza limonkową sekcję (np. na kartę „Usuń raport”). */
@media (max-width: 860px) { .contact-grid, .form-grid { grid-template-columns: 1fr; } .contact-grid { gap: 40px; } }


/* Raport: nagłówek, wynik i moduły */
.report-head { padding-top: 34px; }
.report-url { font-size: clamp(30px, 4.2vw, 60px); letter-spacing: -0.03em; overflow-wrap: anywhere; margin-top: 10px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.link-box { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; background: var(--stone); border-left: 4px solid var(--ink); }
.link-box input { flex: 1; min-width: 220px; border: 1px solid #c3c8b7; background: var(--white); padding: 10px 12px; font-family: var(--font-mono); font-size: 13px; }
.link-box p { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.score-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; margin-top: 30px; }
.score-panel { background: var(--dark); color: var(--paper); padding: clamp(24px, 3vw, 40px); }
.score-panel .micro { color: var(--dark-muted); }
.score-big { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-family: var(--font-display); line-height: 0.9; }
.score-big strong { font-size: clamp(96px, 12vw, 168px); color: var(--lime); }
.score-big strong.is-mid { color: #ffd166; }
.score-big strong.is-bad { color: #ff8a6b; }
.score-big span { font-size: 34px; color: var(--dark-muted); }
.score-verdict { margin-top: 14px; font-size: 16px; line-height: 1.6; color: #e3e7da; }
.score-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 22px; background: var(--dark-line); }
.score-counts div { background: var(--dark); padding: 12px 10px; }
.score-counts strong { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1; }
.score-counts span { font-size: 12px; color: var(--dark-muted); }
.module-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.module-list li { display: grid; grid-template-columns: minmax(0, 1fr) 140px 46px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bar { height: 8px; background: #d8dbcf; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.bar.is-mid > i { background: #b37a00; }
.bar.is-bad > i { background: var(--bad); }
.module-list b { font-family: var(--font-mono); font-size: 14px; text-align: right; }
@media (max-width: 920px) { .score-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .module-list li { grid-template-columns: minmax(0, 1fr) 70px 40px; } }
.strengths { margin-top: 24px; padding: 18px 20px; background: var(--good-bg); border-left: 4px solid var(--good); }
.strengths ul { margin: 8px 0 0; padding-left: 18px; font-size: 14.5px; line-height: 1.6; }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 22px; background: var(--dark-line); }
.hours div { background: var(--dark); padding: 12px 10px; }
.hours strong { display: block; font-size: 18px; }
.hours span { font-size: 12px; color: var(--dark-muted); }


/* Raport: lista błędów, tabele, podglądy */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-btn { border: 1px solid #c3c8b7; background: transparent; padding: 8px 13px; font-size: 13.5px; }
.filter-btn[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.findings { display: grid; gap: 14px; }
.finding { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); padding: 20px 22px; }
.finding[hidden] { display: none; }
.finding[data-sev='critical'] { border-left-color: var(--bad); }
.finding[data-sev='warning'] { border-left-color: #c48a00; }
.finding-num { font-family: var(--font-display); font-size: 34px; line-height: 1; color: #6e7166; }
.finding-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 7px; background: var(--stone); }
.tag-critical { background: var(--bad-bg); color: var(--bad); }
.tag-warning { background: var(--mid-bg); color: var(--mid); }
.tag-info { background: #e8ecf3; color: #2c4466; }
.finding h3 { font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.finding p { font-size: 15px; line-height: 1.65; color: #3f443a; margin-top: 8px; }
.finding-snippet { margin-top: 10px; padding: 10px 12px; background: #f6f7f2; border: 1px dashed #c3c8b7; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; color: #4b5043; }
.finding-fix { margin-top: 12px; padding: 12px 14px; background: #f3f8e4; border-left: 3px solid #8fae2c; font-size: 14.5px; line-height: 1.6; }
.finding-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.finding-foot a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
@media (max-width: 560px) { .finding { grid-template-columns: 1fr; gap: 6px; } .finding-num { font-size: 26px; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: #f6f7f2; }
.data-table a { text-decoration: underline; text-underline-offset: 3px; }
.ok { color: var(--good); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }
.warn { color: var(--mid); font-weight: 600; }
.serp { background: var(--white); border: 1px solid var(--line); padding: 18px 20px; font-family: Arial, sans-serif; }
.serp-url { font-size: 13px; color: #4d5156; overflow-wrap: anywhere; }
.serp-title { font-size: 20px; color: #1a0dab; line-height: 1.3; margin: 4px 0; }
.serp-desc { font-size: 14px; color: #4d5156; line-height: 1.58; }
.og-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.og-card .og-empty { aspect-ratio: 1.91 / 1; display: grid; place-content: center; padding: 20px; text-align: center; background: var(--stone); color: var(--muted); font-size: 14px; }
.og-card .og-img { aspect-ratio: 1.91 / 1; display: grid; place-content: center; padding: 20px; text-align: center; background: var(--dark); color: var(--lime); font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.og-card div.og-text { padding: 12px 14px; }
.og-card strong { display: block; font-size: 15px; }
.og-card small { color: var(--muted); font-size: 13px; }
details.tech { background: var(--white); border: 1px solid var(--line); padding: 16px 20px; }
details.tech summary { cursor: pointer; font-weight: 600; }
details.tech textarea { width: 100%; min-height: 160px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); background: #f6f7f2; font-family: var(--font-mono); font-size: 12.5px; }
.badge-box { margin-top: 26px; padding-top: 20px; border-top: 1px solid #a5ba59; font-size: 14px; }
.badge-box code { display: block; margin-top: 8px; padding: 10px; background: var(--paper); overflow-wrap: anywhere; font-size: 12px; }


/* Poradnik: indeks i artykuł */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; line-height: 1.6; padding-top: 28px; color: var(--muted); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; }
.page-head { padding-block: 24px 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(40px, 5.6vw, 84px); text-transform: uppercase; line-height: 0.92; margin-top: 14px; max-width: 20ch; }
.page-head p.lead { font-size: 18px; line-height: 1.6; color: #3f443a; max-width: 64ch; margin-top: 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--ink); }
.guide-grid a { display: grid; gap: 8px; align-content: start; padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.guide-grid a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.guide-grid h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.guide-grid p { font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 980px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .guide-grid { grid-template-columns: 1fr; } }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 6%; padding-block: 40px 20px; }
.article-layout > * { min-width: 0; }
.article-answer { font-size: 19px; line-height: 1.6; padding: 22px 24px; background: var(--white); border-left: 4px solid var(--lime); box-shadow: inset 0 0 0 1px var(--line); }
.key-points { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.key-points li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; }
.key-points li::before { content: ''; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink); }
.prose h2 { font-family: var(--font-body); font-size: clamp(24px, 2.4vw, 31px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.2; margin: 46px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 26px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: #2f3329; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose .table-scroll { overflow-x: auto; margin: 18px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--white); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.prose th { background: #f6f7f2; font-weight: 600; }
.prose pre { margin: 16px 0; padding: 14px 16px; background: var(--dark); color: #e6eadb; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.callout { margin: 22px 0; padding: 18px 20px; background: var(--stone); border-top: 2px solid var(--ink); font-size: 15.5px; line-height: 1.65; }
.article-aside { position: sticky; top: 110px; align-self: start; display: grid; gap: 18px; }
.aside-card { background: var(--dark); color: var(--paper); padding: 22px; }
.aside-card h2 { font-size: 30px; text-transform: uppercase; line-height: 0.95; margin: 10px 0 12px; }
.aside-card .micro { color: var(--dark-muted); }
.aside-card p { font-size: 14px; line-height: 1.6; color: #d9ddd0; }
.aside-card .button { margin-top: 16px; width: 100%; background: var(--lime); color: var(--ink); }
.aside-card .button:hover { background: #c9ee44; }
.toc { border-top: 1px solid var(--ink); }
.toc a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sources { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.sources ol { padding-left: 20px; }
.sources li { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.sources a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.author-box { margin-top: 36px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); }
.author-box .avatar { width: 54px; height: 54px; border-radius: 12px; background: var(--lime); display: grid; place-content: center; font-weight: 750; font-size: 22px; letter-spacing: -1px; }
.author-box p { font-size: 14px; line-height: 1.6; color: #3f443a; }
.author-box a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; gap: 32px; } .article-aside { position: static; } }


/* Stopka (jak .footer na jflowlabs.pl) */
.footer { padding-top: 56px; margin-top: 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-home { font-family: var(--font-mono); font-size: 12px; padding-block: 8px; }
.footer-top p { font-size: 13px; color: var(--muted); }
.footer-wordmark { display: flex; align-items: center; gap: 0.14em; max-width: 100%; overflow: hidden; margin-block: 18px 30px; font-size: clamp(76px, 14vw, 180px); font-weight: 700; letter-spacing: -0.07em; line-height: 1.15; white-space: nowrap; }
.footer-wordmark .footer-wordmark-mark { font-size: 0.5em; display: inline-flex; align-items: center; flex-shrink: 0; letter-spacing: 0; }
.footer-wordmark .footer-wordmark-labs { font-size: 0.3em; letter-spacing: -0.02em; align-self: flex-end; padding-bottom: 0.32em; margin-left: 0.12em; }
@media (max-width: 700px) { .footer-wordmark { font-size: clamp(58px, 20vw, 118px); } }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; border-top: 1px solid var(--line); padding-block: 28px; font-size: 13.5px; line-height: 1.7; }
.footer-cols .micro { display: block; margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-cols a { text-decoration: underline; text-underline-offset: 4px; }
.footer-cols p { color: var(--muted); }
.footer-cols address { font-style: normal; margin-top: 8px; }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 22px; font-size: 12px; color: var(--muted); }
@media (max-width: 920px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }

/* ===================================================================== */
/* Uzupełnienia audytowni (komponenty spoza jflowlabs.pl, w tym samym stylu) */

[hidden] { display: none !important; }
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
@media (max-width: 700px) {
  :root { --shell-gutter: clamp(16px, 5vw, 24px); }
  .micro { font-size: 11px; }
  .hero h1 { overflow-wrap: anywhere; }
}
@media (max-width: 420px) { .hero h1 { font-size: 40px; } .section-heading h2 { font-size: 40px; } .page-head h1 { font-size: 38px; } }

/* Fokus widoczny także na ciemnym tle */
.lab-section :focus-visible, .score-panel :focus-visible, .aside-card :focus-visible, .hero-panel :focus-visible,
.scope-box-dark :focus-visible, .scan-progress :focus-visible { outline-color: var(--lime); }
.button:focus-visible, .scan-btn:focus-visible, .form-submit:focus-visible, .filter-btn:focus-visible { outline-offset: 3px; }

/* Nagłówek: menu na telefonie (bez JavaScriptu, <details>) */
.mobile-menu { display: none; position: static; }
.mobile-menu > summary { list-style: none; display: grid; place-content: center; width: 48px; height: 48px; cursor: pointer; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu-icon, .mobile-menu-icon::before, .mobile-menu-icon::after { display: block; width: 22px; height: 2px; background: var(--ink); content: ''; }
.mobile-menu-icon { position: relative; }
.mobile-menu-icon::before { position: absolute; top: -7px; }
.mobile-menu-icon::after { position: absolute; top: 7px; }
.mobile-menu[open] .mobile-menu-icon { background: transparent; }
.mobile-menu[open] .mobile-menu-icon::before { top: 0; transform: rotate(45deg); }
.mobile-menu[open] .mobile-menu-icon::after { top: 0; transform: rotate(-45deg); }
.mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); padding: 10px var(--shell-gutter) 26px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 25px rgba(25, 27, 22, 0.09); }
.mobile-menu nav a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.mobile-menu nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; }
.site-header-inner { position: relative; }
@media (max-width: 1080px) { .mobile-menu { display: block; } }
.wordmark .wordmark-tag { align-self: center; }

/* Przyciski: warianty */
.button { text-decoration: none; }
.button-small { min-height: 44px; padding: 10px 16px; gap: 14px; font-size: 13.5px; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #c9ee44; }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: left; }
.inline-link { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.inline-link:hover { background: var(--lime); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Formularz adresu: wersja wąska (pasek boczny, ramka w artykule) */
.scan-box-compact { margin-top: 16px; }
.scan-box-compact .scan-row { flex-direction: column; }
.scan-box-compact .scan-input { padding: 13px 14px; font-size: 16px; }
.scan-box-compact .scan-btn { min-height: 50px; }
.aside-card .scan-row { border-color: var(--paper); }
.aside-card .scan-btn { background: var(--lime); color: var(--ink); }
.aside-card .scan-btn:hover { background: #c9ee44; }
.aside-card .scan-input { color: var(--ink); }

/* Formularz zamówienia */
.order-box { min-width: 0; }
.field select { width: 100%; min-width: 0; padding: 12px 0; border: 0; border-bottom: 1px solid #7f9330; background: transparent; font-size: 16px; color: var(--ink); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.field select:focus { outline: none; border-bottom: 2px solid var(--ink); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.field [aria-invalid='true'] { border-bottom: 2px solid var(--bad); }
.form-note { font-size: 13px; line-height: 1.5; }
.contact-form .form-error { margin-top: 0; }
.form-success p { font-size: 15px; line-height: 1.6; }
.form-success a { text-decoration: underline; text-underline-offset: 3px; }
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6%; align-items: end; padding: clamp(24px, 3vw, 40px); background: var(--stone); border-top: 2px solid var(--ink); }
.cta-band h2 { font-size: clamp(30px, 3.4vw, 48px); text-transform: uppercase; margin-top: 10px; }
.cta-band .scan-box { margin-top: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; gap: 18px; } }

/* Pasek zgody: niski, przyklejony do dołu, przyciski równej wielkości. Dopóki jest widoczny, app.js daje
   stronie klasę consent-open i --consent-h (wysokość paska), więc strona ma od dołu tyle miejsca, ile on zajmuje. */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); border-top: 1px solid var(--ink); box-shadow: 0 -10px 24px rgba(25, 27, 22, 0.08); }
.consent-copy { flex: 1 1 100%; min-width: 0; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.consent-title { color: var(--ink); font-weight: 600; }
.consent-policy-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.consent-actions { display: flex; gap: 8px; flex: 1 1 100%; }
.consent-button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center; }
.consent-button:hover { background: #3b4229; }
.consent-status { flex: 1 1 100%; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.consent-status:empty { display: none; }
html.consent-open { scroll-padding-bottom: calc(var(--consent-h, 112px) + 16px); }
html.consent-open body { padding-bottom: var(--consent-h, 112px); }
/* Komputer: treść paska ma szerokość strony (jak .shell, najwyżej 1440 px, wyśrodkowana), więc przyciski stoją
   pod treścią, a nie przy samej krawędzi szerokiego okna. Gdy miejsca brakuje, przyciski schodzą do drugiego wiersza
   zamiast wychodzić poza ekran (Brave na szerokim ekranie ucinał „Tylko niezbędne”). */
@media (min-width: 720px) {
  .consent-banner { padding: 10px max(var(--shell-gutter), calc((100% - 1440px) / 2 + var(--shell-gutter))) calc(10px + env(safe-area-inset-bottom)); }
  .consent-copy { flex: 1 1 420px; font-size: 13px; }
  .consent-actions { flex: 0 0 auto; margin-left: auto; }
  .consent-button { flex: 0 0 210px; white-space: nowrap; }
  .consent-status { flex: 1 1 100%; }
  html.consent-open { scroll-padding-bottom: calc(var(--consent-h, 66px) + 16px); }
  html.consent-open body { padding-bottom: var(--consent-h, 66px); }
}

/* Sekcje pomocnicze */
.section-tight { padding-block: clamp(36px, 4.5vw, 56px); }
.block-title { font-family: var(--font-body); font-size: clamp(24px, 2.4vw, 32px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.2; margin-bottom: 14px; text-transform: none; }
.block-lead { color: var(--muted); max-width: 70ch; margin-bottom: 18px; font-size: 15.5px; }
.offer-card-strong { background: var(--dark); color: var(--paper); border-top-color: var(--lime); }
.offer-card-strong .micro, .offer-card-strong .offer-facts dt { color: var(--dark-muted); }
.offer-card-strong .offer-facts > div { border-top-color: var(--dark-line); }
.offer-card-strong .text-link:hover { color: var(--ink); }
.offer-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rules-list p .inline-link { margin-left: 2px; }

/* Przykładowy raport na stronie głównej */
.sample-report { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.sample-score { border: 1px solid var(--dark-line); padding: clamp(22px, 2.6vw, 34px); }
.sample-score .score-verdict { margin-bottom: 18px; }
.module-list-dark { border-top-color: var(--dark-line); }
.module-list-dark li { border-bottom-color: var(--dark-line); font-size: 14px; grid-template-columns: minmax(0, 1fr) 90px 34px; }
.module-list-dark .bar { background: #3a4034; }
.module-list-dark .bar > i { background: var(--lime); }
.module-list-dark .bar.is-mid > i { background: #ffd166; }
.module-list-dark .bar.is-bad > i { background: #ff8a6b; }
.lab-section .finding { color: var(--ink); }
@media (max-width: 920px) { .sample-report { grid-template-columns: 1fr; } }

/* Paski wyników: szerokość klasą (CSP bez stylów inline) */
.bar > i.w-0 { width: 0; } .bar > i.w-5 { width: 5%; } .bar > i.w-10 { width: 10%; } .bar > i.w-15 { width: 15%; }
.bar > i.w-20 { width: 20%; } .bar > i.w-25 { width: 25%; } .bar > i.w-30 { width: 30%; } .bar > i.w-35 { width: 35%; }
.bar > i.w-40 { width: 40%; } .bar > i.w-45 { width: 45%; } .bar > i.w-50 { width: 50%; } .bar > i.w-55 { width: 55%; }
.bar > i.w-60 { width: 60%; } .bar > i.w-65 { width: 65%; } .bar > i.w-70 { width: 70%; } .bar > i.w-75 { width: 75%; }
.bar > i.w-80 { width: 80%; } .bar > i.w-85 { width: 85%; } .bar > i.w-90 { width: 90%; } .bar > i.w-95 { width: 95%; }
.bar > i.w-100 { width: 100%; }
.bar > i { right: auto; }

/* Raport */
.report-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge-full { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--ink); color: var(--lime); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.report-url { text-transform: none; }
.report-meta a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.notice-success { margin-top: 18px; padding: 14px 18px; background: var(--good-bg); border-left: 4px solid var(--good); font-size: 15px; }
.notice-success a { text-decoration: underline; text-underline-offset: 3px; }
.link-box .button { flex-shrink: 0; }
.score-verdict p + p { margin-top: 8px; }
.score-panel .hours { margin-top: 1px; }
.score-panel .hours strong { font-size: 16px; }
.module-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.strengths strong { font-size: 15px; }
.finding-why { color: #2f3329; }
.finding-snippet { white-space: pre-wrap; }
.finding-foot span { overflow-wrap: anywhere; }
.table-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.data-table td { overflow-wrap: break-word; min-width: 80px; }
.data-table td:first-child { min-width: 160px; }
/* Adresy mogą się łamać w dowolnym miejscu; zwykłe słowa (tytuł, H1) tylko na granicy słowa. */
.data-table .data-url { overflow-wrap: anywhere; }
/* Telefon: każdy wiersz to karta (adres, pod nim „Kod”, „Tytuł”… z etykietą z data-label) zamiast sześciu
   wąskich kolumn, w których słowa łamały się w połowie. Role ARIA w HTML zostawiają czytnikom ekranu tabelę. */
@media screen and (max-width: 640px) {
  .table-wrap { overflow-x: visible; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .data-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; min-width: 0; padding: 4px 0; border-bottom: 0; }
  .data-table td:first-child { display: block; min-width: 0; padding: 0 0 8px; font-size: 15px; }
  .data-table td[data-label]::before { content: attr(data-label); font-family: var(--font-mono); font-size: 11px; line-height: 20px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
  .data-table td[data-label]:empty { display: none; }
}
.empty-box { padding: 24px; background: var(--good-bg); border-left: 4px solid var(--good); }
.empty-box h3 { font-size: 20px; margin-bottom: 6px; }
.scope-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.scope-box { background: var(--stone); border-top: 2px solid var(--ink); padding: clamp(22px, 2.6vw, 34px); min-width: 0; }
.scope-box h2 { font-family: var(--font-body); font-size: clamp(22px, 2vw, 28px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; margin: 10px 0 12px; text-transform: none; }
.scope-box p { font-size: 15px; line-height: 1.65; color: #3f443a; }
.scope-box p + p { margin-top: 10px; }
.scope-box-dark { background: var(--dark); color: var(--paper); border-top-color: var(--lime); }
.scope-box-dark .micro { color: var(--dark-muted); }
.scope-box-dark .button { margin-top: 20px; }
.check-list { list-style: none; margin: 12px 0 0; padding: 0; }
.check-list li { position: relative; padding: 9px 0 9px 24px; border-top: 1px solid var(--dark-line); font-size: 15px; line-height: 1.5; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); }
.price-list-dark { border-top-color: var(--dark-line); }
.price-list-dark > div { border-bottom-color: var(--dark-line); }
@media (max-width: 860px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-grid > :only-child { grid-column: 1 / -1; }
.delete-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); background: var(--white); }
.delete-box p { color: var(--muted); font-size: 15px; max-width: 60ch; }
.delete-box .block-title { margin-bottom: 6px; }
.delete-box .button-light:hover { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.contact-section .order-box { align-self: start; }

/* Strona postępu skanu */
.scan-page { min-height: 52vh; border-bottom: 0; }
.scan-runner { margin-top: 26px; max-width: 760px; padding: clamp(20px, 3vw, 34px); background: var(--dark); color: var(--paper); }
.scan-target { font-size: 15px; color: var(--dark-muted); overflow-wrap: anywhere; }
.scan-target strong { color: var(--paper); font-weight: 600; }
.scan-steps { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--dark-line); }
.scan-steps li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--dark-line); font-size: 15.5px; line-height: 1.5; color: var(--dark-muted); }
.scan-steps li::before { content: ''; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; border: 1px solid var(--dark-muted); border-radius: 3px; }
.scan-steps li.is-done { color: var(--paper); }
.scan-steps li.is-done::before { background: var(--lime); border-color: var(--lime); }
.scan-steps li.is-now { color: var(--lime); }
.scan-steps li.is-now::before { border-color: var(--lime); animation: scan-pulse 1.1s ease-in-out infinite; }
.scan-steps li.is-failed { color: #ffb4a3; }
.scan-steps li.is-failed::before { background: #ff8a6b; border-color: #ff8a6b; }
.step-extra { font-family: var(--font-mono); font-size: 13px; }
.scan-hint { margin-top: 14px; font-size: 14px; color: var(--dark-muted); }
.scan-runner .form-error { margin-top: 18px; }
.scan-runner .form-error p { margin-top: 4px; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.error-actions .text-link { color: #5e1206; }
.scan-start { max-width: 760px; }
.scan-start .form-error { margin: 0 0 18px; }
@keyframes scan-pulse { 50% { background: var(--lime); } }

/* Poradnik, metoda i dokumenty */
.guide-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .guide-grid-two { grid-template-columns: 1fr; } }
.guide-grid .micro { margin-bottom: 2px; }
.related h2, .jflow-links h2 { margin-top: 46px; }
.jflow-links ul { padding-left: 20px; }
.callout p { font-size: 15.5px; line-height: 1.65; }
.callout-scan { background: var(--dark); color: var(--paper); border-top-color: var(--lime); }
.callout-scan p { color: #e3e7da; }
.callout-scan .scan-row { border-color: var(--paper); }
.callout-scan .scan-btn { background: var(--lime); color: var(--ink); }
.prose .callout a, .prose .faq-list a { text-decoration: underline; }
.prose .faq-list { margin-top: 10px; }
.prose .faq-list summary { font-size: 17px; }
.prose .key-points { margin: 22px 0 0; padding-left: 0; }
.prose .key-points li { margin-top: 0; padding-left: 26px; }
.prose .key-points li::before { top: 21px; }
.prose .article-answer { font-size: clamp(17px, 1.5vw, 19px); }
.doc-version { margin-top: 16px; font-size: 13px; color: var(--muted); }
.legal h2 { scroll-margin-top: 110px; }
.prose section { scroll-margin-top: 110px; }
.prose .sources h2 { font-size: 20px; margin-top: 0; }
.prose .sources li { font-size: 14px; }
.author-box .avatar { color: var(--ink); }

/* Zgoda przy formularzu skanu (kontrakt pkt 0.4) i błędy pod polami */
.scan-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.scan-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.scan-consent label { cursor: pointer; }
.scan-consent a { text-decoration: underline; text-underline-offset: 3px; }
.scan-consent a:hover { background: var(--lime); color: var(--ink); }
.scan-consent input[aria-invalid='true'] { outline: 2px solid var(--bad); outline-offset: 2px; }
.field-error { margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--bad); font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--bad); }
.field-error:empty { display: none; }
.scan-row:has(.scan-input[aria-invalid='true']) { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.aside-card .scan-consent, .callout-scan .scan-consent { color: #e3e7da; font-size: 13.5px; }
.aside-card .scan-consent input, .callout-scan .scan-consent input { accent-color: var(--lime); }
.aside-card .field-error, .callout-scan .field-error { color: #ffb4a3; border-left-color: #ff8a6b; }
.cta-band .scan-consent { margin-top: 10px; }

/* Hero strony głównej */
.hero-panel li strong { color: var(--lime); font-weight: 600; }

/* Raport nad zgięciem: wynik, diagnoza, 3 najważniejsze poprawki */
.report-expiry { color: var(--ink); font-weight: 600; }
.verdict-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 24px; margin-top: 28px; align-items: stretch; }
.verdict-grid > * { min-width: 0; }
.verdict-panel { display: flex; flex-direction: column; }
.verdict-text { margin-top: 16px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; font-weight: 550; letter-spacing: -0.015em; color: var(--paper); max-width: 34ch; }
.score-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #b9bcae; max-width: 46ch; }
.score-note a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.verdict-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 24px; }
.verdict-actions .text-link { color: var(--paper); }
.verdict-actions .text-link:hover { color: var(--ink); }
.top-panel { background: var(--white); border-top: 2px solid var(--ink); padding: clamp(22px, 2.6vw, 34px); box-shadow: inset 0 0 0 1px var(--line); }
.top-panel .block-title { margin-bottom: 6px; }
.top-panel .empty-box .block-title { font-size: 22px; }
.top-list { list-style: none; margin: 0; padding: 0; }
.top-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.top-item:last-child { border-bottom: 0; padding-bottom: 0; }
.top-num { height: fit-content; padding: 3px 7px; background: var(--lime); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.top-item h3, .top-item h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.top-item h3 a, .top-item h4 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.top-item h3 a:hover, .top-item h4 a:hover { background: var(--lime); }
.top-item p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: #3f443a; }
.top-item .top-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.top-meta strong { color: var(--ink); font-weight: 600; }
@media (max-width: 920px) { .verdict-grid { grid-template-columns: 1fr; } }

/* Raport: obszary (SEO, GEO, szybkość, bezpieczeństwo, prawo, tekst, dostępność) */
.area-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.area-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--good); padding: 18px 18px 16px; }
.area-card.is-mid { border-top-color: #c48a00; }
.area-card.is-bad { border-top-color: var(--bad); }
.area-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; }
.area-state { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; background: var(--good-bg); color: var(--good); }
.area-card.is-mid .area-state { background: var(--mid-bg); color: var(--mid); }
.area-card.is-bad .area-state { background: var(--bad-bg); color: var(--bad); }
.area-card h3, .area-card h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.area-score { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); line-height: 0.95; }
.area-score strong { font-size: 46px; }
.area-score span { font-size: 18px; color: var(--muted); }
.area-card .bar { margin-top: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.checks i { width: 10px; height: 10px; border-radius: 2px; background: #8fae2c; }
.checks i.c-bad { background: var(--bad); }
.checks i.c-tip { background: #8aa0c4; }
.area-pass { font-size: 13.5px; line-height: 1.45; margin-top: 4px; }
.area-counts { font-size: 13px; line-height: 1.45; color: var(--muted); }
.area-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.area-card.is-skipped { border-top-color: var(--line); background: transparent; }
.area-card.is-skipped .area-state { background: var(--white); color: var(--muted); border: 1px solid var(--line); }
.area-skip { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.language-note { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--ink); background: var(--white); font-size: 14.5px; line-height: 1.55; max-width: 72ch; }
#obszary .strengths { margin-top: 20px; }
@media (max-width: 1100px) { .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .area-grid { gap: 10px; }
  .area-card { padding: 14px 12px 12px; }
  .area-card h3, .area-card h4 { font-size: 15px; }
  .area-score strong { font-size: 38px; }
}
@media (max-width: 340px) { .area-grid { grid-template-columns: 1fr; } }

/* Raport: blok oferty na limonkowym tle */
.offer-section h2 { max-width: 16ch; }
.offer-sub { font-size: clamp(20px, 1.9vw, 26px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 12px; }
.offer-checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid #a5ba59; }
.offer-checks li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid #a5ba59; font-size: 15.5px; line-height: 1.55; }
.offer-checks li::before { content: ''; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
.offer-note { font-size: 14.5px; line-height: 1.6; margin-top: 16px; max-width: 56ch; }
.offer-form .offer-note { margin: 0 0 18px; }
.offer-form { min-width: 0; }

/* Przykładowy raport na stronie głównej: „zrzut” raportu na ciemnym pasie */
.sample-frame { background: var(--paper); color: var(--ink); padding: clamp(16px, 2.4vw, 30px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.sample-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sample-frame .verdict-grid { margin-top: 18px; }
.sample-frame .area-grid { margin-top: 18px; }
.lab-section .sample-frame .micro { color: var(--muted); }
.lab-section .sample-frame .score-panel .micro { color: var(--dark-muted); }

/* Ruch ograniczony na życzenie użytkownika */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Druk raportu do PDF: bez menu, formularzy i przycisków, wszystkie poprawki widoczne */
/* Wydruk i „Zapisz jako PDF” (A4). Chrome nie trzyma elementów siatki w całości na jednej stronie (break-inside
   w gridzie nie działa), więc na papierze wynik i „3 najważniejsze” stoją jedno pod drugim, karty obszarów to
   bloki inline-block (te się nigdy nie dzielą), a poprawki to zwykła lista bloków. */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .site-header, .footer, .no-print, .skip-link, .consent-banner, .contact-section, .scan-box, .filter-bar, .mobile-menu, .cta-actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .shell { max-width: none; padding: 0; }
  .report-head { padding-top: 0; }
  .report-url { font-size: 26pt; }
  .score-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .score-panel, .lab-section, .scope-box-dark { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .score-panel .micro, .score-verdict, .score-counts span, .hours span { color: #000 !important; }
  .score-counts, .hours { background: #000; }
  .score-counts div, .hours div { background: #fff; }
  .score-big strong, .score-big strong.is-mid, .score-big strong.is-bad { color: #000 !important; }
  .bar > i { background: #000 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .finding[hidden] { display: grid !important; }
  .finding, .scope-box, .data-table tr, .area-card, .top-item, .strengths, .empty-box { break-inside: avoid; }
  h2, h3, .block-title { break-after: avoid; }
  /* Wynik nad „3 najważniejszymi”: obok siebie prawa kolumna przechodziła na drugą stronę, a lewa ramka
     rozciągała się za nią i zostawiała pustą ramkę na pół strony. */
  .verdict-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
  .score-big strong { font-size: 56pt; }
  .score-big span { font-size: 18pt; }
  .verdict-text { color: #000 !important; }
  .score-note, .score-note a { color: #000 !important; }
  .top-panel { box-shadow: none; border: 1px solid #000; }
  /* Karty obszarów po cztery w wierszu jako inline-block: przeglądarka przenosi całą kartę na następną stronę.
     Wiersz kart to wiersz tekstu, więc domyślne orphans i widows (2) przenosiły całą siatkę z dwóch wierszy
     na następną stronę i zostawiały pół pustej strony. Jeden wiersz na dole strony jest w porządku. */
  .area-grid { display: block; font-size: 0; orphans: 1; widows: 1; }
  .area-card { display: inline-block; vertical-align: top; width: calc((100% - 24px) / 4); margin: 0 8px 8px 0; font-size: 10.5pt; border: 1px solid #000; }
  .area-card:nth-child(4n) { margin-right: 0; }
  .checks i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .findings { display: block; }
  .findings > .finding { margin-bottom: 10px; }
  .finding { border: 1px solid #999; border-left-width: 4px; }
  .section-tight { padding-block: 10pt; }
  a { color: #000; }
  .table-wrap { overflow: visible; border: 0; }
  .data-table thead { display: table-header-group; }
}
