/* RefOS – prohlídka (tour.html). Navazuje na styles.css (barvy, tlačítka,
   hlavička). Ukázky uvnitř karet jsou „obrazovky appky“, proto mají pevné
   světlé barvy i v tmavém režimu. */
:root {
  --night: #121a33;
  --night-2: #0b1126;
  --flag: #f6c443;
  --sky: #7fa2ff;
  --line: #e3e8f2;
}

.tour-page .main-nav { margin-left: auto; }

/* ---------- Scény ---------- */
.scene { position: relative; overflow: hidden; padding: 88px 0; }
@media (max-width: 720px) { .scene { padding: 56px 0; } }
.scene.light { background: var(--bg); }
.scene.alt { background: var(--bg-alt); }
.scene.dark { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #b9c4de; }
.scene.blue { background: linear-gradient(135deg, #1d4ed8 0%, #1a3a9e 55%, var(--night) 100%); color: #dce4f7; }
.scene.dark h1, .scene.dark h2, .scene.blue h2 { color: #fff; }
.scene.dark .section-lead, .scene.blue .section-lead { color: #c3cdea; }
.scene.dark .eyebrow { color: var(--flag); }
.hero-scene h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.02em; }
.hero-scene .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: #cbd5e1; margin-top: 1.25rem; max-width: 34em; }
.hero-scene { background: radial-gradient(circle at 78% 45%, #22408f 0%, var(--night) 48%, var(--night-2) 100%); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split.rev .copy { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.rev .copy { order: 0; }
}
.vis { position: relative; min-width: 0; }
.vis.wide { margin-top: 40px; max-width: 760px; margin-left: auto; margin-right: auto; }
.vis.narrow { max-width: 400px; justify-self: center; width: 100%; }
@media (max-width: 900px) { .vis.narrow { max-width: 300px; } }
.fine { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

/* Pevné „plátno“ animace, JS ho zmenší na šířku sloupce */
.stage-box { position: relative; width: 100%; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* Body s ikonou */
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.points li { position: relative; padding-left: 40px; color: var(--muted); font-size: 1.05rem; }
.points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; display: grid; place-items: center; font-size: 0.9rem; }
.points b { color: var(--ink); }

/* Karty uvnitř ukázek */
.card { background: #fff; color: #121a33; border-radius: 18px; box-shadow: 0 18px 44px rgba(18, 26, 51, 0.14); padding: 22px 24px; position: relative; }
.card + .card { margin-top: 20px; }
.card-head { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4a5568; margin-bottom: 8px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.bar { display: block; height: 10px; border-radius: 5px; background: #d5dbe7; margin-bottom: 10px; }
.w64 { width: 64%; } .w68 { width: 68%; } .w70 { width: 70%; } .w80 { width: 80%; } .w86 { width: 86%; } .w88 { width: 88%; } .w90 { width: 90%; } .w92 { width: 92%; } .w94 { width: 94%; } .w96 { width: 96%; }
.fake-btn { display: inline-block; background: #1d4ed8; color: #fff; font-weight: 600; padding: 8px 18px; border-radius: 10px; transition: transform 0.15s, box-shadow 0.2s; }
.fake-btn.press { transform: scale(0.92); box-shadow: 0 0 0 8px rgba(29, 78, 216, 0.25); }
.chip { display: inline-block; font-weight: 600; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px; background: #eaf0fb; color: #121a33; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.chip.on { opacity: 1; transform: none; }
.chip.ok { background: #dcfce7; color: #166534; }

/* ---------- Úvod: oběžné dráhy ---------- */
.orbit-ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(127, 162, 255, 0.3); }
.orbit { position: absolute; left: 260px; top: 260px; animation: spin linear infinite; }
.orbit .doc-ic { position: absolute; animation: spin linear infinite reverse; }
.orbit.rev { animation-direction: reverse; }
.orbit.rev .doc-ic { animation-direction: normal; }
.doc-ic i, .m-ic i { display: block; width: 52px; height: 66px; margin: -33px 0 0 -26px; background: #f5f7fb; border-radius: 8px; border-top: 14px solid #2563eb; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
.c0 { border-top-color: #1e7b47 !important; } .c1 { border-top-color: #c8372d !important; } .c2 { border-top-color: #7c3aed !important; }
.c3 { border-top-color: #2563eb !important; } .c4 { border-top-color: #0e9f6e !important; } .c5 { border-top-color: #d97706 !important; }
.logo-big { position: absolute; border-radius: 22%; filter: drop-shadow(0 0 36px rgba(47, 91, 234, 0.85)); animation: pulse 3.2s ease-in-out infinite; }
.wave, .logo-wave { position: absolute; border-radius: 22%; border: 3px solid var(--sky); animation: wave 3.2s ease-out infinite; opacity: 0; }
.wave.b, .logo-wave.b { animation-delay: 1.6s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes wave { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.3); opacity: 0; } }

/* ---------- Bez systému ---------- */
.docs-wrap { position: relative; margin-top: 36px; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
@media (max-width: 480px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.doc { opacity: 0; transform: scale(0.3); transition: opacity 0.25s, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.doc.on { opacity: 1; transform: none; }
.doc > div { background: #fff; border-radius: 12px; border-left: 8px solid var(--k, #2563eb); box-shadow: 0 10px 24px rgba(18, 26, 51, 0.12); padding: 10px 14px; animation: wobble ease-in-out infinite alternate; }
.doc small { display: block; font-weight: 800; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--k, #2563eb); }
.doc b { display: block; color: #121a33; font-size: 1rem; line-height: 1.25; }
.k-x { --k: #1e7b47; } .k-p { --k: #c8372d; } .k-f { --k: #7c3aed; } .k-m { --k: #2563eb; } .k-c { --k: #0e9f6e; } .k-n { --k: #64748b; } .k-h { --k: #d97706; }
@keyframes wobble { from { transform: rotate(var(--a, -2deg)); } to { transform: rotate(var(--b, 2deg)) translateY(-5px); } }
.docs-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.5); opacity: 0;
  background: var(--night); color: #fff; font-size: clamp(1rem, 2.6vw, 1.5rem); font-weight: 600; text-align: center;
  padding: 14px 28px; border-radius: 999px; box-shadow: 0 20px 50px rgba(18, 26, 51, 0.45);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); width: max-content; max-width: 92%;
}
.docs-badge b { color: var(--flag); }
.docs-badge.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Spojení ---------- */
.merge-count { margin-top: 28px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--flag); font-variant-numeric: tabular-nums; }
.merge-sub { margin-top: 6px; font-size: 1.1rem; color: #fff; opacity: 0; transition: opacity 0.4s; }
.merge-sub.on { opacity: 1; }
.m-ic { position: absolute; left: 0; top: 0; }
.m-logo { position: absolute; border-radius: 22%; filter: drop-shadow(0 0 36px rgba(47, 91, 234, 0.9)); }

/* ---------- Části ---------- */
.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
@media (max-width: 820px) { .parts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tile { display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--border); border-radius: 14px; padding: 12px 14px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; min-width: 0; }
.js .tile { opacity: 0; transform: scale(0.6); }
.scene.in .tile { animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.tile span { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; font-size: 1.3rem; }
.tile b { color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.tile.from { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.tile.to { border-color: var(--flag); box-shadow: 0 0 0 4px rgba(246, 196, 67, 0.35); }
@keyframes pop { to { opacity: 1; transform: none; } }
.flow { margin-top: 24px; min-height: 4.2em; padding: 14px 18px; border-radius: 14px; background: var(--primary-soft); color: var(--text); }
.flow b { display: block; color: var(--primary); font-size: 1.05rem; }

/* ---------- Profil a prohlášení ---------- */
.p-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; background: #1d4ed8; color: #fff; font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; }
.p-name { font-size: 1.4rem; font-weight: 700; min-height: 1.4em; }
.p-name::after { content: "|"; color: #1d4ed8; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.p-pos { color: #1d4ed8; font-weight: 600; font-size: 0.95rem; }
.p-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; opacity: 0; transform: translateX(24px); transition: opacity 0.35s, transform 0.35s; }
.p-row.on { opacity: 1; transform: none; }
.p-row span { width: 7.5em; flex: none; color: #4a5568; }
.p-row b { flex: 1; min-width: 0; }
.p-row i { flex: none; font-style: normal; color: #fff; background: #16a34a; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; }
.d-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.sign { position: relative; height: 120px; border: 2px dashed #b8c3d9; border-radius: 14px; margin-top: 14px; padding: 10px 14px; }
.sign svg { width: 70%; height: 100%; }
.stamp { position: absolute; right: 14px; top: 30px; border: 3px solid #16a34a; color: #16a34a; font-weight: 800; padding: 4px 12px; border-radius: 10px; letter-spacing: 0.04em; opacity: 0; transform: rotate(-8deg) scale(2); transition: opacity 0.2s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.stamp.on { opacity: 1; transform: rotate(-8deg) scale(1); }
.d-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

/* ---------- Dostupnost ---------- */
.a-row { display: flex; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--line); }
.a-row .d { flex: 1; font-weight: 600; min-width: 0; }
.a-row .g { flex: 1; color: #6b7486; font-size: 0.9rem; min-width: 0; }
.tg { position: relative; flex: none; width: 92px; height: 36px; border-radius: 18px; background: #d5dbe7; transition: background 0.3s; }
.tg::before { content: ""; position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: left 0.3s; }
.tg em { position: absolute; right: 12px; top: 7px; font-style: normal; font-weight: 700; font-size: 0.85rem; color: #fff; }
.tg.yes { background: #22a060; } .tg.no { background: #c8372d; }
.tg.yes::before, .tg.no::before { left: 60px; }
.tg.yes em, .tg.no em { right: auto; left: 12px; }
.a-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.a-toast { position: absolute; left: 50%; bottom: -18px; transform: translate(-50%, 16px); background: var(--night); color: #fff; font-weight: 600; padding: 10px 20px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity 0.3s, transform 0.3s; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.a-toast.on { opacity: 1; transform: translate(-50%, 0); }
.finger { position: absolute; left: 80%; top: 105%; width: 34px; height: 34px; border-radius: 50%; background: rgba(246, 196, 67, 0.85); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); transition: left 0.45s ease, top 0.45s ease, transform 0.15s; pointer-events: none; }
.finger.tap { transform: scale(0.75); }

/* ---------- Nominace (plátno 640 × 470) ---------- */
.n-label { position: absolute; left: 16px; top: 4px; font-size: 18px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #8d99b8; }
.n-card { position: absolute; left: 6px; right: 6px; top: 150px; height: 236px; background: #1b2649; border: 2px solid #2e3e72; border-radius: 18px; }
.n-head { position: absolute; left: 24px; top: 168px; font-size: 20px; font-weight: 600; color: #f5f7fb; }
.n-head .tm { color: var(--flag); }
.n-btn { position: absolute; right: 22px; top: 162px; background: #2f5bea; color: #fff; font-size: 18px; font-weight: 700; padding: 8px 18px; border-radius: 10px; transition: transform 0.15s, box-shadow 0.2s; }
.n-btn.press { transform: scale(0.9); box-shadow: 0 0 0 10px rgba(47, 91, 234, 0.35); }
.n-slot { position: absolute; top: 222px; width: 80px; height: 148px; border-radius: 14px; border: 2px dashed #3c4e86; text-align: center; transition: border-color 0.3s, background 0.3s; }
.n-slot b { display: block; font-size: 28px; color: var(--sky); margin-top: 6px; }
.n-slot.full { border-color: #22a060; border-style: solid; background: rgba(34, 160, 96, 0.14); }
.n-av { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #f5f7fb; color: #121a33; font-size: 22px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.n-bell { position: absolute; top: 214px; font-size: 26px; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.3s; }
.n-bell.on { opacity: 1; transform: translateY(-14px); animation: ring 0.4s ease-in-out 3; }
@keyframes ring { 0%, 100% { rotate: 0deg; } 25% { rotate: 14deg; } 75% { rotate: -14deg; } }
.n-banner { position: absolute; left: 50%; top: 404px; transform: translate(-50%, 20px); background: var(--flag); color: #121a33; font-size: 20px; font-weight: 700; padding: 12px 26px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.n-banner.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Telefon (plátno 400 × 740) ---------- */
.phone { position: absolute; inset: 0; border-radius: 52px; background: var(--night); box-shadow: 0 30px 60px rgba(18, 26, 51, 0.35); }
.screen { position: absolute; inset: 12px; border-radius: 42px; background: #fbfcfe; overflow: hidden; color: #121a33; }
.ph-bar { height: 44px; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; font-size: 18px; font-weight: 600; }
.ph-month { padding: 2px 20px 8px; font-size: 26px; font-weight: 700; }
.ph-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 10px; text-align: center; font-size: 20px; }
.ph-grid .wd { color: #6b7486; height: 32px; font-size: 17px; }
.ph-grid .dd { height: 50px; line-height: 38px; position: relative; }
.ph-grid .o { color: #b6becf; }
.ph-grid .ev { position: absolute; left: 50%; bottom: 7px; width: 28px; height: 7px; margin-left: -14px; border-radius: 4px; background: #1d4ed8; transform: scale(0); transition: transform 0.35s cubic-bezier(0.3, 1.7, 0.5, 1); }
.ph-grid .ev.on { transform: scale(1); }
.ph-grid .ev.chg { background: #f59e0b; }
.ph-ag { padding: 6px 14px; }
.ph-it { display: flex; gap: 10px; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(18, 26, 51, 0.1); padding: 9px 12px; margin-bottom: 9px; font-size: 18px; line-height: 1.3; opacity: 0; transform: translateX(40px); transition: opacity 0.4s, transform 0.4s; }
.ph-it.on { opacity: 1; transform: none; }
.ph-it::before { content: ""; width: 6px; flex: none; border-radius: 3px; background: #1d4ed8; }
.ph-it.chg::before { background: #f59e0b; }
.ph-it span { color: #6b7486; }
.ph-note { position: absolute; left: 10px; right: 10px; top: -140px; display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, 0.97); border-radius: 20px; box-shadow: 0 12px 30px rgba(18, 26, 51, 0.3); padding: 12px 16px; font-size: 18px; line-height: 1.3; transition: top 0.5s cubic-bezier(0.3, 1.3, 0.5, 1); }
.ph-note.on { top: 50px; }
.ph-note img { width: 44px; height: 44px; border-radius: 10px; flex: none; }

/* ---------- Den zápasu ---------- */
.steps { --prog: 0; position: relative; list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 8%; top: 34px; height: 6px; border-radius: 3px; background: #26335e; width: 84%; }
.steps::after { background: linear-gradient(90deg, #2f5bea, var(--flag)); width: calc(var(--prog) * 84%); }
.steps li { position: relative; z-index: 1; text-align: center; }
.steps .dot { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; background: #1b2649; border: 4px solid #2e3e72; font-size: 1.9rem; transition: all 0.4s; }
.steps b { display: block; margin-top: 12px; color: #fff; font-size: 1.05rem; opacity: 0.45; transition: opacity 0.4s; }
.steps p { margin-top: 10px; background: #1b2649; border: 1px solid #2e3e72; border-radius: 14px; padding: 10px 12px; font-size: 0.92rem; color: #c9d3ea; opacity: 0; transform: translateY(20px); transition: opacity 0.45s, transform 0.45s; }
.steps li.on .dot { border-color: var(--flag); background: #24356f; transform: scale(1.1); }
.steps li.on b { opacity: 1; }
.steps li.on p { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .steps::before, .steps::after { left: 34px; top: 20px; width: 6px; height: calc(100% - 40px); }
  .steps::after { height: calc(var(--prog) * (100% - 40px)); background: linear-gradient(180deg, #2f5bea, var(--flag)); }
  .steps li { display: grid; grid-template-columns: 74px minmax(0, 1fr); column-gap: 16px; text-align: left; align-items: center; }
  .steps .dot { grid-row: span 2; margin: 0; }
  .steps b { margin-top: 0; }
  .steps p { margin-top: 6px; }
}
.md-toast { margin: 32px auto 0; width: max-content; max-width: 100%; background: #f5f7fb; color: #121a33; font-weight: 600; padding: 12px 24px; border-radius: 999px; opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.4s; text-align: center; }
.md-toast.on { opacity: 1; transform: none; }

/* ---------- Dvě karty vedle sebe ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; align-items: start; }
.two .card + .card { margin-top: 0; }
@media (max-width: 820px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* Výplatnice a faktura */
.pay { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pay th, .pay td { padding: 10px 6px; text-align: right; border-top: 1px solid var(--line); }
.pay th:first-child, .pay td:first-child { text-align: left; }
.pay thead th { border-top: 0; color: #6b7486; font-size: 0.85rem; }
.pay tbody tr { opacity: 0; transform: translateX(-20px); transition: opacity 0.4s, transform 0.4s; }
.pay tbody tr.on { opacity: 1; transform: none; }
.pay tfoot th { border-top: 3px solid #121a33; font-size: 1.15rem; }
#payTotal { color: #1d4ed8; }
.closed { border: 3px solid #16a34a; color: #16a34a; font-size: 0.85rem; font-weight: 800; padding: 2px 10px; border-radius: 8px; opacity: 0; transform: rotate(-6deg) scale(2); transition: opacity 0.2s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.closed.on { opacity: 1; transform: rotate(-6deg) scale(1); }
.inv { position: relative; width: 110px; height: 140px; margin: 0 auto 14px; background: #f5f7fb; border: 2px solid #c9d3e6; border-radius: 12px; overflow: hidden; opacity: 0; transform: translateY(-60px); transition: opacity 0.4s, transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1); }
.inv.on { opacity: 1; transform: none; }
.inv i { display: block; height: 26px; background: #c8372d; color: #fff; font-style: normal; font-weight: 800; text-align: center; line-height: 26px; }
.inv span { display: block; height: 7px; border-radius: 4px; background: #c9d3e6; margin: 12px 14px 0; }
.inv span:nth-child(odd) { margin-right: 30px; }
.inv em { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #2f5bea; box-shadow: 0 0 14px #2f5bea; opacity: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 12px; opacity: 0.3; transition: opacity 0.4s; }
.checks li span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #d5dbe7; color: #fff; display: grid; place-items: center; transition: background 0.4s; }
.checks li.on { opacity: 1; } .checks li.on span { background: #16a34a; }

/* Mentoři */
.events { position: relative; }
.ev-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); transition: opacity 0.4s; }
.ev-row .dt { width: 4.5em; flex: none; font-weight: 700; color: #1d4ed8; }
.ev-row .t { flex: 1; min-width: 0; }
.ev-row .s { color: #16a34a; font-weight: 600; font-size: 0.9rem; opacity: 0; transition: opacity 0.4s; }
.ev-row.done { opacity: 0.75; } .ev-row.done .s { opacity: 1; }
.today { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #f59e0b; z-index: 1; transition: top 0.1s linear; }
.today span { position: absolute; right: 0; top: -12px; background: #f59e0b; color: #121a33; font-size: 0.8rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.wr { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); opacity: 0; transform: translateX(-24px); transition: opacity 0.4s, transform 0.4s; }
.wr.on { opacity: 1; transform: none; }
.sum { display: flex; justify-content: space-between; border-top: 3px solid #121a33; padding-top: 12px; font-weight: 800; font-size: 1.15rem; }
.sum b { color: #1d4ed8; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Věstník */
.vis.bul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 520px) { .vis.bul { grid-template-columns: minmax(0, 1fr); } }
.article .tag { display: inline-block; background: #eaf0fb; color: #1d4ed8; font-size: 0.85rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.a-title { font-size: 1.2rem; font-weight: 800; line-height: 1.25; margin: 12px 0 14px; }
.article .fake-btn { margin-top: 6px; }
.ripple { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 4px solid var(--flag); opacity: 0; pointer-events: none; }
.ripple.on { animation: ripple 1.2s ease-out 2; }
@keyframes ripple { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(3); opacity: 0; } }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; background: var(--night-2); border: 3px solid #3c4e86; padding: 6px; }
.mini .scr { height: 100%; border-radius: 10px; background: #1b2649; overflow: hidden; position: relative; }
.mini .nt { position: absolute; left: 4px; right: 4px; top: 8px; background: #f5f7fb; color: #121a33; border-radius: 8px; padding: 6px 4px; font-size: 0.7rem; font-weight: 700; line-height: 1.2; text-align: center; opacity: 0; transform: translateY(-20px); transition: opacity 0.3s, transform 0.3s; }
.mini .bd { position: absolute; right: -10px; top: -10px; width: 26px; height: 26px; border-radius: 50%; background: #c8372d; color: #fff; font-size: 0.8rem; font-weight: 800; display: grid; place-items: center; opacity: 0; transform: scale(0); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 1.7, 0.5, 1); }
.mini.on .nt { opacity: 1; transform: none; }
.mini.on .bd { opacity: 1; transform: none; }
.mini.on { animation: shake 0.45s ease-in-out; }
@keyframes shake { 25% { rotate: -6deg; } 50% { rotate: 6deg; } 75% { rotate: -3deg; } }

/* Připravujeme */
.soon { display: inline-block; background: var(--flag); color: #121a33; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; padding: 4px 14px; border-radius: 8px; margin-bottom: 14px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lessons li { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.lessons i { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #c9d3e6; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #121a33; transition: all 0.4s; }
.lessons li.on i { background: #16a34a; border-color: #16a34a; color: #fff; }
.lessons li.cur i { border-color: #1d4ed8; box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.18); }
.pbar { height: 12px; border-radius: 6px; background: #d5dbe7; overflow: hidden; margin-top: 14px; }
.pbar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1d4ed8, #16a34a); transition: width 0.5s; }
.q-num { color: #1d4ed8; font-weight: 700; margin-bottom: 8px; }
.ans p { display: flex; align-items: center; gap: 12px; border: 3px solid #d5dbe7; border-radius: 12px; padding: 8px 12px; margin-top: 10px; transition: all 0.3s; }
.ans p b { flex: none; width: 32px; height: 32px; border-radius: 8px; background: #eaf0fb; color: #1d4ed8; display: grid; place-items: center; }
.ans p .bar { flex: 1; margin: 0; }
.ans p.sel { border-color: #1d4ed8; }
.ans p.ok { border-color: #16a34a; background: #dcfce7; } .ans p.ok b { background: #16a34a; color: #fff; }
.score { margin-top: 14px; display: inline-block; background: var(--night); color: var(--flag); font-weight: 800; padding: 8px 18px; border-radius: 999px; opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.score.on { opacity: 1; transform: none; }

/* Přínosy */
.ben h3 { font-size: 1.15rem; margin-bottom: 14px; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.benefit-list li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 14px 52px; position: relative; color: var(--text); box-shadow: var(--shadow); transition: opacity 0.5s, transform 0.5s; }
.js .benefit-list li { opacity: 0; transform: translateY(24px); }
.benefit-list li::before { content: "✓"; position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
.benefit-list.dark-list li { background: var(--night); color: #dce4f7; border-color: #2e3e72; }
.benefit-list.dark-list li::before { background: #26346a; color: var(--flag); }
.js .scene.in .benefit-list li { opacity: 1; transform: none; }

/* Závěr */
.finale { text-align: center; }
.finale-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.finale h2 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; max-width: 16em; }
.finale .section-lead { margin-top: 0; }
.finale .hero-cta { justify-content: center; margin-top: 8px; }
.end-logo { position: relative; width: 140px; height: 140px; margin-top: 36px; }
.end-logo img { position: relative; border-radius: 22%; filter: drop-shadow(0 0 36px rgba(47, 91, 234, 0.9)); animation: pulse 2.6s ease-in-out infinite; }
.end-logo .wave { inset: 0; animation-duration: 2.6s; }
.end-logo .wave.b { animation-delay: 1.3s; }
.flags { position: absolute; inset: 0; pointer-events: none; }
.fall { position: absolute; top: -60px; animation: fall linear infinite; }
.fall i { display: block; animation: sway ease-in-out infinite alternate; }
.fall .fl { width: 34px; height: 26px; background: var(--flag); border-radius: 3px; }
.fall .dc { width: 26px; height: 34px; background: #f5f7fb; border-radius: 4px; border-top: 7px solid #2f5bea; }
@keyframes fall { to { transform: translateY(var(--fall-h, 900px)); } }
@keyframes sway { from { transform: translateX(-24px) rotate(-30deg); } to { transform: translateX(24px) rotate(40deg); } }

/* Animace běží jen u scény na obrazovce; při omezení pohybu nic nepohybujeme */
.scene:not(.live) *, .scene:not(.live) *::before, .scene:not(.live) *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .scene *, .scene *::before, .scene *::after { animation: none !important; transition: none !important; }
  .js .tile, .js .benefit-list li { opacity: 1; transform: none; }
  .flags { display: none; }
}
