/* Zwarta zapowiedź najbliższej rundy — jeden układ bez nakładających się nadpisań. */
body.wkl-home-redesign #start.hero > .hero-grid {
  grid-template-columns: minmax(0, .76fr) minmax(620px, 1.24fr) !important;
  gap: clamp(28px, 4vw, 62px) !important;
}

.wkl-home-redesign #start .event-card.next-event-panel {
  position: relative !important;
  isolation: isolate;
  width: 100% !important;
  max-width: 760px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-left: 3px solid #e10600 !important;
  border-radius: 16px !important;
  clip-path: none !important;
  background:
    radial-gradient(circle at 96% 0, rgba(225,6,0,.16), transparent 28%),
    linear-gradient(145deg, rgba(18,20,24,.98), rgba(6,7,9,.99)) !important;
  box-shadow: 0 28px 72px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.04) !important;
}

.wkl-home-redesign #start .next-event-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(122deg, transparent 0 69%, rgba(225,6,0,.04) 69.2% 69.8%, transparent 70%);
  pointer-events: none;
}
.wkl-home-redesign #start .next-event-panel::after { display: none !important; }
.next-event-panel *, .next-event-body > * { min-width: 0; box-sizing: border-box; }

.next-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 13px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.wkl-home-redesign #start .next-event-header h2 {
  display: block !important;
  margin: 0 0 3px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  letter-spacing: .15em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}
.next-event-header p { margin: 0; color: #858a92; font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.next-event-round-code { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 32px; flex: 0 0 auto; border: 1px solid rgba(225,6,0,.62); border-radius: 999px; background: rgba(225,6,0,.1); color: #fff; font-size: 12px; font-weight: 950; letter-spacing: .08em; }

.next-event-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr);
  grid-template-areas:
    "intro track"
    "details track"
    "registration track"
    "countdown countdown";
  gap: 12px 16px;
  padding-top: 15px;
}

.next-event-intro { grid-area: intro; align-self:start; padding: 2px 2px 0; }
.next-event-intro h3 {
  max-width: 100%;
  margin: 0;
  color: #f7f7f8;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 950;
  line-height: .88;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-transform: uppercase;
}
.next-event-title-accent { display: block; width: 68px; height: 3px; margin-top: 13px; background: #e10600; box-shadow: 0 0 14px rgba(225,6,0,.45); }

.next-event-track {
  grid-area: track;
  align-self: stretch;
  min-height: 0;
  margin: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(225,6,0,.1), transparent 64%), rgba(5,6,8,.48);
}
.next-event-track figcaption { order: 0; position: static; width: 100%; margin: 0 0 8px; padding: 0; color: #8a8f97; font-size: 9px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.next-event-track-media { position: relative; display: grid; place-items: center; flex: 1 1 auto; width: 100%; min-height: 210px; max-height: 310px; overflow: hidden; }
.next-event-track img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 310px; object-fit: contain; object-position: center; filter: contrast(1.18) brightness(1.08) drop-shadow(0 10px 18px rgba(225,6,0,.25)); }
.next-event-track-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; border: 1px dashed rgba(255,255,255,.14); border-radius: 8px; background: #0a0c0f; color: #8b9098; font-size: 11px; font-weight: 800; text-align: center; }
.next-event-track-placeholder[hidden] { display: none !important; }

