/* ===== Bielsko-Biała ● Integracja — styl jak w grafikach bota ===== */
@font-face { font-family: Poppins; src: url(fonts/Poppins-Medium.ttf) format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(fonts/Poppins-Bold.ttf) format("truetype"); font-weight: 600 800; font-display: swap; }

:root {
  --red: #ff3b47;
  --red-dark: #c8141f;
  --red-deep: #8e0d16;
  --bg-1: #6a0c14;
  --bg-2: #1c0508;
  --bg-3: #050203;
  --white: #ffffff;
  --text: #eee8e8;
  --gray: #c4bcbc;
  --muted: #8f8587;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --discord: #5865f2;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-3); }
body {
  margin: 0; min-height: 100vh;
  color: var(--text);
  font-family: Poppins, system-ui, sans-serif; font-weight: 500; line-height: 1.6;
  background:
    radial-gradient(ellipse 90% 60% at 85% 6%, rgba(106, 12, 20, .5), transparent 60%),
    radial-gradient(ellipse 120% 80% at 15% 0%, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%) fixed;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.hp { position: absolute; left: -9999px; }
.dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--red); margin: 0 .5em; vertical-align: .1em; }
.x { color: var(--red); font-weight: 700; }

/* ===== nagłówek ===== */
.top { position: sticky; top: 0; z-index: 20; background: rgba(5, 2, 3, .75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand img { width: 32px; height: auto; }
.brand .names { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand small { color: var(--gray); font-size: 13px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--gray); font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--white); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--white); background: rgba(255, 59, 71, .16); box-shadow: inset 0 0 0 1px rgba(255, 59, 71, .35); }

.pill {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; text-align: center;
  font: 700 15px Poppins, sans-serif; color: var(--white);
  padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  box-shadow: 0 6px 20px rgba(255, 59, 71, .25);
  transition: transform .15s, filter .15s;
}
.pill:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pill:disabled { opacity: .55; cursor: default; transform: none; }
.pill.discord { background: linear-gradient(180deg, #6873f5, var(--discord)); box-shadow: 0 6px 20px rgba(88, 101, 242, .3); }
.pill.big { padding: 14px 28px; font-size: 16px; }
.ghost {
  display: inline-block; text-decoration: none; color: var(--white); font-weight: 600; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); transition: border-color .15s, background .15s;
}
.ghost:hover { border-color: var(--red); background: rgba(255, 59, 71, .08); }

/* telefon: menu pod logo */
@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; gap: 8px 12px; }
  .top-inner > .pill { margin-left: auto; padding: 8px 16px; font-size: 14px; }
  .nav { order: 3; width: 100%; margin: 0 -6px; justify-content: space-between; }
  .nav a { flex: 1; text-align: center; padding: 10px 6px; font-size: 14px; border-radius: 12px 12px 0 0; }
  .nav a[aria-current="page"] { background: transparent; box-shadow: inset 0 -3px 0 var(--red); }
}
@media (max-width: 380px) {
  .brand .names small { display: none; }
  .brand b { font-size: 14px; }
  .top-inner > .pill { padding: 8px 13px; font-size: 13px; }
}

