/*!
 * Kredeo Biznes — styl.css
 * Arkusz serwisu. Ładowany po lm.css (tablice LeadMatrix), więc nadpisania klas lm-* działają kolejnością;
 * dodatkowo używamy selektora z rodzicem (.kb-oferty .lm-table). Prefiks własnych klas: kb-.
 */

/* 1. Czcionka: Archivo (OFL), plik zmienny — grubość 400–800, szerokość 62–100% */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
  src: url("/czcionki/archivo-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: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
  src: url("/czcionki/archivo-pl.woff2") format("woff2");
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}

/* 2. Zmienne */
:root {
  --kb-noc: #1b2a70;
  --kb-granat: #233986;
  --kb-turkus: #59baa5;
  --kb-turkus-jasny: #93dccb;
  --kb-turkus-ciemny: #12665a;
  --kb-lod: #eaf0fa;
  --kb-bialy: #ffffff;
  --kb-tekst: #121b45;
  --kb-szary: #4d5878;
  --kb-linia: #d3dbea;
  --kb-bursztyn: #f0b43c;
  --kb-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kb-wnetrze: 1280px;
}

/* 3. Podstawy */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--kb-bialy); color: var(--kb-tekst); font: 400 17px/1.6 var(--kb-font); }
img, picture { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--kb-granat); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--kb-bursztyn);
  outline-offset: 3px;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
.kb-wnetrze { max-width: var(--kb-wnetrze); margin: 0 auto; padding: 0 24px; }
.kb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kb-waski { font-stretch: 62%; }
.kb-skok { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--kb-bursztyn); color: var(--kb-tekst); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.kb-skok:focus { top: 12px; }

