/* =============================================================================
   Megaphone — landing page styles
   Light theme only. Palette: orange #FF6600 + black #111 + white #fff + warm grays.
   Fonts: Raleway (headings) + Roboto (body) — zgodne z brandbookiem megaphone.

   Layout v2 (2026-05-29):
   - Top bar: czarne tło + logo
   - Lewy sidebar: pomarańczowe tło, białe linki
   - Główna treść: offset o szerokość sidebar'a
   ============================================================================= */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Skip link — a11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors (brandbook megaphone — PANTONE Orange 021 C) */
  --brand: #ff6600;
  --brand-dark: #e55a00;
  --brand-darker: #c54e00;
  --brand-light: #ff7a1c;
  --brand-tint: #fff1e6;
  --brand-tint-2: #ffe4cc;

  /* Neutrals */
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #6b6b6b;
  --line: #ececec;
  --line-strong: #d8d8d8;
  --bg: #ffffff;
  --bg-soft: #fff8f2;
  --bg-warmer: #fdf4ec;

  /* Surfaces */
  --card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 40px rgba(255, 102, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-bubble: 0 14px 28px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(255, 102, 0, 0.08);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Layout */
  --topbar-h: 64px;
  --sidebar-w: 240px;
  --content-max: 1100px;
  --pad: 28px;

  /* Typography sizes */
  --h1: clamp(2.2rem, 4vw + 1rem, 3.6rem);
  --h2: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  --h3: clamp(1.15rem, 1vw + 0.85rem, 1.4rem);
  --lead: clamp(1.05rem, 0.4vw + 0.95rem, 1.18rem);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
.brand-text,
.btn,
.plan-name,
.plan-price,
.step-num,
.bubble-tag,
.sidebar-link {
  font-family: "Raleway", "Roboto", system-ui, sans-serif;
}

h1 {
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
  /* Bezpieczne zawijanie długich słów — mobile nie wycina H1 */
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

h2 {
  font-size: var(--h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 12px;
}

h3 {
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
}

p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.hl {
  color: var(--brand);
  white-space: nowrap;
}

/* =============================================================================
   TOP BAR — czarne tło, logo + (mobile) hamburger
   ============================================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: #0a0a0a;
  z-index: 60;
  border-bottom: 1px solid #1f1f1f;
  display: flex;
  align-items: center;
}
.topbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: #fff;
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.05);
}
.brand-text {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-tld {
  color: var(--brand);
}

/* Mobile hamburger — hidden on desktop */
.sidebar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 6px;
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  cursor: pointer;
}
.sidebar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* =============================================================================
   LEFT SIDEBAR — pomarańczowe tło, białe linki menu
   ============================================================================= */
.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 20px;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, padding-left 160ms ease;
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #fff;
  color: #fff;
  text-decoration: none;
  padding-left: 28px;
}
.sidebar-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* Aktywny link (scrollspy) — wyraźny biały highlight + akcent po lewej */
.sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-left-color: #fff;
  color: #fff;
  padding-left: 28px;
  text-decoration: none;
}
.sidebar-link.is-active .sidebar-icon {
  transform: scale(1.15);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sidebar-link .sidebar-icon {
  transition: transform 220ms ease;
}
/* CTA „Logowanie" jest pigułką z czarnym tłem — nie zaznaczamy go scrollspy'em
   (i tak prowadzi do innej strony, nie do sekcji) */
.sidebar-link-cta.is-active {
  background: #0a0a0a;
  padding-left: 16px;
}
.sidebar-icon {
  flex-shrink: 0;
  width: 24px;
  font-size: 1.1rem;
  text-align: center;
}

.sidebar-link-cta {
  margin: 12px 16px 0;
  padding: 12px 16px;
  background: #0a0a0a;
  border-radius: 999px;
  justify-content: center;
  border-left: none;
  font-size: 0.95rem;
}
.sidebar-link-cta:hover {
  background: #fff;
  color: var(--brand-dark);
  border-left: none;
  padding-left: 16px;
}

.sidebar-foot {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}
.sidebar-foot a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 160ms ease;
}
.sidebar-foot a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Backdrop dla mobile drawer mode */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
}
.sidebar-backdrop.is-visible {
  display: block;
}

