/* Careers page (/kariera/). Same palette as the main site. */
:root {
  --bg: #040813;
  --panel: #0c1430;
  --panel-2: #111c42;
  --line: rgba(129,151,255,.18);
  --text: #dce5ff;
  --muted: #9aa9d4;
  --blue: #2f5bea;
  --blue-light: #8197ff;
  --orange: #ff8a35;
  --white: #f4f7ff;
  --danger: #ff6b6b;
  --ok: #4ade80;
  --sans: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-light); }
h1, h2, h3 { margin: 0; color: var(--white); line-height: 1.12; }
.job-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.job-label { margin: 0 0 14px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }

/* Header */
.job-top { position: sticky; top: 0; z-index: 20; background: rgba(4,8,19,.9); border-bottom: 1px solid rgba(47,91,234,.28); backdrop-filter: blur(10px); }
.job-top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.job-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.job-brand img { display: block; width: 46px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(47,91,234,.42)); }
.job-brand strong { display: block; font-size: 15px; letter-spacing: .24em; }
.job-brand small { display: block; color: #7f90bd; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.job-back { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.job-top__end { display: flex; align-items: center; gap: 18px; }
.job-lang { position: relative; }
.job-lang summary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .1em; list-style: none; cursor: pointer; }
.job-lang summary::-webkit-details-marker { display: none; }
.job-lang summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.job-lang[open] summary { border-color: var(--blue-light); }
.job-lang ul { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 190px; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); box-shadow: 0 20px 50px rgba(0,0,0,.45); list-style: none; }
.job-lang a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: 14px; text-decoration: none; }
.job-lang a b { min-width: 24px; color: var(--muted); font-size: 11px; letter-spacing: .08em; line-height: 1.9; }
.job-lang a:hover, .job-lang a:focus-visible { background: rgba(47,91,234,.22); }
.job-lang a[aria-current] { color: var(--orange); }
.job-benefits b .ico { width: 22px; height: 22px; }
.job-back:hover, .job-back:focus-visible { color: var(--white); }