/* 4. Nagłówek (wstawka) */
.kb-naglowek { background: var(--kb-noc); color: #fff; }
.kb-naglowek__wnetrze { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; min-height: 80px; padding-top: 12px; padding-bottom: 12px; }
.kb-logo { display: inline-flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.kb-logo img { height: 30px; width: auto; }
.kb-logo__biznes { font-stretch: 62%; font-weight: 800; font-size: 30px; line-height: 0.8; color: var(--kb-turkus-jasny); padding-bottom: 1px; }
.kb-menu { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.kb-menu a { display: inline-block; padding: 6px 0; color: #fff; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.kb-menu a:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.kb-menu a[aria-current="page"] { border-bottom-color: var(--kb-turkus); }
@media (max-width: 939px) {
  .kb-naglowek__wnetrze { min-height: 64px; }
  .kb-logo img { height: 24px; }
  .kb-logo__biznes { font-size: 24px; }
  .kb-menu { gap: 2px 18px; font-size: 15px; }
}

/* 5. Okruszki */
.kb-okruszki { background: var(--kb-lod); font-size: 14px; }
.kb-okruszki ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 12px 0; }
.kb-okruszki li + li::before { content: "/"; margin: 0 10px; color: var(--kb-szary); }
.kb-okruszki [aria-current="page"] { color: var(--kb-szary); }

/* 6. Otwarcie */
.kb-otwarcie { background: var(--kb-noc); color: #fff; padding: 56px 0 64px; }
.kb-otwarcie__siatka { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.kb-otwarcie h1 { font-stretch: 62%; font-weight: 800; font-size: clamp(52px, 8.4vw, 132px); line-height: 0.9; }
.kb-otwarcie__wstep { font-size: 20px; color: #dbe3f6; max-width: 46ch; margin: 28px 0 0; }
.kb-otwarcie__rola { margin: 18px 0 0; font-size: 15px; color: #b5c1e4; max-width: 52ch; }
.kb-otwarcie__obraz { margin: 0; }
.kb-otwarcie__obraz img { width: 100%; border-radius: 6px; }

.kb-otwarcie--jasne { background: var(--kb-lod); color: var(--kb-tekst); padding: 40px 0 48px; }
.kb-otwarcie--jasne h1 { font-size: clamp(44px, 6.4vw, 96px); }
.kb-otwarcie--jasne .kb-otwarcie__wstep { color: var(--kb-tekst); }
.kb-otwarcie--jasne .kb-otwarcie__rola { color: var(--kb-szary); }
.kb-otwarcie--jasne .kb-otwarcie__obraz img { mix-blend-mode: multiply; max-width: 420px; margin-left: auto; }
.kb-skroty { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 24px 0 0; padding: 0; font-weight: 600; }

/* 7. Lista kontrolna */
.kb-lista-sekcja { background: var(--kb-noc); color: #fff; padding: 8px 0 72px; }
.kb-lista-sekcja h2 { font-stretch: 62%; font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; margin-bottom: 20px; }
.kb-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
.kb-lista li { display: grid; align-content: start; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.kb-lista svg { width: 44px; height: 36px; }
.kb-lista strong { display: block; font-size: 21px; line-height: 1.2; }
.kb-lista p { margin: 4px 0 0; color: #c9d3ee; font-size: 16px; }
.kb-lista a { color: var(--kb-turkus-jasny); font-weight: 600; font-size: 15px; }

/* 8. Wybór kategorii */
.kb-wybor { padding: 64px 0 24px; }
.kb-wybor h2 { font-size: 20px; font-weight: 700; color: var(--kb-szary); margin-bottom: 18px; }
.kb-wybor ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 4px solid var(--kb-tekst); }
.kb-wybor li { padding: 20px 24px 22px 0; }
.kb-wybor li + li { padding-left: 24px; border-left: 1px solid var(--kb-linia); }
.kb-wybor a { display: block; text-decoration: none; color: var(--kb-tekst); }
.kb-wybor img { width: 168px; height: 168px; margin: 0 0 8px -8px; }
.kb-wybor strong { display: block; font-stretch: 62%; font-weight: 800; font-size: clamp(36px, 4vw, 56px); line-height: 0.95; }
.kb-wybor span { display: block; margin-top: 8px; color: var(--kb-szary); }
.kb-wybor a:hover strong { text-decoration: underline; text-decoration-color: var(--kb-turkus); text-decoration-thickness: 4px; text-underline-offset: 6px; }

/* 9. Sekcje */
.kb-sekcja { padding: 80px 0; }
.kb-sekcja--lod { background: var(--kb-lod); }
.kb-duzy { font-stretch: 62%; font-weight: 800; font-size: clamp(40px, 5vw, 72px); line-height: 0.95; max-width: 20ch; }
.kb-sredni { font-stretch: 62%; font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; max-width: 24ch; }
.kb-wstep { font-size: 19px; color: var(--kb-szary); max-width: 62ch; margin: 18px 0 36px; }
.kb-dalej { display: flex; gap: 20px; flex-wrap: wrap; margin: 24px 0 0; font-weight: 600; }
.kb-przycisk { display: inline-block; background: var(--kb-granat); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 4px; }
.kb-przycisk:hover { background: var(--kb-tekst); }

/* 10. Tablice LeadMatrix */
.kb-oferty .lm-table { --lm-accent: #233986; --lm-radius: 4px; --lm-font: "Archivo", system-ui, sans-serif; --lm-text: #121b45; --lm-muted: #4d5878; --lm-border: #d3dbea; --lm-bg: #ffffff; }
.kb-oferty .lm-controls { background: var(--kb-lod); border: 0; }
.kb-sekcja--lod .kb-oferty .lm-controls { background: var(--kb-bialy); }
.kb-oferty .lm-card { padding: 22px 24px; }
.kb-oferty .lm-card__name { font-size: 18px; }
.kb-oferty .lm-card__metrics { align-items: end; }
.kb-oferty .lm-metric:first-child .lm-metric__value { font-stretch: 62%; font-size: 48px; line-height: 0.9; font-weight: 800; color: var(--kb-granat); }
.kb-oferty .lm-metric__value { font-size: 19px; font-weight: 700; white-space: nowrap; }
.kb-oferty .lm-card__cta { border-radius: 4px; padding: 12px 22px; font-size: 16px; font-weight: 700; }
.kb-oferty .lm-card__sponsored { background: var(--kb-bursztyn); color: var(--kb-tekst); border-radius: 2px; }
.kb-oferty .lm-card--sponsored { border: 2px solid var(--kb-bursztyn); }
.kb-oferty .lm-disclaimer { font-size: 13px; }
.kb-oferty .lm-list--tiles .lm-card { display: flex; flex-direction: column; }
.kb-oferty .lm-list--tiles .lm-card__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kb-oferty .lm-list--tiles .lm-metric:first-child { grid-column: 1 / -1; }
.kb-oferty .lm-list--tiles .lm-card__footer { margin-top: auto; }
.kb-oferty:empty::before { content: "Lista ofert jest chwilowo niedostępna. Spróbuj ponownie za kilka minut."; display: block; padding: 20px; background: var(--kb-lod); color: var(--kb-szary); }
@media (min-width: 960px) {
  .kb-oferty .lm-list--bars .lm-card { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; grid-template-areas: "medal medal medal" "head metrics footer" "details details details"; column-gap: 32px; align-items: center; }
  .kb-oferty .lm-list--bars .lm-card__medal { grid-area: medal; justify-self: start; }
  .kb-oferty .lm-list--bars .lm-card__head { grid-area: head; margin: 0; flex-direction: column; align-items: flex-start; }
  .kb-oferty .lm-list--bars .lm-card__metrics { grid-area: metrics; margin: 0; grid-template-columns: max-content; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); column-gap: 28px; }
  .kb-oferty .lm-list--bars .lm-card__details { grid-area: details; margin: 16px 0 0; }
  .kb-oferty .lm-list--bars .lm-card__footer { grid-area: footer; }
}
@media (max-width: 939px) {
  .kb-oferty .lm-metric:first-child { grid-column: 1 / -1; }
  .kb-oferty .lm-metric:first-child .lm-metric__value { font-size: 36px; }
}

/* 11. Hasła do sprawdzenia */
.kb-uwagi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; margin: 0; padding: 0; }
.kb-uwagi li { position: relative; padding: 22px 0 22px 34px; border-top: 1px solid var(--kb-linia); }
.kb-uwagi li::before { content: ""; position: absolute; left: 0; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--kb-bursztyn); box-shadow: 0 0 0 4px rgba(240, 180, 60, 0.25); }
.kb-uwagi strong { display: block; font-size: 20px; line-height: 1.25; }
.kb-uwagi p { margin: 6px 0 0; color: var(--kb-szary); }

/* 12. Kto prowadzi serwis */
.kb-zasady { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.kb-zasady p { font-size: 18px; }

/* 13. Treść (landingi, wpisy, dokumenty) */
.kb-tresc { max-width: 760px; }
.kb-tresc h2 { font-stretch: 62%; font-weight: 800; font-size: clamp(30px, 3.2vw, 42px); line-height: 1; margin: 48px 0 16px; }
.kb-tresc h3 { font-size: 21px; font-weight: 700; margin: 32px 0 10px; }
.kb-tresc h4 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.kb-tresc p, .kb-tresc li { font-size: 18px; line-height: 1.65; }
.kb-tresc ul, .kb-tresc ol { padding-left: 24px; margin: 0 0 1em; }
.kb-tresc li { margin: 6px 0; }
.kb-tresc li > p { margin: 0; }
.kb-tresc blockquote { margin: 24px 0; padding: 16px 20px; background: #fff7e3; border-left: 6px solid var(--kb-bursztyn); }
.kb-tresc blockquote p:last-child { margin-bottom: 0; }
.kb-tresc hr { border: 0; border-top: 1px solid var(--kb-linia); margin: 36px 0; }
.kb-tresc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.kb-tresc th, .kb-tresc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--kb-linia); }
.kb-tresc th { background: var(--kb-lod); }
.kb-tresc > h2:first-child { margin-top: 0; }
.kb-kroki { counter-reset: krok; list-style: none; padding: 0 !important; }
.kb-kroki li { counter-increment: krok; position: relative; padding-left: 52px; margin: 0 0 18px; }
.kb-kroki li::before { content: counter(krok); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--kb-noc); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 17px; }

/* 14. Artykuł poradnika */
.kb-artykul { padding: 40px 0 24px; }
.kb-artykul h1 { font-stretch: 62%; font-weight: 800; font-size: clamp(42px, 5.6vw, 76px); line-height: 0.95; max-width: 18ch; }
.kb-artykul__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 20px 0 32px; font-size: 15px; color: var(--kb-szary); }
.kb-artykul__data:has(time:empty) { display: none; }
.kb-redakcja { margin: 40px 0 0; padding: 18px 20px; background: var(--kb-lod); font-size: 15px; max-width: 760px; }
.kb-redakcja p { margin: 0; }
.kb-zastepczy { color: var(--kb-szary); }

/* 15. Spisy poradnika (LeadMatrix) */
.lm-spis__lista { list-style: none; margin: 0 0 24px; padding: 0; columns: 2; column-gap: 48px; }
.lm-spis__lista li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--kb-linia); }
.lm-spis__lista a { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--kb-tekst); }
.lm-spis__lista a:hover { text-decoration: underline; text-decoration-color: var(--kb-turkus); text-decoration-thickness: 3px; }
.lm-spis__dzial { font-size: 20px; font-weight: 700; color: var(--kb-szary); margin: 28px 0 8px; }
.kb-poradnik-sekcja:has([data-lm^="spis:"]:empty) { display: none; }
[data-lm="spis:spis-wszystkie"]:empty::before { content: "Pierwsze artykuły poradnika publikujemy wkrótce."; display: block; padding: 20px; background: var(--kb-lod); color: var(--kb-szary); }

/* 16. Pytania */
.kb-faq { max-width: 860px; }
.kb-faq details { border-top: 1px solid var(--kb-linia); padding: 16px 0; }
.kb-faq details:last-child { border-bottom: 1px solid var(--kb-linia); }
.kb-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.kb-faq details p { margin: 10px 0 0; max-width: 68ch; }

/* 17. Strona błędu */
.kb-blad { padding: 56px 0 80px; }
.kb-blad__siatka { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.kb-blad img { max-width: 360px; margin-left: auto; }

/* 18. Stopka (wstawka) */
.kb-stopka { background: var(--kb-noc); color: #d6def3; padding: 56px 0 36px; font-size: 15px; }
.kb-stopka a { color: #fff; }
.kb-stopka__kolumny { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.kb-stopka__naglowek { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.kb-stopka ul { list-style: none; margin: 0; padding: 0; }
.kb-stopka li { margin: 6px 0; }
.kb-stopka .lm-docs { list-style: none; margin: 0; padding: 0; }
.kb-stopka__prawne { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 13px; color: #aab6da; }
.kb-stopka__prawne p { max-width: 110ch; }
.kb-stopka__blok:empty { display: none; }

/* 19. Baner cookies (LeadMatrix) */
.lm-cookies, .lm-cookies-dialog { --lm-cookies-accent: #233986; }

/* 20. Mobile */
@media (max-width: 939px) {
  .kb-otwarcie { padding: 40px 0 48px; }
  .kb-otwarcie__siatka, .kb-zasady, .kb-stopka__kolumny, .kb-blad__siatka { grid-template-columns: 1fr; gap: 32px; }
  .kb-otwarcie--jasne .kb-otwarcie__obraz img { max-width: 260px; margin: 0; }
  .kb-lista { grid-template-columns: 1fr; }
  .kb-lista li { grid-template-columns: 44px 1fr; }
  .kb-wybor ul { grid-template-columns: 1fr; }
  .kb-wybor li, .kb-wybor li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--kb-linia); }
  .kb-wybor img { width: 128px; height: 128px; }
  .kb-uwagi { grid-template-columns: 1fr; }
  .lm-spis__lista { columns: 1; }
  .kb-sekcja { padding: 56px 0; }
  .kb-blad img { max-width: 220px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