/* =============================================================================
   MAIN CONTENT — offset o szerokość sidebar + top-bar
   ============================================================================= */
.main-content {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

/* Wrapper sekcji — center content, max width */
.section-wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 80px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.section-head p {
  font-size: var(--lead);
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 102, 0, 0.38);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-tint);
}

/* =============================================================================
   HERO — głównym motywem important-announcement.png
   ============================================================================= */
.hero {
  position: relative;
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%);
  overflow: hidden;
}
.hero::before {
  /* Subtle radial sparkle behind hero */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1000px 500px at 80% 20%,
    rgba(255, 102, 0, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  /* Prawa kolumna mieści obrazek + feed publicznych wydarzeń pod nim,
     więc 1:1 zamiast 1.05:1 — feed dostaje więcej szerokości. */
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

.lead {
  font-size: var(--lead);
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.lead-small {
  font-size: 1rem;
  color: var(--ink-mute);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Hero visual — important-announcement.png + floating mini-bubbles */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-announce {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px rgba(255, 102, 0, 0.25),
    0 6px 16px rgba(0, 0, 0, 0.08);
  animation: announceWobble 5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes announceWobble {
  0%, 100% {
    transform: rotate(-1deg) translateY(0);
  }
  25% {
    transform: rotate(1deg) translateY(-4px);
  }
  50% {
    transform: rotate(-0.5deg) translateY(0);
  }
  75% {
    transform: rotate(0.5deg) translateY(-4px);
  }
}

/* Floating speech bubbles around the announcement */
.floating-bubble {
  position: absolute;
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Raleway", sans-serif;
  box-shadow: var(--shadow-bubble);
  z-index: 3;
  white-space: nowrap;
  animation: floatBubble 4s ease-in-out infinite;
}
.bubble-a {
  top: 4%;
  left: -8%;
  animation-delay: 0s;
}
.bubble-b {
  bottom: 12%;
  right: -6%;
  animation-delay: 1.2s;
}
.bubble-c {
  top: 50%;
  left: -10%;
  animation-delay: 2.4s;
}

@keyframes floatBubble {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* =============================================================================
   "Do czego" — 3-up grid
   ============================================================================= */
.section-do-czego {
  background: #fff;
}
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.three-up-item {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
  border: 2px solid transparent;
}
.three-up-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.three-up-emoji {
  display: inline-block;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* =============================================================================
   Use case bubbles
   ============================================================================= */
.section-bubbles {
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg-soft) 100%);
}

.bubbles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =============================================================================
   HERO — prawa kolumna: obrazek important-announcement + feed publicznych
   wydarzeń pod spodem (stała pozycja wzrokowa).
   ============================================================================= */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =============================================================================
   Public events feed — w hero pod important-announcement.png
   ============================================================================= */
.public-feed {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--brand);
  width: 100%;
}

.public-feed-head h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-weight: 800;
}
.public-feed-head p {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0 0 16px;
  line-height: 1.4;
}

/* Wrapper listy — kotwica dla dolnego fade + podpowiedzi „przewiń". */
.public-feed-scroll {
  position: relative;
}

.public-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Scroll po ~5 wydarzeniach (każda karta ~62px + 12px gap = ~74px × 5 ≈ 370px) */
  max-height: 380px;
  overflow-y: scroll; /* scroll (nie auto) — zawsze rezerwuj tor scrollbara */
  padding-right: 6px;
  /* Firefox: zawsze widoczny, brand-tinted scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--bg-soft);
}

/* Custom scrollbar (Chrome/Edge) — ZAWSZE widoczny, wyraźny brand.
   Styled scrollbar w WebKit/Blink jest non-overlay → renderuje się zawsze,
   więc user od razu widzi, że lista się przewija. */
.public-feed-list::-webkit-scrollbar {
  width: 10px;
}
.public-feed-list::-webkit-scrollbar-track {
  background: var(--bg-soft);
  border-radius: 5px;
}
.public-feed-list::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 5px;
  border: 2px solid var(--bg-soft); /* wcięcie — smuklejszy thumb, ale zawsze brand */
}
.public-feed-list::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

/* Dolny fade + pulsująca podpowiedź „przewiń" — sygnał, że pod spodem są
   kolejne wydarzenia (native scrollbar bywa ukryty na macOS/iOS). Widoczna
   tylko gdy jest overflow i user nie jest na dole (klasa `.has-more` z JS). */
.public-feed-more {
  position: absolute;
  left: 0;
  right: 10px; /* nie zasłaniaj scrollbara */
  bottom: 0;
  height: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  pointer-events: none; /* klik/hover przechodzi do kart pod spodem */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 82%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.public-feed-scroll.has-more .public-feed-more {
  opacity: 1;
}
.public-feed-more span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 3px 12px;
  box-shadow: var(--shadow-sm);
  animation: feedMoreBounce 1.5s ease-in-out infinite;
}
@keyframes feedMoreBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .public-feed-more span {
    animation: none;
  }
}

/* Karty wydarzeń — kompaktowe, klikalne */
.public-feed-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
  border-left: 4px solid var(--brand);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.public-feed-item:hover {
  background: #fff;
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

/* =============================================================================
   Popup hover na karcie wydarzenia — nazwa, opis, QR, link.
   Position: fixed + JS dynamic placement (wychodzi POZA scroll container listy).
   ============================================================================= */
.public-feed-item-popup {
  position: fixed;
  /* top/left ustawiane przez JS dynamicznie wg getBoundingClientRect() karty */
  top: 0;
  left: 0;
  width: 280px;
  background: #fff;
  border-radius: var(--r-md);
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  z-index: 9999;
  pointer-events: none;
}

.public-feed-item-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 0s;
}

.public-feed-popup-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand-dark);
  margin: 0 0 8px;
  line-height: 1.3;
}

