/* Performance Consulting | style (mobile first) */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-latin-ext-wght-normal.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: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-latin-wght-normal.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;
}

:root {
  --ink: #2B2B2B;
  --soft: #4A4A47;
  --muted: #5E5E5B;
  --paper: #F5F5F3;
  --line: #DEDEDA;
  --line-2: #D6D6D2;
  --accent: #F4CB45;
  --on-dark: #C9C9C5;
  --white: #FFFFFF;
  --radius: 22px;
  --radius-sm: 14px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 10vw, 120px);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible { outline-color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Układ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .muted, .section-dark p { color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-line { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-row .section-head { margin-bottom: 0; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.06; }
.h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 36em; }
.muted { color: var(--muted); }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--muted); }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #EBBE2F; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.text-link { font-weight: 600; display: inline-flex; padding: 10px 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; padding: 8px 0; }
.brand img { height: 30px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; background: none; font-weight: 600; font-size: 15px; cursor: pointer; }
.nav-toggle[aria-expanded="true"] .l1 { transform: translate(0, 4px) rotate(0); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; display: flex; flex-direction: column; }
.site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 500; }
.site-nav li a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .btn { margin-top: 16px; width: 100%; }

/* Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; gap: 32px; align-items: end; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.035em; line-height: 1.03; max-width: 15ch; }
.hero-photo { position: relative; }
.portrait img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 5; background: var(--paper); }
.hero-photo .portrait img { aspect-ratio: 1 / 1; object-position: 50% 18%; }
.creds { display: grid; gap: 16px 32px; margin: 0; padding-top: 24px; margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.creds dt { font-weight: 600; }
.creds dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* Pytania (akordeon) */
.qa-wrap { display: grid; gap: 28px; }
.qa { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.qa-h { font-size: inherit; letter-spacing: 0; }
.qa-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px;
  padding: 16px 20px; text-align: left; font-size: 17px; font-weight: 600; line-height: 1.35; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--white); color: var(--ink);
}
.qa-btn:hover { border-color: var(--ink); }
.qa-btn[aria-expanded="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); border-radius: var(--radius) var(--radius) 0 0; }
.qa-btn[aria-expanded="true"] .qa-v { display: none; }
.qa-icon { flex: 0 0 auto; }
.qa-panel { background: var(--accent); border-radius: 0 0 var(--radius) var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.qa-panel p { font-size: 17px; color: var(--ink); }
.qa-meta { display: grid; gap: 14px 24px; margin: 0; width: 100%; }
.qa-meta dt { font-size: 14px; font-weight: 600; }
.qa-meta dd { margin: 2px 0 0; font-size: 16px; line-height: 1.45; }

/* Zakładki */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--ink); border-radius: 28px; margin-bottom: 28px; }
.tab { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tabpanel[hidden] { display: none; }

/* Listy i kafle */
.rows { display: grid; gap: 0 48px; }
.row-item { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.row-item p { color: var(--muted); font-size: 16px; }
.tiles { display: grid; gap: 16px; }
.tile { background: var(--paper); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.section-paper .tile { background: var(--white); }
.tile-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.tile h3 { font-size: 28px; letter-spacing: -0.02em; }
.tile p { font-size: 16px; color: var(--soft); }
.tile ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--soft); }
.tile li { padding-left: 18px; position: relative; }
.tile li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; }
.checklist { list-style: none; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.checklist li { padding: 16px 0; border-top: 1px solid var(--line); }
.section-dark .checklist, .section-dark .checklist li { border-color: #474745; }

/* Kroki (przewijane na telefonie) */
.steps { list-style: none; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: thin; }
.step { flex: 0 0 min(78vw, 280px); scroll-snap-align: start; background: var(--white); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.section:not(.section-paper) .step { background: var(--paper); }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step p { font-size: 16px; color: var(--muted); }

/* Karty wpisów */
.post-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
.post-grid .post-card { flex: 0 0 min(80vw, 320px); scroll-snap-align: start; }
.post-list { display: grid; gap: 16px; }
.post-card { background: var(--paper); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.post-card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card-cat { font-size: 14px; font-weight: 600; color: var(--muted); }
.post-card-excerpt { color: var(--soft); font-size: 16px; }
.post-card-meta { margin-top: auto; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 600; line-height: 1.35; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 22px; color: var(--soft); max-width: 46em; }

/* Kontakt i formularz */
.contact-grid { display: grid; gap: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; background: var(--white); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }
.section-dark .field input, .section-dark .field select, .section-dark .field textarea { border-color: transparent; }
.field [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.section-dark .field [aria-invalid="true"] { box-shadow: 0 0 0 3px #FFB4AB; }
.field-error { font-size: 14px; color: #B3261E; }
.section-dark .field-error { color: #FFB4AB; }
.consent { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.consent-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.consent-more summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; width: fit-content; padding: 6px 0; }
.consent-more p { margin-top: 8px; }
.section-dark .consent, .section-dark .consent p { color: var(--on-dark); }
.section-dark .consent-check span { color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { font-size: 15px; }
.form-success { background: var(--accent); color: var(--ink); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--ink) !important; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info dl { margin: 0; display: grid; gap: 14px; }
.contact-info dt { font-weight: 600; }
.contact-info dd { margin: 2px 0 0; }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); padding-bottom: 84px; }
.footer-grid { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 34px; width: auto; }
.footer-col h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: 0; }
.footer-col ul { list-style: none; }
.footer-col a, .footer-col .link-btn { display: inline-block; padding: 9px 0; text-decoration: none; color: var(--muted); font-size: 15px; }
.footer-col a:hover, .footer-col .link-btn:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: 14px; }

/* Przyklejony przycisk na telefonie */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: translateY(0); }

/* Baner zgód */
.consent-banner { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; max-height: calc(100vh - 24px); overflow: auto; background: var(--white); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.consent-inner { padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.consent-inner h2 { font-size: 20px; }
.consent-inner p { font-size: 15px; color: var(--soft); }
.consent-options { display: flex; flex-direction: column; gap: 10px; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--soft); cursor: pointer; }
.switch-row input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.switch-row strong { display: block; color: var(--ink); font-size: 15px; }
.consent-actions { display: grid; gap: 8px; }
.consent-actions .btn { width: 100%; }

/* Treść artykułów i stron prawnych */
.page-head { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.035em; line-height: 1.05; max-width: 20ch; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.prose { max-width: 720px; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 2em; letter-spacing: -0.02em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: 20px; color: var(--soft); }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--paper); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-size: .9em; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--muted); margin-top: 16px; }
.article-lead { font-size: clamp(19px, 2vw, 22px); color: var(--soft); max-width: 40em; margin-top: 18px; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; max-width: 720px; padding: 22px; background: var(--paper); border-radius: var(--radius); margin-top: 48px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box p { font-size: 15px; color: var(--soft); }
.cta-band { background: var(--accent); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; }
.legal { max-width: 780px; font-size: 16px; line-height: 1.7; }
.legal h2 { font-size: 22px; margin-top: 2em; margin-bottom: .6em; }
.legal p, .legal li { color: var(--soft); }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: .4em; }
.legal > p + p { margin-top: .9em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; margin-top: 12px; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--paper); }

/* Tablet */
@media (min-width: 720px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .qa-meta { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .rows { grid-template-columns: 1fr 1fr; }
  .creds { grid-template-columns: repeat(3, 1fr); }
  .post-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .consent-banner { left: auto; right: 24px; bottom: 24px; width: 440px; }
  .consent-actions { grid-template-columns: 1fr 1fr; }
  .consent-actions [data-consent-settings], .consent-actions [data-consent-save] { grid-column: 1 / -1; }
  .qa-panel { padding: 26px 28px; }
}

/* Komputer */
@media (min-width: 960px) {
  body { font-size: 17px; }
  .brand img { height: 34px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 28px; }
  .site-nav li a:not(.btn) { padding: 12px 0; border: 0; font-size: 15px; }
  .site-nav .btn { margin: 0; width: auto; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .hero-photo .portrait img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
  .qa-wrap { grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
  .qa-intro { position: sticky; top: 110px; }
  .steps { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .post-grid { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .rows-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
  .post-list { grid-template-columns: repeat(3, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; }
  .site-footer { padding-bottom: 0; }
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .sticky-cta, .consent-banner { display: none !important; }
}