/* ===== hero ===== */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 52px 16px 34px; }
.bar { display: block; width: 52px; height: 5px; border-radius: 3px; background: var(--red); margin-bottom: 18px; }
.hero h1 { margin: 0; font-size: clamp(44px, 10vw, 76px); line-height: 1.02; font-weight: 800; color: var(--white); letter-spacing: -.01em; }
.hero h1 span { color: var(--red); }
.sub { margin: 12px 0 0; color: var(--gray); font-size: 17px; }
.lead { margin: 18px 0 0; color: var(--gray); max-width: 520px; font-size: 16px; }
.lead b { color: var(--white); }
.collab { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.collab b { color: var(--gray); }
.collab .round { border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.pin { flex-shrink: 0; width: 120px; height: 170px; margin-right: 40px; filter: drop-shadow(0 0 38px rgba(255, 59, 71, .55)); }
.cal-art { height: 120px; }
@media (max-width: 640px) { .pin { display: none; } .hero { padding-top: 34px; } }

/* hero strony głównej — jak grafika „Twoje miasto. Twoja ekipa.” */
.home-hero { padding-top: 64px; padding-bottom: 56px; }
.home-hero h1 { font-size: clamp(42px, 8vw, 78px); }
.hero-art { position: relative; width: 360px; height: 360px; flex-shrink: 0; }
.art-card {
  position: absolute; inset: 30px 30px 20px 50px; transform: rotate(-4deg);
  background: #2a2a2e; border-radius: 30px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 80px rgba(255, 59, 71, .18);
}
.art-card .row { height: 38px; border-radius: 12px; background: #3a3a40; position: relative; }
.art-card .row::before { content: ""; position: absolute; left: 14px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #e6e6e6; }
.art-card .row::after { content: ""; position: absolute; left: 38px; top: 15px; width: 55%; height: 8px; border-radius: 4px; background: #5c5c63; }
.art-card .row.hot { background: linear-gradient(90deg, var(--red), var(--red-dark)); transform: scale(1.04); }
.art-card .row.hot::after { background: #f2f2f2; }
.chip { position: absolute; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #2a2a2e; background: linear-gradient(180deg, #fff, #d9d9d9); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.chip.red { color: #fff; background: linear-gradient(180deg, var(--red), var(--red-dark)); }
.chip-1 { top: 6px; right: 0; transform: rotate(-5deg); }
.chip-2 { bottom: 0; right: 10px; transform: rotate(-4deg); }
.chip-3 { bottom: 34px; left: 0; transform: rotate(3deg); background: #1f1f23; color: #eee; }
.art-logo { position: absolute; left: 4px; top: 40px; width: 62px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .6)); }
@media (max-width: 900px) { .hero-art { width: 280px; height: 300px; } }
@media (max-width: 760px) { .hero-art { display: none; } .home-hero { padding-top: 40px; padding-bottom: 30px; } }

/* ===== sekcje ===== */
.block { padding-top: 26px; padding-bottom: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title { font-size: 24px; color: var(--white); margin: 0 0 16px; font-weight: 700; }
.muted-title { color: var(--gray); }
.more-link { color: var(--red); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; }
.feature h3 { margin: 12px 0 6px; color: var(--white); font-size: 18px; }
.feature p { margin: 0; color: var(--gray); font-size: 14.5px; }
.f-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; background: rgba(255, 59, 71, .14); box-shadow: inset 0 0 0 1px rgba(255, 59, 71, .3); }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; gap: 10px; }
  .feature { padding: 14px 16px; display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: start; }
  .f-ico { width: 42px; height: 42px; font-size: 20px; grid-row: span 2; }
  .feature h3 { margin: 0 0 2px; font-size: 16px; }
  .feature p { font-size: 13.5px; }
}

.join { display: flex; align-items: center; justify-content: space-between; gap: 20px 30px; padding: 30px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255, 59, 71, .18), rgba(255, 255, 255, .05)); }
.join h2 { margin: 0 0 6px; color: var(--white); font-size: 26px; }
.join p { margin: 0; color: var(--gray); max-width: 480px; }
.join .cta-row { margin-top: 0; }

/* ===== wydarzenia ===== */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.event { display: flex; gap: 18px; padding: 20px; }
.cal {
  flex-shrink: 0; width: 66px; height: 72px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 8px 22px rgba(255, 59, 71, .28);
}
.cal b { font-size: 28px; line-height: 1; }
.cal span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.event-body { min-width: 0; }
.event h3 { margin: 0 0 8px; color: var(--white); font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.meta-list { list-style: none; margin: 0; padding: 0; color: var(--gray); font-size: 14.5px; }
.meta-list li { display: flex; gap: 8px; }
.ico { width: 18px; flex-shrink: 0; }
.event-desc { margin: 10px 0 0; font-size: 14.5px; color: var(--text); white-space: pre-wrap; }
.event-link { display: inline-block; margin-top: 10px; color: #a5aefc; text-decoration: none; font-weight: 600; font-size: 14px; }
.event-link:hover { text-decoration: underline; }
.event.past { opacity: .6; }
.event.past .cal { background: #3a3a40; box-shadow: none; }
@media (max-width: 400px) { .events { grid-template-columns: 1fr; } .event { padding: 16px; gap: 14px; } .cal { width: 56px; height: 62px; } }

/* ===== spotted ===== */
.composer { padding: 22px; margin-bottom: 40px; }
.composer h2 { margin: 0 0 14px; font-size: 20px; color: var(--white); }
.composer label { display: block; color: var(--gray); font-size: 13px; margin-bottom: 14px; }
input, textarea {
  display: block; width: 100%; margin-top: 6px;
  background: rgba(0, 0, 0, .3); color: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font: 500 16px Poppins, sans-serif; outline: 0; transition: border-color .15s;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, textarea:focus { border-color: var(--red); }
::placeholder { color: #7d7375; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.counter { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--red); }
.form-msg { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.form-msg:empty { display: none; }
.form-msg.err { background: rgba(255, 59, 71, .14); color: #ff8a92; }
.form-msg.ok { background: rgba(255, 255, 255, .08); color: var(--white); }
.rules { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

.feed { display: flex; flex-direction: column; gap: 16px; }
.page-home .feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post { padding: 20px 22px 16px; animation: in .3s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(-6px); } }
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.num { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; }
.mini-pin { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 6px #1c0508; }
time { color: var(--gray); font-size: 13px; }
.post h3 { margin: 0 0 12px; color: var(--white); font-size: 20px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.body { margin: 0; padding: 14px 16px; background: var(--panel-2); border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; }
.page-home .body { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.src { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.empty { color: var(--gray); text-align: center; padding: 26px 18px; margin: 0; }
.empty a { color: var(--red); }

.more {
  display: block; margin: 24px auto 0; padding: 10px 24px; cursor: pointer;
  font: 600 14px Poppins, sans-serif; color: var(--white);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.more:hover { border-color: var(--red); }
.more[hidden] { display: none; }

/* ===== stopka ===== */
.foot { margin-top: 50px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .35); padding: 34px 0 26px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand p { margin: 0; color: var(--white); font-weight: 600; line-height: 1.5; }
.foot-brand small { color: var(--muted); font-weight: 500; font-size: 13px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-nav a { color: var(--gray); text-decoration: none; font-size: 14.5px; }
.foot-nav a:hover { color: var(--white); }
.partners { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 26px 16px 0; color: var(--muted); font-size: 13px; }
.partners img { border-radius: 50%; }
.partners b { color: var(--gray); }

/* ===== konto i logowanie ===== */
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.login-btn {
  text-decoration: none; color: var(--white); font-weight: 600; font-size: 14.5px; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); transition: border-color .15s, background .15s;
}
.login-btn:hover { border-color: var(--discord); background: rgba(88, 101, 242, .12); }
.me { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--white); font-weight: 600; font-size: 14.5px;
  padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); max-width: 190px; }
.me img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me:hover, .me[aria-current="page"] { border-color: var(--red); }
@media (max-width: 760px) { .top-actions { margin-left: auto; } .top-inner > .top-actions .pill { padding: 8px 16px; font-size: 14px; } }
@media (max-width: 560px) {
  .top-actions:has(.me, .login-btn) .join-top { display: none; }
  .me { padding-right: 4px; } .me span { display: none; }
}

.profile { display: flex; align-items: center; gap: 26px; }
.profile-avatar { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 0 0 4px var(--red), 0 0 40px rgba(255, 59, 71, .45); flex-shrink: 0; }
.profile-name { font-size: clamp(32px, 7vw, 54px) !important; overflow-wrap: anywhere; }
.logout { margin-top: 16px; }
.ghost.small { font: 600 14px Poppins, sans-serif; padding: 8px 18px; background: transparent; cursor: pointer; }
.privacy { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }
@media (max-width: 480px) { .profile { flex-direction: column; align-items: flex-start; gap: 18px; } .profile-avatar { width: 72px; height: 72px; } }

/* ===== zapisy na wydarzenia ===== */
.rsvp { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.people { display: flex; }
.people:empty { display: none; }
.people img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px #1d1012; margin-left: -8px; background: #333; }
.people img:first-child { margin-left: 0; }
.more-people { margin-left: 6px; color: var(--gray); font-size: 12.5px; align-self: center; }
.going-count { color: var(--gray); font-size: 13.5px; white-space: nowrap; }
.rsvp-btn {
  display: inline-block; text-decoration: none; cursor: pointer; white-space: nowrap;
  font: 700 14px Poppins, sans-serif; color: var(--white);
  padding: 8px 18px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, var(--red), var(--red-dark)); box-shadow: 0 4px 14px rgba(255, 59, 71, .25);
  transition: filter .15s, transform .15s;
}
a.rsvp-btn { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); font-weight: 600; font-size: 13px; white-space: normal; }
a.rsvp-btn:hover { box-shadow: inset 0 0 0 1px var(--discord); }
.rsvp-btn:hover { filter: brightness(1.08); }
.rsvp-btn.on { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.rsvp-btn.on:hover { box-shadow: inset 0 0 0 1px var(--red); }
.rsvp-btn:disabled { opacity: .6; cursor: default; }
.went { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

/* ===== panel administracji ===== */
.nav a.nav-panel { color: #ffd2d5; }
.panel-hero { padding-bottom: 10px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { text-decoration: none; color: var(--gray); font-weight: 600; font-size: 14.5px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.tabs a b { margin-left: 4px; color: var(--white); }
.tabs a[aria-current="page"] { color: var(--white); border-color: var(--red); background: rgba(255, 59, 71, .14); }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.ig-card { overflow: hidden; display: flex; flex-direction: column; }
.ig-card.done { opacity: .75; }
.ig-img { position: relative; display: block; aspect-ratio: 4 / 5; background: #120607; }
.ig-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-img.waiting { display: grid; place-items: center; align-content: center; gap: 12px; color: var(--gray); font-size: 14px; }
.ig-img.waiting p { margin: 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--red); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ig-badge { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.ig-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.ig-body .num { font-size: 12.5px; }
.ig-body time { font-size: 12.5px; }
.ig-body h3 { margin: 2px 0 6px; color: var(--white); font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.caption { min-height: 0; font-size: 13px; line-height: 1.5; color: var(--gray); resize: vertical; padding: 10px 12px; margin: 0; }
.ig-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.pill.small { padding: 8px 18px; font-size: 14px; }
.ghost.small.ok { border-color: rgba(255, 59, 71, .5); }
.link-btn { background: none; border: 0; color: var(--muted); font: 500 12.5px Poppins, sans-serif; cursor: pointer; text-decoration: underline; padding: 4px; }
.link-btn:hover { color: var(--gray); }
@media (max-width: 400px) { .ig-grid { grid-template-columns: 1fr; } }

/* przycisk Instagram w barwach Instagrama */
.pill.instagram {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(45deg, #feda75 0%, #fa7e1e 22%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  box-shadow: 0 6px 20px rgba(214, 41, 118, .35);
}
.ig-ico { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== menu na telefonie: przewijane w bok, gdy pozycji jest dużo ===== */
@media (max-width: 760px) {
  .nav { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; padding: 10px 12px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
  .top-actions .join-top { display: none; }
}

/* ===== O nas ===== */
.about-logo { width: 140px; height: auto; margin-right: 40px; filter: drop-shadow(0 0 40px rgba(255, 59, 71, .45)); flex-shrink: 0; }
@media (max-width: 640px) { .about-logo { display: none; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { padding: 20px; text-align: center; }
.stat b { display: block; font-size: 38px; line-height: 1.1; color: var(--white); font-weight: 800; }
.stat span { color: var(--gray); font-size: 14px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-card { padding: 24px; }
.about-card h2 { margin: 0 0 10px; color: var(--white); font-size: 21px; }
.about-card p { color: var(--gray); margin: 0 0 10px; }
.about-card a, .about-note a { color: var(--red); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--gray); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.ticks b { color: var(--white); }
.rules-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .rules-grid { grid-template-columns: 1fr; } }
.about-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.partner { display: flex; gap: 16px; align-items: center; padding: 20px; }
.partner img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line); flex-shrink: 0; }
.partner-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, .08); flex-shrink: 0; }
.partner h3 { margin: 0 0 4px; color: var(--white); font-size: 17px; }
.partner p { margin: 0; color: var(--gray); font-size: 14px; }

/* ===== Kontakt ===== */
.contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.way { display: flex; gap: 16px; align-items: center; padding: 20px; text-decoration: none; transition: border-color .15s, transform .15s; }
.way:hover { border-color: var(--red); transform: translateY(-2px); }
.way h3 { margin: 0 0 4px; color: var(--white); font-size: 17px; }
.way p { margin: 0; color: var(--gray); font-size: 14px; }
.way-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; color: #fff; font-size: 24px; background: rgba(255, 255, 255, .08); }
.way-ico svg { width: 26px; height: 26px; }
.discord-ico { background: var(--discord); }
.ig-bg { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }
.block.narrow { max-width: 752px; }
select {
  display: block; width: 100%; margin-top: 6px; background: rgba(0, 0, 0, .3); color: var(--white);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: 500 16px Poppins, sans-serif; outline: 0;
}
select option { background: #1c0508; }
select:focus { border-color: var(--red); }
.opt { color: var(--muted); font-weight: 500; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .two-col, .three-col { grid-template-columns: 1fr; } }
input[type="date"], input[type="time"] { color-scheme: dark; }

/* ===== panel: zakładki i listy ===== */
.panel-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; padding: 6px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.panel-tabs a { text-decoration: none; color: var(--gray); font-weight: 600; font-size: 14.5px; padding: 9px 16px; border-radius: 13px; }
.panel-tabs a:hover { color: var(--white); }
.panel-tabs a[aria-current="page"] { color: var(--white); background: linear-gradient(180deg, var(--red), var(--red-dark)); }
.panel-intro { color: var(--gray); margin: 0 0 16px; max-width: 640px; }
.panel-intro a { color: var(--red); }
.event-form { margin-bottom: 34px; }
.event-form > .form-msg { margin-bottom: 14px; }
.block > .form-msg { margin: 0 0 16px; }
.checks { display: grid; gap: 10px; margin: 4px 0 14px; }
.check { display: flex !important; align-items: flex-start; gap: 10px; color: var(--text) !important; font-size: 14.5px !important; margin: 0 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--red); flex-shrink: 0; }
.check:has(input:disabled) { opacity: .5; }
.admin-list { display: grid; gap: 12px; }
.admin-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
.small-cal { width: 56px; height: 62px; }
.small-cal b { font-size: 24px; }
.admin-main { flex: 1 1 260px; min-width: 0; }
.admin-main h3 { margin: 0 0 2px; color: var(--white); font-size: 17px; overflow-wrap: anywhere; }
.admin-meta { margin: 0; color: var(--gray); font-size: 14px; }
.admin-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tag-chip { font-size: 12px; font-weight: 600; color: var(--gray); background: rgba(255, 255, 255, .07); padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.tag-chip.blue { color: #b4bbff; background: rgba(88, 101, 242, .18); }
.tag-chip.wait { color: #ffd98a; background: rgba(255, 200, 60, .14); }
.tag-chip.err { color: #ff8a92; background: rgba(255, 59, 71, .16); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg-card { padding: 18px 20px; }
.msg-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.msg-from { margin: 0 0 10px; color: var(--gray); font-size: 14px; overflow-wrap: anywhere; }
.msg-from b { color: var(--white); }
.reply { color: var(--white); user-select: all; }

/* ===== poprawki menu przy 5–6 pozycjach ===== */
.nav a { white-space: nowrap; }
@media (min-width: 761px) {
  .nav { gap: 2px; }
  .nav a { padding: 8px 12px; font-size: 14.5px; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .top-actions:has(.me) .join-top, .top-actions:has(.login-btn) .join-top { display: none; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .brand .names { display: none; }
  .nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 760px) {
  .nav a { padding: 10px 9px; font-size: 13.5px; }
}

/* przycisk usuwania wydarzenia (tylko administracja) */
.event { position: relative; }
.event-del {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; color: var(--gray);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .4); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.event-del:hover, .event-del:focus-visible { color: #fff; border-color: var(--red); background: rgba(255, 59, 71, .25); }
.event h3 { padding-right: 34px; }
.admin-row.past { opacity: .7; }