.public-feed-popup-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
  margin: 0 0 12px;
  max-height: 5.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.public-feed-popup-qr {
  display: block !important;
  width: 180px !important;
  height: 180px !important;
  margin: 0 auto 12px !important;
  border: 1px solid var(--brand-tint);
  border-radius: 6px;
  padding: 4px;
  background: #fff;
}

.public-feed-popup-link {
  display: block;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  word-break: break-all;
  line-height: 1.3;
}
.public-feed-popup-link:hover {
  background: var(--brand);
  color: #fff;
}

/* Na mobile popup zmniejsza szerokość żeby mieścił się w viewport */
@media (max-width: 720px) {
  .public-feed-item-popup {
    width: calc(100vw - 32px);
    max-width: 320px;
  }
}

.public-feed-item-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.public-feed-item-live {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: #c0392b;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.public-feed-item-dates {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
}

.public-feed-skel {
  height: 70px;
  background: linear-gradient(
    90deg,
    var(--bg-soft) 0%,
    #fff 50%,
    var(--bg-soft) 100%
  );
  background-size: 200% 100%;
  border-radius: var(--r-md);
  animation: skel-shimmer 1.4s ease-in-out infinite;
}
@keyframes skel-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.public-feed-empty,
.public-feed-error {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
  margin: 18px 0 6px;
  padding: 14px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
}
.public-feed-error {
  color: #c0392b;
  background: #fff5f4;
}

/* =============================================================================
   QR DEMO section — zobacz przykładowe wydarzenie na żywo
   ============================================================================= */
.section-qr-demo {
  background: var(--bg);
}

.qr-demo-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--brand);
  position: relative;
  overflow: hidden;
}
.qr-demo-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: var(--brand-tint);
  border-radius: 50%;
  opacity: 0.6;
  z-index: 0;
}

