/* ===================== Dizajn tokeny (farby z programu Ulysseus) ===================== */
:root {
  --navy: #2D296C;
  --navy-700: #23205a;
  --navy-50: #eeedf7;
  --coral: #E55A5A;
  --coral-600: #d14646;
  --coral-50: #fdeeee;
  --plum: #4a2d62;
  --ink: #1d1b3a;
  --text: #34324f;
  --muted: #6f6d87;
  --line: #e6e5ef;
  --bg: #f6f5fa;
  --card: #ffffff;
  --ok: #1f9d6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(45, 41, 108, .06), 0 6px 20px rgba(45, 41, 108, .07);
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
}
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--navy); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--coral) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

main { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.view { animation: fade .25s ease; outline: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ===================== Hlavička ===================== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__logo { height: 36px; width: auto; }
.topbar__meta { display: flex; align-items: center; gap: 10px; }
.topbar__date { font-size: 12px; font-weight: 700; color: var(--navy); background: var(--navy-50); padding: 5px 10px; border-radius: 99px; }
.install-btn { border: 0; background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; }

/* ===================== Hero ===================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 16px 0 14px; padding: 26px 22px 24px;
  border-radius: var(--radius); color: #fff;
  background: var(--navy);
}
.hero__shape { position: absolute; border-radius: 34px; z-index: -1; transform: rotate(30deg); }
.hero__shape--a { width: 220px; height: 220px; right: -90px; bottom: -120px; background: var(--coral); }
.hero__shape--b { width: 220px; height: 220px; right: -40px; bottom: -150px; background: var(--plum); opacity: .92; }
.hero__kicker { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #ffc9c9; }
.hero__title { margin: 0 0 10px; font-size: clamp(22px, 6vw, 30px); line-height: 1.18; font-weight: 800; max-width: 22ch; }
.hero__when { margin: 0; font-size: 14px; font-weight: 600; opacity: .9; }

/* ===================== Vyhľadávanie & filtre ===================== */
.tools { position: sticky; top: calc(57px + var(--safe-t)); z-index: 10; background: var(--bg); padding: 8px 0 10px; margin: 0 -16px; padding-inline: 16px; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 14px; height: 48px; box-shadow: var(--shadow); color: var(--muted);
}
.search:focus-within { border-color: var(--navy); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 99px; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.room { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.room select { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: inherit; padding: 0 10px; }

/* ===================== Program ===================== */
.now-banner { margin: 6px 0 4px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--coral-50); color: var(--coral-600); font-weight: 700; font-size: 13px; }
.agenda { list-style: none; margin: 8px 0 18px; padding: 0; position: relative; }
.session {
  position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 12px;
  margin-bottom: 12px;
}
.session__time { text-align: right; padding-top: 16px; }
.session__start { display: block; font-weight: 800; font-size: 16px; color: var(--navy); line-height: 1.1; }
.session__end { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.session__card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px 12px; border-left: 4px solid var(--navy); min-width: 0;
}
.session[data-cat="Organizačné"] .session__card { border-left-color: #b9b7cf; }
.session[data-cat="Workshop"] .session__card { border-left-color: var(--coral); }
.session[data-cat="Prezentácia"] .session__card { border-left-color: var(--plum); }
.session.is-now .session__card { box-shadow: 0 0 0 2px var(--coral), var(--shadow); }
.session.is-past { opacity: .6; }
.session__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 6px; background: var(--navy-50); color: var(--navy); }
.tag--room { background: #f1f1f5; color: var(--muted); }
.tag--now { background: var(--coral); color: #fff; }
.session__title { margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.speakers { margin: 0 0 8px; padding: 0; list-style: none; }
.speaker { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy), var(--plum)); }
.speaker__name { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.2; }
.speaker__role { font-size: 12px; color: var(--muted); line-height: 1.3; }
.session__desc { margin: 0; font-size: 14px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.session.is-open .session__desc { -webkit-line-clamp: unset; display: block; }
.more { border: 0; background: none; padding: 6px 0 0; color: var(--coral-600); font-weight: 700; font-size: 13px; }
mark { background: #ffe58a; color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* ===================== Karty & typografia ===================== */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 14px 0; }
.card--accent { background: var(--navy); color: #fff; position: relative; overflow: hidden; margin-top: 16px; }
.card--accent::after { content: ""; position: absolute; width: 160px; height: 160px; right: -70px; top: -70px; border-radius: 30px; background: var(--coral); transform: rotate(30deg); opacity: .9; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--coral-600); text-transform: uppercase; letter-spacing: .05em; }
.eyebrow--light { color: #ffc9c9; position: relative; z-index: 1; }
.h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; font-weight: 800; color: var(--ink); }
.h2--light { color: #fff; position: relative; z-index: 1; max-width: 18ch; }
.on-dark { margin: 0; opacity: .88; position: relative; z-index: 1; font-size: 14px; }
.h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--navy); }
.lead { margin: 12px 0 0; white-space: pre-line; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.cover { margin: 16px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; background: var(--navy-50); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.card--intro { margin-top: -40px; position: relative; margin-inline: 10px; }
.facts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); font-size: 14px; }
.facts svg { color: var(--coral); }
.venue-name { margin: 0; font-weight: 700; color: var(--ink); }
.infoblock { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.infoblock h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; color: var(--navy); }
.infoblock p { margin: 0; font-size: 14px; }
.maplinks { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 13px; font-weight: 600; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 13px 28px 13px 0; font-weight: 700; color: var(--ink); position: relative; font-size: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 14px; font-size: 14px; }

.contact { display: flex; gap: 12px; align-items: center; }
.contact__actions { display: flex; gap: 8px; margin-top: 12px; }
.links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg); text-decoration: none; font-weight: 700; font-size: 14px; }
.funding { display: flex; gap: 12px; align-items: flex-start; font-size: 11px; color: var(--muted); line-height: 1.45; margin: 20px 4px; }
.funding img { width: 72px; height: auto; flex: none; opacity: .8; }

/* ===================== Tlačidlá ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform .1s, background .2s; min-height: 46px;
}
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 16px; margin-top: 16px; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(229, 90, 90, .3); }
.btn--primary:hover { background: var(--coral-600); }
.btn--ghost { background: var(--card); color: var(--navy); border: 1.5px solid var(--navy); }
.btn--soft { background: var(--navy-50); color: var(--navy); min-height: 40px; padding: 8px 14px; font-size: 13px; }
.btn--link { background: none; color: var(--muted); font-size: 14px; text-decoration: underline; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== Formulár ===================== */
.form { display: grid; gap: 4px; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.req { color: var(--coral); }
.opt { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfbfd;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-50); background: #fff; }
.field.has-error input { border-color: var(--coral); background: var(--coral-50); }
.error { margin: 0; font-size: 12px; color: var(--coral-600); font-weight: 600; min-height: 0; }
.error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin-top: 4px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--coral-600); text-align: center; }
.form-msg:empty { display: none; }

/* ===================== Vstupenka ===================== */
.ticket { margin: 16px 0; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.ticket__head { background: var(--navy); color: #fff; text-align: center; padding: 26px 20px 30px; position: relative; overflow: hidden; }
.ticket__head::after { content: ""; position: absolute; width: 150px; height: 150px; left: -70px; bottom: -80px; border-radius: 30px; background: var(--coral); transform: rotate(30deg); }
.ticket__head h2 { margin: 10px 0 2px; font-size: 22px; font-weight: 800; }
.ticket__head p { margin: 0; opacity: .85; font-weight: 600; }
.check-anim svg { width: 56px; height: 56px; stroke: #fff; stroke-width: 3; }
.check-anim circle { stroke: rgba(255,255,255,.35); }
.check-anim path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ticket__body { text-align: center; padding: 22px 20px 6px; position: relative; border-bottom: 2px dashed var(--line); }
.ticket__body::before, .ticket__body::after { content: ""; position: absolute; bottom: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket__body::before { left: -12px; } .ticket__body::after { right: -12px; }
.ticket__name { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.ticket__org { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.qr { width: 210px; height: 210px; margin: 16px auto 10px; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.qr img, .qr svg { width: 100%; height: 100%; image-rendering: pixelated; }
.ticket__label { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ticket__code { margin: 2px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: .08em; color: var(--navy); font-variant-numeric: tabular-nums; }
.ticket__status { margin: 0 0 12px; font-size: 12px; font-weight: 600; }
.ticket__status.ok { color: var(--ok); } .ticket__status.pending { color: #b7791f; }
.ticket__event { font-size: 13px; color: var(--text); background: var(--bg); border-radius: 12px; padding: 12px; margin: 0 0 18px; line-height: 1.5; }
.ticket__actions { padding: 18px 20px 20px; display: grid; gap: 10px; }

/* ===================== Spodná lišta ===================== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; position: relative;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-selected="true"] { color: var(--navy); }
.tab[aria-selected="true"]::before { content: ""; position: absolute; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--coral); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 40; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.ios-hint {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); z-index: 35;
  display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  padding: 12px 14px; font-size: 13px;
}
.ios-hint p { margin: 0; flex: 1; }
.ios-hint svg { width: 16px; height: 16px; vertical-align: -3px; color: #007aff; }
.ios-hint button { border: 0; background: var(--bg); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; }

/* Väčšie obrazovky: lišta hore by nebola nutná, ale ponecháme jednotný vzhľad */
@media (min-width: 760px) {
  .tabbar { max-width: 600px; left: 50%; transform: translateX(-50%); bottom: 14px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); height: var(--tabbar-h); padding: 0; }
  .card--intro { margin-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.tab span { text-align: center; line-height: 1.15; padding: 0 2px; }
