/* ==========================================================================
   Vyzkoušejte si to na sobě – styl D „Lidé u telefonu“
   Světlé pozadí #F8F7FB, Inter Tight 800, přechod #7B3FE4 → #9B6BF2, tmavé telefony.
   Animuje se jen transform a opacity.
   ========================================================================== */
:root {
  --bg: #F8F7FB;
  --ink: #120A2A;
  --tma: #140A2E;
  --f1: #7B3FE4;
  --f2: #9B6BF2;
  --grad: linear-gradient(100deg, #7B3FE4, #9B6BF2);
  --mut: #655F7C;
  --line: rgba(18, 10, 42, .09);
  --bila: #fff;
  --ok: #12996A;
  --pozor: #D9731F;
  --cerv: #E5484D;
  --nadpis: "Inter Tight", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --stin: 0 1px 2px rgba(18, 10, 42, .05), 0 12px 32px -12px rgba(48, 22, 110, .18);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--nadpis); font-weight: 800; letter-spacing: -.022em; line-height: 1.04; margin: 0; }
p { margin: 0; }
a { color: var(--f1); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--f1); outline-offset: 2px; border-radius: 6px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ik { display: inline-flex; width: 1.2em; height: 1.2em; flex: none; }
.ik svg { width: 100%; height: 100%; display: block; }

/* ----------------------------------------------------------------- pilulky */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; padding: .72em 1.25em; text-decoration: none;
  font: 700 15px/1 var(--nadpis); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .2s ease, opacity .2s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.98); }
