/* === egzaminkf.pl — styles.css (CLEAN v2) === */
/* Paleta: #001427 (brand), #708D81 (muted/ok), #F4D58D (accent), #BF0603 (bad) */
:root{
  --wrap:1180px;                 /* globalna szerokość kontenera */
  --bg:#f7f9fc; --text:#1f2937; --brand:#001427; --muted:#708D81; --accent:#F4D58D;
  --ok:#708D81; --bad:#BF0603; --radius:12px; --shadow:0 6px 20px rgba(0,0,0,.06);
  --btn-h:36px; --btn-px:14px; --btn-radius:12px; --btn-fs:13px;
  --gap-sm:12px; --gap-md:16px; --gap-lg:24px; --gap-topbar:14px;
  --good-text:#0a7a4b;           /* egzamin (zielony) */
  --good-bg-strong:#E2F1EA;
  --good-br-strong:#B9E6D3;
  --poor-text:#a61b1b;           /* zawody (czerwony) */
  --poor-bg-strong:#FFE1E1;
  --poor-br-strong:#F1B5B5;
}

/* Reset */
*{box-sizing:border-box}
html,body{height:100%}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}

/* TŁO + TYPOGRAFIA */
body{
  margin:0; color:var(--text);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:url('/theme/tlo.jpeg') repeat;
}
.wrap{max-width:var(--wrap); margin:24px auto; padding:0 16px}

/* TOPBAR (wariant B) */
.topbar{background:transparent; position:relative; z-index:1000; margin-top:var(--gap-topbar); margin-bottom:var(--gap-md)}
.topbar .wrap{max-width:var(--wrap); margin:0 auto; padding:0 16px}
.topbar__in{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding-top:6px}
.topbar__brand{display:flex;align-items:center;gap:10px}
.topbar__logo img{display:block;height:100px;width:auto}
@media (max-width:1023px){ .topbar__logo img{height:48px} }
.topbar__logoText{font-weight:600;font-size:20px;letter-spacing:.3px;color:var(--brand)}
.topbar__right{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.toplinks{display:flex;align-items:center;gap:16px;line-height:1}
.toplinks__hi{font-weight:600;color:var(--brand);text-shadow:1px 1px 2px rgba(0,0,0,.15)}
.toplinks__a{font-weight:600;color:var(--brand);text-shadow:1px 1px 2px rgba(0,0,0,.1)}
.toplinks__a:hover,.toplinks__a:focus{color:var(--bad);text-decoration:underline}
.topbar__date{font-size:12px;line-height:1.2;color:#444;text-align:right}
@media (max-width:767px){
  .topbar__in{align-items:flex-start;padding:8px 0}
  .topbar__right{align-items:flex-start}
  .toplinks{gap:12px;flex-wrap:wrap}
  .topbar__date{text-align:left}
}

/* SUBNAV */
.subnav{background:transparent;margin:0 0 var(--gap-md)}
.subnav__in {
  display: flex;
  justify-content: center;   /* wyśrodkowanie linków */
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1;
}
/* === Nawigacja pastelowa (ciepła, zaokrąglona) === */
.subnav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--btn-h) * 0.9);
  padding: 0 calc(var(--btn-px) * 0.8);
  border: 1px solid #e0d3bc;
  border-radius: 8px; /* delikatne zaokrąglenie */
  background-color: #f5e9d6; /* pastelowy beż */
  font-size: calc(var(--btn-fs) * 0.95);
  color: #333;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.subnav__link:hover {
  background-color: #ead8b8; /* cieplejszy beż */
  border-color: #d9c6a8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.subnav__link.active,
