/* Živá ukázka AI webmistra: zkušební web Kavárna Na Rohu + Telegram overlay.
   Samostatný styl (bez style.css) — zkušební web má vypadat jako cizí web, ne jako lkmedia.cz. */

:root {
  --accent: #b5673a;
  --cream: #f7f1e8;
  --cream-2: #efe5d7;
  --ink: #2a211b;
  --ink-2: #5d5048;
  --line: #e3d6c5;
  --white: #fffdf9;
  --lk-blue: #124863;
  --lk-blue-2: #21627c;
  --tg-blue: #2aabee;
  --tg-dark: #17212b;
  --tg-dark-2: #0e1621;
  --tg-bubble: #182533;
  --tg-mine: #2b5278;
  --radius: 18px;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; }
button { font: inherit; }

/* ---------- Lišta LK Media ---------- */
.lk-bar {
  background: var(--lk-blue);
  color: #fff;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.lk-bar-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lk-bar-text { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lk-bar-text strong { font-weight: 700; letter-spacing: -0.01em; }
.lk-bar-text span { color: #cfe0e8; }
.lk-bar-links { display: flex; align-items: center; gap: 14px; }
.lk-bar-links a { color: #fff; text-decoration: none; opacity: 0.9; }
.lk-bar-links a:hover { opacity: 1; text-decoration: underline; }
.lk-bar-cta {
  background: #fff;
  color: var(--lk-blue) !important;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  opacity: 1 !important;
}
.lk-bar-cta:hover { text-decoration: none !important; background: #eaf0f2; }

/* ---------- Rozložení při otevřeném chatu ---------- */
.site-wrap { position: relative; transition: margin-right 0.35s ease; }
@media (min-width: 1100px) {
  body.tg-open .site-wrap { margin-right: 420px; }
}

.preview-ribbon {
  position: sticky;
  top: 44px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff3c4;
  color: #6b4a00;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-bottom: 1px solid #f0d98a;
}
.preview-ribbon[hidden] { display: none; }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0a800; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* ---------- Zkušební web ---------- */
.site { background: var(--cream); min-height: 100vh; }

.site-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}
.site-banner[hidden] { display: none; }

.site-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 26px;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-menu { display: flex; gap: 22px; margin-left: auto; }
.site-menu a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.site-menu a:hover { color: var(--accent); }
.site-nav-phone {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav-phone:hover { background: var(--ink); color: var(--cream); }

.site-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.site-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.site-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.site-lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 30px; }
.site-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.site-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.site-hero-hours { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.site-hero-hours b { display: block; color: var(--ink); font-weight: 700; }

.site-hero-art { display: flex; justify-content: center; }
.site-hero-photo { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(42, 33, 27, 0.45); }
.cup { position: relative; width: 260px; height: 260px; }
.cup-body {
  position: absolute; left: 40px; top: 90px; width: 160px; height: 120px;
  background: var(--white); border: 3px solid var(--ink);
  border-radius: 10px 10px 70px 70px; overflow: hidden;
}
.cup-foam { position: absolute; inset: 10px 10px auto; height: 30px; background: var(--accent); border-radius: 50%; opacity: 0.9; }
.cup-handle {
  position: absolute; left: 195px; top: 105px; width: 52px; height: 62px;
  border: 3px solid var(--ink); border-left: none; border-radius: 0 40px 40px 0;
}
.cup-saucer { position: absolute; left: 20px; top: 212px; width: 200px; height: 20px; border: 3px solid var(--ink); border-radius: 50%; background: var(--white); }
.cup-steam { position: absolute; left: 90px; top: 30px; display: flex; gap: 16px; }
.cup-steam i { width: 3px; height: 44px; border-radius: 3px; background: var(--accent); opacity: 0.5; animation: steam 2.4s ease-in-out infinite; }
.cup-steam i:nth-child(2) { animation-delay: 0.4s; }
.cup-steam i:nth-child(3) { animation-delay: 0.8s; }
@keyframes steam { 0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.25; } 50% { transform: translateY(-10px) scaleY(1.15); opacity: 0.6; } }

.site-section { padding: 64px 24px; }
.site-section-in { max-width: 1120px; margin: 0 auto; }
.site-section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.site-section-lead { margin: -6px 0 26px; color: var(--ink-2); max-width: 560px; }

.site-hours { background: var(--cream-2); padding: 44px 24px; }
.site-hours .site-section-in { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.site-hours h2 { margin: 0; }
.hours-list { margin: 0; display: grid; gap: 8px; }
.hours-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.hours-list dt { font-weight: 600; margin: 0; }
.hours-list dd { margin: 0; color: var(--ink-2); }

.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 40px; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.menu-item--photo { grid-template-columns: auto 1fr auto; align-items: center; }
.menu-item-photo { grid-row: 1 / span 2; width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.menu-item--photo .menu-item-note { grid-column: 2 / -1; }
.menu-item-name { font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu-item-price { font-family: var(--font-serif); font-size: 22px; white-space: nowrap; }
.menu-item-note { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.menu-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 2px 8px; border-radius: 999px; }

.site-about { background: var(--ink); color: var(--cream); }
.site-about h2 { color: var(--cream); }
.site-about-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.site-about-art { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--accent), #5b3a22 70%); }
.site-about-art.has-photo { background-size: cover; background-position: center; }
.site-about-text p { font-size: 17px; color: #d8cfc4; margin: 0 0 14px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.news-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; margin: 0 0 8px; line-height: 1.15; }
.news-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.news-card-photo { display: block; width: calc(100% + 48px); margin: -24px -24px 18px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery-item { margin: 0; display: grid; gap: 8px; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.gallery-item figcaption { font-size: 14px; color: var(--ink-2); }

.site-contact { background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; }
.contact-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.contact-card strong { font-size: 16px; overflow-wrap: anywhere; }
.contact-map { height: 180px; border-radius: var(--radius); background:
  repeating-linear-gradient(0deg, transparent 0 28px, rgba(0,0,0,0.05) 28px 29px),
  repeating-linear-gradient(90deg, transparent 0 28px, rgba(0,0,0,0.05) 28px 29px), #e6ddd0;
  display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

.site-footer { max-width: 1120px; margin: 0 auto; padding: 28px 24px 110px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }

/* Zvýraznění změn v náhledu */
.wm-changed { position: relative; animation: changed-flash 1.6s ease-out; box-shadow: 0 0 0 3px #f7c948; border-radius: 10px; }
.site-banner.wm-changed, .site-hero h1.wm-changed { border-radius: 4px; }
@keyframes changed-flash { 0% { box-shadow: 0 0 0 0 #f7c948, 0 0 0 12px rgba(247, 201, 72, 0.35); } 100% { box-shadow: 0 0 0 3px #f7c948; } }

/* ---------- Plovoucí tlačítko ---------- */
.tg-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border: none;
  border-radius: 999px;
  background: var(--tg-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(42, 171, 238, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tg-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(42, 171, 238, 0.45); }
.tg-fab::after {
  content: '';
  position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid rgba(42, 171, 238, 0.5);
  animation: fab-pulse 2.2s ease-out infinite;
}
@keyframes fab-pulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
body.tg-open .tg-fab { display: none; }

/* ---------- Telegram ---------- */
.tg {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 392px;
  height: min(760px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  background: var(--tg-dark-2);
  color: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform-origin: bottom right;
  animation: tg-in 0.25s ease-out;
}
.tg[hidden] { display: none; }
@keyframes tg-in { from { transform: scale(0.92) translateY(12px); opacity: 0; } }

.tg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--tg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tg-back, .tg-reset {
  background: transparent; border: none; color: #8fb6d8; cursor: pointer; padding: 6px; border-radius: 8px;
}
.tg-back:hover, .tg-reset:hover { background: rgba(255, 255, 255, 0.06); }
.tg-reset { margin-left: auto; font-size: 12px; font-weight: 600; padding: 6px 10px; }
.tg-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #5cb3ff, #2a6fd6);
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.tg-who { display: flex; flex-direction: column; line-height: 1.2; }
.tg-who strong { font-size: 15px; }
.tg-who span { font-size: 12px; color: #6ab3f3; }

.tg-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    radial-gradient(circle at 20% 20%, rgba(42, 171, 238, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(42, 171, 238, 0.06), transparent 40%),
    var(--tg-dark-2);
  scroll-behavior: smooth;
}
.tg-day { align-self: center; font-size: 12px; background: rgba(0, 0, 0, 0.35); color: #cfe3f3; padding: 3px 10px; border-radius: 999px; margin: 4px 0 8px; }
.tg-msg {
  max-width: 86%;
  padding: 8px 12px 6px;
  border-radius: 14px 14px 14px 4px;
  background: var(--tg-bubble);
  font-size: 14.5px;
  line-height: 1.42;
  animation: msg-in 0.2s ease-out;
  overflow-wrap: anywhere;
}
.tg-msg--me { align-self: flex-end; background: var(--tg-mine); border-radius: 14px 14px 4px 14px; }
.tg-msg--wide { max-width: 96%; }
.tg-msg p { margin: 0 0 8px; }
.tg-msg p:last-child { margin-bottom: 0; }
.tg-msg ul { margin: 0 0 8px; padding-left: 18px; }
.tg-msg li { margin: 2px 0; }
.tg-msg b { font-weight: 700; }
.tg-time { display: block; text-align: right; font-size: 11px; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }
.tg-msg--me .tg-time { color: #9fd0f3; }
@keyframes msg-in { from { transform: translateY(6px); opacity: 0; } }

.tg-voice { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.tg-voice-play { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--tg-mine); display: grid; place-items: center; flex: none; }
.tg-wave { display: flex; align-items: center; gap: 2px; height: 24px; }
.tg-wave i { width: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.85); display: block; }
.tg-transcript { font-size: 13px; color: #cfe3f3; font-style: italic; }
.tg-photo { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin: 0 0 6px; object-fit: cover; }
.tg-photo + .tg-photo { margin-top: 6px; }
.tg-msg--photo { padding: 6px 6px 8px; }
.tg-msg--photo p { padding: 0 6px; }

.tg-typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.tg-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8fb6d8; animation: typing 1.1s infinite; }
.tg-typing i:nth-child(2) { animation-delay: 0.15s; }
.tg-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Miniatura náhledu v bublině */
.tg-prev { margin: 6px 0 8px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, 0.15); }
.tg-prev-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b4a00; background: #fff3c4; padding: 4px 8px; }
.tg-prev-frame { position: relative; height: 190px; overflow: hidden; background: var(--cream); }
.tg-prev-frame > .site { position: absolute; left: 0; top: 0; width: 1200px; transform-origin: 0 0; pointer-events: none; min-height: 0; }
.tg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.tg-btn {
  border: 1px solid rgba(143, 182, 216, 0.5); background: rgba(42, 171, 238, 0.12); color: #bfe0fb;
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.tg-btn:hover { background: rgba(42, 171, 238, 0.25); }
.tg-btn--primary { background: var(--tg-blue); color: #fff; border-color: var(--tg-blue); }
.tg-btn--primary:hover { filter: brightness(1.08); }
.tg-note-inline { font-size: 12.5px; color: #9fb7c9; }

.tg-chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 12px 8px; scrollbar-width: none; }
.tg-chips::-webkit-scrollbar { display: none; }
.tg-chips:empty { display: none; }
.tg-chip {
  flex: none; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: #dbe9f4;
  font-size: 12.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.tg-chip:hover { background: rgba(255, 255, 255, 0.1); }

.tg-composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 10px;
  background: var(--tg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tg-composer textarea {
  flex: 1;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 8px;
  max-height: 120px;
}
.tg-composer textarea::placeholder { color: #6d8597; }
.tg-attach, .tg-mic, .tg-send {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: #8fb6d8;
}
.tg-attach:hover, .tg-mic:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.tg-send { background: var(--tg-blue); color: #fff; }
.tg-send:disabled, .tg-mic:disabled, .tg-attach:disabled { opacity: 0.4; cursor: default; }
.tg-attachments { display: flex; gap: 8px; padding: 8px 12px 0; background: var(--tg-dark); flex-wrap: wrap; }
.tg-attachments:empty { display: none; }
.tg-att { position: relative; width: 60px; height: 60px; }
.tg-att img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.tg-att-x {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; cursor: pointer;
  background: #e5484d; color: #fff; font-size: 13px; line-height: 1; display: grid; place-items: center; padding: 0;
}
.tg.is-drop::after {
  content: 'Pusťte fotku sem'; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(42, 171, 238, 0.25); border: 2px dashed var(--tg-blue); color: #fff; font-weight: 700; pointer-events: none; z-index: 2;
}
.tg-mic.is-rec { background: #e5484d; color: #fff; animation: rec 1s infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0.25); } }
.tg-note { margin: 0; padding: 0 14px 10px; font-size: 11.5px; color: #6d8597; background: var(--tg-dark); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .site-hero { grid-template-columns: 1fr; padding-bottom: 48px; }
  .site-hero-art { order: -1; }
  .site-hero-photo { max-width: 100%; aspect-ratio: 16 / 9; }
  .cup { width: 180px; height: 180px; transform: scale(0.7); transform-origin: center; margin: -30px auto; }
  .site-hours .site-section-in { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .site-about-in { grid-template-columns: 1fr; }
  .site-about-art { aspect-ratio: 16 / 9; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-menu { display: none; }
}
@media (max-width: 640px) {
  .lk-bar { position: static; }
  .lk-bar-text span { display: none; }
  .lk-bar-links a:first-child { display: none; }
  .preview-ribbon { top: 0; font-size: 12px; }
  .site-nav { padding: 16px; gap: 12px; }
  .site-logo { font-size: 22px; }
  .site-nav-phone { margin-left: auto; font-size: 13px; padding: 7px 12px; }
  .tg { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
  .tg-fab span { display: none; }
  .tg-fab { padding: 16px; }
}