/* Hero + board */
.job-hero { position: relative; overflow: hidden; padding: 84px 0 64px; background: radial-gradient(circle at 85% 0%, rgba(47,91,234,.28), transparent 55%), linear-gradient(180deg, #060c1f, var(--bg)); }
.job-hero h1 { max-width: 760px; font-size: clamp(38px, 6vw, 64px); font-weight: 900; letter-spacing: -.02em; }
.job-lead { max-width: 640px; margin: 20px 0 40px; color: var(--muted); font-size: 18px; }
.job-board__count { margin: 0 0 12px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.job-board__count strong { color: var(--white); }
.job-card { position: relative; display: grid; gap: 6px; max-width: 640px; padding: 24px 64px 24px 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, var(--panel-2), var(--panel)); color: var(--text); text-decoration: none; box-shadow: 0 20px 50px rgba(0,0,0,.3); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.job-card:hover, .job-card:focus-visible { border-color: var(--blue-light); transform: translateY(-3px); box-shadow: 0 26px 60px rgba(0,0,0,.38), 0 0 0 6px rgba(47,91,234,.1); }
.job-card__badge { justify-self: start; padding: 3px 10px; border-radius: 999px; background: rgba(255,138,53,.14); color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.job-card__title { color: var(--white); font-size: 20px; }
.job-card__meta { color: var(--muted); font-size: 14px; }
.job-card__salary { color: var(--blue-light); font-weight: 800; }
.job-card__go { position: absolute; top: 50%; right: 22px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; transform: translateY(-50%); }

/* Offer */
.job-offer { padding: 72px 0 24px; }
.job-offer__head { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.job-offer__head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; }
.job-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.job-facts li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.job-facts span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.job-facts strong { display: block; margin-top: 4px; color: var(--white); font-size: 16px; }
.job-intro { max-width: 760px; margin: 0 0 28px; color: var(--text); font-size: 17px; }
.job-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border: 0; border-radius: 999px; background: var(--orange); color: #0b1024; font: 800 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: 0 0 24px rgba(255,138,53,.28); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.job-btn:hover, .job-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 0 34px rgba(255,138,53,.48); }
.job-block { padding: 40px 0 8px; }
.job-block h3 { margin-bottom: 20px; font-size: 24px; }
.job-benefits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.job-benefits li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.job-benefits b { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(47,91,234,.16); color: var(--blue-light); font-size: 20px; }
.job-benefits strong { color: var(--white); }
.job-benefits span { color: var(--muted); font-size: 14px; }
.job-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.job-list { margin: 0; padding: 0; list-style: none; }
.job-list li { position: relative; padding: 0 0 12px 28px; }
.job-list li::before { content: ""; position: absolute; top: .62em; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px rgba(47,91,234,.8); }
.job-list--check li::before { content: "✓"; top: 0; left: 0; width: auto; height: auto; background: none; box-shadow: none; color: var(--orange); font-weight: 800; }
.job-plus { margin: 12px 0 0; padding: 14px 16px; border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; background: rgba(255,138,53,.08); }
.job-plus b { color: var(--orange); }

/* Application form */
.job-apply { margin-top: 56px; padding: 80px 0; background: linear-gradient(180deg, #0a1129, #060b1c); border-top: 1px solid rgba(47,91,234,.22); }
.job-apply__grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 56px; align-items: start; }
.job-apply__copy { position: sticky; top: 110px; }
.job-apply__copy h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
.job-apply__copy p { color: var(--muted); }
.job-apply__alt { margin-top: 24px; font-size: 14px; }
.job-form { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.job-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.job-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.job-field > label, .job-field > legend { display: block; margin-bottom: 7px; padding: 0; color: var(--text); font-size: 13px; font-weight: 700; }
.job-field em, .job-check em { color: var(--orange); font-style: normal; }
.job-form input[type=text], .job-form input[type=tel], .job-form input[type=email], .job-form select, .job-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid rgba(129,151,255,.26); border-radius: 10px; background: #070d22; color: var(--white); font: 15px/1.4 var(--sans); transition: border-color .2s ease, box-shadow .2s ease;
}
.job-form textarea { resize: vertical; min-height: 110px; }
.job-form input:focus, .job-form select:focus, .job-form textarea:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(47,91,234,.28); }
.job-form [aria-invalid=true] { border-color: var(--danger) !important; }
.job-choice label { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 6px 0; color: var(--text); font-size: 15px; cursor: pointer; }
.job-choice input, .job-check input { width: 18px; height: 18px; accent-color: var(--orange); }
.job-file { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px dashed rgba(129,151,255,.4); border-radius: 10px; background: #070d22; cursor: pointer; }
.job-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.job-file__btn { padding: 9px 14px; border-radius: 8px; background: var(--panel-2); color: var(--white); font-size: 13px; font-weight: 700; white-space: nowrap; }
.job-file__name { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.job-file:focus-within { border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(47,91,234,.28); }
.job-consents { margin: 6px 0 22px; }
.job-check { display: grid; grid-template-columns: 18px 1fr; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.job-check input { margin: 2px 0 0; }
.job-submit { width: 100%; justify-content: center; }
.job-submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.job-status { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; font-weight: 700; }
.job-status.is-error { color: var(--danger); }
.job-status.is-ok { color: var(--ok); }
.job-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* GDPR clause + footer */
.job-rodo { padding: 32px 0 56px; }
.job-rodo details { padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.job-rodo summary { color: var(--white); font-weight: 700; cursor: pointer; }
.job-rodo p { color: var(--muted); font-size: 14px; }
.job-footer { padding: 28px 0; border-top: 1px solid var(--line); background: #050a18; color: var(--muted); font-size: 13px; }
.job-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.job-footer p { margin: 0; }

@media (max-width: 900px) {
  .job-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .job-benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .job-apply__grid { grid-template-columns: 1fr; gap: 28px; }
  .job-apply__copy { position: static; }
}
@media (max-width: 620px) {
  .job-hero { padding: 56px 0 44px; }
  .job-lead { font-size: 16px; }
  .job-benefits, .job-columns, .job-row { grid-template-columns: 1fr; }
  .job-columns { gap: 0; }
  .job-form { padding: 22px 18px; }
  .job-back { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .job-card, .job-btn { transition: none; }
}