.pill-dark { background: var(--tma); color: #fff; }
.pill-fial { background: var(--grad); color: #fff; }
.pill-svetla { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill-big { padding: 1.05em 1.5em; font-size: 16px; }

.stitek {
  display: inline-flex; align-items: center; gap: .45em; white-space: nowrap;
  font: 600 11.500px/1 var(--text); letter-spacing: .01em;
  padding: .5em .8em; border-radius: 999px;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.stitek-sim { background: var(--tma); color: #fff; box-shadow: none; }
.stitek-sim::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5EE0A8; }
.stitek-tichy { color: var(--mut); }
.stitek-fix {
  position: fixed; right: 12px; bottom: 12px; z-index: 60;
  font: 600 11px/1 var(--text); padding: .6em .85em; border-radius: 999px;
  background: rgba(20, 10, 46, .9); color: #fff; backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ------------------------------------------------------------------- top */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1400px; margin: 0 auto; padding: 16px 18px;
}
.top-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 14.500px/1.2 var(--nadpis); }
.top-mark { width: 26px; height: 26px; border-radius: 9px; background: var(--grad); position: relative; flex: none; }
.top-mark::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a:not(.pill) { display: none; color: var(--ink); text-decoration: none; font: 500 14px var(--text); }
.top-nav .pill { font-size: 13.500px; padding: .7em 1em; }

/* ------------------------------------------------------------------ úvod */
.uvod {
  max-width: 1400px; margin: 0 auto; padding: 18px 18px 40px;
  display: grid; gap: 28px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12.500px/1 var(--text); color: var(--mut); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--f1); position: relative; }
.eyebrow .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--f1); animation: tep 2s ease-out infinite; }
h1 { font-size: clamp(44px, 14vw, 64px); letter-spacing: -.04em; line-height: .94; }
h1 br.m { display: inline; }
h1 .grad { display: block; padding-bottom: .08em; }
.lead { margin-top: 20px; max-width: 34em; font-size: 17px; color: #3B3454; }

.osobni {
  margin-top: 26px; padding: 18px; border-radius: 26px; background: #fff; box-shadow: var(--stin);
  display: grid; gap: 14px; max-width: 560px;
}
.pole { display: grid; gap: 6px; min-width: 0; }
.pole-rada { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.pole label { font: 600 12.500px/1.2 var(--text); color: #3B3454; }
.nepovinne { font-weight: 500; color: var(--mut); }
.pole input, .pole select, .pole textarea {
  width: 100%; min-width: 0; border: 0; border-radius: 14px; padding: .8em .9em;
  background: #F3F1F8; box-shadow: inset 0 0 0 1px transparent; font-size: 16px;
  transition: opacity .2s;
}
.pole textarea { resize: vertical; min-height: 84px; }
.pole input:focus, .pole select:focus, .pole textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--f1); background: #fff; }
.soukromi { display: flex; gap: 8px; align-items: flex-start; font-size: 12.500px; color: var(--mut); line-height: 1.4; }
.zamek { flex: none; width: 14px; height: 12px; margin-top: 3px; border-radius: 3px; background: var(--ok); position: relative; }
.zamek::before { content: ""; position: absolute; left: 3px; right: 3px; top: -6px; height: 8px; border: 2px solid var(--ok); border-bottom: 0; border-radius: 5px 5px 0 0; }

.uvod-nahled { min-width: 0; }
.nahled-plocha {
  position: relative; border-radius: 34px; padding: 54px 16px 22px; min-height: 380px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(155, 107, 242, .30), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(123, 63, 228, .22), transparent 60%),
    #EFEAFB;
  display: grid; gap: 12px; align-content: center; overflow: hidden;
}
.nahled-plocha > .stitek { position: absolute; top: 16px; left: 16px; }
.karta {
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px);
  border-radius: 20px; padding: 13px 15px; box-shadow: var(--stin);
  opacity: 0; transform: translateY(26px) scale(.96);
  animation: karta .7s cubic-bezier(.2, .8, .2, 1.1) forwards;
}
.k1 { animation-delay: .15s; margin-right: 26px; }
.k2 { animation-delay: .45s; margin-left: 26px; background: rgba(20, 10, 46, .94); color: #fff; }
.k3 { animation-delay: .75s; margin-right: 12px; }
.karta header { display: flex; align-items: center; gap: 8px; font: 700 12.500px/1 var(--nadpis); margin-bottom: 7px; }
.karta header time { margin-left: auto; font: 500 11.500px var(--mono); opacity: .6; }
.karta p { font-size: 14px; line-height: 1.42; overflow-wrap: anywhere; }
.k-ikona { width: 22px; height: 22px; border-radius: 8px; background: var(--grad); flex: none; position: relative; }
.k-ikona::after { content: ""; position: absolute; inset: 7px; border-radius: 2px; background: #fff; }
.i-ai::after { border-radius: 50%; }
.i-not { background: #17A673; }
.k-stav {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  font: 600 12px/1 var(--text); padding: .55em .8em; border-radius: 999px; background: #E9F8F1; color: #0C6B4A;
  transition: opacity .2s, transform .2s;
}
.k-stav::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.k-stav.pracuje { background: #EFE8FD; color: var(--f1); }
.k-stav.meni { opacity: 0; transform: translateY(4px); }
.vlna { display: flex; align-items: center; gap: 3px; height: 22px; margin-top: 10px; }
.vlna i { width: 3px; height: 100%; border-radius: 2px; background: var(--f2); transform: scaleY(.3); animation: vlna 1.100s ease-in-out infinite; }
.vlna i:nth-child(2n) { animation-delay: -.3s; }
.vlna i:nth-child(3n) { animation-delay: -.6s; }
.vlna i:nth-child(5n) { animation-delay: -.85s; }

/* ----------------------------------------------------------------- scéna */
.scena { max-width: 1400px; margin: 0 auto; padding: 26px 10px 30px; scroll-margin-top: 8px; }
.scena-hlava, .pozadi-hlava { padding: 0 8px; margin-bottom: 20px; }
h2 { font-size: clamp(30px, 6.800vw, 56px); letter-spacing: -.035em; }
.scena-hlava p, .pozadi-hlava p { margin-top: 12px; color: var(--mut); max-width: 44em; }

.karty {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 8px 14px; margin: 0 -10px 6px;
  scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 18px;
}
.karty::-webkit-scrollbar { display: none; }
.sc {
  flex: 0 0 172px; scroll-snap-align: start; text-align: left;
  border: 0; border-radius: 20px; padding: 14px 14px 15px; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; gap: 6px; align-content: start;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.sc:hover { transform: translateY(-3px); }
.sc b { font: 700 15px/1.15 var(--nadpis); letter-spacing: -.01em; }
.sc span:not(.ik) { font-size: 12.500px; line-height: 1.38; color: var(--mut); }
.sc-ik { width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: #F1ECFC; color: var(--f1); margin-bottom: 4px; }
.sc.je { background: var(--tma); color: #fff; box-shadow: 0 16px 34px -16px rgba(20, 10, 46, .7); }
.sc.je span:not(.ik) { color: #BDB4D6; }
.sc.je .sc-ik { background: var(--grad); color: #fff; }

.stage {
  position: relative; border-radius: 30px; padding: 14px 12px 14px;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(155, 107, 242, .17), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(123, 63, 228, .13), transparent 70%),
    #fff;
  box-shadow: var(--stin);
  display: flex; flex-direction: column; gap: 12px;
}
.stage-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.stitky { display: flex; flex-wrap: wrap; gap: 6px; }
.ovladani { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ov {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: #F1EEF7; color: var(--ink);
  display: grid; place-items: center; transition: transform .2s;
}
.ov:hover { transform: scale(1.08); }
.ov .ik { width: 18px; height: 18px; }
#ov-hraj { background: var(--tma); color: #fff; width: 44px; height: 44px; }
.rychlost { display: flex; padding: 3px; border-radius: 999px; background: #F1EEF7; }
.rychlost button { border: 0; background: none; border-radius: 999px; padding: .55em .8em; font: 700 12.500px/1 var(--nadpis); color: var(--mut); }
.rychlost button.je { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(18, 10, 42, .14); }

/* časová osa */
.osa {
  --postup: 0; list-style: none; margin: 0; padding: 4px 2px 2px; display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none; position: relative;
}
.osa::-webkit-scrollbar { display: none; }
.osa li { flex: 1 0 auto; min-width: 74px; position: relative; }
.osa li::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: #E7E2F1; }
.osa li::after { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--f1); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.osa li.byl::after { transform: scaleX(1); }
.osa li.je::after { transform: scaleX(.5); }
.osa button { position: relative; z-index: 1; border: 0; background: none; padding: 0 6px; width: 100%; display: grid; justify-items: center; gap: 6px; color: var(--mut); }
.osa i {
  font: 700 11px/26px var(--nadpis); font-style: normal; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px #E7E2F1; color: var(--mut); transition: transform .3s;
}
.osa span { font: 600 11.500px/1.15 var(--text); white-space: nowrap; }
.osa li.byl i { background: var(--f1); box-shadow: none; color: #fff; }
.osa li.je i { background: var(--tma); box-shadow: 0 0 0 4px rgba(123, 63, 228, .22); color: #fff; transform: scale(1.12); }
.osa li.je span { color: var(--ink); }
.osa button:hover i { transform: scale(1.15); }

/* výzva */
.vyzva {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 9px 14px; border-radius: 16px; background: #F4F1FA; color: var(--mut);
  font: 600 13.500px/1.3 var(--text);
}
.vyzva-ruka { width: 22px; height: 22px; border-radius: 50%; flex: none; background: #D9D2EA; position: relative; }
.vyzva-ruka::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.vyzva.aktivni { background: var(--tma); color: #fff; }
.vyzva.aktivni .vyzva-ruka { background: var(--f2); }
.vyzva.aktivni .vyzva-ruka::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--f2); animation: tep 1.400s ease-out infinite; }
.vyzva.nova { animation: vyzva .5s cubic-bezier(.2, .9, .3, 1.3); }
.stage.je-konec .vyzva { display: none; }

/* záložky (mobil) */
.zalozky { display: grid; grid-template-columns: 1fr 1fr 1.350fr; gap: 4px; padding: 4px; border-radius: 16px; background: #F1EEF7; }
.zalozky button { border: 0; background: none; border-radius: 12px; padding: .75em .3em; font: 700 12.500px/1.1 var(--nadpis); color: var(--mut); transition: transform .2s; }
.zalozky button.je { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(18, 10, 42, .14); }
.zalozky button.jen-tablet { display: none; }
.mini { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 12px; background: var(--tma); color: #D9D2F0; font: 500 11px/1.35 var(--mono); min-height: 34px; }
.mini-uzel { width: 10px; height: 10px; border-radius: 50%; background: #5EE0A8; flex: none; position: relative; }
.mini.pracuje .mini-uzel { background: var(--f2); }
.mini.pracuje .mini-uzel::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--f2); animation: tep 1s ease-out infinite; }
#mini-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* plocha: mobil = jeden panel podle záložky */
.plocha { display: grid; justify-items: center; min-width: 0; }
.plocha > * { grid-area: 1 / 1; }
@media (max-width: 759px) {
  .stage-top { order: 1; } .osa { order: 2; } .zalozky { order: 3; } .vyzva, .konec { order: 4; } .mini { order: 5; } .plocha { order: 6; } .konzole { order: 7; }
  .zalozky { position: sticky; top: 6px; z-index: 15; box-shadow: 0 6px 16px -8px rgba(20, 10, 46, .35); }
  .vyzva { position: sticky; top: 58px; z-index: 14; box-shadow: 0 6px 16px -8px rgba(20, 10, 46, .35); pointer-events: none; }
  .tel-telo { height: clamp(440px, calc(100svh - 210px), 580px); }
  .kal-ud time { display: none; }
  .kal-ud { padding: 0 3px; font-size: 9px; }
  .tab { min-width: 0; font-size: 10.500px; table-layout: fixed; }
  .tab th:first-child, .tab td.c { display: none; }
  .tab th, .tab td { padding: 6px 4px; overflow: hidden; text-overflow: ellipsis; }
  .tab th { font-size: 8.500px; letter-spacing: 0; }
  .tab th:nth-child(2) { width: 15%; } .tab th:nth-child(3) { width: 25%; } .tab th:nth-child(4) { width: 17%; } .tab th:nth-child(5) { width: 25%; } .tab th:nth-child(6) { width: 18%; }
  .tab td.t-polozka, .tab td.t-zakaznik { max-width: none; }
  .tab th:nth-child(2), .tab td.t-zakaznik { padding-left: 8px; }
  .stav { font-size: 9.300px; padding: .34em .5em; } .kdo { font-size: 9px; padding: .25em .3em; }
  .kal-tip { white-space: normal; width: max-content; max-width: 176px; line-height: 1.250; }
  .stitek-tichy { display: none; }
.stage[data-tab="zakaznik"] .plocha > :not(#tel-zakaznik),
.stage[data-tab="majitel"] .plocha > :not(#tel-majitel),
.stage[data-tab="kancelar"] .plocha > :not(#kancelar) { display: none; }
}
.plocha > .telefon, .plocha > .kancelar { animation: panel .45s cubic-bezier(.2, .8, .2, 1) both; }
.trubka { display: none; }

/* ------------------------------------------------------------- telefon */
.telefon { width: min(100%, 320px); display: grid; gap: 8px; }
.tel-popis { display: flex; align-items: baseline; justify-content: center; gap: 8px; font: 600 12px/1 var(--text); color: var(--mut); }
.tel-osoba { font: 700 13px/1 var(--nadpis); color: var(--ink); padding: .4em .7em; border-radius: 999px; background: #F1ECFC; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.telefon.je-jiny .tel-osoba { animation: vyzva .6s cubic-bezier(.2, .9, .3, 1.4); background: #D7F5EC; }
.tel-telo {
  position: relative; height: 580px; padding: 9px; border-radius: 46px;
  background: linear-gradient(145deg, #2A1B52, #140A2E 40%, #0B0520);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 30px 50px -24px rgba(20, 10, 46, .65), 0 8px 18px -8px rgba(20, 10, 46, .4);
}
.tel-telo::before, .tel-telo::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #1E1240; }
.tel-telo::before { right: -2px; top: 130px; height: 64px; }
.tel-telo::after { left: -2px; top: 110px; height: 34px; box-shadow: 0 48px 0 #1E1240; }
.tel-sklo {
  --s-bg: #F3F1F8; --s-karta: #fff; --s-fg: #16102B; --s-mut: #6C6683; --s-linka: rgba(20, 10, 46, .08);
  --s-dovnitr: #fff; --s-pole: #E9E5F2;
  height: 100%; border-radius: 38px; overflow: hidden; background: var(--s-bg); color: var(--s-fg);
  display: flex; flex-direction: column; position: relative; isolation: isolate;
}
[data-kdo="majitel"] .tel-sklo {
  --s-bg: #100924; --s-karta: #1D1338; --s-fg: #F3F0FA; --s-mut: #A69EC2; --s-linka: rgba(255, 255, 255, .09);
  --s-dovnitr: #1D1338; --s-pole: #261A47;
}
.lista { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 20px 6px; font: 700 12.500px/1 var(--nadpis); flex: none; }
.ostrov { width: 74px; height: 20px; border-radius: 12px; background: #0B0520; }
.signal { justify-self: end; display: flex; align-items: flex-end; gap: 2px; }
.signal i { width: 3px; border-radius: 1px; background: currentColor; }
.signal i:nth-child(1) { height: 4px; } .signal i:nth-child(2) { height: 6px; } .signal i:nth-child(3) { height: 8px; } .signal i:nth-child(4) { height: 10px; opacity: .35; }
.signal em { width: 20px; height: 10px; margin-left: 5px; border-radius: 3px; box-shadow: inset 0 0 0 1.500px currentColor; position: relative; opacity: .9; }
.signal em::after { content: ""; position: absolute; left: 3px; top: 3px; bottom: 3px; width: 10px; border-radius: 1px; background: currentColor; }

.pohledy { position: relative; flex: 1; min-height: 0; }
.pohled {
  position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97);
  transition: opacity .32s ease, transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s .4s;
}
.pohled.je { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.app-hlava { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid var(--s-linka); flex: none; }
.app-hlava div { min-width: 0; display: grid; }
.app-hlava b { font: 700 14.500px/1.2 var(--nadpis); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-hlava small { font-size: 10.500px; color: var(--s-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-ik { width: 32px; height: 32px; padding: 7px; border-radius: 11px; background: var(--grad); color: #fff; }
.vlakno {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 9px;
}
.vlakno::-webkit-scrollbar { display: none; }
.vlakno > * { flex: none; animation: vstup .5s cubic-bezier(.2, .9, .3, 1.15) both; }
.vlakno > :first-child { margin-top: auto; }
.web-telo > :first-child, .hv-prepis > :first-child { margin-top: 0; }

/* domů */
.p-domu { padding: 26px 20px 20px; justify-content: space-between;
  background: radial-gradient(90% 60% at 80% 0%, rgba(155, 107, 242, .35), transparent 70%), radial-gradient(80% 60% at 0% 100%, rgba(123, 63, 228, .28), transparent 70%); }
.domu-cas { display: grid; justify-items: center; gap: 6px; margin-top: 26px; }
.domu-hodiny { font: 800 64px/1 var(--nadpis); letter-spacing: -.04em; }
.domu-cas span { font-size: 12px; color: var(--s-mut); }
.domu-mriz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px 8px; border-radius: 24px; background: color-mix(in srgb, var(--s-karta) 70%, transparent); }
.domu-app { display: grid; justify-items: center; gap: 5px; font-size: 9.500px; color: var(--s-mut); text-align: center; }
.domu-ik { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: var(--grad); color: #fff; }
.domu-app:nth-child(2) .domu-ik { background: linear-gradient(140deg, #2D1F5E, #140A2E); }
.domu-app:nth-child(3) .domu-ik { background: linear-gradient(140deg, #14B892, #0E8F86); }
.domu-app:nth-child(4) .domu-ik { background: linear-gradient(140deg, #F2A93B, #E8833A); }

/* bubliny */
.bublina { max-width: 86%; padding: 9px 12px 8px; border-radius: 18px; font-size: 13.500px; line-height: 1.4; position: relative; overflow-wrap: anywhere; }
.bublina p { white-space: pre-line; }
.bublina.dovnitr { align-self: flex-start; background: var(--s-dovnitr); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(18, 10, 42, .06); transform-origin: left bottom; }
.bublina.ven { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; transform-origin: right bottom; }
.bublina .meta { display: block; margin-top: 5px; font: 500 9.500px/1.2 var(--mono); color: var(--s-mut); }
.bublina.ven .meta { color: rgba(255, 255, 255, .75); }
.bublina.s-ai { padding-left: 38px; }
.ai-znak { position: absolute; left: 9px; top: 9px; width: 22px; height: 22px; border-radius: 8px; background: var(--tma); color: #fff; font: 800 9px/22px var(--nadpis); text-align: center; }
.lnk {
  display: inline-block; position: relative; border: 0; margin: 3px 2px 1px 0; padding: .32em .7em; border-radius: 999px;
  background: #EFE8FD; color: var(--f1); font: 700 12.500px/1.2 var(--nadpis); text-decoration: underline; text-underline-offset: 2px;
}
.psani { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--s-dovnitr); }
.psani i { width: 6px; height: 6px; border-radius: 50%; background: var(--s-mut); animation: psani 1s ease-in-out infinite; }
.psani i:nth-child(2) { animation-delay: .15s; } .psani i:nth-child(3) { animation-delay: .3s; }
.delic { align-self: center; font: 600 10.500px/1 var(--mono); color: var(--s-mut); padding: .5em .9em; border-radius: 999px; background: var(--s-pole); }

/* skladatel */
.app-pata { flex: none; padding: 6px 10px 12px; border-top: 1px solid var(--s-linka); display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.navrhy { display: flex; flex-wrap: wrap; gap: 6px; }
.navrhy:empty { display: none; }
.navrh-cip { border: 0; border-radius: 999px; padding: .55em .85em; background: var(--tma); color: #fff; font: 600 12px/1.2 var(--text); text-align: left; animation: vstup .4s cubic-bezier(.2, .9, .3, 1.2) both; position: relative; }
.navrh-cip:nth-child(2) { animation-delay: .08s; } .navrh-cip:nth-child(3) { animation-delay: .16s; }
.navrh-cip:hover { transform: translateY(-1px); }
.skladatel { display: flex; gap: 6px; }
.skladatel input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: .6em .95em; background: var(--s-pole); font-size: 16px; }
.skladatel input:disabled { opacity: .55; }
.skladatel input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--f1); }
.sk-odeslat { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.sk-odeslat:disabled { opacity: .4; }
.sk-odeslat .ik { width: 16px; height: 16px; }
.app-pata.ceka .skladatel input { box-shadow: inset 0 0 0 2px var(--f2); }

/* tlačítka v obsahu + cíl kliknutí */
.akce { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.btn { position: relative; border: 0; border-radius: 12px; padding: .7em 1em; font: 700 13px/1.1 var(--nadpis); flex: none; transition: transform .15s, opacity .2s; }
.akce .btn { flex: 1 1 auto; }
.btn-1 { background: var(--tma); color: #fff; }
[data-kdo="majitel"] .btn-1 { background: var(--grad); }
.btn-2 { background: var(--s-pole); color: var(--s-fg); }
.btn-sir { width: 100%; margin-top: 4px; }
.cil { z-index: 2; animation: cil-tep 1.200s ease-in-out infinite; }
.cil::after {
  content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--f2);
  animation: cil 1.200s ease-out infinite; pointer-events: none;
}
.zvoleno { opacity: 1; }
.btn.zvoleno::before, .web-slot.zvoleno::before, .hv-rekni.zvoleno::before { content: "✓ "; }
.nezvoleno { opacity: .38; }
.nic { animation: nic .35s ease; }

/* e-mail */
.mail { background: var(--s-karta); border-radius: 18px; padding: 13px 14px 14px; box-shadow: 0 1px 2px rgba(18, 10, 42, .06), 0 8px 20px -14px rgba(18, 10, 42, .3); }
.mail header { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.mail header div { display: grid; min-width: 0; }
.mail header b { font: 700 13px/1.2 var(--nadpis); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail header small { font-size: 10.500px; color: var(--s-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 13px/30px var(--nadpis); text-align: center; flex: none; }
.mail h4 { font-size: 15.500px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.mail p { font-size: 13px; line-height: 1.45; margin-top: 5px; overflow-wrap: anywhere; }
.mail-pata { display: block; margin-top: 11px; padding-top: 9px; border-top: 1px dashed var(--s-linka); font-size: 10.500px; line-height: 1.4; color: var(--s-mut); }
.qr-obal { display: flex; align-items: center; gap: 12px; margin-top: 11px; padding: 10px; border-radius: 14px; background: var(--s-bg); }
.qr-obal div:last-child { display: grid; gap: 2px; }
.qr-obal b { font: 700 13px var(--nadpis); } .qr-obal small { font-size: 10.500px; color: var(--s-mut); }
.qr { width: 78px; height: 78px; padding: 5px; border-radius: 8px; background: #fff; display: grid; grid-template-columns: repeat(13, 1fr); flex: none; }
.qr i.x { background: #140A2E; }

/* hlášení majitele */
.hlaseni { background: var(--s-karta); border-radius: 18px; padding: 12px 14px 14px; border-left: 4px solid var(--f2); }
.hlaseni.ton-ok { border-left-color: #2CCB8F; }
.hlaseni.ton-pozor { border-left-color: #F2A93B; }
.hlaseni header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hl-stitek { font: 700 10.500px/1 var(--text); letter-spacing: .04em; text-transform: uppercase; padding: .5em .7em; border-radius: 999px; background: rgba(155, 107, 242, .22); color: #C9B4FA; }
.ton-ok .hl-stitek { background: rgba(44, 203, 143, .18); color: #5EE0A8; }
.ton-pozor .hl-stitek { background: rgba(242, 169, 59, .18); color: #F6BD63; }
.hlaseni time { font: 500 10.500px var(--mono); color: var(--s-mut); }
.hlaseni h4 { font-size: 15px; line-height: 1.2; margin-bottom: 6px; overflow-wrap: anywhere; }
.hlaseni p { font-size: 12.800px; line-height: 1.45; color: #D2CBE6; overflow-wrap: anywhere; }
.navrh { margin-top: 10px; padding: 10px; border-radius: 14px; background: #150D2C; display: grid; gap: 8px; }
.navrh small { display: flex; align-items: center; gap: 6px; font-size: 10.500px; color: var(--s-mut); }
.navrh small .ik { color: var(--f2); width: 14px; height: 14px; }
.tony { display: flex; gap: 5px; flex-wrap: wrap; }
.ton { border: 0; border-radius: 999px; padding: .5em .8em; background: #261A47; color: #CFC6E8; font: 600 11.500px/1 var(--text); }
.ton.je { background: #fff; color: var(--tma); }
.navrh-text { font-size: 12.800px; line-height: 1.45; padding: 9px 10px; border-radius: 10px; background: #1D1338; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); overflow-wrap: anywhere; }
.navrh-text:focus { outline: none; box-shadow: inset 0 0 0 2px var(--f2); }
.navrh-text.blik { animation: blik .6s ease; }

/* mini web */
.web-lista { flex: none; margin: 4px 12px 0; padding: 7px 12px; border-radius: 999px; background: var(--s-pole); display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--s-mut); }
.web-lista span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-zamek { width: 12px; height: 12px; }
.web-telo { gap: 8px; padding-top: 14px; }
.web-telo.nove > * { animation: vstup .45s cubic-bezier(.2, .9, .3, 1.1) both; }
.web-telo h3 { font-size: 21px; letter-spacing: -.02em; }
.web-pod { font-size: 12px; color: var(--s-mut); margin-top: -4px; overflow-wrap: anywhere; }
.web-stit { font: 700 11px/1 var(--text); text-transform: uppercase; letter-spacing: .05em; color: var(--s-mut); margin-top: 6px; }
.web-sluzby { display: grid; gap: 6px; }
.web-sluzba { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 14px; background: var(--s-karta); font-size: 12.500px; box-shadow: inset 0 0 0 1px var(--s-linka); }
.web-sluzba b { font: 600 13px/1.2 var(--text); } .web-sluzba span:last-child { color: var(--s-mut); white-space: nowrap; }
.web-sluzba.je { box-shadow: inset 0 0 0 2px var(--f1); }
.radio { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C9C3DA; }
.web-sluzba.je .radio { box-shadow: inset 0 0 0 4px var(--f1); }
.web-fikt { font-size: 10.500px; color: var(--s-mut); }
.web-sloty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.web-slot { position: relative; border: 0; border-radius: 12px; padding: .8em .2em; background: var(--s-karta); box-shadow: inset 0 0 0 1px var(--s-linka); font: 700 12.500px/1 var(--nadpis); }
.web-slot.zvoleno { background: var(--f1); color: #fff; box-shadow: none; }
.web-vybrano { font-size: 12px; color: var(--s-mut); min-height: 1.4em; }
.web-nalady { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.web-nalada { position: relative; border: 0; border-radius: 14px; padding: 10px 6px; background: var(--s-karta); box-shadow: inset 0 0 0 1px var(--s-linka); display: grid; gap: 4px; justify-items: center; }
.web-nalada b { font: 700 12.500px var(--nadpis); } .web-nalada span { color: #E8A21B; font-size: 13px; letter-spacing: 1px; }
.web-nalada.zvoleno { box-shadow: inset 0 0 0 2px var(--f1); }
.web-telo textarea, .web-pole input { width: 100%; border: 0; border-radius: 12px; padding: 9px 11px; background: var(--s-karta); box-shadow: inset 0 0 0 1px var(--s-linka); font-size: 16px; line-height: 1.4; resize: none; }
.web-telo textarea { font-size: 13.500px; }
.web-pole input { font-size: 13.500px; color: var(--s-mut); }
.web-telo textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--f1); }
.web-pole { display: grid; gap: 4px; } .web-pole span { font: 600 11px var(--text); color: var(--s-mut); }
.rec { background: var(--s-karta); border-radius: 16px; padding: 12px; box-shadow: inset 0 0 0 1px var(--s-linka); }
.rec header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; } .rec header b { font: 700 13.500px var(--nadpis); }
.rec-hv { color: #E8A21B; letter-spacing: 1px; font-size: 13px; }
.rec p { font-size: 12.800px; line-height: 1.45; overflow-wrap: anywhere; }
.rec-odp { margin-top: 10px; padding: 10px; border-radius: 12px; background: #F1ECFC; border-left: 3px solid var(--f1); animation: vstup .7s .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.rec-odp small { display: block; font: 700 10.500px var(--text); color: var(--f1); margin-bottom: 4px; }

/* hovor */
.p-hovor { background: linear-gradient(180deg, #1B1040, #0D0620); color: #fff; }
.hv-hlava { flex: none; display: grid; justify-items: center; gap: 4px; padding: 18px 16px 10px; text-align: center; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.hv-avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin-bottom: 6px; position: relative; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.hv-avatar .ik { width: 26px; height: 26px; }
.hv-jmeno { font: 800 20px/1.15 var(--nadpis); letter-spacing: -.02em; overflow-wrap: anywhere; }
.hv-stav { font-size: 12px; color: #B9AEDD; }
.hv-timer { font: 500 12px var(--mono); color: #fff; min-height: 1.2em; }
.hv-vlna { display: none; align-items: center; gap: 3px; height: 30px; }
.hv-vlna i { width: 3px; height: 100%; border-radius: 2px; background: var(--f2); transform: scaleY(.18); animation: vlna 1s ease-in-out infinite; animation-delay: calc(var(--i) * -137ms); }
.hv-audio { display: none; font: 500 10px var(--mono); color: #8F84B5; }
[data-stav="spojeno"] .hv-vlna { display: flex; } [data-stav="spojeno"] .hv-audio { display: block; }
[data-stav="spojeno"] .hv-avatar { transform: scale(.62); margin-bottom: -8px; margin-top: -10px; }
[data-stav="spojeno"][data-mluvi="ja"] .hv-vlna i { background: #5EE0A8; }
[data-stav="vyzvani"] .hv-avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--f2); animation: kruh 1.400s ease-out infinite; }
.hv-prepis { gap: 8px; padding-top: 4px; }
.hv-radek { max-width: 90%; padding: 8px 11px; border-radius: 14px; background: rgba(255, 255, 255, .09); }
.hv-radek small { display: block; font: 700 9.500px/1 var(--text); letter-spacing: .05em; text-transform: uppercase; color: #C9B4FA; margin-bottom: 4px; }
.hv-radek p { font-size: 12.800px; line-height: 1.42; overflow-wrap: anywhere; }
.hv-radek.od-ja { align-self: flex-end; background: rgba(94, 224, 168, .14); } .hv-radek.od-ja small { color: #5EE0A8; }
.hv-dole { flex: none; display: grid; justify-items: center; padding: 8px 14px 18px; min-height: 84px; align-content: center; }
.hv-volat { position: relative; border: 0; border-radius: 999px; padding: 0 22px 0 6px; height: 58px; background: #20C27E; color: #fff; display: flex; align-items: center; gap: 10px; font: 800 16px var(--nadpis); }
.hv-volat .ik { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.hv-zavesit { width: 52px; height: 52px; border-radius: 50%; background: var(--cerv); display: grid; place-items: center; }
.hv-zavesit .ik { width: 26px; height: 26px; }
.hv-info { font: 600 12px var(--text); color: #B9AEDD; padding: .7em 1.1em; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.hv-volby { display: grid; gap: 7px; width: 100%; }
.hv-rekni { position: relative; border: 0; border-radius: 14px; padding: .8em 1em; background: #fff; color: var(--tma); font: 700 13px/1.2 var(--nadpis); animation: vstup .4s cubic-bezier(.2, .9, .3, 1.2) both; }

/* ------------------------------------------------- kalendář a tabulka */
.kancelar { width: 100%; min-width: 0; display: grid; gap: 12px; align-content: start; }
.okno { position: relative; background: #fff; border-radius: 22px; padding: 12px 12px 12px; box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -22px rgba(48, 22, 110, .35); min-width: 0; }
.okno-hlava { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.okno-hlava div { display: grid; min-width: 0; flex: 1; }
.okno-hlava b { font: 700 14px/1.2 var(--nadpis); }
.okno-hlava small { font-size: 10.800px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.okno-ikona { width: 28px; height: 28px; border-radius: 9px; flex: none; position: relative; background: #EFE8FD; }
.ik-kal::before { content: ""; position: absolute; inset: 7px 7px 6px; border-radius: 3px; border: 2px solid var(--f1); border-top-width: 5px; }
.ik-tab { background: #DFF5EC; }
.ik-tab::before { content: ""; position: absolute; inset: 7px; border-radius: 2px; border: 2px solid #12996A; background: linear-gradient(#12996A, #12996A) 0 50% / 100% 2px no-repeat, linear-gradient(#12996A, #12996A) 40% 0 / 2px 100% no-repeat; }
.okno-zapis { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 10.500px/1 var(--mono); padding: .55em .8em; border-radius: 999px; background: var(--tma); color: #fff; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.okno-zapis::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--f2); animation: tep-maly 1s ease-in-out infinite; }
.okno.pise .okno-zapis { opacity: 1; transform: none; }

.kal { --gut: 32px; --hh: 24px; --sloupec: calc((100% - var(--gut)) / 6); position: relative; }
.kal-dny { display: grid; grid-template-columns: var(--gut) repeat(6, 1fr); font: 700 11px/1 var(--nadpis); color: var(--mut); text-align: center; padding-bottom: 7px; }
.kal-dny .dnes { color: #fff; }
.kal-dny .dnes { position: relative; z-index: 0; }
.kal-dny .dnes::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 26px; height: 20px; margin: -10px 0 0 -13px; border-radius: 8px; background: var(--f1); }
.kal-telo { position: relative; height: calc(var(--hodin) * var(--hh)); }
.kal-telo::before {
  content: ""; position: absolute; left: var(--gut); right: 0; top: 0; bottom: 0; border-radius: 10px;
  background:
    linear-gradient(to right, rgba(123, 63, 228, .07), rgba(123, 63, 228, .07)) calc(100% / 5 * 1) 0 / calc(100% / 6) 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hh)),
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / 6)),
    #FBFAFD;
  box-shadow: inset 0 0 0 1px var(--line);
}
.kal-hod { position: absolute; left: 0; width: calc(var(--gut) - 5px); text-align: right; top: calc(var(--t) * var(--hh) - 5px); font: 500 8.500px/1 var(--mono); color: #9A94AE; }
.kal-hod:first-child { top: 1px; }
.kal-ud, .kal-duch, .kal-ted, .kal-sken { position: absolute; left: calc(var(--gut) + var(--d) * var(--sloupec) + 2px); width: calc(var(--sloupec) - 4px); }
.kal-ud {
  top: calc(var(--t) * var(--hh) + 1px); height: calc(var(--l) * var(--hh) - 2px);
  border: 0; border-radius: 6px; padding: 0 5px; text-align: left;
  background: var(--grad); color: #fff; display: flex; align-items: center; gap: 3px;
  font: 600 9.800px/1 var(--text); z-index: 2; transition: opacity .4s;
}
.kal-ud time { font: 500 9px/1 var(--mono); opacity: .85; flex: none; }
.kal-ud > span:not(.kal-tip):not(.ik) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kal-ik { width: 11px; height: 11px; flex: none; }
.kal-ud.bg { background: #EAE7F2; color: #7A7491; z-index: 1; }
.kal-ud.b-listina { background: linear-gradient(100deg, #0E9C97, #14B892); }
.kal-ud.b-ukol { background: linear-gradient(100deg, #F2A93B, #F6BD63); color: #3D2600; }
.kal-ud.nova { animation: kal-nova .9s cubic-bezier(.2, .9, .3, 1.25) both; z-index: 4; }
.kal-ud.nova::after, .kal-ud.zmena::after { content: ""; position: absolute; inset: -3px; border-radius: 9px; border: 2px solid var(--f2); animation: cil 1.200s ease-out 3; pointer-events: none; opacity: 0; }
.kal-ud.zmena { z-index: 4; }
.kal-ud.zrusena { opacity: .32; text-decoration: line-through; background: #C9C3DA; color: #3B3454; z-index: 1; }
.kal-ud.obsazeno { animation: kal-obsazeno .6s ease 2; }
.kal-ud:hover { transform: scale(1.03); }
.kal-tip {
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 6; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; padding: .55em .8em; border-radius: 9px;
  background: var(--tma); color: #fff; font: 600 10.500px/1 var(--text); text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(20, 10, 46, .6);
  animation: vstup .45s .5s cubic-bezier(.2, .9, .3, 1.3) both; transition: opacity .4s;
}
.kal-tip .ik { width: 12px; height: 12px; color: var(--f2); }
.kal-tip::after { content: ""; position: absolute; left: 12px; top: 100%; border: 5px solid transparent; border-top-color: var(--tma); }
.kal-ud.vpravo .kal-tip { left: auto; right: 0; } .kal-ud.vpravo .kal-tip::after { left: auto; right: 12px; }
.kal-tip.pryc { opacity: 0; }
.kal-duch {
  top: calc(var(--t) * var(--hh) + 1px); height: calc(var(--l) * var(--hh) - 2px); z-index: 3;
  border-radius: 6px; border: 1.500px dashed #12996A; background: rgba(18, 153, 106, .12); color: #0C6B4A;
  font: 700 9px/1 var(--mono); display: grid; place-items: center; pointer-events: none;
}
.kal-duch.nabidka { animation: vstup .45s cubic-bezier(.2, .9, .3, 1.4) both; }
.kal-duch.blika { animation: blikani .5s ease 5 alternate; }
.kal-duch.volne { opacity: .8; }
.kal-ted { top: calc(var(--t) * var(--hh)); height: 2px; background: var(--cerv); z-index: 5; border-radius: 2px; pointer-events: none; }
.kal-ted::before { content: ""; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--cerv); }
.kal-sken { top: 0; bottom: 0; overflow: hidden; z-index: 3; border-radius: 6px; pointer-events: none; }
.kal-sken::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26%; background: linear-gradient(to bottom, transparent, rgba(123, 63, 228, .38)); border-bottom: 2px solid var(--f1); animation: sken 1.300s ease-in-out both; }
.kal-detail {
  position: absolute; z-index: 10; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--tma); color: #fff; box-shadow: 0 20px 40px -16px rgba(20, 10, 46, .7);
  animation: vstup .35s cubic-bezier(.2, .9, .3, 1.15) both;
}
.kd-zavrit { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.kd-zavrit .ik { width: 14px; height: 14px; }
.kd-kdy { font: 500 11px var(--mono); color: #C9B4FA; }
.kal-detail h4 { font-size: 16px; margin: 4px 30px 8px 0; overflow-wrap: anywhere; }
.kal-detail dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 12px; }
.kal-detail dt { color: #A69EC2; } .kal-detail dd { margin: 0; overflow-wrap: anywhere; }
.kd-hist-n { display: block; margin-top: 9px; font: 700 10px var(--text); letter-spacing: .05em; text-transform: uppercase; color: #A69EC2; }
.kd-hist { margin: 4px 0 0; padding: 0; list-style: none; font: 400 10.800px/1.5 var(--mono); color: #E4DDF6; }

.tab-obal { overflow: auto; max-height: 190px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); scrollbar-width: thin; }
.tab { width: 100%; min-width: 400px; border-collapse: collapse; font-size: 11.500px; line-height: 1.2; }
.tab th { position: sticky; top: 0; z-index: 1; background: #F3F1F8; text-align: left; font: 700 10px/1 var(--text); letter-spacing: .04em; text-transform: uppercase; color: var(--mut); padding: 8px 8px; white-space: nowrap; }
.tab td { padding: 6px 8px; border-top: 1px solid var(--line); white-space: nowrap; position: relative; }
.tab td.c { font: 500 10.500px var(--mono); color: #9A94AE; }
.tab td.t-polozka { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.tab td.t-zakaznik { max-width: 90px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.stav { display: inline-block; padding: .34em .7em; border-radius: 999px; font: 700 10.500px/1 var(--text); }
.s-nova { background: #EFE8FD; color: #5B2BC4; } .s-ok { background: #DFF5EC; color: #0C6B4A; }
.s-modra { background: #E3EEFD; color: #1F57B8; } .s-pozor { background: #FDEBDD; color: #A8520F; }
.kdo { font: 500 10.500px var(--mono); padding: .25em .5em; border-radius: 5px; background: #F3F1F8; }
.k-ai { background: var(--tma); color: #fff; } .k-vy { background: #FFF1C9; color: #5C4300; }
.tab tr.novy td { animation: radek .8s cubic-bezier(.2, .9, .3, 1.1) both; }
.tab tr.novy td::after, .tab td.zmena::after { content: ""; position: absolute; inset: 0; background: rgba(155, 107, 242, .34); animation: bunka 2.200s ease-out both; pointer-events: none; }
.tab td.zmena > * { animation: vstup .5s cubic-bezier(.2, .9, .3, 1.4) both; display: inline-block; }

/* ---------------------------------------------------- konzole a trubka */
.konzole { border-radius: 20px; padding: 12px 14px 12px; background: var(--tma); color: #EDE8FA; }
.konzole-hlava em { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: #7D749C; }
.konzole-hlava { display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--text); letter-spacing: .05em; text-transform: uppercase; color: #A69EC2; margin-bottom: 8px; }
.led { width: 7px; height: 7px; border-radius: 50%; background: #5EE0A8; animation: tep-maly 1.600s ease-in-out infinite; }
.konzole-radky { list-style: none; margin: 0; padding: 6px 0 0; height: 112px; overflow-y: auto; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px); mask-image: linear-gradient(to bottom, transparent, #000 18px); scrollbar-width: none; display: flex; flex-direction: column; gap: 5px; }
.konzole-radky::-webkit-scrollbar { display: none; }
.konzole-radky:empty::before { content: "Zatím klid. Spusťte ukázku."; font: 400 12px var(--mono); color: #7D749C; }
.konzole-radky li { flex: none; display: grid; grid-template-columns: 14px 38px 1fr; gap: 8px; align-items: baseline; font: 400 12px/1.4 var(--mono); animation: vstup .4s cubic-bezier(.2, .9, .3, 1.1) both; }
.konzole-radky li:first-child { margin-top: auto; }
.konzole-radky time { color: #7D749C; font-size: 10.500px; }
.lg-text { overflow-wrap: anywhere; }
.lg-stav { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(155, 107, 242, .35); border-top-color: var(--f2); align-self: center; animation: toc .8s linear infinite; }
li.hotovo .lg-stav { animation: none; border: 0; background: #2CCB8F; position: relative; }
li.hotovo .lg-stav::after { content: ""; position: absolute; left: 3.500px; top: 1.500px; width: 3px; height: 6px; border: solid #0D0620; border-width: 0 1.500px 1.500px 0; transform: rotate(40deg); }
li.hotovo .lg-text { color: #B9AEDD; }
li.tech .lg-text { color: #C9B4FA; } li.tech.hotovo .lg-text { color: #A892E0; }
li.skok .lg-text { color: #F6BD63; font-weight: 500; }

/* přeskok času */
.stage.skace::after {
  content: attr(data-skok); position: absolute; left: 50%; top: 46%; z-index: 30; pointer-events: none; white-space: nowrap;
  font: 800 clamp(26px, 6vw, 54px)/1 var(--nadpis); letter-spacing: -.03em; color: #fff;
  padding: .5em .8em; border-radius: 26px; background: rgba(20, 10, 46, .93);
  animation: skok 1.700s cubic-bezier(.2, .8, .2, 1) both;
}

/* start a konec */
.start { position: absolute; inset: 0; z-index: 20; border-radius: inherit; display: grid; place-items: center; background: rgba(248, 247, 251, .58); backdrop-filter: blur(3px); padding: 20px; }
.start-btn {
  border: 0; border-radius: 999px; padding: 12px 30px 12px 12px; background: var(--tma); color: #fff;
  display: flex; align-items: center; gap: 16px; text-align: left; max-width: 100%;
  box-shadow: 0 24px 50px -18px rgba(20, 10, 46, .75); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.start-btn:hover { transform: scale(1.04); }
.start-btn b { display: block; font: 800 20px/1.1 var(--nadpis); letter-spacing: -.02em; }
.start-btn small { display: block; margin-top: 4px; font-size: 12.500px; color: #BDB4D6; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-ikona { width: 58px; height: 58px; border-radius: 50%; background: var(--grad); position: relative; flex: none; }
.start-ikona::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--f2); animation: tep 1.800s ease-out infinite; }
.start-ikona::after { content: ""; position: absolute; left: 23px; top: 18px; border: 11px solid transparent; border-left: 17px solid #fff; border-right-width: 0; }
.konec-karta { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(100deg, #EAFBF3, #F1ECFC); animation: vyzva .6s cubic-bezier(.2, .9, .3, 1.25) both; }
.konec-karta b { font: 800 17px var(--nadpis); } .konec-karta p { font-size: 13.500px; color: #3B3454; }
.konec-fajfka { width: 34px; height: 34px; border-radius: 50%; background: #17A673; position: relative; }
.konec-fajfka::after { content: ""; position: absolute; left: 12px; top: 7px; width: 8px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(40deg); }
.konec-akce { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.konec-akce .pill { font-size: 13.500px; flex: 1 1 auto; }
.pozn { margin: 16px 8px 0; font-size: 13px; color: var(--mut); max-width: 60em; }

/* --------------------------------------------------------------- pozadí */
.pozadi { max-width: 1100px; margin: 0 auto; padding: 46px 10px 30px; }
.pozadi-seznam { display: grid; gap: 8px; }
.pozadi details { background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pozadi summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; }
.pozadi summary::-webkit-details-marker { display: none; }
.pz-ik { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: #F1ECFC; color: var(--f1); }
.pozadi summary b { font: 700 16px/1.2 var(--nadpis); }
.pozadi summary span:not(.ik) { grid-column: 2; font-size: 13px; color: var(--mut); line-height: 1.35; }
.pz-sipka { grid-row: 1 / span 2; grid-column: 3; width: 10px; height: 10px; border: solid var(--mut); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s; margin: 0 6px; }
details[open] .pz-sipka { transform: rotate(-135deg); }
details[open] .pz-ik { background: var(--grad); color: #fff; }
.pz-telo { padding: 2px 16px 18px; display: grid; gap: 16px; animation: vstup .4s ease both; }
.pz-telo ol { margin: 0; padding: 0; list-style: none; counter-reset: k; display: grid; gap: 8px; }
.pz-telo li { counter-increment: k; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14.500px; line-height: 1.45; }
.pz-telo li::before { content: counter(k); width: 24px; height: 24px; border-radius: 50%; background: var(--tma); color: #fff; font: 700 11.500px/24px var(--nadpis); text-align: center; }
.pz-telo small { display: block; font: 700 10.500px var(--text); letter-spacing: .05em; text-transform: uppercase; color: var(--mut); margin-bottom: 7px; }
.nastroje { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.nastroje span { font: 600 12px/1 var(--text); padding: .55em .8em; border-radius: 999px; background: #F3F1F8; }
.odkazy { display: grid; gap: 6px; } .odkazy a { font: 600 13.500px/1.3 var(--text); }

/* -------------------------------------------------------------- kontakt */
.kontakt { max-width: 1400px; margin: 0 auto; padding: 20px 10px 40px; scroll-margin-top: 8px; }
.kontakt-karta {
  border-radius: 30px; padding: 26px 16px; color: #fff; display: grid; gap: 22px;
  background: radial-gradient(70% 80% at 100% 0%, rgba(155, 107, 242, .5), transparent 70%), radial-gradient(60% 70% at 0% 100%, rgba(123, 63, 228, .4), transparent 70%), var(--tma);
}
.grad-svetly { background: linear-gradient(100deg, #B592FF, #E1D2FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kontakt-text p { margin-top: 14px; color: #D2CBE6; max-width: 32em; }
.kontakt-body { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.500px; color: #E4DDF6; }
.kontakt-body li { padding-left: 20px; position: relative; }
.kontakt-body li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--f2); }
.kontakt-body a { color: #fff; }
.kontakt-form { background: #fff; color: var(--ink); border-radius: 24px; padding: 16px; display: grid; gap: 13px; }
.form-chyba { color: #B4232A; font-size: 13.500px; min-height: 0; } .form-chyba:empty { display: none; }
.form-ok { font-size: 13.500px; padding: 11px 13px; border-radius: 12px; background: #E9F8F1; color: #0C6B4A; }

.pata { max-width: 1400px; margin: 0 auto; padding: 10px 18px 70px; font-size: 13px; color: var(--mut); display: grid; gap: 6px; }

/* ----------------------------------------------------------- animace */
@keyframes karta { to { opacity: 1; transform: none; } }
@keyframes vstup { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes panel { from { opacity: 0; transform: translateX(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes vyzva { 0% { transform: scale(.96); opacity: .4; } 60% { transform: scale(1.015); opacity: 1; } 100% { transform: none; } }
@keyframes tep { from { transform: scale(1); opacity: .6; } to { transform: scale(2.600); opacity: 0; } }
@keyframes tep-maly { 50% { opacity: .35; transform: scale(.8); } }
@keyframes vlna { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@keyframes psani { 0%, 100% { transform: none; opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes cil { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(1.040, 1.100); opacity: 0; } }
@keyframes kruh { from { transform: scale(1); opacity: .9; } to { transform: scale(1.500); opacity: 0; } }
@keyframes cil-tep { 50% { transform: scale(1.045); } }
@keyframes nic { 30% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
@keyframes blik { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes blikani { from { opacity: .15; } to { opacity: 1; } }
@keyframes toc { to { transform: rotate(360deg); } }
@keyframes kal-nova { 0% { opacity: 0; transform: scale(.3, .6); } 60% { opacity: 1; transform: scale(1.120); } 100% { transform: none; } }
@keyframes kal-obsazeno { 50% { opacity: .35; } }
@keyframes sken { from { transform: translateY(-100%); } to { transform: translateY(390%); } }
@keyframes radek { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes bunka { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes skok { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 18%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.150); } }
@keyframes otacej { to { transform: rotate(360deg); } }

.bez-anim *, .bez-anim *::before, .bez-anim *::after { animation: none !important; transition: none !important; }

/* ============================================================ ≥ 760 px */
@media (min-width: 760px) {
  .top { padding: 20px 32px; }
  h1 { font-size: clamp(52px, 5.300vw, 80px); white-space: nowrap; }
  h1 br.m { display: none; }
  .top-nav a:not(.pill) { display: inline; }
  .uvod { grid-template-columns: minmax(0, 1.050fr) minmax(0, .95fr); align-items: center; gap: 40px; padding: 26px 32px 60px; }
  .nahled-plocha { min-height: 520px; padding: 60px 28px 30px; gap: 16px; }
  .karta { padding: 16px 18px; } .karta p { font-size: 15.500px; }
  .k1 { margin-right: 70px; } .k2 { margin-left: 70px; } .k3 { margin-right: 30px; }
  .osobni { padding: 22px; }
  .scena { padding: 40px 24px 40px; }
  .karty { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0 0 16px; padding: 0 8px; }
  .sc { flex: none; }
  .stage { padding: 20px 22px 22px; border-radius: 36px; gap: 14px; }
  .zalozky, .mini { display: none; }
  .plocha { grid-template-columns: auto minmax(90px, 150px) auto; grid-template-areas: "z t m" "k k k"; justify-content: center; align-items: start; gap: 18px 0; }
  .plocha > * { grid-area: auto; animation: none !important; }
  .stage .plocha > #tel-zakaznik { display: grid; grid-area: z; }
  .stage .plocha > #tel-majitel { display: grid; grid-area: m; }
  .stage .plocha > #kancelar { display: grid; grid-area: k; grid-template-columns: 1.150fr 1fr; }
  .stage .plocha > #trubka { display: grid; grid-area: t; }
  .telefon { width: 300px; }
  .tel-telo { height: 600px; }
  .tab-obal { max-height: 300px; }

  /* trubka */
  .trubka { position: relative; align-self: center; justify-items: center; text-align: center; gap: 8px; padding-top: 20px; }
  .trubka-draha { position: absolute; left: -6px; right: -6px; top: 58px; height: 12px; }
  .trubka-cara { position: absolute; top: 0; height: 12px; width: 50%; border-radius: 6px; background: repeating-linear-gradient(90deg, #DCD3F3 0 7px, transparent 7px 13px); opacity: .95; }
  .trubka-cara.l { left: 0; } .trubka-cara.r { right: 0; }
  .trubka-draha::before { content: ""; position: absolute; inset: -5px 0; border-radius: 11px; background: linear-gradient(180deg, rgba(123, 63, 228, .1), rgba(123, 63, 228, .03)); box-shadow: inset 0 0 0 1px rgba(123, 63, 228, .13); }
  .puls { position: absolute; left: -9px; top: -3px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, var(--f2) 26% 60%, rgba(155, 107, 242, 0) 72%); z-index: 2; }
  .uzel { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--tma); display: grid; place-items: center; z-index: 3; box-shadow: 0 16px 30px -12px rgba(20, 10, 46, .7); }
  .uzel-kruh { position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed rgba(123, 63, 228, .45); }
  .uzel.pracuje .uzel-kruh { animation: otacej 3s linear infinite; border-color: var(--f1); }
  .uzel-jadro { width: 34px; height: 34px; border-radius: 12px; background: var(--grad); position: relative; transform: rotate(45deg); }
  .uzel-jadro::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
  .uzel.tep { animation: cil-tep .5s ease; }
  .uzel-nazev { font: 800 13px/1.15 var(--nadpis); margin-top: 8px; }
  .uzel-stav { font: 500 10.500px/1.3 var(--mono); color: var(--mut); padding: .5em .7em; border-radius: 10px; background: #F4F1FA; max-width: 136px; }

  .konzole-radky { height: 118px; }
  .konec-karta { grid-template-columns: auto 1fr auto; padding: 14px 18px; }
  .konec-akce { grid-column: auto; }
  .pozadi { padding: 70px 24px 40px; }
  .pz-telo { grid-template-columns: 1.300fr 1fr; padding: 4px 20px 22px 64px; gap: 30px; }
  .kontakt { padding: 30px 24px 60px; }
  .kontakt-karta { grid-template-columns: 1fr 1fr; padding: 46px; gap: 40px; align-items: center; border-radius: 40px; }
  .kontakt-form { padding: 22px; }
  .pata { padding: 10px 32px 70px; }
}

/* ============================================== tablet 760–1239 px
   Telefony a kalendář se vedle sebe nevejdou. Místo dlouhého scrollu
   přepínáme dva pohledy (oba telefony / kalendář a tabulka). Přehrávání
   je přepíná samo jako na mobilu, telefony zůstávají vedle sebe. */
@media (min-width: 760px) and (max-width: 1239px) {
  .stage-top { order: 1; } .osa { order: 2; } .vyzva, .konec { order: 3; } .zalozky { order: 4; } .plocha { order: 6; } .konzole { order: 7; }
  .zalozky { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 520px; margin: 0 auto; position: sticky; top: 8px; z-index: 15; box-shadow: 0 6px 16px -8px rgba(20, 10, 46, .35); }
  .zalozky button[data-tab="zakaznik"], .zalozky button[data-tab="majitel"] { display: none; }
  .zalozky button.jen-tablet { display: block; }
  .zalozky button { font-size: 13.500px; }
  .telefon { width: 270px; }
  .tel-telo { height: clamp(440px, calc(100svh - 300px), 560px); }
  .stage[data-tab="kancelar"] .plocha { grid-template-areas: "k k k"; }
  .stage[data-tab="kancelar"] .plocha > #tel-zakaznik,
  .stage[data-tab="kancelar"] .plocha > #tel-majitel,
  .stage[data-tab="kancelar"] .plocha > #trubka { display: none; }
  .stage:not([data-tab="kancelar"]) .plocha { grid-template-areas: "z t m"; }
  .stage:not([data-tab="kancelar"]) .plocha > #kancelar { display: none; }
  .tab th:first-child, .tab td.c { display: none; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .stage .plocha > #kancelar { grid-template-columns: 1fr; }
  /* úzký tablet: nadpis se zalomí místo přetečení pod náhled, menu jen s tlačítkem */
  h1 { white-space: normal; }
  .top-nav a:not(.pill) { display: none; }
}

/* =========================================================== ≥ 1240 px */
@media (min-width: 1240px) {
  .stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; }
  .stage-top { display: contents; }
  .stitky { grid-area: 1 / 1; } .vyzva { grid-area: 1 / 2; } .ovladani { grid-area: 1 / 3; }
  .stitek-tichy { display: none; }
  .osa, .konec, .plocha, .konzole { grid-column: 1 / -1; }
  .tel-telo { height: 540px; }
  .konzole-radky { height: 92px; }
  .plocha { grid-template-columns: 300px minmax(110px, 150px) 300px minmax(0, 1fr); grid-template-areas: "z t m k"; gap: 0; }
  .stage .plocha > #kancelar { grid-template-columns: 1fr; margin-left: 22px; padding-top: 28px; gap: 10px; }
  .kal { --hh: 18px; }
  .okno { padding: 10px 12px 12px; }
  .okno-hlava { margin-bottom: 8px; }
  .tab-obal { max-height: 162px; }
  .osa li { min-width: 96px; }
}

/* ------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .karta { opacity: 1; transform: none; }
  .stage.skace::after { display: none; }
  .kal-ud.nova::after, .kal-ud.zmena::after, .cil::after { opacity: 1; }
  .tab tr.novy td::after, .tab td.zmena::after { opacity: .5; }
}
