/* Safe space – závěrečné fórum
   Barvy: Neposeda (zlatá + černá na teplé bílé) + barvy loga Safe space. */
:root {
  --ink: #1d1d1b;
  --gold: #fcc002;
  --paper: #f4f2ec;
  --surface: #fff;
  --muted: #5b5a55;
  --line: #e3dfd3;

  --green: #4cb98a;
  --blue: #27b1d8;
  --pink: #e9396b;
  --yellow: #f5c33b;
  --rainbow: linear-gradient(90deg, #f0d43a, #4cb98a 28%, #27b1d8 52%, #9b5fc0 72%, #e9396b);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 40px -28px rgba(0, 0, 0, .5);
  --font: "Cabin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 8vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-decoration-color: var(--gold); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.narrow > * { max-width: 46rem; }
.narrow-left { max-width: 46rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-paper { background: var(--paper); }
.muted { color: var(--muted); }
.big { font-size: 1.3rem; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border: 2px solid var(--gold); border-radius: 999px;
  background: var(--gold); color: var(--ink); font: 600 1rem/1.2 var(--font);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); background: #ffcd2a; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-green { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn-green:hover { background: #3fa678; }
.btn-blue { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.btn-blue:hover { background: #1f9fc4; }
.btn-pink { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.btn-pink:hover { background: #d82f5f; }
.btn-ghost { background: transparent; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: .55em 1.15em; font-size: .95rem; }
.btn-wide { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-size: .85rem; line-height: 1.15; color: var(--muted); }
.brand strong { color: var(--ink); font-size: 1.05rem; letter-spacing: .02em; }
.eu-header { height: 38px; width: auto; margin-right: auto; margin-left: 1.25rem; }
@media (max-width: 520px) { .eu-header { height: 30px; margin-left: .75rem; } }
.eu-footer { display: block; height: 52px; width: auto; margin-top: 1rem; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--gold); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero-art img { width: 100%; max-width: 420px; display: block; margin-left: auto; mix-blend-mode: multiply; }
.eyebrow { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--muted); }
.h1-sub { display: block; font-size: .5em; font-weight: 500; margin-top: .25em; letter-spacing: -.01em; }
.lead { font-size: 1.25rem; max-width: 34rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2rem 0; }
.facts div { border-left: 4px solid var(--gold); padding-left: .9rem; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.rainbow { height: 8px; background: var(--rainbow); }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 160px; margin: 0; }
}

/* Program */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .85rem 0 .85rem 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 1.25rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--ink);
}
.timeline li.accent-green::before { background: var(--green); border-color: var(--green); }
.timeline li.accent-blue::before { background: var(--blue); border-color: var(--blue); }
.timeline li.accent-pink::before { background: var(--pink); border-color: var(--pink); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline small { display: block; color: var(--muted); font-size: .9rem; }
.chip { display: inline-block; margin-left: .4rem; padding: .05em .6em; border-radius: 999px; background: var(--ink); color: #fff; font-size: .75rem; text-decoration: none; vertical-align: .15em; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 0; } }

.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.burza { border-top: 6px solid var(--green); }
.more-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.burza-form { display: grid; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.burza-form h4 { margin: 0; font-size: 1.1rem; }
.burza-form .btn { justify-self: start; }
.size { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.size legend { font-weight: 500; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-block; padding: .55rem 1.1rem; border: 2px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .95rem; transition: border-color .15s, background .15s; }
.pill:hover span { border-color: #c8c2b0; }
.pill input:checked + span { border-color: var(--green); background: color-mix(in srgb, var(--green) 18%, #fff); }
.pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.size[aria-invalid="true"] .pill span { border-color: var(--pink); }
.small { font-size: .85rem; }
.burza-result { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--paper); border-left: 5px solid var(--green); outline: none; }
.venue { border-top: 6px solid var(--gold); margin-bottom: 1.25rem; }
.venue-list { display: grid; gap: .6rem; margin: 0 0 1.25rem; }
.venue-list div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.venue-list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: .2rem; }
.venue-list dd { margin: 0; }
@media (max-width: 520px) { .venue-list div { grid-template-columns: 1fr; gap: 0; } }

/* Tables */
.tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.table-card { display: flex; flex-direction: column; border-top: 6px solid var(--c, var(--gold)); }
.table-card h3 { margin-bottom: .35em; }
.table-card .expert { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.table-card .expert em { font-style: normal; display: inline-block; font-size: .75rem; padding: .05em .55em; border-radius: 999px; background: var(--paper); margin-top: .3rem; }
.table-card .slots { margin-top: auto; display: grid; gap: .4rem; font-size: .9rem; }
.slot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; padding: .45rem .7rem; border-radius: 10px; background: var(--paper); }
@media (max-width: 1100px) { .tables { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tables { grid-template-columns: 1fr; } }
.c-green { --c: var(--green); } .c-blue { --c: var(--blue); } .c-pink { --c: var(--pink); } .c-yellow { --c: var(--yellow); }

.badge { font-weight: 600; white-space: nowrap; }
.badge.ok { color: #1f7a52; }
.badge.full { color: #b0234d; }

/* Form */
.demo-note { margin: 1.25rem 0; padding: .9rem 1.1rem; border-radius: var(--radius); background: #fff6d6; border: 1px dashed #d9a400; font-size: .95rem; }
.form { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.rounds { border: 0; padding: 0; margin: 0 0 .5rem; display: grid; gap: 1.5rem; }
.round h3 { display: flex; align-items: baseline; gap: .6rem; font-size: 1.15rem; margin-bottom: .6rem; }
.round h3 span { font-weight: 500; color: var(--muted); font-size: .95rem; }
.options { display: grid; gap: .5rem; }
.option { position: relative; display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: #c8c2b0; }
.option input { accent-color: var(--ink); width: 1.15rem; height: 1.15rem; flex: none; margin: 0; }
.option .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--c, var(--line)); flex: none; }
.option .label { flex: 1; line-height: 1.3; }
.option .label small { display: block; color: var(--muted); }
.option:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.option.is-disabled { opacity: .45; cursor: not-allowed; }
.option.is-disabled .badge { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--pink); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { accent-color: var(--ink); width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }
.form-error { margin: 0; padding: .75rem 1rem; border-radius: 12px; background: #fde7ee; color: #8f1238; font-weight: 500; }

/* Result */
.result { margin-top: 1.5rem; border-top: 6px solid var(--green); outline: none; }
.result h3 { font-size: 1.5rem; }
.result ul { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.result li { padding: .8rem 1rem; border-radius: 12px; background: var(--paper); }
.result li strong { display: block; }
.result .st-ok { border-left: 5px solid var(--green); }
.result .st-wait { border-left: 5px solid var(--yellow); }

/* Calendar */
.cal-band { background: var(--ink); color: #fff; }
.cal-band-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: center; }
.cal-band h2 { margin-bottom: .2em; }
.cal-band p { color: #d6d3ca; font-size: 1.15rem; }
.cal-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; }
.cal-link {
  display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; font-family: var(--font); white-space: nowrap;
}
.cal-link:hover { border-color: var(--gold); }
.cal-link svg { width: 1.2rem; height: 1.2rem; flex: none; }
@media (max-width: 760px) { .cal-band-inner { grid-template-columns: 1fr; } }

.cal-dialog { border: 0; border-radius: var(--radius-lg); padding: 1.75rem; width: min(30rem, 100% - 2rem); box-shadow: var(--shadow); }
.cal-dialog::backdrop { background: rgba(29, 29, 27, .55); }
.cal-dialog h2 { font-size: 1.5rem; }
.cal-dialog .cal-links { grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.cal-dialog .cal-link { background: var(--paper); }

/* Footer */
.site-footer { background: var(--paper); padding: 3rem 0; font-size: .95rem; border-top: 8px solid transparent; border-image: var(--rainbow) 1; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-inner p { margin-bottom: .4em; }
.publicity { margin-top: 1rem; padding: 1rem; border: 2px dashed #c8c2b0; border-radius: 12px; color: var(--muted); font-size: .85rem; text-align: center; }
@media (max-width: 620px) { .footer-inner { grid-template-columns: 1fr; } }
