:root {
  color-scheme: light;
  --red: #b50918;
  --dark: #161616;
  --line: #d9dde2;
  --muted: #5b6470;
  --surface: #f4f6f8;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--dark); background: var(--surface); font-family: Arial, sans-serif; line-height: 1.55; }
a { color: #8f0714; }
.recruitment-header, .admin-header { color: #fff; background: #111; }
.recruitment-header-inner, .admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1120px; margin: 0 auto; padding: 1rem; }
.recruitment-brand, .admin-header > a { color: #fff; font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.recruitment-header nav, .admin-header nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.recruitment-header nav a, .admin-header nav a { color: #fff; }
.admin-header nav form { margin: 0; }
.admin-nav-button { padding: 0; border: 0; color: #fff; background: transparent; text-decoration: underline; cursor: pointer; }
.recruitment-main, .admin-main { max-width: 980px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.form-intro, .form-section, .admin-card, .application-card { margin-bottom: 1rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.form-intro { border-top: 5px solid var(--red); }
.form-section h2 { margin-top: 0; font-size: 1.25rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label, fieldset legend { font-weight: 700; }
.required { color: var(--red); }
input, select, textarea, button { font: inherit; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], input[type="time"], input[type="file"], select, textarea {
  width: 100%; min-height: 46px; padding: 0.7rem; border: 2px solid #858b93; border-radius: 4px; background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 3px solid #ffca28; outline-offset: 2px; }
fieldset { margin: 0 0 1rem; padding: 0; border: 0; }
.radio-list { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 0.5rem; }
.radio-list label, .consent-label { display: flex; align-items: flex-start; gap: 0.5rem; }
.radio-list input, .consent-label input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.7rem 1rem; border: 2px solid #111; border-radius: 4px; font-weight: 800; cursor: pointer; text-decoration: none; }
.btn-primary { color: #fff; background: var(--red); border-color: var(--red); }
.btn-dark { color: #fff; background: #111; }
.btn-light { color: #111; background: #fff; }
.btn-danger { color: #fff; background: #9c1010; border-color: #9c1010; }
.alert { margin-bottom: 1rem; padding: 1rem; border: 2px solid; background: #fff; }
.alert-error { border-color: #b50918; }
.alert-success { border-color: #18733b; }
.error-list { margin: 0; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.admin-body { background: #edf0f3; }
.admin-main { max-width: 1180px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat { padding: 1rem; background: #fff; border-left: 5px solid var(--red); }
.stat strong { display: block; font-size: 1.6rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #222; color: #fff; }
.status { display: inline-block; padding: 0.2rem 0.45rem; color: #fff; background: #555; font-size: 0.85rem; font-weight: 700; }
.announcement-status-alarm { background: #a4000f; }
.announcement-status-ostrzezenie { color: #111; background: #ffbf00; }
.announcement-status-informacja { background: #1261a0; }
.announcement-status-wydarzenie { background: #18733b; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.detail-grid div { padding: 0.75rem; background: #fff; border: 1px solid var(--line); }
.detail-grid strong { display: block; color: var(--muted); font-size: 0.85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.actions .field { margin: 0; }
.small { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) {
  .field-grid, .detail-grid, .admin-grid { grid-template-columns: 1fr; }
  .recruitment-header-inner, .admin-header { align-items: flex-start; flex-direction: column; }
  .radio-list { flex-direction: column; }
}
