/* Deutsch kreativ 2026 — style wspólne
   Wartości przeniesione z makiety Main.dc.html */

:root {
  --navy: #1B3557;
  --navy-dark: #10213A;
  --navy-hover: #132640;
  --cream: #EEF2F6;      /* "śnieg": tło stron i jasny tekst na granacie */
  --red: #DA251D;        /* czerwień z logo RCEZ */
  --green: #00923F;      /* zieleń z logo RCEZ */
  --white: #FFFFFF;
  --ink: #1B1D22;
  --muted: #4A4F59;
  --muted-2: #5A5F6A;
  --on-navy: #D9DEE6;
  --on-navy-2: #C8D0DC;
  --rust: #A3471F;
  --line: #DCE3EC;
  --info-bg: #E8EDF4;
  --info-ink: #3B4250;
  --accent: #F2B84B;
  --silver: #D6DCE4;
  --bronze: #D9A273;
  --ok: #1E7A43;
  --ok-bg: #E3F2E8;
  --err: #B3261E;
  --err-bg: #FBE7E5;

  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}

a { color: var(--navy); }
a:hover { color: var(--navy-hover); }

h1, h2, h3 { font-family: var(--font-head); margin: 0; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--cream); }
.site-header .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; overflow: visible; transition: transform .2s ease; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand-year { color: var(--accent); }
.brand-sub { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--on-navy-2); }
.brand-flag { display: inline-flex; flex-direction: column; width: 14px; height: 9px; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.brand-flag i { flex: 1; }
.brand-flag i:nth-child(1) { background: #000; }
.brand-flag i:nth-child(2) { background: #DD0000; }
.brand-flag i:nth-child(3) { background: #FFCE00; }

.nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; font-weight: 600; font-size: 16px; }
.nav a { color: var(--cream); text-decoration: none; }
.nav a:hover { text-decoration: underline; color: var(--cream); }
.nav a.nav-cta { color: var(--navy); background: var(--accent); padding: 4px 14px; border-radius: 8px; }
.nav a.nav-cta:hover { text-decoration: none; filter: brightness(1.05); color: var(--navy); }

.nav-toggle {
  display: none; background: none; border: 2px solid rgba(244,241,234,.4); color: var(--cream);
  border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .site-header .wrap { gap: 12px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav-toggle { padding: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 11px; letter-spacing: .06em; }
  .brand-mark { width: 40px; height: 40px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 8px; }
  .nav.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: filter .15s, background .15s;
}
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { filter: brightness(1.05); color: var(--navy); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-hover); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--info-bg); }
.btn-ghost-light { border-color: rgba(244,241,234,.5); color: var(--cream); background: transparent; font-weight: 600; }
.btn-ghost-light:hover { background: rgba(244,241,234,.08); color: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-danger { border-color: var(--err); color: var(--err); background: transparent; }
.btn-danger:hover { background: var(--err-bg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-grow { flex-grow: 1; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-weight: 700; color: var(--rust); font-size: 15px; }
.eyebrow-accent { color: var(--accent); }
.h-section { font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.h-card { font-weight: 800; font-size: 32px; line-height: 1.1; }
.lead { margin: 0; color: var(--muted); }
.small-muted { font-size: 15px; color: var(--muted-2); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--cream); padding: 56px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.pill {
  display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(244,241,234,.4); font-size: 15px; font-weight: 600;
}
.hero h1 { font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -.02em; }
.hero h1 small { display: block; margin-top: 10px; font-size: .5em; font-weight: 700; letter-spacing: -.01em; color: var(--accent); }
.hero p { margin: 0; font-size: 20px; max-width: 540px; color: var(--on-navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.summary { background: var(--cream); color: var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.summary-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--white); border-radius: 14px; padding: 16px; }
.stat-label { font-size: 14px; color: var(--muted-2); }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: 24px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight-top { padding-top: 40px; }
.section-flush-top { padding-top: 0; }
.stack { display: flex; flex-direction: column; gap: 32px; }

.grid-auto { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.grid-auto-lg { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card { background: var(--white); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card-title { font-weight: 700; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

.topic { background: var(--navy); color: var(--cream); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.topic-no { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--accent); }
.topic-title { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.15; }
.topic p { margin: 0; color: var(--on-navy); }
.tag { padding: 2px 10px; border-radius: 999px; background: rgba(244,241,234,.15); font-size: 13px; font-weight: 600; }
.row-center { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.panel-box { background: var(--white); border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.panel-dark { background: var(--navy); color: var(--cream); border-radius: 22px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }

.timeline-row { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline-row:last-child { border-bottom: 0; }
.timeline-date { min-width: 140px; font-weight: 700; color: var(--navy); }

.score-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-row b { color: var(--navy); }

.prize { display: flex; gap: 16px; align-items: center; background: rgba(244,241,234,.08); border-radius: 14px; padding: 14px 16px; }
.medal {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 20px;
}
.medal-1 { background: var(--accent); } .medal-2 { background: var(--silver); } .medal-3 { background: var(--bronze); }

.info-box { background: var(--info-bg); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--info-ink); }
.info-box strong { color: var(--ink); }

.step { display: flex; gap: 16px; align-items: flex-start; }
.step-no {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step-sub { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--on-navy-2); }
.site-footer .wrap {
  padding-top: 36px; padding-bottom: 36px; display: grid; gap: 24px; font-size: 15px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .f-title { font-weight: 700; color: var(--cream); }
.site-footer .f-brand { font-family: var(--font-head); font-size: 18px; }
.site-footer a { color: var(--on-navy-2); }

/* ---------- Page header (podstrony) ---------- */
.page-hero { background: var(--navy); color: var(--cream); padding: 40px 0 48px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 12px; }
.page-hero h1 { font-weight: 800; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; }
.page-hero p { margin: 0; color: var(--on-navy); max-width: 640px; font-size: 18px; }
.breadcrumb { font-size: 14px; color: var(--on-navy-2); }
.breadcrumb a { color: var(--on-navy-2); }

.page-body { padding: 48px 0 80px; }
.narrow { max-width: 820px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 28px; }
.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.fieldset legend { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin-bottom: 4px; padding: 0; }
.form-grid { display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field .req { color: var(--rust); }
.field .hint { font-size: 14px; color: var(--muted-2); }

.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid #CFC8B8; border-radius: 10px; padding: 11px 14px; min-height: 48px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,58,95,.15); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--err); }
.field-error { font-size: 14px; color: var(--err); min-height: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--navy); }

.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card span {
  display: block; padding: 12px 14px; border: 1.5px solid #CFC8B8; border-radius: 10px; background: var(--white);
  font-weight: 600; font-size: 15px; line-height: 1.3;
}
.radio-card input:checked + span { border-color: var(--navy); background: var(--info-bg); box-shadow: inset 0 0 0 1px var(--navy); }
.radio-card input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.radio-card input:disabled + span { opacity: .45; }

.team-card { background: var(--cream); border: 1.5px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.team-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.team-card-head h3 { font-size: 20px; }
.students { display: flex; flex-direction: column; gap: 10px; }
.student-row { display: grid; gap: 10px; grid-template-columns: 1fr 110px auto; align-items: end; }
.student-row .btn { min-height: 48px; }
.student-row .student-minor { grid-column: 1 / -1; font-size: 14px; margin-top: -2px; }
.student-row + .student-row { border-top: 1px solid var(--line); padding-top: 12px; }
.consent-note { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; background: var(--info-bg); border-radius: 14px; padding: 16px 18px; }
.consent-note > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; color: var(--info-ink); font-size: 15px; }
.consent-note strong { color: var(--ink); font-size: 16px; }
@media (max-width: 560px) { .student-row { grid-template-columns: 1fr 90px; } .student-row .btn { grid-column: 1 / -1; } }

.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); font-weight: 600; text-decoration: underline; cursor: pointer; }
.link-btn.danger { color: var(--err); }

/* ---------- Alerts ---------- */
.alert { border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.alert-ok { background: var(--ok-bg); color: #1D4D31; }
.alert-err { background: var(--err-bg); color: #7A1A14; }
.alert-info { background: var(--info-bg); color: var(--info-ink); }
.alert-warn { background: #FCF1DA; color: #6B4A0C; }

.demo-banner {
  background: #FCF1DA; color: #6B4A0C; font-size: 14px; text-align: center; padding: 8px 16px; border-bottom: 1px solid #F0DDAE;
}
.demo-banner button { margin-left: 8px; }

/* ---------- Panel ---------- */
.panel-top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.team-list { display: flex; flex-direction: column; gap: 18px; }
.team-item { background: var(--white); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.team-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.team-item h3 { font-size: 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.badge-wait { background: #FCF1DA; color: #6B4A0C; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-closed { background: #ECECEC; color: #555; }

.dropzone {
  border: 2px dashed #B9B09C; border-radius: 14px; padding: 22px; text-align: center; background: var(--cream);
  display: flex; flex-direction: column; gap: 8px; align-items: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone.drag { background: var(--info-bg); border-color: var(--navy); }
.dropzone input { display: none; }
.file-line { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; background: var(--cream); border-radius: 12px; padding: 12px 16px; }
.file-name { font-weight: 700; word-break: break-all; }
.progress { width: 100%; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--navy); transition: width .2s; }

/* ---------- Prose (regulamin / RODO) ---------- */
.prose { background: var(--white); border-radius: 22px; padding: clamp(24px, 4vw, 44px); }
.prose h2 { font-size: 24px; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2E323A; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.placeholder { background: #FCF1DA; padding: 0 4px; border-radius: 4px; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Panel: części zespołu i zgody ---------- */
.team-part { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.team-part-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.team-part-head h4 { margin: 0; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.part-no { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.small-link { margin-left: auto; font-size: 15px; font-weight: 600; }
.consent-list { display: flex; flex-direction: column; gap: 10px; }
.consent-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; background: var(--cream); border-radius: 12px; padding: 12px 16px; }
.consent-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.consent-who .small-muted { word-break: break-word; }
.consent-dot { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; background: #FCF1DA; color: #8A5A00; }
.consent-dot.ok { background: var(--ok-bg); color: var(--ok); }
.consent-btn { cursor: pointer; position: relative; }
.consent-btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .consent-row { grid-template-columns: 1fr; } .small-link { margin-left: 0; } }

.panel-top .badge { white-space: normal; }

/* ---------- Panel organizatora (admin.html) ---------- */
.admin-wrap { max-width: 1240px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.admin-stats .stat { border: 1px solid var(--line); }
.admin-stats .stat-value small { font-size: 15px; color: var(--muted-2); font-weight: 600; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-toolbar .input, .admin-toolbar .select { min-height: 40px; padding: 6px 12px; width: auto; font-size: 15px; }
.admin-toolbar .input { flex: 1 1 220px; }
.admin-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); }
.admin-tabs button { background: none; border: 0; font: inherit; font-weight: 700; padding: 10px 14px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.admin-tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--accent); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-table-wrap { overflow-x: auto; background: var(--white); border-radius: 16px; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); background: #FAF8F3; white-space: nowrap; }
.admin-table tbody tr.row-main { cursor: pointer; }
.admin-table tbody tr.row-main:hover { background: #FBFAF6; }
.admin-table tr.row-detail > td { background: #FBFAF6; padding: 16px 18px 20px; }
.admin-table .num { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.admin-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.admin-detail h4 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.admin-detail ul { margin: 0; padding-left: 18px; }
.admin-detail li { margin: 2px 0; }
.dl-link { font-weight: 600; word-break: break-all; }
.tag-light { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--info-bg); color: var(--info-ink); font-size: 13px; font-weight: 700; }
.admin-empty { padding: 28px; text-align: center; color: var(--muted); }
.copy-input { width: 100%; font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.admin-login { max-width: 460px; margin: 0 auto; }


/* =====================================================================
   Odświeżenie 2026-10 — logo RCEZ, kalendarz w hero, nowe sekcje
   ===================================================================== */

/* Logo organizatora w nagłówku (białe tło, bo logo ma szare elementy) */
.org-badge { display: inline-flex; align-items: center; background: var(--white); border-radius: 10px; padding: 4px 8px; margin-right: auto; margin-left: 4px; }
.org-badge img { height: 34px; width: auto; }
.org-badge:hover { box-shadow: 0 0 0 3px rgba(242,184,75,.6); }
@media (max-width: 760px) { .org-badge img { height: 30px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before { /* pas barw flagi Niemiec u góry hero */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #000 0 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%);
}
.hero-org { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--on-navy-2); }
.hero-org img { background: var(--white); border-radius: 8px; padding: 3px 6px; height: 40px; width: auto; }

/* Kalendarz konkursu (adwentowe okienka) */
.calendar-card { background: rgba(255,255,255,.06); border: 1px solid rgba(238,242,246,.16); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.calendar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calendar-head h2 { font-size: 22px; font-weight: 700; }
.calendar-range { font-size: 14px; color: var(--on-navy-2); }
.advent { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.advent-dow { font-size: 12px; font-weight: 700; color: var(--on-navy-2); text-align: center; padding-bottom: 2px; }
.door {
  position: relative; aspect-ratio: 1 / 1; border-radius: 9px; padding: 5px 6px;
  background: rgba(238,242,246,.07); border: 1px solid rgba(238,242,246,.12);
  display: flex; flex-direction: column; justify-content: space-between; color: var(--on-navy); perspective: 400px;
}
.door-we { background: rgba(238,242,246,.035); }
.door-d { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1; }
.door-m { position: absolute; right: 6px; top: 5px; font-size: 10px; font-weight: 700; color: var(--accent); }
.door-label { font-size: 11px; font-weight: 700; line-height: 1.1; }
.door-key { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.door-key .door-d { font-size: 20px; }
.door-key .door-m { color: var(--navy); }
.door-today { outline: 2px solid var(--white); outline-offset: 2px; }
.door-today::before { content: "dziś"; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); background: var(--white); color: var(--navy); font-size: 9px; font-weight: 800; padding: 0 4px; border-radius: 4px; z-index: 2; }
/* Jedyna animacja na stronie: kluczowe okienka "otwierają się" po wczytaniu */
.door-key::after {
  content: ""; position: absolute; inset: -1px; border-radius: 9px; background: #2A4A74;
  border: 1px solid rgba(238,242,246,.25); transform-origin: left center;
  animation: door-open .7s cubic-bezier(.3,.7,.3,1) forwards; animation-delay: calc(.35s + var(--i) * .22s);
}
@keyframes door-open { to { transform: rotateY(-105deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .door-key::after { display: none; } }
.calendar-legend { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 6px 16px; font-size: 15px; color: var(--on-navy); }
.calendar-legend b { color: var(--accent); font-family: var(--font-head); margin-right: 6px; }
@media (max-width: 560px) {
  .door-label { display: none; }
  .door-d { font-size: 13px; } .door-key .door-d { font-size: 15px; }
  .door-m { font-size: 9px; right: 4px; top: 3px; }
  .advent { gap: 4px; }
  .calendar-card { padding: 16px; }
}

/* O konkursie */
.about { display: grid; gap: 28px; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.org-card { background: var(--white); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 16px; border-top: 5px solid var(--green); }
.org-card p { margin: 4px 0 0; }
.org-logo { width: 58px; height: 45px; }
.h-small { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 0; }
.about-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.about-cols .h-section { font-size: clamp(26px, 3vw, 32px); margin-bottom: 14px; }
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--info-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B3557' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Karty form pracy */
.card svg { color: var(--navy); }

/* Tematy */
.topics { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.topic ul { margin: 0; padding-left: 18px; color: var(--on-navy); }
.topic li { margin: 2px 0; }
.topic-no { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topic-tech { background: var(--navy-dark); box-shadow: inset 0 0 0 2px var(--accent); }
.tag { color: var(--cream); font-family: var(--font-body); }

/* Harmonogram */
.schedule { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0 14px 22px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); }
.timeline li.is-key::before { background: var(--accent); border-color: var(--accent); }
.timeline li.is-key .timeline-date { color: var(--red); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* Zgłoszenie */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.docs-box { background: var(--white); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; border-left: 5px solid var(--accent); }

/* Postanowienia końcowe */
.final-notes { padding: 0 0 72px; }
.notes-row { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.notes-row li { background: var(--white); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

/* Stopka z logo */
.f-org { flex-direction: row !important; gap: 14px !important; align-items: flex-start; }
.f-logo { background: var(--white); border-radius: 8px; padding: 3px 6px; height: 40px; width: auto; flex-shrink: 0; }

/* Panel opiekuna: tytuł i link */
.work-form { display: flex; flex-direction: column; gap: 12px; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 14px; font-weight: 600; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Regulamin */
.prose h2 { scroll-margin-top: 16px; }
.doc-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.topic-title { font-size: 21px; hyphens: auto; overflow-wrap: break-word; }
