/* Strona zawodu: nagłówek w kolorze akcentu, kategorie, interaktywne prompty. */
.zawod-hero-wrap { padding-top: 18px; }
.zawod-hero {
  position: relative; overflow: hidden; padding: 30px 32px 32px;
  border-radius: 22px; color: #fff; background: var(--akcent);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--akcent) 22%, transparent);
}
.zawod-hero::after {
  content: ""; position: absolute; right: -80px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 18%), rgb(255 255 255 / 0%) 70%); pointer-events: none;
}
.zawod-hero .breadcrumbs { margin-bottom: 18px; color: rgb(255 255 255 / 86%); }
.zawod-hero h1 {
  max-width: 820px; margin-bottom: 12px; color: #fff;
  font-size: clamp(30px, 5.2vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: 1.08;
}
.zawod-hero .lead { max-width: 720px; margin-bottom: 18px; color: rgb(255 255 255 / 92%); font-size: 17px; line-height: 1.65; }
.zawod-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zawod-meta li { padding: 6px 11px; border-radius: 999px; background: rgb(255 255 255 / 16%); font-size: 13px; font-weight: 700; }
.zawod-meta a { color: #fff; text-decoration: none; }

.zawod-intro { padding: 30px 0 8px; }
.zawod-intro .prose { max-width: 780px; }
.zawod-intro .note { max-width: 780px; margin-top: 18px; }

/* ---------- Przypięty pasek: filtr + kategorie ---------- */
.kategorie-bar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 10;
  margin-top: 18px; padding: 10px 0;
  background: rgb(255 255 255 / 84%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgb(233 234 241 / 80%);
}
.kategorie-inner { display: flex; align-items: center; gap: 12px; }
.kategorie-inner > nav { flex: 1 1 auto; min-width: 0; }
.filtr {
  flex: 0 0 240px; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 1px solid #e3e5ee; border-radius: 10px; background: #fff; color: #6b7080;
}
.filtr:focus-within { border-color: #aaa0f3; box-shadow: 0 0 0 4px rgb(104 88 232 / 10%); }
.filtr svg { width: 18px; height: 18px; flex: 0 0 auto; }
.filtr input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.filtr input::-webkit-search-cancel-button { cursor: pointer; }
.chipy {
  display: flex; gap: 8px; margin: 0; padding: 2px; list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.chipy::-webkit-scrollbar { display: none; }
.chipy li { scroll-snap-align: start; flex: 0 0 auto; }
.chip {
  min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px;
  border: 1px solid #e6e7ef; border-radius: 999px; background: #fff;
  color: #45485c; font-size: 13.5px; font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: background-color .16s, border-color .16s, color .16s, transform .12s var(--ease-out);
}
.chip:active { transform: scale(.96); }
.chip .chip-liczba { color: var(--muted); font-weight: 600; }
.chip.is-active { border-color: var(--akcent); color: #fff; background: var(--akcent); }
.chip.is-active .chip-liczba { color: rgb(255 255 255 / 80%); }
@media (hover: hover) and (pointer: fine) { .chip:not(.is-active):hover { border-color: color-mix(in srgb, var(--akcent) 40%, #fff); color: var(--akcent); } }

/* ---------- Kategorie i prompty ---------- */
.prompty { padding: 4px 0 40px; }
.wynik-filtra { min-height: 1.4em; margin: 0; color: var(--muted); font-size: 14px; }
.kategoria { padding-top: 22px; }
.kategoria + .kategoria { padding-top: 34px; }
.kategoria-head { max-width: 780px; margin-bottom: 16px; }
.kategoria-head h2 { margin-bottom: 6px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.kategoria-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.prompt-lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.prompt {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; border: 1px solid #e8e9f0; border-radius: 18px; background: #fff;
  box-shadow: 0 3px 10px rgb(28 33 66 / 2.5%);
}
.prompt:target { border-color: var(--akcent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--akcent) 14%, transparent); }
.prompt-head h3 { margin-bottom: 4px; font-size: 19px; font-weight: 780; letter-spacing: -.025em; line-height: 1.3; }
.prompt-head h3 a { text-decoration: none; }
.prompt-zadanie { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.prompt-box { border-radius: 14px; background: var(--soft); border: 1px solid #eef0f5; }
/* pre-line: nowe linie z HTML zostają, wcięcia kodu źródłowego znikają. */
.prompt-tekst {
  margin: 0; padding: 16px 16px 6px; white-space: pre-line; overflow-wrap: anywhere;
  color: #2c2f43; font-size: 15.5px; line-height: 1.75;
}
/* Pole do uzupełnienia: element contenteditable, który zawija długi tekst. */
.pole {
  display: inline-block; vertical-align: top; max-width: 100%; min-width: 3ch;
  margin: 1px 1px; padding: 0 7px; border-bottom: 2px solid var(--akcent); border-radius: 6px 6px 2px 2px;
  background: #fff; color: var(--ink-strong); font-size: 16px; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; outline: 0;
  -webkit-user-select: text; user-select: text;
}
.pole.is-empty { border-bottom-style: dashed; background: var(--akcent-tint); }
.pole.is-empty::before { content: attr(data-placeholder); color: color-mix(in srgb, var(--akcent) 78%, #222); pointer-events: none; }
.pole:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--akcent) 24%, transparent); }
.pole.is-empty:focus::before { opacity: .6; }
.prompt-akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 12px; }
.button-kopiuj { min-height: 44px; color: #fff; background: var(--akcent); font-size: 14.5px; }
.button-kopiuj svg { width: 17px; height: 17px; }
.button-kopiuj.is-done { background: var(--ok); }
@media (hover: hover) and (pointer: fine) { .button-kopiuj:hover { filter: brightness(1.08); } }
.button-link { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.prompt-info { margin: 0; color: var(--muted); font-size: 13px; }

.prompt-przyklad { border: 1px solid #eceef4; border-radius: 12px; }
.prompt-przyklad summary {
  min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px;
  color: #3d4055; font-size: 14.5px; font-weight: 700; cursor: pointer; list-style: none;
}
.prompt-przyklad summary::-webkit-details-marker { display: none; }
.prompt-przyklad summary::after { content: "+"; color: var(--akcent); font-size: 20px; font-weight: 600; transition: transform .2s var(--ease-out); }
.prompt-przyklad[open] summary::after { transform: rotate(45deg); }
.przyklad-tresc { padding: 0 16px 14px; white-space: pre-line; color: #45485c; font-size: 14.5px; line-height: 1.7; }
.prompt-wskazowka { margin: 0; color: #45485c; font-size: 14.5px; line-height: 1.65; }
.prompt-wskazowka strong { color: var(--ink-strong); }
.brak-wynikow { margin: 26px 0 0; padding: 22px; border: 1px dashed #dfe0e9; border-radius: 12px; color: var(--muted); text-align: center; }

/* ---------- Asystenci ---------- */
.asystenci-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.asystent-card {
  height: 100%; display: flex; flex-direction: column; padding: 20px; border: 1px solid #e8e9f0; border-radius: 16px;
  background: #fff; text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
}
.asystent-card:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .asystent-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--akcent) 35%, #fff); box-shadow: 0 14px 30px rgb(54 45 112 / 8%); } }
.asystent-card h3 { margin-bottom: 6px; font-size: 17px; font-weight: 780; letter-spacing: -.02em; }
.asystent-card p { margin-bottom: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.asystent-platformy { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.asystent-platformy li { padding: 4px 9px; border-radius: 6px; color: var(--akcent); background: var(--akcent-tint); font-size: 12px; font-weight: 700; }

/* ---------- Pytania ---------- */
.pytania { display: grid; gap: 26px; max-width: 780px; }
.pytanie h3 { margin-bottom: 6px; font-size: 18px; font-weight: 780; letter-spacing: -.02em; line-height: 1.35; }
.pytanie p { margin: 0 0 8px; color: #45485c; font-size: 15.5px; line-height: 1.7; }
.pytanie a { color: var(--purple-dark); font-weight: 650; text-underline-offset: 3px; }

/* ---------- Kurs i pozostałe zawody ---------- */
.kurs-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px; border-radius: 20px; background: var(--akcent-tint); border: 1px solid color-mix(in srgb, var(--akcent) 18%, #fff);
}
.kurs-box h2 { margin-bottom: 6px; font-size: clamp(21px, 3vw, 26px); font-weight: 800; letter-spacing: -.035em; }
.kurs-box p { max-width: 620px; margin: 0; color: #45485c; font-size: 15px; line-height: 1.65; }
.button-akcent { color: #fff; background: var(--akcent); }
@media (hover: hover) and (pointer: fine) { .button-akcent:hover { filter: brightness(1.08); } }
.inne-zawody { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.inne-zawody a {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px;
  border: 1px solid #e6e7ef; border-radius: 12px; background: #fff; font-weight: 700; text-decoration: none;
}
.inne-zawody a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--akcent); }
@media (hover: hover) and (pointer: fine) { .inne-zawody a:hover { border-color: var(--akcent); color: var(--akcent); } }

@media (max-width: 860px) {
  .asystenci-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: calc(var(--header-h) + 130px); }
  .zawod-hero { padding: 22px 20px 24px; border-radius: 18px; }
  .zawod-hero .lead { font-size: 16px; }
  .kategorie-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .filtr { flex-basis: auto; }
  .chipy { margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; mask-image: none; }
  .prompt { padding: 16px; border-radius: 16px; }
  .prompt-tekst { padding: 14px 13px 4px; font-size: 16px; }
  .prompt-akcje { padding: 8px 10px 10px; }
  .button-kopiuj { flex: 1 1 auto; }
}

/* ---------- Podstrony zawodu: strony zadań, asystenci, kurs ---------- */
.podstrona .zawod-hero h1 { font-size: clamp(28px, 4.6vw, 46px); }
.podstrona-tresc { padding: 30px 0 10px; }
.podstrona-tresc .prose { max-width: 780px; }
.podstrona-prompty { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 900px; margin: 18px 0 8px; }
.wroc-link { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--akcent); font-weight: 750; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .wroc-link:hover { text-decoration: underline; text-underline-offset: 3px; } }

.lista-obiekcji { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.lista-obiekcji li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lista-obiekcji strong { display: block; margin-bottom: 2px; color: var(--ink-strong); }

/* Asystent */
.asystent-sekcje { display: grid; gap: 22px; max-width: 900px; padding: 28px 0 10px; }
.platforma { padding: 24px; border: 1px solid #e8e9f0; border-radius: 18px; background: #fff; box-shadow: 0 3px 10px rgb(28 33 66 / 2.5%); }
.platforma > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.platforma-tag { padding: 4px 9px; border-radius: 6px; color: var(--akcent); background: var(--akcent-tint); font-size: 12px; font-weight: 750; letter-spacing: 0; }
.platforma > p { color: #45485c; font-size: 15px; line-height: 1.7; }
.platforma h3 { margin: 18px 0 4px; font-size: 17px; font-weight: 780; letter-spacing: -.02em; }
.kroki-lista { display: grid; gap: 8px; margin: 12px 0 16px; padding-left: 1.4em; color: #3d4053; font-size: 15px; line-height: 1.65; }
.kroki-lista strong { color: var(--ink-strong); }
.instrukcja .prompt-tekst { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; font-size: 14.5px; }
.pole-do-skopiowania { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 10px; padding: 10px 12px; border: 1px solid #eef0f5; border-radius: 12px; background: var(--soft); font-size: 14.5px; }
.pole-do-skopiowania span { overflow-wrap: anywhere; }
.pole-do-skopiowania b { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.button-maly { min-height: 40px; padding: 0 13px; font-size: 13.5px; }
.stan-na { margin: 0; color: var(--muted); font-size: 13px; }
.przyklad-rozmowy { display: grid; gap: 10px; margin: 0; }
.dymek { max-width: 680px; padding: 12px 15px; border-radius: 14px; font-size: 15px; line-height: 1.65; white-space: pre-line; }
.dymek-agent { justify-self: end; background: var(--akcent-tint); color: #2c2f43; border-bottom-right-radius: 4px; }
.dymek-ai { background: var(--soft); border: 1px solid #eef0f5; color: #2c2f43; border-bottom-left-radius: 4px; }
.dymek b { display: block; margin-bottom: 2px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Kurs */
.kurs-uklad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px; align-items: start; padding: 30px 0 50px; }
.kurs-form-box { padding: 24px; border: 1px solid #e8e9f0; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgb(28 33 66 / 5%); }
.kurs-form-box h2 { margin-bottom: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.kurs-form-box > p { color: var(--muted); font-size: 14.5px; }
.kurs-form-box .button { width: 100%; }
.form-button-akcent { color: #fff; background: var(--akcent); }

@media (max-width: 760px) {
  .kurs-uklad { grid-template-columns: 1fr; }
  .platforma { padding: 18px; }
  .pole-do-skopiowania { grid-template-columns: 1fr; }
}

/* ---------- Centrum zawodu: kafelki kategorii ---------- */
.kat-sekcja { padding: 30px 0 46px; }
.kat-naglowek { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.kat-naglowek .section-title { margin: 0; }
.kat-naglowek .filtr { flex: 0 1 300px; }
.kat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.kat-card {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  padding: 22px 20px 18px; border: 1px solid #e8e9f0; border-radius: 18px; background: #fff;
  box-shadow: 0 3px 10px rgb(28 33 66 / 2.5%);
  transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), box-shadow .22s var(--ease-out);
}
.kat-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--akcent); }
@media (hover: hover) and (pointer: fine) { .kat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--akcent) 30%, #fff); box-shadow: 0 16px 34px rgb(54 45 112 / 8%); } }
.kat-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.kat-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--akcent); background: var(--akcent-tint); }
.kat-icon svg { width: 22px; height: 22px; }
.kat-card h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.kat-card h3 a { text-decoration: none; }
.kat-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* cały kafelek klikalny */
.kat-card > p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.kat-prompty { position: relative; z-index: 1; display: grid; gap: 2px; margin: 0 0 14px; padding: 0; list-style: none; }
.kat-prompty a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 7px 10px; margin-inline: -10px;
  border-radius: 9px; color: #34374b; font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none;
}
.kat-prompty a::after { content: "→"; color: var(--akcent); opacity: .55; transition: transform .16s var(--ease-out), opacity .16s; }
.kat-prompty a:active { background: var(--akcent-tint); }
@media (hover: hover) and (pointer: fine) {
  .kat-prompty a:hover { background: var(--akcent-tint); color: var(--ink-strong); }
  .kat-prompty a:hover::after { opacity: 1; transform: translateX(2px); }
}
.kat-stopka { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid #eef0f5; color: var(--akcent); font-size: 14px; font-weight: 750; text-decoration: none; }
.kat-stopka span { color: var(--muted); font-weight: 600; }

/* ---------- Strona kategorii: nawigacja między kategoriami ---------- */
.kat-nav .chip[aria-current="page"] { border-color: var(--akcent); color: #fff; background: var(--akcent); }
.kat-nav .chip[aria-current="page"] .chip-liczba { color: rgb(255 255 255 / 80%); }

@media (max-width: 1020px) { .kat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kat-grid { grid-template-columns: 1fr; gap: 12px; }
  .kat-naglowek .filtr { flex-basis: 100%; }
  .kat-card { padding: 18px 16px 14px; }
}

/* ---------- Strony ogólne: poradniki, kontakt, prywatność ---------- */
.strona-tresc { padding: 30px 0 50px; }
.strona-tresc .prose { max-width: 780px; }
.poradnik-meta { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.poradniki-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.narzedzia-lista { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.narzedzia-lista a { display: block; padding: 16px 18px; border: 1px solid #e8e9f0; border-radius: 14px; background: #fff; text-decoration: none; color: inherit; transition: border-color .18s, transform .18s var(--ease-out); }
.narzedzia-lista a strong { display: block; color: var(--purple-dark); font-size: 16px; }
.narzedzia-lista a span { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.narzedzia-lista a:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .narzedzia-lista a:hover { border-color: #d9d3ff; } }
.do-uzupelnienia { padding: 1px 6px; border-radius: 5px; background: #fff3c4; color: #6b4e00; font-weight: 700; }
.kontakt-uklad { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; padding: 30px 0 50px; }
.autor-profil { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.autor-profil img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
@media (max-width: 760px) {
  .poradniki-lista, .kontakt-uklad { grid-template-columns: 1fr; }
  .autor-profil { grid-template-columns: 1fr; }
  .autor-profil img { width: 112px; height: 112px; }
}
