/* =========================================================
   VISIONITY — chat.css
   Úvodní stránka jako rozhovor (počítač: 3 sloupce, telefon: chat)
   ========================================================= */

:root {
  --ink: #101426;
  --ink-2: #3A4060;
  --muted: #6B7190;
  --soft: #8A90A6;
  --line: #E3E6EE;
  --line-2: #C9CDDA;
  --bg: #E9EBF1;
  --panel: #F6F7FA;
  --bubble: #F2F3F7;
  --accent: #2E5BFF;
  --accent-soft: #EEF2FF;
  --hr: #5B3FC4;
  --hr-soft: #F4F1FC;
  --partner: #E0A03A;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Rozvržení aplikace ---------- */
.app {
  max-width: 1300px;
  margin: 24px auto;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(16, 20, 38, .12);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  overflow: clip;
}
.side-left, .side-right {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: calc(100vh - 0px);
  overflow-y: auto;
}
.center { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- Avatary ---------- */
.ava {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  color: #FFFFFF;
  background: var(--ink);
}
.ava-lg { width: 44px; height: 44px; font-size: 15px; }
.ava-xl { width: 84px; height: 84px; font-size: 26px; }
.ava-sales { background: var(--accent); }
.ava-hr { background: var(--hr); }
.ava-partner { background: var(--partner); }
.ava-team { background: var(--ink); }
.ava-v { background: #FFFFFF; border: 1px solid var(--line); overflow: hidden; }
.ava-v img { width: 78%; height: 78%; object-fit: contain; }

/* ---------- Levý panel ---------- */
.side-left { background: var(--panel); display: flex; flex-direction: column; padding: 20px 12px; gap: 14px; }
.brand { display: inline-flex; align-self: flex-start; background: var(--ink); padding: 9px 13px; border-radius: 12px; margin: 0 8px 6px; }
.brand img { height: 20px; width: auto; }
.convs { display: flex; flex-direction: column; gap: 2px; }
.conv {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 10px; border-radius: 14px; text-decoration: none;
  transition: background .2s;
}
.conv:hover { background: #EDEFF4; }
.conv.is-active { background: #FFFFFF; box-shadow: 0 1px 3px rgba(16, 20, 38, .08); }
.conv-text { min-width: 0; }
.conv-text strong { display: block; font-size: 15px; }
.conv-text span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-date { font-size: 12px; font-weight: 700; color: var(--muted); }
.conv.is-active .conv-date { color: var(--accent); }
.side-cta { margin: 6px 10px 0; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.side-legal { margin: auto 10px 0; font-size: 12px; color: var(--soft); line-height: 1.6; }

/* ---------- Hlavička konverzace ---------- */
.chat-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.chat-head-title { font-weight: 800; font-size: 18px; }
.chat-head-sub { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.online { width: 8px; height: 8px; border-radius: 50%; background: #2FBF71; }
.chat-head-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; color: #4C5370; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }

/* Telefon: hlavička a připnutá zpráva (na počítači skryté) */
.m-top, .pinned { display: none; }

/* ---------- Rozhovor ---------- */
.threads {
  flex: 1;
  padding: 24px 28px 32px;
  background-color: #FFFFFF;
  background-image: radial-gradient(#EEF0F5 1px, transparent 1px);
  background-size: 22px 22px;
}
.thread { display: flex; flex-direction: column; gap: 18px; }
html.chat-ready .thread:not(.is-active) { display: none; }

.sys {
  align-self: center;
  background: var(--bubble); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--muted);
}
.turn { display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg.in { max-width: 680px; }
.msg.out { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.meta { font-size: 12px; color: var(--soft); padding-left: 6px; }

.bubble {
  background: var(--bubble);
  border-radius: var(--radius) var(--radius) var(--radius) 6px;
  padding: 13px 20px;
  font-size: 17px;
  align-self: flex-start;
  max-width: 100%;
}
.stack > .bubble + .bubble,
.stack > .bubble + .cards-row,
.stack > .bubble + .tickets { border-top-left-radius: 6px; }
.msg.out .bubble {
  background: var(--accent); color: #FFFFFF;
  border-radius: var(--radius) var(--radius) 6px var(--radius);
  font-weight: 500;
}
.thread-hr .msg.out .bubble { background: var(--hr); }
.bubble a { color: var(--accent); font-weight: 600; }
.bubble-soft { font-size: 15px; color: #4C5370; }
.bubble-big h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; }
.hl-hr { color: var(--hr); }
.thread-hr .msg.in .bubble { background: var(--hr-soft); }
.muted { display: block; color: var(--muted); font-size: 15px; }

/* Úvodní bublina */
.bubble-hero { padding: 0; overflow: hidden; background: var(--bubble); }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 280px; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 20, 38, .85), rgba(16, 20, 38, 0) 60%); }
.hero-photo-title { position: absolute; left: 24px; right: 24px; bottom: 18px; z-index: 1; color: #FFFFFF; font-weight: 800; font-size: 20px; letter-spacing: .01em; }
.hero-body { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.hero-body h1 { font-weight: 800; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.03; letter-spacing: -.03em; }
.hero-body > p { font-size: 18px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.facts div { background: #FFFFFF; border-radius: 14px; padding: 10px 12px; }
.facts strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.facts span { font-size: 13px; color: var(--muted); }

/* Karty v bublinách */
.bubble-card { background: #FFFFFF; border: 1px solid var(--line); padding: 0; overflow: hidden; }
.place { width: 100%; max-width: 560px; border-radius: 6px var(--radius) var(--radius) 6px; }
.place iframe { width: 100%; height: 190px; border: 0; display: block; filter: saturate(.85); }
.place-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.place-row strong { display: block; }
.place-row span { display: block; font-size: 14px; color: var(--muted); }
.place-row a { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 15px; white-space: nowrap; }
.file, .link-card {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none;
  border-radius: 6px var(--radius) var(--radius) var(--radius);
}
.file:hover, .link-card:hover { border-color: var(--line-2); }
.file-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.file strong, .link-card strong { display: block; font-size: 15px; }
.file span span, .link-card span span { display: block; font-size: 13px; color: var(--muted); }

.cards-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-card { background: var(--bubble); border-radius: 18px; overflow: hidden; }
.mini-card img { width: 100%; height: 130px; object-fit: cover; }
.mini-card div { padding: 12px 14px 14px; }
.mini-card strong { display: block; }
.mini-card span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }

.timeline { list-style: none; margin: 12px 0 2px 6px; padding: 0; border-left: 2px solid #CDD2E0; display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; padding-left: 20px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--accent); }
.timeline li.is-main::before { background: var(--accent); }
.timeline strong { display: block; }
.timeline .tl-speaker { display: block; font-size: 15px; color: var(--ink-2); }

.contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.contact { display: flex; gap: 10px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px 10px 10px; text-decoration: none; max-width: 100%; }
.contact-photo { width: 44px; height: 44px; border-radius: 50%; background: #E6E9F0; flex: none; object-fit: cover; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }
.contact strong { display: block; font-size: 15px; }
.contact span span { display: block; font-size: 13px; color: var(--muted); }
.contact-empty { border-style: dashed; border-color: var(--line-2); }
.typing-row { display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 4px; align-items: center; background: var(--bubble); border-radius: 999px; padding: 11px 14px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #9AA0B6; animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ticket { border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.ticket-main { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.ticket-top { padding: 18px 18px 14px; flex: 1; }
.ticket-kicker { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.ticket-main .ticket-kicker { color: #9FB4FF; }
.ticket-price { font-weight: 800; font-size: 38px; letter-spacing: -.02em; line-height: 1.15; }
.ticket-sub { font-size: 14px; color: var(--muted); }
.ticket-main .ticket-sub { color: #C8CDE0; }
.ticket-bottom { border-top: 2px dashed var(--line); padding: 12px 18px 14px; }
.ticket-main .ticket-bottom { border-top-color: #3A4060; }
.ticket-note { font-size: 14px; color: var(--muted); }

.album { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 130px 130px; gap: 4px; border-radius: var(--radius) var(--radius) var(--radius) 6px; overflow: hidden; max-width: 560px; }
.album button { position: relative; padding: 0; border: 0; cursor: zoom-in; background: #DDE0E8; }
.album button:first-child { grid-row: span 2; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.album button:hover img { transform: scale(1.04); }
.album button:nth-child(3) { display: none; }
.album-more span { position: absolute; inset: 0; background: rgba(16, 20, 38, .55); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }

.video { width: 100%; max-width: 560px; border-radius: 6px var(--radius) var(--radius) var(--radius); }
.video video { width: 100%; display: block; background: #000; }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.partner { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.partner img { height: 34px; width: auto; max-width: 160px; object-fit: contain; object-position: left; margin-bottom: 10px; }
.partner p { font-size: 14px; color: #4C5370; line-height: 1.55; }
.contact-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 6px var(--radius) var(--radius) 6px; }
.contact-card span { color: var(--muted); font-size: 15px; }
.contact-card a { color: var(--accent); font-weight: 600; text-decoration: none; }

.reply-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Tlačítka ---------- */
.btn, .pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s var(--ease), filter .15s;
}
.btn { border-radius: 12px; padding: 12px 18px; font-size: 15px; }
.btn:hover, .pill:hover { filter: brightness(1.08); }
.btn:active, .pill:active { transform: scale(.98); }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-hr { background: var(--hr); color: #FFFFFF; }
.btn-ghost { background: #FFFFFF; border: 1px solid var(--line-2); color: var(--ink); }
.ticket .btn { width: 100%; }
.pill { border-radius: 999px; padding: 10px 16px; font-size: 14px; }
.pill-accent { background: var(--accent); color: #FFFFFF; }
.pill-hr { background: var(--hr); color: #FFFFFF; }

/* ---------- Spodní lišta ---------- */
.composer {
  position: sticky; bottom: 0; z-index: 5;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 12px 28px 14px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line-2); background: #FFFFFF; border-radius: 999px;
  padding: 8px 15px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip-accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.chip-accent:hover { border-color: var(--accent); filter: brightness(1.08); }
.chip-hr { background: #F1ECFF; border-color: #F1ECFF; color: var(--hr); }
.ask { display: flex; gap: 8px; align-items: center; background: var(--bubble); border-radius: 999px; padding: 6px 6px 6px 20px; }
.ask:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; padding: 8px 0; }
.ask input::placeholder { color: var(--soft); }
.ask button { border: 0; background: var(--accent); color: #FFFFFF; border-radius: 999px; padding: 11px 20px; font-weight: 700; cursor: pointer; }
.ask-note { margin-top: 6px; text-align: center; font-size: 12px; color: var(--soft); }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding: 16px 28px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); line-height: 1.6; }
.site-foot a { color: var(--muted); }
.foot-org { display: flex; flex-direction: column; }
.foot-org strong { color: var(--ink); font-weight: 700; }
.foot-org a { color: var(--accent); text-decoration: none; font-weight: 600; }
.foot-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--soft); }
.side-org { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.side-org strong { color: var(--ink); }
.side-org a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- Pravý panel ---------- */
.side-right { background: #FBFBFD; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.detail { display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.detail.is-active { display: flex; }
.detail-title { font-weight: 800; font-size: 20px; }
.detail-sub { font-size: 14px; color: var(--muted); }
.detail-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.detail-stats div { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; text-align: left; }
.detail-stats div > span { display: block; font-size: 12px; color: var(--muted); }
.detail-stats strong { font-size: 18px; font-weight: 800; white-space: nowrap; }
.detail-list { width: 100%; margin: 4px 0; display: flex; flex-direction: column; gap: 10px; text-align: left; font-size: 15px; }
.detail-list dt { font-size: 12px; color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 600; }
.side-block { border-top: 1px solid var(--line); padding-top: 16px; }
.side-kicker { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.media-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.media-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.side-partners { margin-top: 10px; font-size: 14px; line-height: 1.8; }
.side-partners a { font-weight: 700; text-decoration: none; }
.side-partners span { color: var(--muted); }

/* ---------- Postupné objevování zpráv ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .turn.is-waiting .msg { opacity: 0; transform: translateY(14px); }
  html.js .turn .msg { transition: opacity .45s var(--ease), transform .45s var(--ease); }
  html.js .turn.is-waiting .msg.out { transform: translateX(14px); }
  html.js .turn.is-typing .msg.out { opacity: 1; transform: none; }
}
.turn-typing { display: none; gap: 10px; align-items: center; }
html.js .turn.is-typing .turn-typing { display: flex; }
.turn-typing .meta { padding: 0; }

.flash .msg.in .stack > *:first-child { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(46, 91, 255, .45); } 100% { box-shadow: 0 0 0 14px rgba(46, 91, 255, 0); } }

/* ---------- Lightbox a registrace ---------- */
.lightbox, .reg-modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 24, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden], .reg-modal[hidden] { display: none; }
.lb-img { max-width: 90vw; max-height: 84vh; border-radius: 10px; }
.lb-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #FFFFFF; font-size: 40px; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .12); border: 0; color: #FFFFFF; width: 52px; height: 52px; border-radius: 50%; font-size: 34px; cursor: pointer; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter { position: absolute; bottom: 18px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.reg-box { width: min(760px, 94vw); height: min(860px, 90vh); background: #FFFFFF; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.reg-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.reg-close { position: static; color: var(--ink); font-size: 32px; }
/* Hlavička formuláře Zoho (nadpis) se ořízne záporným okrajem – viz cropFor() v chat.js */
.reg-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.reg-clip { overflow: hidden; }
.reg-clip iframe { display: block; width: 100%; height: 1400px; border: 0; margin-top: calc(-1 * var(--crop, 0px)); }

/* =========================================================
   Tablet: bez pravého panelu
   ========================================================= */
@media (max-width: 1180px) {
  .app { grid-template-columns: 250px minmax(0, 1fr); margin: 16px; }
  .side-right { display: none; }
  .pinned {
    display: flex; gap: 10px; align-items: center;
    position: sticky; top: 73px; z-index: 4;
    padding: 10px 28px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
  }
  .pinned-bar { flex: none; width: 4px; align-self: stretch; border-radius: 4px; background: var(--accent); }
  .pinned-text { min-width: 0; flex: 1; }
  .pinned-kicker { font-size: 12px; font-weight: 700; color: var(--accent); }
  .pinned-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html { scroll-padding-top: 150px; }
}

/* =========================================================
   Telefon: chatovací aplikace
   ========================================================= */
@media (max-width: 780px) {
  body { background: #FFFFFF; font-size: 16px; }
  .app { display: block; margin: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .side-left, .chat-head { display: none; }
  .center { border: 0; }

  .m-top { display: block; background: var(--ink); color: #FFFFFF; }
  .m-top-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; }
  .m-top-bar img { height: 18px; width: auto; }
  .m-top-bar span { margin-left: auto; font-size: 12px; color: #A9B1CC; }
  .stories { display: flex; gap: 12px; overflow-x: auto; padding: 10px 14px 14px; scrollbar-width: none; }
  .stories::-webkit-scrollbar { display: none; }
  .story { flex: none; width: 66px; text-align: center; font-size: 11px; font-weight: 600; color: #FFFFFF; text-decoration: none; }
  .story-ring { display: block; width: 62px; height: 62px; border-radius: 50%; padding: 3px; margin-bottom: 5px; }
  .story-ring > * { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; }
  .story-ring .ava { font-size: 17px; }
  .ring-sales { background: conic-gradient(var(--accent), #7CF2FF, var(--accent)); }
  .ring-hr { background: conic-gradient(#8B6BFF, #D4C2FF, #8B6BFF); }
  .ring-photo { background: var(--partner); }
  .ring-dark { background: #3A4060; }
  .story.is-active .story-ring { box-shadow: 0 0 0 2px #FFFFFF; }

  .pinned { top: 0; padding: 10px 12px; }
  html { scroll-padding-top: 70px; }

  .threads { padding: 14px 10px 20px; background: #F4F5F9; background-image: none; }
  .thread { gap: 12px; }
  .msg.in > .ava { display: none; }
  .msg.in { max-width: 100%; }
  .stack { gap: 5px; }
  .bubble { background: #FFFFFF; box-shadow: 0 1px 2px rgba(16, 20, 38, .08); padding: 11px 16px; font-size: 16px; max-width: 90%; border-radius: 20px 20px 20px 6px; }
  .msg.out .bubble { max-width: 80%; box-shadow: none; }
  .thread-hr .msg.in .bubble { background: #FFFFFF; }
  .sys { background: #E6E9F0; color: #4C5370; font-size: 12px; }
  .bubble-hero { max-width: 100%; background: #FFFFFF; }
  .hero-photo img { height: 210px; }
  .hero-photo-title { left: 16px; bottom: 14px; font-size: 16px; }
  .hero-body { padding: 14px 16px 16px; }
  .hero-body h1 { font-size: 28px; }
  .hero-body > p { font-size: 16px; }
  .facts div { background: #F4F5F9; text-align: center; padding: 8px 4px; }
  .facts strong { font-size: 19px; }
  .facts span { font-size: 11px; }
  .bubble-card { box-shadow: 0 1px 2px rgba(16, 20, 38, .08); }
  .place { max-width: 92%; }
  .place iframe { height: 150px; }

  /* Vodorovně posuvné karty */
  .cards-row, .tickets {
    display: flex; overflow-x: auto; gap: 8px; margin: 0 -10px; padding: 2px 10px 6px;
    scroll-snap-type: x mandatory; scroll-padding: 0 10px; scrollbar-width: none;
  }
  .cards-row::-webkit-scrollbar, .tickets::-webkit-scrollbar { display: none; }
  .mini-card, .ticket { flex: none; width: 250px; scroll-snap-align: start; }
  .mini-card { background: #FFFFFF; box-shadow: 0 1px 2px rgba(16, 20, 38, .08); }
  .mini-card img { height: 150px; }
  .ticket { width: 236px; }
  .ticket-price { font-size: 32px; }

  .album { max-width: 92%; grid-template-columns: 1fr 1fr; grid-template-rows: 130px 100px; gap: 3px; }
  .album button:first-child { grid-row: auto; grid-column: span 2; }
  .album button:nth-child(3) { display: block; }
  .album button:nth-child(2) { display: none; }
  .video { max-width: 100%; }
  .partners { grid-template-columns: 1fr; }
  .partner { box-shadow: 0 1px 2px rgba(16, 20, 38, .08); border: 0; }
  .contact { background: #FFFFFF; }

  .composer { padding: 8px 0 10px; }
  .chips { padding: 0 10px 8px; }
  .ask { margin: 0 10px; padding: 5px 5px 5px 16px; }
  .ask button { padding: 10px 16px; }
  .ask-note { display: none; }
  .site-foot { padding: 14px 14px 20px; background: #F4F5F9; }
  .foot-meta { align-items: flex-start; }
  .lb-nav { display: none; }
}