.qr-demo-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.qr-demo-text h2 {
  margin: 8px 0 14px;
}
.qr-demo-text p {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

.qr-demo-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}

.qr-demo-link-wrap {
  margin: 16px 0 14px !important;
}
.qr-demo-link {
  display: inline-block;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 10px 16px;
  border-radius: var(--r-md);
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
  word-break: break-all;
}
.qr-demo-link:hover {
  border-color: var(--brand);
  background: #fff;
}

.qr-demo-note {
  font-size: 0.88rem !important;
  color: var(--text-soft);
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--brand);
  margin-top: 16px !important;
}

.qr-demo-qr {
  position: relative;
  z-index: 1;
  text-align: center;
}
.qr-demo-qr a {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: var(--r-md);
  border: 2px solid var(--brand-tint);
  transition: border-color 180ms ease, transform 180ms ease;
}
.qr-demo-qr a:hover {
  border-color: var(--brand);
  transform: scale(1.02);
}
.qr-demo-qr img {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
}
.qr-demo-qr-caption {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin: 10px 0 0;
  font-weight: 600;
}

.bubble {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 22px 24px 18px;
  box-shadow: var(--shadow-md);
  border: 2px solid #fff;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.bubble:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 36px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-bottom-right-radius: 6px;
  transform: rotate(45deg);
  box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.04);
}

.bubble-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.bubble-content {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.bubble-mega {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border-radius: 50%;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
  transition: transform 240ms ease;
}
.bubble:hover .bubble-mega {
  animation: shake 0.6s ease-in-out;
}
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg) scale(1.08); }
  40% { transform: rotate(12deg) scale(1.08); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
}
.bubble-content p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.5;
}
.bubble-meta {
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-style: italic;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.bubbles-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--ink-mute);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* =============================================================================
   Jak to działa — steps
   ============================================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--line);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}
.step-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.step-body p {
  font-size: 0.92rem;
  margin: 0;
}

