/* ==========================================================================
   Cyklo Zmrdi – styl webu
   Paleta vychází z loga: krémová, cihlově červená, pivní jantarová, tmavý obrys.
   ========================================================================== */

:root {
  --bg: #19130f;
  --bg-2: #211914;
  --bg-3: #2b211a;
  --card: #241b15;
  --card-2: #2e231b;
  --line: rgba(243, 228, 196, .1);
  --line-2: rgba(243, 228, 196, .2);

  --text: #f5ead6;
  --muted: #bba98d;
  --muted-2: #8f7f68;

  --cream: #f3e4c4;
  --paper: #f1e1bf;
  --paper-2: #e8d3a8;
  --ink: #2a1c13;
  --ink-muted: #6e5842;

  --red: #d4402d;
  --red-hover: #e6513d;
  --red-deep: #9f2c1f;
  --amber: #f3a73a;
  --amber-light: #ffc868;
  --blue: #3f7fa6;
  --green: #6fae5c;

  --fb: #1877f2;
  --ig: #d62976;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .65);
  --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, .5);
  --wrap: 1200px;
  --header-h: 72px;

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--amber-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tlačítka ---------- */
.btn {
  --btn-bg: var(--card-2);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .65em 1.25em;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 .95rem/1.1 var(--font); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { --btn-bg: var(--red); --btn-fg: #fff; box-shadow: 0 6px 0 -1px var(--red-deep), 0 10px 24px -8px rgba(212, 64, 45, .6); }
.btn-primary:hover { --btn-bg: var(--red-hover); }
.btn-primary:active { box-shadow: 0 2px 0 -1px var(--red-deep); }
.btn-cream { --btn-bg: var(--cream); --btn-fg: var(--ink); box-shadow: 0 5px 0 -1px #b99e6c; }
.btn-cream:hover { --btn-bg: #fff4dc; }
.btn-ghost { --btn-bg: transparent; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--amber); background: rgba(243, 167, 58, .08); }
.btn-danger { --btn-bg: transparent; --btn-fg: #ff8f7f; border-color: rgba(255, 120, 100, .35); }
.btn-danger:hover { --btn-bg: rgba(212, 64, 45, .15); border-color: var(--red); }
.btn-fb { --btn-bg: var(--fb); --btn-fg: #fff; }
.btn-fb:hover { --btn-bg: #3a8bf5; }
.btn-ig { --btn-bg: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); --btn-fg: #fff; background: var(--btn-bg); }
.btn-lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.05rem; }
.btn-sm { min-height: 36px; padding: .45em .95em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-pair { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-pair .btn { flex: 1 1 120px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: rgba(243, 228, 196, .08); color: var(--amber-light); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn-sm { width: 32px; height: 32px; }
.icon-btn-sm .icon { width: 16px; height: 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--amber-light); white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.back-link { display: inline-flex; align-items: center; gap: .4em; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.back-link:hover { color: var(--cream); }

/* ---------- Štítky ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45em;
  margin: 0 0 .7rem; color: var(--amber);
  font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .32em .8em; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--card-2); color: var(--cream); border: 1px solid var(--line-2);
}
.badge-confirmed { background: var(--red); border-color: var(--red); color: #fff; }
.badge-planned { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.badge-idea { background: var(--blue); border-color: var(--blue); color: #fff; }
.badge-live { background: var(--green); border-color: var(--green); color: #102009; animation: pulse 2s infinite; }
.badge-done { background: rgba(25, 19, 15, .8); color: var(--cream); }
.badge-cancelled { background: #444; color: #ddd; text-decoration: line-through; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(111, 174, 92, .25); } }

.chip { display: inline-flex; align-items: center; gap: .35em; padding: .2em .65em; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--card-2); color: var(--muted); }
.chip-red { background: rgba(212, 64, 45, .18); color: #ff9e8f; }
.chip-green { background: rgba(111, 174, 92, .18); color: #a8dc97; }
.chip-amber { background: rgba(243, 167, 58, .18); color: var(--amber-light); }
.chip-link { text-decoration: none; padding: .45em .9em; font-size: .85rem; color: var(--cream); border: 1px solid var(--line-2); }
.chip-link:hover { border-color: var(--amber); color: var(--amber-light); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 19, 15, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(25, 19, 15, .94); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 56px; height: auto; transition: transform .25s; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: .92; font-weight: 900; text-transform: uppercase; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-text span:last-child { color: var(--red); }
.brand:hover { color: var(--text); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; padding: .55em .95em; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600;
  transition: background-color .15s, color .15s;
}
.main-nav a:hover { background: rgba(243, 228, 196, .07); color: var(--amber-light); }
.main-nav a[aria-current] { color: var(--amber-light); }
.main-nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--red); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.social-fb:hover { color: #6aa8ff; }
.social-ig:hover { color: #ff7ab3; }
.header-actions .btn { margin-left: 8px; }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

.mobile-nav {
  display: grid; gap: 4px; padding: 12px 20px 24px;
  border-top: 1px solid var(--line); background: var(--bg-2);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-size: 1.1rem; font-weight: 700;
}
.mobile-nav a:not(.btn) .icon { color: var(--amber); }
.mobile-nav a[aria-current] { background: rgba(243, 167, 58, .1); color: var(--amber-light); }
.mobile-nav .mobile-cta { background: var(--red); color: #fff !important; margin-top: 6px; }
.mobile-nav .mobile-cta .icon { color: #fff !important; }
.mobile-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* ---------- Oznámení ---------- */
.toasts { position: fixed; z-index: 80; top: calc(var(--header-h) + 12px); right: 16px; left: 16px; display: grid; justify-items: end; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  max-width: 460px; padding: 12px 8px 12px 18px; border-radius: 14px;
  background: var(--cream); color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow); border-left: 6px solid var(--amber);
  animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.3);
}
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast button { border: 0; background: none; color: var(--ink-muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.toast button:hover { background: rgba(0, 0, 0, .08); }
.toast.is-hiding { opacity: 0; transform: translateY(-8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 70px);
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(243, 167, 58, .22), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(212, 64, 45, .18), transparent 70%),
    var(--bg);
}
.hero-rays {
  position: absolute; top: 45%; left: 76%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px;
  background: repeating-conic-gradient(from 0deg, rgba(243, 228, 196, .045) 0deg 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle, #000 0, transparent 55%);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-title {
  margin: 0 0 .35em; font-size: clamp(3.4rem, 10vw, 7.8rem); font-weight: 900; line-height: .86;
  text-transform: uppercase; letter-spacing: -.035em;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--red); text-shadow: 4px 4px 0 var(--ink), 6px 6px 0 rgba(243, 167, 58, .35); }
.hero-lead { max-width: 34ch; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--cream); opacity: .92; margin-bottom: 1.6em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo::before {
  content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 228, 196, .16), transparent 68%);
}
.hero-logo img { position: relative; width: min(100%, 500px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Vstupenka s nejbližší výpravou */
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr auto;
  margin-top: clamp(28px, 5vw, 56px);
  background: var(--paper); color: var(--ink); text-decoration: none;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ticket:hover { color: var(--ink); transform: translateY(-3px) rotate(-.3deg); box-shadow: 0 28px 60px -20px rgba(0, 0, 0, .75); }
.ticket-main { padding: 26px 32px; min-width: 0; }
.ticket-main h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; text-transform: uppercase; margin: .35em 0 .3em; letter-spacing: -.02em; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; color: var(--ink-muted); font-weight: 600; }
.ticket-meta span { display: inline-flex; align-items: center; gap: .4em; }
.ticket-meta .icon { color: var(--red); }
.ticket-stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 22px 32px; border-left: 3px dashed rgba(42, 28, 19, .25);
  background: var(--paper-2); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg);
}
.ticket-stub::before { top: -14px; }
.ticket-stub::after { bottom: -14px; }
.ticket-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--red-deep); font-size: .95rem; }
.ticket-live { font-size: 1.8rem; font-weight: 900; margin: 0; }
.ticket .badge-planned { background: var(--ink); border-color: var(--ink); color: var(--amber-light); }

.countdown { display: flex; gap: 8px; }
.countdown > div { display: grid; justify-items: center; min-width: 64px; padding: 8px 6px; border-radius: 12px; background: var(--ink); color: var(--cream); }
.countdown strong { font-size: 1.9rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: var(--amber-light); }
.countdown span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .75; margin-top: 3px; }

/* ---------- Statistiky ---------- */
.stats-band { background: var(--red); color: #fff; position: relative; }
.stats-band::before, .stats-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 10px -4px, transparent 10px, var(--red) 11px) repeat-x;
  background-size: 20px 10px;
}
.stats-band::before { top: -9px; transform: scaleY(-1); }
.stats-band::after { bottom: -9px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; text-align: center; }
.stats strong { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.stats span { display: block; margin-top: 6px; font-size: .85rem; font-weight: 600; opacity: .9; }

/* ---------- Sekce ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 90px); }
.section-dark { background: var(--bg-2); }
.section-paper {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .35), transparent 40%),
    var(--paper);
  color: var(--ink);
}
.section-paper .eyebrow { color: var(--red-deep); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: -.02em; }
.section-head-sm { margin: 48px 0 20px; align-items: center; }
.section-head-sm .h-section { margin: 0; }
.h-section { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; margin: 44px 0 18px; letter-spacing: -.01em; }

.page-hero {
  padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 44px);
  background:
    radial-gradient(50% 90% at 85% 0%, rgba(243, 167, 58, .16), transparent 70%),
    radial-gradient(40% 80% at 0% 100%, rgba(212, 64, 45, .14), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; margin-bottom: .2em; }
.page-hero-sm h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; margin: 0; }
.dot-sep::before { content: "·"; margin: 0 .5em; opacity: .6; }
.page-hero .chip-link { margin-top: 18px; }

/* ---------- Karty výprav ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.event-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.event-card:hover { transform: translateY(-4px); border-color: rgba(243, 167, 58, .4); box-shadow: var(--shadow); }
.event-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.event-card:hover .event-card-media img { transform: scale(1.05); }
.event-card-media .badge { position: absolute; top: 14px; left: 14px; }
.media-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(243, 228, 196, .04) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--bg-3), #3a2a1f);
  color: rgba(243, 167, 58, .45);
}
.media-placeholder .icon { width: 72px; height: 72px; stroke-width: 1.5; }
.event-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.event-date { display: flex; align-items: center; gap: .45em; margin: 0 0 .5em; font-size: .88rem; font-weight: 700; color: var(--amber); }
.event-card h3 { font-size: 1.5rem; font-weight: 900; margin: 0 0 .15em; text-transform: uppercase; letter-spacing: -.01em; }
.event-card h3 a { color: var(--text); text-decoration: none; }
.event-card h3 a::after { content: ""; position: absolute; inset: 0; }
.event-card { position: relative; }
.event-card-media { z-index: 0; }
.event-tagline { margin: 0 0 .6em; font-weight: 600; color: var(--red-hover); font-size: .95rem; }
.event-summary { color: var(--muted); font-size: .95rem; margin-bottom: 1em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); }
.meta-row li { display: inline-flex; align-items: center; gap: .35em; }
.meta-row .icon { color: var(--amber); width: 1em; height: 1em; }
.card-grid-past .event-card-media img { filter: sepia(.35) saturate(.8); }
.card-grid-past .event-card:hover .event-card-media img { filter: none; }

/* ---------- O nás ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.claim { margin: 1.4em 0 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; color: var(--red); line-height: 1.15; text-transform: uppercase; }
.about-rules { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.about-rules li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .45); border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.about-rules li:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.about-rules li:nth-child(even) { transform: rotate(.6deg); }
.about-rules li:nth-child(odd) { transform: rotate(-.6deg); }
.about-rules .icon { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--red); color: #fff; }
.about-rules strong { display: block; font-size: 1.08rem; font-weight: 800; }
.about-rules span { color: var(--ink-muted); font-size: .95rem; }

.prose { max-width: 70ch; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }
.prose-lg { font-size: 1.12rem; }
.prose-narrow { margin: 0 auto 32px; text-align: center; color: var(--muted); }
.section-paper .prose { color: #4a3727; }
.section-paper a { color: var(--red-deep); }
.lead-text { font-size: 1.2rem; color: var(--cream); }

/* ---------- Parta ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
@media (max-width: 760px) { .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .member-card { padding: 22px 12px 18px; } .member-avatar { width: 88px; height: 88px; } .member-card h3 { font-size: 1.15rem; } }
@media (max-width: 380px) { .member-grid { grid-template-columns: 1fr; } }
.member-card {
  position: relative; padding: 28px 22px 24px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, border-color .2s;
}
.member-card:hover { transform: translateY(-4px); border-color: rgba(212, 64, 45, .5); }
.member-avatar {
  display: grid; place-items: center; width: 116px; height: 116px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #3b2c20, var(--bg-3));
  border: 3px solid var(--line-2); color: var(--amber);
  box-shadow: 0 0 0 6px var(--card), 0 0 0 8px rgba(212, 64, 45, .35);
  transition: box-shadow .25s, color .25s;
}
.member-card:hover .member-avatar { box-shadow: 0 0 0 6px var(--card), 0 0 0 8px var(--red); color: var(--amber-light); }
.member-avatar .icon { width: 50px; height: 50px; stroke-width: 1.6; transition: transform .3s; }
.member-card:hover .member-avatar .icon { transform: rotate(-10deg) scale(1.08); }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: .2em; }
.member-role { margin: 0 0 .8em; color: var(--red-hover); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.member-card blockquote { margin: 0; color: var(--muted); font-style: italic; font-size: .95rem; }
.member-bio { margin-top: 1em; padding-top: 1em; border-top: 1px solid var(--line); text-align: left; font-size: .95rem; color: var(--muted); }
.member-grid-full { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* ---------- Fotky ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.photo-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-3); }
.photo-tile.wide { grid-column: span 2; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 45%); opacity: 0; transition: opacity .25s; }
.photo-tile:hover::after { opacity: 1; }
.photo-caption { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: .85rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: .25s; }
.photo-tile:hover .photo-caption { opacity: 1; transform: none; }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 26px; }
.album-card { display: block; text-decoration: none; color: var(--text); }
.album-card:hover { color: var(--text); }
.album-cover {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: visible;
}
.album-cover::before, .album-cover::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--line-2);
  transition: transform .3s ease;
}
.album-cover::before { transform: rotate(-4deg); }
.album-cover::after { transform: rotate(2.5deg); background: var(--bg-3); }
.album-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s ease; }
.album-card:hover .album-cover img { transform: translateY(-6px) rotate(-1deg); }
.album-card:hover .album-cover::before { transform: rotate(-7deg) translateX(-6px); }
.album-card:hover .album-cover::after { transform: rotate(5deg) translateX(6px); }
.album-count { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .35em; padding: .3em .7em; border-radius: 999px; background: rgba(25, 19, 15, .85); font-weight: 700; font-size: .85rem; }
.album-body { padding: 18px 4px 0; }
.album-body h2 { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; margin: 0 0 .15em; }
.album-body p { margin: 0; color: var(--muted); font-weight: 600; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; background: rgba(12, 9, 7, .96); color: #fff; animation: fade-in .2s; touch-action: pan-y pinch-zoom; }
.lightbox[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0 20px; font-weight: 700; color: var(--muted); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 10px 64px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.lb-stage img.is-loading { opacity: .3; }
.lb-caption { min-height: 48px; padding: 8px 20px 18px; text-align: center; color: var(--cream); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; background: rgba(255, 255, 255, .08); }
.lb-nav:hover { background: rgba(255, 255, 255, .16); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-top .icon-btn { color: #fff; }

/* ---------- Detail výpravy ---------- */
.event-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 70px) 0 40px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.event-hero.has-cover { padding-top: clamp(120px, 20vw, 260px); }
.event-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-hero.has-cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(25, 19, 15, .25), rgba(25, 19, 15, .7) 55%, var(--bg-2)); }
.event-hero-inner { position: relative; z-index: 2; }
.event-hero .back-link { display: flex; width: max-content; }
.event-hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; margin: .25em 0 .1em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.event-hero-tagline { font-size: 1.3rem; font-weight: 700; color: var(--amber-light); margin: 0 0 1.4em; }
.fact-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.fact-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 14px; background: rgba(25, 19, 15, .7); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.fact-list .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--red); color: #fff; }
.fact-list span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.fact-list strong { display: block; font-size: 1.02rem; }

