/* tuwpadaj.pl - wspólne style. Marka i paleta jak na wusebox.com. */
:root {
  --ink: #202338;
  --ink-strong: #222438;
  --muted: #5f6475;
  --line: #e9eaf1;
  --soft: #f8f9fc;
  --purple: #6858e8;
  --purple-dark: #5545d3;
  --purple-tint: #f0edff;
  --ok: #238c70;
  --ok-tint: #e9f8f3;
  --warn: #9a5b13;
  --warn-tint: #fff6e8;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", Consolas, ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 15px;
  --header-h: 68px;
  color-scheme: light;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Kolory zawodów: akcent (tło z białym tekstem, kontrast >= 4.5:1) i jasny odcień. */
.akcent-agent-ubezpieczeniowy { --akcent: #2f6fc4; --akcent-tint: #eaf3ff; }
.akcent-nauczyciel { --akcent: #1f7f63; --akcent-tint: #e9f8f2; }
.akcent-student { --akcent: #7b4fd6; --akcent-tint: #f3edff; }
.akcent-maturzysta { --akcent: #c2410c; --akcent-tint: #fff1e8; }
.akcent-marka { --akcent: #6858e8; --akcent-tint: #f0edff; }

/* Przejście karta -> strona zawodu (cross-document View Transitions). */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: var(--ease-out); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 64px);
}
body { min-width: 320px; margin: 0; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; } /* iOS nie powiększa strony przy fokusie */
button, a, [role="button"], summary { touch-action: manipulation; }
button, [role="button"], summary, .chip { -webkit-user-select: none; user-select: none; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink-strong); text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.container-narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(255 255 255 / 86%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgb(233 234 241 / 80%);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: #262a3b; font-size: 23px; font-weight: 800; letter-spacing: -.045em; line-height: 1; text-decoration: none;
}
.brand img { display: block; width: 46px; height: 46px; }
.brand b { color: #3a6fdc; font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 26px; color: #5d6172; font-size: 14px; font-weight: 600; }
.main-nav a { text-decoration: none; }
.main-nav .nav-cta {
  padding: 10px 15px; border: 1px solid #e8e5fb; border-radius: 10px;
  color: var(--purple-dark); background: #f8f7ff;
}
@media (hover: hover) and (pointer: fine) {
  .main-nav a:not(.nav-cta):hover { color: var(--purple); }
  .main-nav .nav-cta:hover { border-color: #d9d3ff; background: #f2f0ff; }
}
.main-nav { min-width: 0; }
@media (max-width: 900px) {
  .main-nav .nav-hide-mobile { display: none; }
}
@media (max-width: 760px) {
  .main-nav { gap: 14px; }
  .main-nav .nav-cta { padding: 9px 12px; font-size: 13px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand img { width: 40px; height: 40px; }
}

/* ---------- Typografia sekcji ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 9px; margin: 0 0 14px;
  color: #6e61d8; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff976b; box-shadow: 0 0 0 4px #fff0e9; }
.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-title { margin-bottom: 10px; font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; }
.section-lead { max-width: 640px; margin-bottom: 28px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose { color: #3d4053; font-size: 16px; line-height: 1.75; }
.prose h2 { margin: 40px 0 12px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.prose h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.prose a { color: var(--purple-dark); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }

/* ---------- Przyciski ---------- */
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 19px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s var(--ease-out);
}
.button:active { transform: scale(.97); }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 8px 20px rgb(104 88 232 / 23%); }
.button-secondary { color: var(--purple-dark); background: #f8f7ff; border: 1px solid #e8e5fb; }
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover { background: var(--purple-dark); box-shadow: 0 11px 25px rgb(104 88 232 / 30%); }
  .button-secondary:hover { background: #f2f0ff; }
}

/* ---------- Ramki informacyjne ---------- */
.note {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start;
  padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6;
}
.note svg { width: 20px; height: 20px; margin-top: 1px; }
.note p { margin: 0; }
.note a { font-weight: 700; text-underline-offset: 3px; }
.note-privacy { color: #1d5e4c; background: var(--ok-tint); }
.note-privacy a { color: #17694f; }
.note-warn { color: #6e4310; background: var(--warn-tint); }
.note-info { color: #3a3478; background: var(--purple-tint); }

/* ---------- Formularze ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form label { color: #34364b; font-size: 14px; font-weight: 650; }
.form .optional { color: var(--muted); font-weight: 500; }
.input {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #dfe1ea; border-radius: 10px;
  background: #fff; transition: border-color .16s, box-shadow .16s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus { outline: 0; border-color: #aaa0f3; box-shadow: 0 0 0 4px rgb(104 88 232 / 12%); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; font-weight: 500 !important; line-height: 1.55; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--purple); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 0; font-size: 14px; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: #b42318; }
.form-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------- Okruszki ---------- */
.breadcrumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .breadcrumbs a:hover { text-decoration: underline; } }

/* ---------- Stopka - ten sam układ co wb-footer na wusebox.com ---------- */
.wb-footer { width: 100%; margin-top: 8px; padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #edecf2; background: #fbfbfd; font-family: inherit; }
.wb-footer .wb-footer-inner { width: min(1160px, calc(100% - 48px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 0 auto; }
.wb-footer .wb-footer-brand { display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; color: #5f6475; font-size: 12px; text-decoration: none; }
.wb-footer .wb-footer-brand img { display: block; width: 44px; height: 44px; }
.wb-footer .wb-footer-links { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px clamp(11px, 1.4vw, 16px); white-space: nowrap; }
.wb-footer .wb-footer-links a { color: #5f6475; font-size: 12px; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .wb-footer .wb-footer-links a:hover { color: #5e55c8; } }
.wb-footer .wb-footer-copy { justify-self: end; margin: 0; color: #5f6475; font-size: 12px; white-space: nowrap; }
.wb-footer .wb-footer-legal { width: min(1160px, calc(100% - 48px)); margin: 8px auto 0; padding: 10px 0 2px; border-top: 1px solid #edecf2; color: #5f6475; font-size: 12px; line-height: 1.6; text-align: center; }
.wb-footer .wb-footer-legal a { color: #5e55c8; font-weight: 600; }
@media (max-width: 1199px) {
  .wb-footer .wb-footer-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; }
  .wb-footer .wb-footer-brand { grid-column: 1; grid-row: 1; }
  .wb-footer .wb-footer-copy { grid-column: 2; grid-row: 1; }
  .wb-footer .wb-footer-links { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; white-space: normal; }
}
@media (max-width: 560px) {
  .wb-footer .wb-footer-inner { width: calc(100% - 30px); grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
  .wb-footer .wb-footer-brand, .wb-footer .wb-footer-copy, .wb-footer .wb-footer-links { grid-column: auto; grid-row: auto; }
  .wb-footer .wb-footer-brand { width: auto; }
  .wb-footer .wb-footer-copy { justify-self: center; text-align: center; white-space: normal; }
  .wb-footer .wb-footer-links { gap: 10px 16px; }
  .wb-footer .wb-footer-legal { width: calc(100% - 30px); }
}
@media (pointer: coarse) {
  .wb-footer .wb-footer-links a { display: inline-block; padding: 6px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}

/* Autor i data aktualizacji pod nagłówkiem strony */
.autor-linia { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.autor-linia a { color: inherit; font-weight: 700; }
.zawod-hero .autor-linia { margin-top: -6px; color: rgb(255 255 255 / 86%); }
.zawod-hero .autor-linia a { color: #fff; }
.zawod-hero .autor-linia:last-child { margin-bottom: 0; }
.jtd-intro .autor-linia { margin: 14px auto 0; font-size: 14px; }