/* Asystent korekty — bonus callout pod 4 krokami */
.assistant-callout {
  margin-top: 36px;
  background: linear-gradient(135deg, var(--brand-tint, #fff1e6) 0%, var(--brand-tint-2, #ffe4cc) 100%);
  border-radius: var(--r-lg);
  border: 2px solid var(--brand-tint-2, #ffe4cc);
  box-shadow: 0 8px 24px -12px rgba(255, 102, 0, 0.25);
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.assistant-icon {
  font-size: 3.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.assistant-body h3 {
  font-size: 1.25rem;
  margin: 0 0 10px 0;
  color: var(--ink, #1a1a1a);
}
.assistant-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft, #4a4a4a);
}
@media (max-width: 640px) {
  .assistant-callout {
    flex-direction: column;
    padding: 22px 20px;
    gap: 12px;
  }
  .assistant-icon {
    font-size: 2.8rem;
  }
}

/* =============================================================================
   Pricing
   ============================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 26px 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}

.plan-featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff 0%, var(--brand-tint) 100%);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.plan-featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.plan-festival {
  background: linear-gradient(160deg, #fff 0%, var(--brand-tint-2) 100%);
  border-color: var(--brand-dark);
}

.plan-free {
  background: #fafafa;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
  white-space: nowrap;
}
.plan-badge-festival {
  background: var(--brand-darker);
}

.plan-top {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-strong);
}
.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.plan-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin: 8px 0 4px;
  letter-spacing: -0.03em;
}
.plan-cur {
  font-size: 1rem;
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: 0;
}
.plan-tagline {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}
.plan-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.plan-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 6px;
  color: var(--brand);
  font-weight: 900;
}
.plan-list li strong {
  color: var(--ink);
}
.plan-li-muted {
  color: var(--ink-mute) !important;
  font-size: 0.88rem !important;
}
.plan-li-muted::before {
  content: "·" !important;
  color: var(--ink-mute) !important;
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  margin-top: 48px;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-md);
  padding: 24px 28px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.pricing-note p:last-child {
  margin-bottom: 0;
}

/* =============================================================================
   FAQ
   ============================================================================= */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.faq details[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
  color: var(--ink);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 200ms ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* =============================================================================
   CTA final
   ============================================================================= */
.cta-final {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(255, 102, 0, 0.25);
  flex-wrap: wrap;
}
.cta-final h3 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 4px;
}
.cta-final p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-size: 1.02rem;
}
.cta-final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-final .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.cta-final .btn-primary:hover {
  background: var(--ink);
  color: #fff;
}
.cta-final .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.cta-final .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
  background: #111;
  color: #d8d8d8;
  padding: 60px 0 28px;
  border-top: 4px solid var(--brand);
}
.footer-inner {
  display: grid;
  gap: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}
.footer-brand-title {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}
.footer-brand-subtitle {
  font-size: 0.88rem;
  color: #a0a0a0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
}

.footer-h {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.footer-p {
  font-size: 0.92rem;
  color: #c8c8c8;
  margin-bottom: 6px;
}
.footer-p strong {
  color: #ececec;
}
.footer-p a {
  color: #d8d8d8;
}
.footer-p a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #909090;
}
.footer-source a {
  color: #b0b0b0;
}

/* Aplikacja mobilna (Android) — blok + odznaka Google Play (USER 2026-08-13).
   Odznaka czarna z jasną ramką, bo tło stopki jest ciemne (#111) → czysta czerń
   by się zlała. */
.footer-app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid #2a2a2a;
}
.footer-app-text {
  max-width: 40rem;
}
.gplay-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 10px 18px;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.gplay-badge:hover {
  background: #1c1c1c;
  border-color: rgba(255, 255, 255, 0.4);
}
.gplay-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.gplay-badge-text small {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}
.gplay-badge-text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

/* =============================================================================
   Responsive
   ============================================================================= */

/* Tablet — narrow main content + sidebar */
@media (max-width: 1100px) {
  .three-up,
  .bubbles-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-featured {
    transform: none;
  }
  .plan-featured:hover {
    transform: translateY(-4px);
  }

  /* QR demo — stack: QR nad tekstem */
  .qr-demo-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
  }
  .qr-demo-qr {
    order: -1;
  }
}

/* Mobile — sidebar staje się drawer (off-canvas) */
@media (max-width: 860px) {
  :root {
    --pad: 20px;
  }

  .sidebar-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 280px;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* Na mobile rozbijamy .hero-right żeby children weszli bezpośrednio do hero-inner
     grid jako siostrzeńcy .hero-copy — wtedy obrazek może iść na górę (order -1),
     copy w środku, feed na dole. */
  .hero-right {
    display: contents;
  }
  .hero-visual {
    min-height: 320px;
    order: -1;
  }
  .hero-announce {
    max-width: 400px;
  }
  .public-feed {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  :root {
    /* Mniejsze H1 na mobile żeby nie wychodziło poza viewport.
       Wybór wartości: na 375px szerokim ekranie z 20px paddingiem mamy
       335px na content. H1 1.45rem ≈ 23px daje słowo „uczestnicy" ~135px,
       więc wszystko swobodnie się zawija. */
    --h1: 1.45rem;
    --h2: 1.35rem;
  }

  h1, h2, h3 {
    /* Aggressive guard: lepiej krótszy nagłówek niż obcięty */
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    max-width: 100%;
  }
  h1 {
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  /* HL na mobile zachowuje pomarańczowy akcent ale może się zawijać */
  h1 .hl, h2 .hl {
    display: inline;
    white-space: normal;
  }

  .section {
    padding: 56px 0;
  }
  .hero {
    padding: 32px 0 56px;
  }
  .three-up,
  .bubbles-grid,
  .steps,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Highlighted span ma kolor pomarańczowy + pozwalamy mu się zawijać na mobile
     (na desktopie zostaje white-space:nowrap dla efektu „wszyscy uczestnicy") */
  .hl {
    white-space: normal;
  }

  /* Hero actions stackują się pionowo na mobile, full-width */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Pricing CTA też wyrównuje się do pełnej szerokości karty */
  .plan-cta {
    width: 100%;
  }

  /* Na mobile floating bubble'e (Burza, Support, Meta) ukryte — i tak
     wymuszały overflow i estetycznie nakładały się na obrazek.
     Zostawiamy sam announcement.png jako klarowny motyw. */
  .floating-bubble {
    display: none;
  }

  .hero-announce {
    max-width: 280px;
  }
  .hero-visual {
    min-height: 240px;
  }

  /* Zabezpieczenie: zero overflow na wąskim viewport'cie */
  .hero,
  .main-content {
    overflow-x: clip;
  }
  .hero-copy,
  .section-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .cta-final {
    padding: 28px 22px;
    text-align: center;
    justify-content: center;
  }
  .cta-final-actions {
    justify-content: center;
    width: 100%;
    flex-direction: column;
  }
  .cta-final-actions .btn {
    width: 100%;
  }

  .topbar-inner {
    padding: 0 16px;
  }
  .brand-text {
    font-size: 1.1rem;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
  }
  /* Mobile-friendly section paddings */
  .section-head {
    margin-bottom: 36px;
  }

  /* Trochę mniejsza belka stopki */
  .footer {
    padding: 48px 0 24px;
  }
}

/* =============================================================================
   LEGAL pages — Polityka prywatności + Regulamin (długie strony tekstowe)
   ============================================================================= */
.legal-hero {
  background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%);
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin: 0 0 12px;
  text-align: center;
}
.legal-hero .meta {
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-mute);
}
.legal-content {
  padding: 48px 0 80px;
}
.legal-toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.legal-toc h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  color: var(--brand-dark);
}
.legal-toc ol {
  padding-left: 22px;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li {
  font-size: 0.92rem;
  margin-bottom: 6px;
  break-inside: avoid;
}
.legal-toc a {
  color: var(--ink);
  text-decoration: none;
}
.legal-toc a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.legal-section {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.legal-section h2 {
  font-size: 1.4rem;
  color: var(--brand-dark);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-tint);
}
.legal-section h3 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
  color: var(--ink);
}
.legal-section p,
.legal-section ul,
.legal-section ol {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.legal-section ul,
.legal-section ol {
  padding-left: 22px;
}
.legal-section li {
  margin-bottom: 6px;
}
.legal-section strong {
  color: var(--ink);
}
.legal-section em {
  font-style: italic;
  color: var(--ink-mute);
}

@media (max-width: 620px) {
  .legal-toc ol {
    columns: 1;
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================================
   Sekcja #wydarzenia — publiczne wydarzenia na żywo, grupowane per typ
   (USER 2026-08-30 — pełna sekcja zamiast przewijanego prostokąta w hero)
   ============================================================================= */
.section-wydarzenia .section-head {
  margin-bottom: 36px;
}

.feed-group {
  margin-bottom: 40px;
}
.feed-group:last-child {
  margin-bottom: 0;
}

.feed-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.feed-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  font-size: 2.55rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.feed-group-head h3 {
  margin: 0;
  font-size: 1.25rem;
}

/* Kafelki — grid, wszystko widoczne naraz (bez scrolla) */
.feed-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.feed-tile {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.feed-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 102, 0, 0.14);
}

/* Skeletony w nowej sekcji */
#public-groups .public-feed-skel {
  height: 64px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .feed-tiles {
    grid-template-columns: 1fr;
  }
  .feed-group-icon {
    width: 64px;
    height: 64px;
    font-size: 2.1rem;
  }
}

/* USER 2026-08-30 (2. runda): kafelek = ikona kategorii + treść w rzędzie;
   nazwa bez bolda (gdy wszystko ważne — nic nie jest). */
.feed-tile {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* USER 2026-08-30 (3. runda): bez kolorowego kółka (kolory przeszkadzały
   przy konkretnych wydarzeniach), ikona DUŻO większa — sama grafika. */
.feed-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
  background: transparent !important;
}
.feed-tile-content {
  min-width: 0;
}
.feed-tile .public-feed-item-name {
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0;
}
.feed-tile .public-feed-item-dates {
  margin-top: 4px;
}

/* =============================================================================
   Rozrywka w sekcji wydarzeń (USER 2026-08-30) — piorun / podmuch / piłka.
   Czyste dekoracje: pointer-events none, kontener grupy je przycina.
   ============================================================================= */
.feed-group {
  position: relative;
  overflow: hidden;
}

/* ⚡ piorun: zygzak spada + krótki rozbłysk tła całej grupy */
.fx-bolt {
  position: absolute;
  top: -10px;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
  animation: fx-bolt-strike 1.1s ease-out forwards;
  filter: drop-shadow(0 0 18px rgba(255, 217, 77, 0.85));
}
@keyframes fx-bolt-strike {
  0%   { transform: translateY(-30px) scale(0.7); opacity: 0; }
  12%  { transform: translateY(20%) scale(1.15);  opacity: 1; }
  22%  { opacity: 0.25; }
  32%  { opacity: 1; }
  60%  { transform: translateY(46%) scale(1);     opacity: 0.9; }
  100% { transform: translateY(60%) scale(0.9);   opacity: 0; }
}
.fx-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 210, 0.55);
  pointer-events: none;
  z-index: 2;
  animation: fx-flash-blink 0.9s ease-out forwards;
}
@keyframes fx-flash-blink {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  20%  { opacity: 0.1; }
  30%  { opacity: 0.8; }
  100% { opacity: 0; }
}