.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-top: 40px; padding-bottom: 90px; align-items: start; }
.event-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.side-card { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.side-card h3 { display: flex; align-items: center; gap: .5em; font-size: 1.15rem; font-weight: 800; margin-bottom: .8em; }
.side-card h3 .icon { color: var(--amber); }
.side-card p { margin-bottom: .3em; }
.side-actions { display: grid; gap: 10px; }
.count { margin-left: auto; min-width: 32px; padding: .1em .5em; border-radius: 999px; background: var(--red); color: #fff; text-align: center; font-size: .95rem; }

.countdown-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; margin-bottom: 30px; border-radius: var(--radius); background: var(--paper); color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.big-quote { position: relative; margin: 0 0 32px; padding: 26px 28px 26px 70px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-style: italic; font-weight: 500; color: var(--cream); }
.big-quote::before { content: "“"; position: absolute; left: 18px; top: 0; font-size: 5.5rem; font-weight: 900; font-style: normal; color: var(--red); line-height: 1; }

.program { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.program-day { position: relative; padding: 22px 22px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.program-day.is-featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow-sm); }
.program-badge { position: absolute; top: -12px; left: 20px; padding: .25em .75em; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.program-day h3 { font-size: 1.15rem; font-weight: 900; text-transform: uppercase; color: var(--amber-light); padding-bottom: .6em; margin-bottom: .8em; border-bottom: 2px dashed var(--line-2); }
.program-day ol { margin: 0; padding: 0; list-style: none; }
.program-day li { position: relative; display: grid; gap: 2px; padding: 0 0 14px 20px; font-size: .95rem; color: var(--muted); }
.program-day li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.program-day li::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: 2px; width: 2px; background: var(--line-2); }
.program-day li:last-child::after { display: none; }
.program-day time { font-weight: 800; color: var(--text); font-size: .88rem; }

.signup-list { display: grid; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; }
.signup-list li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; }
.signup-list li > div { flex: 1; min-width: 0; line-height: 1.25; }
.signup-list small { display: block; color: var(--muted); }
.signup-list em { color: var(--amber); font-size: .82rem; font-weight: 600; }
.signup-list .is-maybe { opacity: .72; }
.signup-list .is-mine { background: rgba(243, 167, 58, .08); }
.avatar-sm { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; }
.is-maybe .avatar-sm { background: var(--card-2); color: var(--amber); border: 1px dashed var(--amber); }
.signup-form { padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Formuláře ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.field small { text-transform: none; letter-spacing: 0; color: var(--muted-2); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 2px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(243, 167, 58, .18); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input[type=date] { color-scheme: dark; }
.field-error { color: #ff9e8f; font-size: .85rem; font-weight: 600; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--red); }

.panel { padding: clamp(22px, 4vw, 34px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.panel h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.panel-red { background: linear-gradient(145deg, var(--red), var(--red-deep)); border: 0; color: #fff; }
.panel-red .eyebrow { color: var(--amber-light); }
.panel-red p { color: rgba(255, 255, 255, .9); }
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); }
.social-row p { flex-basis: 100%; margin: 0 0 4px; font-weight: 600; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }

/* ---------- Diskuze ---------- */
.discussion { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
.post-form { position: sticky; top: calc(var(--header-h) + 20px); }
.post-form h2 { font-size: 1.5rem; }
.post-list { display: grid; gap: 14px; }
.post-list.compact { margin-bottom: 22px; }
.post { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.panel .post { background: var(--bg); }
.post-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 900; }
.post-admin .post-avatar { background: var(--red); color: #fff; }
.post-body { flex: 1; min-width: 0; }
.post-body header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.post-body header strong { color: var(--amber-light); }
.post-body time { color: var(--muted-2); font-size: .82rem; margin-left: auto; }
.post-text { overflow-wrap: anywhere; color: var(--text); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; color: var(--muted); font-weight: 700; }

.empty { display: grid; justify-items: center; gap: 12px; padding: 50px 20px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); text-align: center; color: var(--muted); }
.empty .icon { width: 48px; height: 48px; color: var(--amber); stroke-width: 1.5; }
.empty p { margin: 0; font-size: 1.1rem; }

.error-page img { margin: 0 auto 20px; animation: bob 5s ease-in-out infinite; }
.error-page .lead { margin: 0 auto 28px; }

/* ---------- Patička ---------- */
.site-footer { background: #120d0a; border-top: 4px solid var(--red); padding-top: 56px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 18px; align-items: center; }
.footer-brand img { width: 110px; flex: none; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--cream); }
.footer-nav { display: grid; gap: 6px; align-content: start; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 600; width: max-content; }
.footer-nav a:hover { color: var(--amber-light); }
.footer-social { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--amber-light); }

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 1080px) {
  .header-actions .btn { display: none; }
}
@media (max-width: 960px) {
  .event-layout { grid-template-columns: 1fr; }
  .event-side { position: static; }
  .discussion { grid-template-columns: 1fr; }
  .post-form { position: static; }
  .split { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .brand img { width: 46px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(58vw, 250px); }
  .hero-title { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-rays { left: 50%; top: 22%; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 3px dashed rgba(42, 28, 19, .25); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .ticket-stub::before, .ticket-stub::after { top: -15px; bottom: auto; }
  .ticket-stub::before { left: -14px; }
  .ticket-stub::after { left: auto; right: -14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-actions .social-fb, .header-actions .social-ig { display: none; }
  .ticket-main { padding: 22px 20px; }
  .countdown > div { min-width: 58px; }
  .form-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-auto-rows: 150px; gap: 8px; }
  .lb-stage { padding: 10px 0; }
  .lb-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .big-quote { padding: 60px 20px 20px; }
  .fact-list li { flex: 1 1 calc(50% - 12px); }
  .section-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