.next-event-details { grid-area: details; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.wkl-home-redesign #start .next-event-detail {
  min-height: 82px;
  padding: 10px 8px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: start;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.next-event-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(225,6,0,.42); border-radius: 7px; background: rgba(225,6,0,.1); color: #ff3933; font-size: 14px; }
.next-event-detail small, .next-event-deadline small { display: block; margin-bottom: 4px; color: #ef3933; font-size: 8px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.next-event-detail strong { display: block; color: #f2f3f5; font-size: 10px; line-height: 1.32; overflow-wrap: anywhere; }

.next-event-registration {
  grid-area: registration;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(100px,.75fr);
  gap: 8px 12px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: linear-gradient(130deg, rgba(255,255,255,.045), rgba(0,0,0,.12));
}
.next-event-deadline { align-self:center; }
.next-event-deadline > span { display:block; color:#8e939b; font-size:10px; }
.next-event-deadline strong { display:block; margin-top:3px; color:#fff; font-size:13px; line-height:1.2; overflow-wrap:anywhere; }
.wkl-home-redesign #start .next-event-panel .registration-count-card { min-height: 0 !important; margin: 0 !important; padding: 0 !important; display: grid !important; place-items: center !important; border: 0 !important; border-left: 1px solid rgba(255,255,255,.1) !important; border-radius: 0 !important; background: transparent !important; text-align: center !important; }
.wkl-home-redesign #start .next-event-panel .registration-count-copy { display: grid !important; gap: 3px !important; justify-items: center; }
.wkl-home-redesign #start .next-event-panel .registration-count-value { color:#fff; font-size:34px !important; font-weight:950; line-height:.82 !important; }
.wkl-home-redesign #start .next-event-panel .registration-count-label { max-width:100px !important; color:#a7abb1 !important; font-size:7px !important; line-height:1.2 !important; letter-spacing:.08em !important; text-transform:uppercase; }
.next-event-cta { grid-column: 1 / -1; width: 100%; min-height: 42px !important; padding-inline: 16px !important; font-size: 11px !important; }

.wkl-home-redesign #start .next-event-panel .countdown {
  grid-area: countdown;
  min-height: 68px;
  margin: 0 !important;
  padding: 0 8px !important;
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 0 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 10px;
  background: rgba(4,5,7,.42);
}
.wkl-home-redesign #start .next-event-panel .countdown-item { min-height: 0 !important; padding: 10px 6px !important; display: flex; align-items: baseline; justify-content: center; gap: 5px; border: 0 !important; border-right: 1px solid rgba(255,255,255,.1) !important; border-radius: 0 !important; background: transparent !important; }
.wkl-home-redesign #start .next-event-panel .countdown-item:last-child { border-right: 0 !important; }
.wkl-home-redesign #start .next-event-panel .countdown-item::before { display:none !important; }
.wkl-home-redesign #start .next-event-panel .countdown-value { color:#f22b25; font-size:24px !important; font-weight:950; line-height:1 !important; font-variant-numeric:tabular-nums; }
.wkl-home-redesign #start .next-event-panel .countdown-label { color:#a1a5ab; font-size:7px !important; font-weight:900; letter-spacing:.08em !important; text-transform:uppercase; }

@media (max-width: 1100px) {
  body.wkl-home-redesign #start.hero > .hero-grid { grid-template-columns: 1fr !important; }
  .wkl-home-redesign #start .event-card.next-event-panel { max-width: 760px !important; }
}

@media (max-width: 700px) {
  .wkl-home-redesign #start .event-card.next-event-panel { max-width: 100% !important; padding: 14px !important; border-radius: 13px !important; }
  .next-event-body {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "intro" "track" "details" "registration" "countdown";
    gap: 11px;
    padding-top: 13px;
  }
  .next-event-intro h3 { font-size: clamp(32px, 11vw, 46px); overflow-wrap: normal; }
  .next-event-track { height: auto; min-height: 0; padding: 12px; }
  .next-event-track-media { height: clamp(230px, 70vw, 290px); min-height: 0; max-height: 290px; }
  .next-event-track img { height: 100%; max-height: 290px; }
  .next-event-details { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .wkl-home-redesign #start .next-event-detail { min-height: 58px; padding: 9px 10px; grid-template-columns: 31px minmax(0,1fr); align-items:center; }
  .next-event-icon { width:31px; height:31px; }
  .next-event-detail strong { font-size:12px; }
  .next-event-registration { padding: 12px; }
  .next-event-deadline strong { font-size: 15px; }
  .wkl-home-redesign #start .next-event-panel .registration-count-value { font-size: 32px !important; }
  .wkl-home-redesign #start .next-event-panel .countdown { min-height: 62px; padding-inline: 3px !important; }
  .wkl-home-redesign #start .next-event-panel .countdown-item { padding-inline: 2px !important; gap: 3px; }
  .wkl-home-redesign #start .next-event-panel .countdown-value { font-size: clamp(18px, 6vw, 24px) !important; }
  .wkl-home-redesign #start .next-event-panel .countdown-label { font-size: 6px !important; letter-spacing:.03em !important; }
}

@media (max-width: 390px) {
  .next-event-header { gap: 10px; }
  .wkl-home-redesign #start .next-event-header h2 { font-size: 13px !important; letter-spacing: .1em !important; }
  .next-event-header p { font-size: 8px; }
  .next-event-round-code { min-width: 51px; height: 30px; }
  .next-event-track-media { height: 270px; }
  .next-event-registration { grid-template-columns: minmax(0,1fr) 92px; }
}