/* 💨 podmuch: kafelki kolejno zwiewane w prawo i wracają sprężyście */
.fx-gust {
  animation: fx-gust-blow 3.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes fx-gust-blow {
  0%   { transform: translateX(0) rotate(0); }
  35%  { transform: translateX(120px) rotate(3deg); }
  60%  { transform: translateX(78px) rotate(1.6deg); }
  100% { transform: translateX(0) rotate(0); }
}
.fx-puff {
  position: absolute;
  left: -80px;
  top: 36%;
  font-size: 4rem;
  pointer-events: none;
  z-index: 3;
  animation: fx-puff-fly 3.4s ease-out forwards;
  opacity: 0.9;
}
@keyframes fx-puff-fly {
  0%   { transform: translateX(0); opacity: 0; }
  15%  { opacity: 0.85; }
  100% { transform: translateX(120vw); opacity: 0; }
}

/* ⚽ piłka: pozycjonowana z JS (rAF), tu tylko wygląd + wyjście */
.fx-ball {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 3.2rem;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
  will-change: transform;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.25));
}
.fx-ball-out {
  transition: opacity 0.6s ease;
  opacity: 0;
}

/* Uwaga „uczestnicy nie płacą" nad cennikiem — USER 2026-09-04: kluczowa
   wątpliwość odwiedzających, którzy widzą cennik i zakładają, że opłata dotyczy
   też oglądania wydarzeń. Musi być nie do przeoczenia. */
.pricing-free-note {
  background: var(--brand-tint, #fff1e6);
  border: 2px solid var(--brand, #ff6600);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 auto 18px;
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}

/* Plakietka „za darmo dla uczestników" w hero — USER 2026-09-04: informacja
   ma być widoczna zanim ktokolwiek zjedzie do cennika. */
.hero-free-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-tint, #fff1e6);
  border: 2px solid var(--brand, #ff6600);
  color: #7a3200;
  font-size: 0.98rem;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .hero-free-badge { font-size: 0.9rem; padding: 8px 14px; }
}