.subnav__link[aria-current="page"] {
  background-color: #d5e8c5; /* pastelowy zielony */
  border-color: #c2d8aa;
  color: #2f4f2f;
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* PRZYCISKI (global) */
.btn,button.btn{
  appearance:none;-webkit-appearance:none;
  display:inline-flex;align-items:center;justify-content:center;
  height:var(--btn-h);padding:0 var(--btn-px);
  border:0;border-radius:var(--btn-radius);
  background:var(--brand);color:#fff;font-weight:600;font-size:var(--btn-fs);
  box-shadow:var(--shadow);cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn:disabled{opacity:.6;cursor:not-allowed}

/* TILES (index) */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:860px){.tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
.tile{
  background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);
  padding:14px;min-height:96px;display:flex;align-items:center;justify-content:center;text-align:center;
}
.tile:hover{outline:2px dashed #e5e7eb}

/* TEST – wycinek najważniejszy */
.test__header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 16px}
.test__title{font-size:20px;font-weight:700;color:var(--brand)}
.test__progress{display:flex;align-items:center;gap:10px;color:#6b7280}
.bar{width:240px;height:8px;background:#e5e7eb;border-radius:9999px;overflow:hidden}
.bar__fill{height:100%;background:var(--ok)}

/* Karta pytania */
.question{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;box-shadow:var(--shadow)}
.question__meta{font-size:12px;letter-spacing:.02em;text-transform:uppercase;color:#6b7280;margin-bottom:6px}
.question__text{font-size:18px;font-weight:600;margin:6px 0 10px}
.question__img img{max-width:100%;border-radius:10px;border:1px solid #eef2f7}
.question__options{margin-top:6px}
.option{
  display:flex;align-items:flex-start;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;
  padding:10px 12px;margin:8px 0;transition:.15s border-color,.15s background-color,.15s box-shadow;
}
.option:hover{border-color:var(--brand);background:#f9fafb}
.option input[type="radio"]{margin-top:3px;accent-color:var(--muted)}
.option__letter{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:28px;height:28px;border-radius:8px;background:#f3f4f6;font-weight:700;color:#374151;
}

/* FLASH */
.flash{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff7f0;border:1px solid var(--accent)}

/* WYNIK */
.result__title{font-size:22px;font-weight:700;color:var(--brand);margin:6px 0 12px}
.result__box{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;box-shadow:var(--shadow)}
.result__table{width:100%;border-collapse:collapse;margin-bottom:10px}
.result__table th,.result__table td{padding:8px 10px;border-bottom:1px solid #e5e7eb;text-align:left}
.cell-ok{color:var(--ok);font-weight:700}
.cell-bad{color:var(--bad);font-weight:700}

/* EGZAMINY */
.exams-grid{display:grid;gap:16px;margin:16px 0;grid-template-columns:1fr}
@media (min-width:760px){.exams-grid{grid-template-columns:1fr 1fr}}
.exam-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;box-shadow:var(--shadow)}
.exam-card h3{margin:0 0 4px;font-size:18px;line-height:1.2;color:var(--brand)}
.exam-card p{margin:0 0 12px;color:#6b7280}
.exam-card .btn{background:var(--ok)} 

/* FOOTER */
.footer{background:transparent;border-top:1px solid rgba(0,0,0,.08);margin-top:var(--gap-lg)}
.footer__in{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:12px 0}
.footer__link{
  display:inline-flex;align-items:center;justify-content:center;
  height:36px;padding:0 14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;font-size:13px;line-height:1;
}

/* UTILS */
.m-0{margin:0} .mt-8{margin-top:8px} .mt-16{margin-top:16px} .mt-24{margin-top:24px}
.center{text-align:center}

/* === HERO / BANNER – finalna wersja (2 kolumny) === */
.hero.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;   /* <— było: 1fr 1fr 360px */
  gap:16px;
  align-items:start;
  margin-top:0;
  margin-bottom:var(--gap-md);
}
.hero .card{background:#fff;border-radius:18px;box-shadow:0 8px 24px rgba(0,0,0,.06);padding:14px;height:100%}
.cluster-box__hdr{font-weight:500;margin-bottom:8px;color:var(--brand)}
@media (max-width:1100px){.hero.hero-grid{grid-template-columns:1fr}}

/* DX mini – tabela */
.dxmini__table{width:100%;border-collapse:separate;border-spacing:0 6px}
.dxmini__table thead th{text-align:left;font-weight:500;font-size:12px;padding:4px 6px;color:#6b7280}
.dxmini__table tbody td{font-size:12px;padding:6px 6px;vertical-align:middle;border-bottom:1px solid #ececec}
.dxmini__table .col-utc{font-family:ui-monospace,Consolas,monospace;width:56px}
.dxmini__table .col-band{width:64px}
.dxmini__table .col-dx a{text-decoration:none}
.dxmini__table .col-dx a:hover{text-decoration:underline}
.dxmini__table .is-empty{color:#6b7280;font-style:italic;text-align:left}

/* Online */
.online-inline{margin-top:10px;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.online-inline__label{font-weight:600;margin-right:6px}
.online-inline__names{color:#BF0603;font-weight:600}
.online-more{margin-top:10px;font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Propagacja */
.propago-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.propago-grid .lbl{display:block;font-size:12px;color:var(--muted)}
.propago-grid .val{font-size:20px;font-weight:700}
@media (max-width:760px){.propago-grid{grid-template-columns:repeat(2,1fr)}}

/* Multiline ellipsis */
.multiline-ellipsis{
  line-height:1.3;
  max-height:calc(1.3em * 3);
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

/* DX list podstrona */
.dxlist__tablewrap{overflow:auto;max-height:70vh}
.table thead th{position:sticky;top:0;background:#fff}

/* Responsive tweaks */
@media (max-width:480px){
  .wrap{padding:0 12px}
  :root{ --btn-h:32px; --btn-px:10px; --btn-fs:13px }
  .tile,.card,.result__box{border-radius:10px;padding:12px}
}

/* --- Warunki na pasmach – kompakt + kolory chipów --- */
.band-cond__hdr{font-weight:400;margin:10px 0 6px;color:var(--brand)}
.band-cond__table{width:100%;border-collapse:separate;border-spacing:0 6px;font-size:14px}
.band-cond__table th{text-align:left;font-weight:600;color:#001427}
.band-cond__table td{padding:2px 0}
.band-pill{display:inline-block;padding:1px 4px;border-radius:9999px;font-size: 12px;text-align:center;font-weight:600}
.band-pill.good{background:#e6f7ee;color:#0a7a4b}
.band-pill.fair{background:#fff5cc;color:#8a6d3b}
.band-pill.poor{background:#fde2e1;color:#a61b1b}
.propago-box { padding:10px; }
.propago-box .propago-box__hdr { margin-bottom:6px; }
.propago-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.propago-grid .lbl{ display:block; font-size:12px; color:var(--muted); line-height:1.1; }
.propago-grid .val{ font-size:18px; line-height:1.1; font-weight:600; }
@media (max-width:760px){ .propago-grid{ grid-template-columns:repeat(2,1fr); } }

/* Tabela pasm – układ */
.band-cond__hdr{ font-size:14px; margin:8px 0 6px; color:var(--brand); font-weight:400; }
.band-head{
  display:grid;
  grid-template-columns: 40px 1fr 1fr 40px 1fr 1fr; /* Pasmo | Dzień | Noc × 2 */
  gap:4px 10px;
  font-size:12px;
  color:var(--muted);
  border-bottom:1px solid #ececec;
  padding-bottom:4px;
  margin-bottom:6px;
}
.band-grid{
  display:grid;
  grid-template-columns: 1fr 1fr; /* 2 kolumny pasm */
  gap:6px 14px;
  font-size:13px;
}
.band-row{
  display:grid;
  grid-template-columns: 40px 1fr 1fr; /* nazwa + dzień + noc */
  align-items:center;
  gap:6px;
}
.band-row .lbl{ font-size:11px; color:var(--muted); }
.band-row span[id^="b"]{
  display:inline-block;
  min-width:40px;
  text-align:center;
  font-size: 12px;
  border-radius:6px;
  padding:1px 4px;
  line-height:1.25;
  border:1px solid transparent;
  background:#f7f8f9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.band-row span.good{  color:#0a7a4b; border-color:#cfe9dc; background:#f3faf6; }
.band-row span.fair{  color:#8a6d3b; border-color:#e9dec5; background:#fdf9f0; }
.band-row span.poor{  color:#a61b1b; border-color:#efc5c5; background:#fff5f5; }
.band-row span.closed{ color:#6b7280; border-color:#e5e7eb; background:#fafafa; }

/* A11y */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path: inset(50%);
  white-space:nowrap;
  border:0;
}

/* Nagłówki kart w bannerze – semibold 600 */
.cluster-box__hdr{ font-weight:600; }         
.propago-box__hdr{ font-weight:600; }         

/* Karty globalnie (poza .hero) */
.card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  padding:14px;
}

/* --- ON AIR (jedna definicja animacji) --- */
@keyframes onair-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(191,6,3,.15), 0 0 10px rgba(191,6,3,.45); }
  50%      { box-shadow: 0 0 0 3px rgba(191,6,3,.25), 0 0 16px rgba(191,6,3,.75); }
}
.onair-badge { animation: onair-pulse 1.6s ease-in-out infinite; }
.onair { border:1px solid #BF0603; animation: onair-pulse 2s infinite; }

/* Mobile: ukryj "Dzisiaj" i "Warunki propagacyjne" */
@media (max-width: 840px){
  .today-box,   /* z dzisiaj.php: <div class="card today-box">… */
  .propago-box  /* z propagacja.php: <div class="card propago-box">… */
  { display: none !important; }
}

/* === Kalendarz mini – kropki/liczniki === */
.calendar-mini .day { position: relative; }
.calendar-mini .dots { margin-top: 2px; gap: 3px; }
.calendar-mini .dot { width:6px; height:6px; border-radius:50%; }
.calendar-mini .dot[data-count]:after{
  content: attr(data-count);
  font-size:10px; color:#fff;
  background:#001427; border-radius:50%;
  padding:0 3px; margin-left:2px;
}

/* === PIN/UNPIN – wygląd jak w mini-kalendarzu (outline pill) === */
/* Paleta spójna z theme/calendar.css: 
   --good-*: egzamin (zielony pastel), --poor-*: zawody (czerwony pastel) */

/* Fine-tuning przycisków pin/unpin */
.btn.btn-pin.btn-chip,
.btn.btn-unpin.btn-chip {
  height:auto !important;        /* niższe */
  padding:6px 6px !important;      /* ciaśniejsze w poziomie */
  font-size:11px !important;     /* mniejsza czcionka */
  border-radius:6px !important;  /* mniej zaokrąglone */
  line-height:1.4;               /* wyższy wiersz → więcej powietrza */
  font-weight:600;
  gap:4px;                       /* odstęp między 📌 a tekstem */
}

/* PRZYPNIJ */
.btn.btn-pin{
  background:var(--good-bg-strong, #E2F1EA) !important;
  border:1px solid var(--good-br-strong, #B9E6D3) !important;
  color:var(--good-text, #0a7a4b) !important;
}
.btn.btn-pin:hover{
  filter:none;
  background:color-mix(in srgb, var(--good-bg-strong, #E2F1EA) 92%, white) !important;
}

/* ODEPNIJ */
.btn.btn-unpin{
  background:var(--poor-bg-strong, #FFE1E1) !important;
  border:1px solid var(--poor-br-strong, #F1B5B5) !important;
  color:var(--poor-text, #a61b1b) !important;
}
.btn.btn-unpin:hover{
  filter:none;
  background:color-mix(in srgb, var(--poor-bg-strong, #FFE1E1) 92%, white) !important;
}

/* Ikony – dopasowane kolorem do tekstu (currentColor) */
.btn .ico{
  width:1em; height:1em; display:inline-block; position:relative; flex:0 0 auto;
}
.btn .ico::before{ content:"📌"; color:currentColor; }
.btn-unpin .ico::before{ content:"📍"; color:currentColor; }

/* === EKF: układ kart wydarzeń (fix po czyszczeniu) === */
/* Ustawia wiersz karty na flex i przesuwa przyciski na prawą krawędź. */
.event-row,
.event-head,
.event-line{
  display:flex;
  align-items:flex-start;   /* czasy START/STOP wyrównane do góry */
  gap:12px;
}

.event-actions{
  margin-left:auto;         /* PRZESUŃ przyciski na prawo */
  display:flex;
  align-items:center;
  gap:10px;
}

/* (opcjonalnie) na bardzo wąskich ekranach pozwól zawijać się zawartości,
   ale zostaw przyciski po prawej w swojej linii */
@media (max-width:560px){
  .event-row{ flex-wrap:wrap; }
  .event-actions{ width:100%; justify-content:flex-end; }
}

/* === EKF: przycisk logowania w kartach wydarzeń === */
.btn-login {
  background:#f3f4f6 !important;   /* jasnoszare tło */
  border:1px solid #444 !important;/* grafitowa obwódka */
  color:#3a3a3a !important;           /* prawie czarny tekst */
  border-radius:6px;               /* jak pille w mini-kalendarzu */
  font-size:12px;
  font-weight:600;
  padding:2px 8px;
  line-height:1.2;
  white-space:nowrap;
}
.btn-login:hover {
  background:#e5e7eb !important;   /* lekko ciemniejsze szare na hover */
}

/* Mini-kalendarz: podświetlenie dni z wydarzeniami */
.mini__cell.has-events {
  background: #f0fdf4;                  /* jasny zielony pastel */
  border: 1px solid #bbf7d0;            /* lekko zielona ramka */
}

/* === EKF: licznik zainteresowanych pod przyciskiem PIN/UNPIN === */
.pin-wrap{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.interest-note{ font-size:12px; color:#6b7280; line-height:1.2; text-align:right; }

/* === me.php: pasek profilu === */
.profile-card{display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:center;margin:16px 0}
@media (max-width:800px){.profile-card{grid-template-columns:48px 1fr;grid-template-areas:'ava main' 'acts acts'}}
.profile-avatar{width:64px;height:64px;border-radius:999px;overflow:hidden;background:#f1f5f9;display:flex;align-items:center;justify-content:center}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-initials{font-weight:800;font-size:18px;color:#334155}
.profile-main{min-width:0}
.profile-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.profile-name{font-size:18px;font-weight:700}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid #cbd5e1;background:#fff;color:#111}
.badge-call{background:#001427;color:#fff;border-color:#001427}
.badge-soft{background:#f8fafc;color:#334155}
.profile-meta{margin-top:4px;color:#475569;font-size:14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.profile-actions{white-space:nowrap}
.profile-actions .sep{margin:0 6px;color:#94a3b8}
.profile-meta .sep{color:#94a3b8}
button.linklike{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-decoration:none}
button.linklike:hover{text-decoration:underline}
.linklike-a{text-decoration:underline}
.linklike-a:hover{text-decoration:none}

/* me.php – akcje w pasku profilu: prawa krawędź, kolumna, mała czcionka, bez podkreśleń */
.profile-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;   /* wyrównanie do prawej */
  gap:4px;
}
.profile-actions .profile-action-form{ display:inline; } /* porządek */
.link-plain{
  background:none;
  border:0;
  padding:0;
  margin:0;
  font:inherit;
  color:inherit;
  cursor:pointer;
  text-decoration:none !important;  /* bez podkreślenia */
}
.link-plain:hover,
.link-plain:focus{ text-decoration:none !important; }

/* nadpisujemy starą zasadę, jeśli była: */
.profile-actions .sep{ display:none; }

/* (jeśli masz gdzieś .profile-actions{white-space:nowrap}) – nadpisz: */
.profile-actions{ white-space:normal; }

/* me.php — akcje w pasku profilu (po prawej) */
.profile-card .profile-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;         /* prawa krawędź */
  gap:4px;
  font-size:12px;               /* mniejsza czcionka */
  line-height:1.3;
  color:#475569;
}

/* linki/btny jak zwykły tekst — bez podkreśleń */
.profile-card .profile-actions a,
.profile-card .profile-actions button{
  font-size:12px;
  background:none;
  border:0;
  padding:0;
  margin:0;
  font:inherit;
  color:inherit;
  cursor:pointer;
  text-decoration:none !important;
}
.profile-card .profile-actions a:hover,
.profile-card .profile-actions button:hover{
  text-decoration:none !important;
}

/* === Home Exams (fix 2 kolumny + zielony styl) === */
.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;
}

/* siatka 2×2 */
.home-exams{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;                    /* zmniejszone odstępy */
  margin:16px 0;
}

/* 1 kolumna na telefonie */
@media (max-width:860px){
  .home-exams{ grid-template-columns:1fr; }
}

/* karta egzaminu */
.home-exams .exam-card{
  display:flex;
  align-items:center;          /* pionowe wyśrodkowanie */
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  min-height:72px;             /* kompaktowa wysokość */
  border-radius:14px;
  background:#ecf9f1;          /* ZIELONE TŁO */
  border:1px solid #cdebd6;    /* ZIELONY BORDER */
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  flex-wrap:nowrap;            /* NIC nie łamie się do nowej linii */
}

/* lewa kolumna z tekstem */
.home-exams .exam-card__left{
  flex:1 1 auto;
  min-width:0;                 /* zapobiega „rozpychaniu” */
}
.home-exams .exam-card__left .exam-title{
  margin:0 0 2px 0;
  font-size:16px; line-height:1.25; font-weight:700;
  color:#1f2937;
}
.home-exams .exam-card__left .exam-sub{
  margin:0; font-size:13px; line-height:1.35; color:#374151;
}

/* prawa kolumna z przyciskiem */
.home-exams .exam-card__right{
  flex:0 0 auto;
  display:flex; align-items:center; justify-content:flex-end;
}

/* przycisk START */
.home-exams .btn.btn-start{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 14px; height:34px;
  border-radius:10px;
  background:#2c7a4b;          /* zieleń przycisku */
  color:#fff; text-decoration:none; font-size:13px; font-weight:600;
  white-space:nowrap;          /* nie łamie się w dwóch liniach */
  box-shadow:0 2px 4px rgba(0,0,0,.25);         /* cień */
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.home-exams .btn.btn-start:hover{
  filter:brightness(.96);
  transform:translateY(-1px);
  box-shadow:0 4px 8px rgba(0,0,0,.28);
}
.home-exams .btn.btn-start:active{
  transform:translateY(0); box-shadow:0 2px 4px rgba(0,0,0,.25);
}

/* ikonka w przycisku (jeśli używasz znaku „▶”) */
.home-exams .btn-ico{ display:inline-block; font-size:14px; line-height:1; }

/* === NEWS: widok artykułu === */
.breadcrumbs{margin:8px 0 12px;color:#6b7280;font-size:14px}
.breadcrumbs a{color:inherit;text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}

.news-article{
  background:#fff;border-radius:16px;padding:22px;
  box-shadow:0 6px 24px rgba(0,0,0,.06)
}
.article-header{margin:0 0 14px}
.news-title{margin:0 0 6px 0;font-size:28px;line-height:1.2}
.article-sub{color:#6b7280;font-size:14px;display:flex;gap:8px;flex-wrap:wrap}
.article-sub .dot{opacity:.7}
.news-chip{
  display:inline-block;padding:2px 10px;border-radius:999px;
  border:1px solid #e5e7eb;background:#f8fafc;text-decoration:none;color:#111827
}
.news-chip:hover{background:#fff}

.article-bar{
  height:4px;border-radius:999px;margin-top:10px;
  background:linear-gradient(90deg,#0a3b4a 0%,#00a67e 100%)
}

/* mniejsze, wyśrodkowane */
.news-thumb{
  margin:14px 0;
  display:flex;
  justify-content:center;
}
.news-thumb img{
  display:block;
  width:100%;
  max-width:720px;        /* ← tu zmieniasz limit szerokości, np. 640/800 */
  height:auto;
  border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.08);
}
@media (max-width:820px){
  .news-thumb img{ max-width:100%; } /* na telefonie pełna szerokość karty */
}

.news-body{line-height:1.7;font-size:16px}
.news-body p{margin:12px 0}
.news-body a{color:#0a7f66;text-decoration:underline}
.news-body a:hover{opacity:.9}

.news-pager{display:flex;justify-content:space-between;margin-top:18px}

/* --- Banner: 2 kolumny na sztywno --- */
.hero-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; }
#heroLeft,#heroRight{ min-width:0; min-height:0; }

/* Scroll tylko na prawym wrapperze */
#heroRight{ overflow:auto; }
.heroRightInner{ height:100%; overflow:visible !important; }

/* Zbij wszystkie scroll/max-height wewnątrz bloku "Dzisiaj" (nieważne jak się nazywa) */
#heroRight [style*="overflow"]{ overflow:visible !important; }
#heroRight [style*="max-height"]{ max-height:none !important; }
#heroRight .ekf-today, 
#heroRight .ekf-today-list,
#heroRight .ekf-today-wrap,
#heroRight .ekf-today-scroll{ overflow:visible !important; max-height:none !important; }

/* Mobile: jedna kolumna, bez scrolla wewnątrz */
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  #heroRight{ overflow:visible; height:auto !important; }
  .heroRightInner{ height:auto; }
}

/* === HERO — 2 kolumny full width + stała wysokość + 1 scroll === */
:root{
  /* USTAW TUTAJ docelową wysokość paneli */
  --hero-h: 360px; /* np. 360–420px; dobierz pod swój kalendarz */
}

.hero-grid{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr); /* dokładnie 2 kolumny */
  gap: 16px;
  width: 100%;
}

/* Stała wysokość obu kolumn */
#heroLeft, #heroRight{ height: var(--hero-h); min-width:0; }
#heroLeft > *, #heroRight > *{ height: 100%; }

/* ZERO przewijania na wrapperze prawej kolumny (żeby nie było 2 pasków) */
#heroRight{ overflow: visible; }

/* „Dzisiaj” ma wypełniać całą wysokość kolumny */
#heroRight .today-box{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;          /* trzyma ładne zaokrąglenia karty */
}

/* JEDEN scroll tylko na liście wydarzeń */
#heroRight .today-list{
  flex: 1 1 auto;
  max-height: none !important;
  overflow: auto !important;
}

/* Mobile: jedna kolumna, bez wewnętrznych scrolli */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  #heroLeft, #heroRight,
  #heroLeft > *, #heroRight > *{ height: auto; }
  #heroRight .today-box{ overflow: visible; }
  #heroRight .today-list{ overflow: visible !important; }
}

/* === HERO — kolumny rozciągnięte na pełną szerokość grida === */
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr); /* 2 równe kolumny */
  gap:16px;
  width:100%;
}

/* Stała wysokość (jak wcześniej) */
:root{ --hero-h: 300px; }                /* dostosuj w razie potrzeby */
#heroLeft, #heroRight{ height:var(--hero-h); min-width:0; }
#heroLeft > *, #heroRight > *{
  height:100%;
  width:100% !important;                 /* ROZCIĄGNIJ na całą kolumnę */
  max-width:none !important;             /* usuń ograniczenia szerokości kart */
  box-sizing:border-box;
}

/* Karta „Dzisiaj” też na 100% szerokości i czysty jeden scroll w środku */
#heroRight{ overflow:visible; }
#heroRight .today-box{
  height:100%;
  width:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#heroRight .today-list{
  flex:1 1 auto;
  overflow:auto !important;
  max-height:none !important;
}

/* Mobile: jedna kolumna, bez wewnętrznych scrolli */
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  #heroLeft, #heroRight,
  #heroLeft > *, #heroRight > *{ height:auto; width:100%; }
  #heroRight .today-box{ overflow:visible; }
  #heroRight .today-list{ overflow:visible !important; }
}

/* =========================================================
   HOME — WYZWANIE + Q-KODY (FINAL, BEZ BADGE)
   ========================================================= */

/* --- UKŁAD DWÓCH KOLUMN --- */
.home-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  align-items:stretch;   /* to już masz */
}

.home-two__col{
  display:flex;          /* ← KLUCZ */
}

.home-two__col > *{
  flex:1 1 auto;         /* ← KLUCZ */
}

/* KAFEL = __in, więc on ma wypełniać wysokość kolumny */
.home-challenge__in,
.home-qkody__in{
  height:100%;
}

/* =========================================================
   WYZWANIE — LEWA KOLUMNA
   ========================================================= */

.home-challenge{ margin:0; }

.home-challenge .home-challenge__in{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  padding:10px 14px;

  display:grid;
  grid-template-columns: 1fr 220px;   /* CONTENT | ACTIONS */
  gap:24px;
  align-items:stretch;
}

/* CONTENT */
.home-challenge__content{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:640px;
}

.home-challenge__content h3{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.2;
  color:#111827;
  font-weight:700;
}

.home-challenge__content ul{
  margin:0;
  padding-left:18px;
  color:#374151;
  font-size:13px;
  line-height:1.35;
}
.home-challenge__content li{ margin:2px 0; }

/* ACTIONS */
.home-challenge__actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  justify-content:center;
  width:220px;
}
.home-challenge__actions .btn{
  width:100%;
  height:36px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  box-shadow:none;
}

/* przyciski */
.btn.btn-wyzwanie{
  background:#BF0603 !important;
  border:1px solid #BF0603 !important;
  color:#fff !important;
}
.btn.btn-wyzwanie:hover{ filter:brightness(.95); }

.btn.btn-wyzwanie-secondary{
  background:#001427 !important;
  border:1px solid #001427 !important;
  color:#fff !important;
}
.btn.btn-wyzwanie-secondary:hover{ filter:brightness(1.05); }

/* =========================================================
   Q-KODY — PRAWA KOLUMNA
   ========================================================= */

.home-qkody{ margin:0; }

.home-qkody .home-qkody__in{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  padding:10px 14px;

  display:grid;
  grid-template-columns: 1fr 220px;   /* CONTENT | ACTION */
  gap:24px;
  align-items:stretch;
}

/* CONTENT */
.home-qkody__content{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:640px;
}

.home-qkody__content h3{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.2;
  color:#111827;
  font-weight:700;
}
.home-qkody__content p{
  margin:0;
  color:#374151;
  font-size:13px;
  line-height:1.35;
}

/* ACTION */
.home-qkody__actions{
  display:flex;
  align-items:center;
  justify-content:center;
  width:220px;
}
.home-qkody__actions .btn{
  width:100%;
  height:36px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  box-shadow:none;
  white-space:nowrap;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:860px){
  .home-two{
    grid-template-columns:1fr;
  }

  .home-challenge .home-challenge__in,
  .home-qkody .home-qkody__in{
    grid-template-columns:1fr;
    gap:12px;
  }

  .home-challenge__actions,
  .home-qkody__actions{
    width:auto;
    flex-direction:row;
  }

  .home-challenge__actions .btn,
  .home-qkody__actions .btn{
    flex:1 1 160px;
  }
}
