/* ==========================================================================
   ProfiREST – úvodní stránka (WEB3-2026-11). Načítá se jen na úvodu, prefix hm-.
   Obrazovky aplikací (rp = pokladna, rk = kuchyň, rm = mapa rozvozu, rt = vstupenka, rr = rezervace,
   rh = hotel, rq = kiosek, rg = telefon hosta, rz = uzávěrka, ra = akce v administraci) jsou kreslené
   v HTML podle skutečných obrazovek – jejich CSS je ve sdíleném screens.css (načítá se před home.css). Žádné fotky.
   Všechno je viditelné i bez animací; animace jen přidávají nástup (fill-mode backwards).
   ========================================================================== */

/* ---------------------------------------------------------------- základ úvodu */
.hm-root .w-section { padding: clamp(80px, 11vw, 150px) 0; }
.hm-root .w-head { margin-bottom: clamp(36px, 5vw, 64px); }
.hm-no { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-600); }
.hm-no b { font-weight: 900; color: var(--navy); }
.hm-no::after { content: ""; width: 48px; height: 2px; background: currentColor; opacity: .5; }
.w-section--dark .hm-no b, .w-section--navy .hm-no b { color: #fff; }
.w-section--dark .hm-no, .w-section--navy .hm-no { color: #ffb257; }

/* ---------------------------------------------------------------- HERO */
.hm-hero { position: relative; background: var(--navy-950); color: #fff; overflow: hidden; padding: calc(var(--nav-h) + clamp(32px, 6vw, 80px)) 0 clamp(40px, 6vw, 80px); isolation: isolate; }
.hm-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hm-hero__spot { position: absolute; inset: 0; z-index: -1; background: radial-gradient(620px 620px at var(--mx, 50%) var(--my, 60%), rgba(255, 140, 0, .14), transparent 60%); pointer-events: none; }
.hm-hero__in { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hm-hero__copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hm-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; margin-bottom: 26px; backdrop-filter: blur(6px); }
.hm-badge i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: w-pulse 2s infinite; }
.hm-h1 { font-size: clamp(2.5rem, 2rem + 3.6vw, 5rem); line-height: 1.02; letter-spacing: -.04em; color: #fff; margin: 0 0 22px; }
.hm-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.hm-w > i { display: inline-block; font-style: normal; animation: hm-word .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes hm-word { from { transform: translateY(110%); } to { transform: none; } }
.hm-w--grad > i { background: linear-gradient(92deg, var(--orange) 0%, #ffb257 60%, #ffd29a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-fade { animation: hm-fadein .8s var(--ease) backwards; animation-delay: var(--d, .6s); }
@keyframes hm-fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hm-hero .w-lead { color: rgba(255, 255, 255, .78); margin: 0 auto 28px; max-width: 64ch; }
.hm-hero .w-lead .hm-lead__hl { color: #fff; font-weight: 700; }
.hm-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 16px; }
.hm-hero__note { font-size: 13.5px; color: rgba(255, 255, 255, .6); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.hm-hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hm-hero__note .i { color: #4ade80; }
.hm-hero__lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
@media (min-width: 1200px) {
    .hm-hero { min-height: min(100vh, 1040px); display: flex; align-items: center; padding-top: calc(var(--nav-h) + 36px); padding-bottom: 48px; }
    .hm-hero__in { width: min(1560px, 100% - 2 * var(--gutter)); display: grid; grid-template-columns: minmax(400px, 600px) minmax(0, 1fr); gap: 28px 64px; align-items: center; }
    .hm-hero__copy { max-width: none; margin: 0; text-align: left; }
    .hm-h1 { font-size: clamp(44px, 2.4rem + 1vw, 56px); }
    .hm-hero .w-lead { margin-inline: 0; max-width: 56ch; }
    .hm-hero__cta, .hm-hero__note { justify-content: flex-start; }
    .hm-hero__lines { grid-column: 1 / -1; margin-top: 18px; }
    .hm-hero__in .hm-stage { margin: 0; width: 100%; }
    .hm-hero__in .hm-stage__in { left: 50%; }
}

/* 3D scéna: navržená na 1200 px, JS ji škáluje podle šířky (--s), takže nic neujíždí */
.hm-stage { position: relative; height: 840px; margin: 70px auto 0; perspective: 1700px; perspective-origin: 50% 30%; display: none; }
@media (min-width: 1000px) { .hm-stage { display: block; } }
.hm-stage__in { position: absolute; left: 50%; top: 0; width: 1200px; height: 840px; margin-left: -600px; transform-style: preserve-3d; transform-origin: top center; transform: scale(var(--s, 1)) rotateX(var(--sx, 16deg)) rotateY(var(--sy, -9deg)); transition: transform .5s var(--ease); }
.hm-stage.is-live .hm-stage__in { transition: transform .12s linear; }
.hm-wires { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(10px); pointer-events: none; }
.hm-wires .wire:not(.wire--flow) { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; animation: hm-draw 1.1s var(--ease) backwards; animation-delay: .35s; }
.hm-wires .wire--hub:not(.wire--flow) { stroke: rgba(255, 178, 87, .55); stroke-width: 3; }
.hm-wires .wire--flow { fill: none; stroke: #ffb257; stroke-width: 3; stroke-dasharray: 26 420; stroke-linecap: round; opacity: .95; filter: drop-shadow(0 0 6px rgba(255, 178, 87, 1)); animation: hm-wire 5.7s linear var(--d, 0s) infinite, hm-show .4s linear 1.5s backwards; }
.hm-wires .wire--flow.wire--hub { stroke: #ffd29a; stroke-width: 4.5; stroke-dasharray: 44 420; filter: drop-shadow(0 0 8px rgba(255, 178, 87, 1)) drop-shadow(0 0 18px rgba(255, 140, 0, .85)); animation: hm-wire-hub 3.8s linear var(--d, 0s) infinite, hm-show .4s linear 1.2s backwards; }
@keyframes hm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hm-wire { to { stroke-dashoffset: -446; } }
@keyframes hm-wire-hub { to { stroke-dashoffset: -464; } }
@keyframes hm-show { from { opacity: 0; } to { opacity: .95; } }
.hm-hub { position: absolute; left: 790px; top: 225px; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; transform: translateZ(160px); box-shadow: 0 0 0 8px rgba(255, 140, 0, .25), 0 0 0 18px rgba(255, 140, 0, .1), 0 0 50px 8px rgba(255, 140, 0, .45), 0 30px 70px -10px rgba(255, 140, 0, .8); animation: hm-pop .7s var(--spring) .1s backwards, hm-hubglow 3.8s ease-in-out 1s infinite; }
@keyframes hm-hubglow { 0%, 100% { box-shadow: 0 0 0 8px rgba(255, 140, 0, .25), 0 0 0 18px rgba(255, 140, 0, .1), 0 0 50px 8px rgba(255, 140, 0, .45), 0 30px 70px -10px rgba(255, 140, 0, .8); } 50% { box-shadow: 0 0 0 10px rgba(255, 140, 0, .45), 0 0 0 24px rgba(255, 140, 0, .16), 0 0 90px 20px rgba(255, 140, 0, .75), 0 30px 70px -10px rgba(255, 140, 0, .9); } }
@keyframes hm-pop { from { opacity: 0; transform: translateZ(160px) scale(.5); } to { opacity: 1; transform: translateZ(160px) scale(1); } }
.hm-hub svg { width: 56px; height: 56px; color: var(--orange); }
.hm-hub i, .hm-hub::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 3px solid rgba(255, 178, 87, .85); opacity: 0; animation: hm-ring 3.8s ease-out infinite; animation-delay: 1s; pointer-events: none; }
.hm-hub::after { animation-delay: 2.9s; border-width: 2px; }
@keyframes hm-ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.dv { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); transform-style: preserve-3d; transform: var(--t); animation: hm-devin .9s var(--ease) backwards; animation-delay: var(--d, .5s); }
.dv::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 35%); }
@keyframes hm-devin { from { opacity: 0; transform: var(--t) translateY(46px) scale(.96); } to { opacity: 1; transform: var(--t); } }
.dv.is-ready { animation: hm-float 8s ease-in-out infinite; animation-delay: var(--f, 0s); }
@keyframes hm-float { 0%, 100% { opacity: 1; transform: var(--t) translateY(0); } 50% { opacity: 1; transform: var(--t) translateY(-12px); } }
.dv--kds    { left: 12px;  top: 30px;  width: 310px; height: 196px; --t: translateZ(40px);  --d: .7s;  --f: -2s; border: 5px solid #1a1a1a; border-radius: 12px; }
.dv--kiosk  { left: 505px; top: 30px; width: 190px; height: 330px; --t: translateZ(70px) rotateY(-4deg); --d: 1s; --f: -4s; border: 6px solid #1a1a1a; border-radius: 18px; }
.dv--hotel  { left: 870px; top: 40px;  width: 320px; height: 204px; --t: translateZ(40px) rotateY(-3deg); --d: 1.3s; --f: -1s; }
.dv--pos    { left: 0;     top: 300px; width: 460px; height: 310px; --t: translateZ(120px); --d: .55s; border: 6px solid #1a1a1a; border-radius: 16px; }
.dv--phone  { left: 505px; top: 390px; width: 176px; height: 330px; --t: translateZ(230px) rotateY(-5deg); --d: .85s; --f: -3s; border: 6px solid #0b0b0b; border-radius: 26px; }
.dv--map    { left: 720px; top: 300px; width: 320px; height: 210px; --t: translateZ(140px) rotateY(-4deg); --d: 1.15s; --f: -5s; }
.dv--res    { left: 880px; top: 530px; width: 310px; height: 205px; --t: translateZ(200px) rotateY(-3deg); --d: 1.45s; --f: -6s; }
.dv--ticket { left: 150px; top: 650px; width: 330px; height: 140px; --t: translateZ(260px) rotateY(4deg); --d: 1.6s; --f: -2.5s; }
.hm-toast { position: absolute; left: 290px; top: 262px; width: 260px; padding: 11px 13px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); font-size: 12.5px; display: flex; gap: 10px; align-items: center; transform: translateZ(300px); opacity: 0; }
.hm-toast.is-on { animation: hm-toast 4.2s var(--ease) forwards; }
@keyframes hm-toast { 0% { opacity: 0; translate: 0 14px; } 12%, 85% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -10px; } }
.hm-toast__ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.hm-toast b { display: block; font-size: 12.5px; }
.hm-toast span { color: var(--ink-3); font-size: 11.5px; }
/* mobil: jen pokladna */
.hm-stage-m { display: block; margin: 30px auto 0; perspective: 1000px; max-width: 440px; }
.hm-stage-m .dv { position: relative; width: 100%; height: 250px; transform: rotateX(6deg) rotateY(-5deg); animation: none; opacity: 1; border: 5px solid #1a1a1a; border-radius: 14px; }
@media (min-width: 1000px) { .hm-stage-m { display: none; } }

/* ---------------------------------------------------------------- pruh důvěry (marquee) */
.hm-trust { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.hm-trust__track { display: flex; gap: 48px; width: max-content; animation: hm-marquee 46s linear infinite; }
.hm-trust:hover .hm-trust__track { animation-play-state: paused; }
.hm-trust__item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: var(--navy); white-space: nowrap; }
.hm-trust__item .i { color: var(--orange-600); }
@keyframes hm-marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- den v provozu (scrollytelling) */
.hm-day { display: grid; gap: 32px; }
@media (min-width: 960px) { .hm-day { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: start; } }
.hm-screen { position: sticky; top: calc(var(--nav-h) + 12px); z-index: 2; border-radius: 22px; background: #0f0f0f; color: #fff; box-shadow: 0 40px 80px -30px rgba(2, 8, 23, .6); overflow: hidden; height: 250px; border: 6px solid #1a1a1a; }
@media (min-width: 960px) { .hm-screen { top: calc(var(--nav-h) + 40px); height: 520px; } }
.hm-screen__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.hm-screen__clock { font-variant-numeric: tabular-nums; color: #ffb257; font-size: 13px; }
.hm-screen__dots { display: flex; gap: 6px; }
.hm-screen__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .3s, transform .3s; }
.hm-screen__dots i.is-on { background: var(--orange); transform: scale(1.3); }
.hm-pane { position: absolute; inset: 0 0 34px; opacity: 0; transform: scale(.97); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.hm-pane.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hm-stop { padding: 28px 0; border-top: 1px solid var(--line); position: relative; transition: opacity .4s; }
.hm-stop:first-child { border-top: 0; }
@media (min-width: 960px) { .hm-stop { padding: 56px 0; min-height: 44vh; } .hm-stop:first-child { padding-top: 10px; } .hm-stop:not(.is-on) { opacity: .45; } }
.hm-stop__time { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--orange-600); letter-spacing: .08em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.hm-stop__time::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 140, 0, .18); }
.hm-stop h3 { font-size: clamp(1.35rem, 1.2rem + .8vw, 1.9rem); margin-bottom: 10px; }
.hm-stop p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.hm-stop__mods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hm-stop__mods a { font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--navy); }
.hm-stop__mods a:hover { border-color: var(--orange); color: var(--orange-600); }
.hm-del { display: grid; grid-template-columns: 1.15fr .85fr; height: 100%; }
.hm-del .rm { min-height: 0; }
.hm-del__list { background: #121212; color: #fff; padding: 1em; display: flex; flex-direction: column; gap: .6em; font-size: 12.5px; overflow: hidden; }
.hm-del__hd { font-weight: 700; display: flex; justify-content: space-between; margin-bottom: .2em; }
.hm-del__hd em { font-style: normal; color: #4ade80; font-size: .9em; }
.hm-del__o { background: #1f1f1f; border-radius: .5em; padding: .7em .8em; border-left: .3em solid #ef8a1a; }
.hm-del__o b { display: flex; justify-content: space-between; }
.hm-del__o span { display: block; color: #bdbdbd; font-size: .9em; margin-top: .2em; }
.hm-del__o em { display: inline-block; margin-top: .4em; font-style: normal; font-size: .75em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4ade80; }
.hm-del__o--wolt { border-color: #00c2e8; } .hm-del__o--done { border-color: #1ba24a; opacity: .7; }

/* ---------------------------------------------------------------- řady (bento) */
.hm-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .hm-bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); }
    .hm-tile--gastro { grid-column: span 7; grid-row: span 2; }
    .hm-tile--tickets, .hm-tile--res, .hm-tile--one { grid-column: span 5; }
    .hm-tile--stay { grid-column: span 7; }
}
.hm-tile { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 26px; overflow: hidden; isolation: isolate; color: #fff; min-height: 250px; box-shadow: var(--shadow-2); transition: transform .4s var(--spring), box-shadow .4s; }
.hm-tile:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(2, 8, 23, .55); }
.hm-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .2), transparent 55%); }
.hm-tile--gastro { background: linear-gradient(160deg, #1b3a6b 0%, #0b1b33 60%, #06111f 100%); }
.hm-tile--tickets { background: linear-gradient(160deg, #8b7cff 0%, #5b4ae0 60%, #2f237a 100%); }
.hm-tile--res { background: linear-gradient(160deg, #3fc4c3 0%, #0e9b9a 60%, #0a5e5e 100%); }
.hm-tile--stay { background: linear-gradient(160deg, #5c9bff 0%, #2f6fe0 60%, #1b3f8a 100%); }
.hm-tile--one { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.hm-tile__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.hm-tile__ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; backdrop-filter: blur(4px); }
.hm-tile--one .hm-tile__ico { background: var(--orange-100); color: var(--orange-600); }
.hm-tile__ico .i { width: 26px; height: 26px; }
.hm-tile h3 { font-size: 1.5rem; color: inherit; margin-bottom: 6px; }
.hm-tile p { font-size: 15px; color: rgba(255, 255, 255, .85); max-width: 46ch; }
.hm-tile--one p { color: var(--ink-2); }
.hm-tile__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; }
.hm-tile__go { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform .3s var(--spring); }
.hm-tile:hover .hm-tile__go { transform: translateX(4px) scale(1.08); }
.hm-tile__status { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.hm-flowmini { display: flex; align-items: center; margin: 18px 0 6px; }
.hm-flowmini span { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .8); width: 64px; flex: none; }
.hm-flowmini span b { width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); display: grid; place-items: center; color: #ffb257; }
.hm-flowmini i { flex: 1; min-width: 14px; height: 2px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; margin-bottom: 22px; }
.hm-flowmini i::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #ffb257, transparent); animation: hm-flow 2.2s linear infinite; animation-delay: var(--d, 0s); }
@keyframes hm-flow { to { left: 100%; } }
.hm-tile__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hm-tile__mini { margin-top: 14px; border-radius: 12px; overflow: hidden; background: #fff; color: var(--ink); font-size: 9.5px; height: 118px; }
.hm-tile__mini .rr, .hm-tile__mini .rh, .hm-tile__mini .rp { height: 100%; }
.hm-tile__mini--dark { background: #0f0f0f; color: #fff; font-size: 8.5px; height: 250px; margin-top: 18px; border: 4px solid #1a1a1a; border-radius: 14px; }
@media (min-width: 900px) { .hm-tile--gastro .hm-tile__mini--dark { margin-top: auto; } }
.hm-seats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 14px; }
.hm-seats i { aspect-ratio: 1; border-radius: 3px; background: rgba(255, 255, 255, .22); transform: scale(.6); opacity: .5; }
.is-in .hm-seats i { animation: hm-seat .5s var(--spring) forwards; animation-delay: calc(var(--n) * 35ms); }
@keyframes hm-seat { to { transform: none; opacity: 1; background: #fff; } }
.hm-stage-line { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); margin: 10px 20% 0; }
.hm-tile__bar { margin-top: 12px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hm-tile__bar i { display: block; height: 100%; width: var(--w, 80%); background: #fff; border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.is-in .hm-tile__bar i { transform: scaleX(1); }
.hm-tile__meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-top: 6px; opacity: .9; }
.hm-one__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hm-one__list li { display: flex; gap: 8px; align-items: flex-start; }
.hm-one__list .i { color: var(--ok); margin-top: 3px; }

/* ---------------------------------------------------------------- jak začít (6 kroků) */
.hm-start { position: relative; display: grid; gap: 18px; }
@media (min-width: 700px) { .hm-start { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1100px) { .hm-start { grid-template-columns: repeat(6, 1fr); gap: 18px; } }
.hm-start__line { position: absolute; left: 0; right: 0; top: 24px; height: 3px; background: var(--line); display: none; border-radius: 3px; overflow: hidden; }
.hm-start__line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #ffb257); transition: width 2.4s var(--ease); }
.is-in .hm-start__line i { width: 100%; }
@media (min-width: 1100px) { .hm-start__line { display: block; } }
.hm-step { position: relative; display: flex; flex-direction: column; }
.hm-step__n { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); color: var(--navy); font-weight: 900; display: grid; place-items: center; margin-bottom: 14px; position: relative; z-index: 1; transform: scale(.6); opacity: 0; transition: transform .6s var(--spring), opacity .4s; transition-delay: calc(var(--n) * .3s); }
.is-in .hm-step__n { transform: none; opacity: 1; }
.hm-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.hm-step p { color: var(--ink-2); font-size: 14px; flex: 1; }
.hm-step__time { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 800; color: var(--ok); }
.hm-step__art { margin-top: 14px; height: 140px; border-radius: 16px; background: var(--navy-950); position: relative; overflow: hidden; display: grid; place-items: center; }
.hm-step__art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 100%, rgba(255, 140, 0, .25), transparent 70%); }
.hm-form { width: 130px; display: grid; gap: 6px; }
.hm-form i { height: 12px; border-radius: 5px; background: rgba(255, 255, 255, .14); position: relative; overflow: hidden; }
.hm-form i::after { content: ""; position: absolute; inset: 0; width: var(--w, 70%); background: rgba(255, 255, 255, .55); transform: scaleX(0); transform-origin: left; animation: hm-type 2.8s var(--ease) infinite; animation-delay: var(--d, 0s); }
.hm-form i:last-child { background: var(--orange); height: 18px; }
.hm-form i:last-child::after { display: none; }
@keyframes hm-type { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
.hm-addr { width: 136px; background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 10px; font-size: 10px; position: relative; }
.hm-addr b { display: block; font-size: 10.5px; }
.hm-addr span { display: block; color: var(--ink-3); }
.hm-addr i { position: absolute; right: 8px; top: -14px; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; background: var(--orange); transform: rotate(-45deg); animation: hm-pin 1.6s ease-in-out infinite; }
@keyframes hm-pin { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.hm-addr em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 9px; font-weight: 800; color: #15803d; }
.hm-phone { width: 76px; height: 124px; border-radius: 14px; border: 3px solid rgba(255, 255, 255, .3); position: relative; background: #fff; overflow: hidden; }
.hm-phone__menu { position: absolute; inset: 9px 7px; display: grid; gap: 5px; align-content: start; }
.hm-phone__menu i { height: 6px; border-radius: 3px; background: #e2e8f0; }
.hm-phone__menu i:nth-child(odd) { width: 70%; }
.hm-phone__menu i.is-read { animation: hm-read 3s var(--ease) infinite; animation-delay: calc(var(--n) * .25s); }
@keyframes hm-read { 0%, 20% { background: #e2e8f0; } 40%, 100% { background: var(--orange); } }
.hm-phone__flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: hm-flash 3s ease-in-out infinite; }
@keyframes hm-flash { 0%, 8% { opacity: 0; } 12% { opacity: .9; } 18%, 100% { opacity: 0; } }
.hm-people { display: grid; gap: 6px; width: 140px; }
.hm-people span { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; padding: 5px 8px; color: #fff; font-size: 10px; font-weight: 700; }
.hm-people span i { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 9px; flex: none; }
.hm-people span em { margin-left: auto; font-style: normal; letter-spacing: .2em; color: #ffb257; animation: hm-pinin 3s steps(4) infinite; animation-delay: calc(var(--n) * .5s); overflow: hidden; white-space: nowrap; width: 0; }
@keyframes hm-pinin { 0% { width: 0; } 60%, 100% { width: 2.6em; } }
.hm-pair { display: flex; gap: 10px; align-items: center; }
.hm-pair svg { width: 52px; height: 52px; background: #fff; border-radius: 6px; padding: 4px; }
.hm-pair b { color: #fff; font-size: 20px; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.hm-pair b i { display: inline-block; font-style: normal; animation: hm-digit .6s var(--spring) backwards; animation-delay: calc(var(--n) * .25s + .4s); }
@keyframes hm-digit { from { opacity: 0; transform: translateY(8px); } }
.hm-print { width: 110px; height: 44px; border-radius: 8px 8px 4px 4px; background: #2a2a2a; position: relative; margin-top: 30px; }
.hm-print::before { content: ""; position: absolute; left: 12px; right: 12px; top: -2px; height: 4px; background: #111; border-radius: 2px; }
.hm-print i { position: absolute; left: 18px; right: 18px; bottom: 100%; height: 0; background: #fff; border-radius: 2px 2px 0 0; animation: hm-paper 3.2s var(--ease) infinite; background-image: repeating-linear-gradient(180deg, transparent 0 5px, #cbd5e1 5px 6px); }
@keyframes hm-paper { 0%, 10% { height: 0; } 60%, 100% { height: 52px; } }

/* ---------------------------------------------------------------- mapa systému (vrstvy: hosté, provoz, zázemí, partneři) */
.hm-map { display: grid; gap: 24px; }
@media (min-width: 960px) { .hm-map { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; } }
.hm-map__svg { width: 100%; height: auto; display: none; }
@media (min-width: 760px) { .hm-map__svg { display: block; } }
.hm-map__svg .ln { stroke: rgba(255, 255, 255, .16); stroke-width: 2; fill: none; }
.hm-map__svg .ln--bus { stroke: rgba(255, 178, 87, .55); stroke-width: 4; stroke-linecap: round; }
.hm-map__svg .ln--teya { stroke: rgba(94, 234, 212, .4); }
.hm-map__svg .ln--flow { stroke: #ffb257; stroke-width: 2.5; stroke-dasharray: 6 140; stroke-linecap: round; animation: hm-dash 3s linear infinite; animation-delay: var(--d, 0s); opacity: .9; fill: none; }
@keyframes hm-dash { to { stroke-dashoffset: -146; } }
.hm-map__svg .lane { fill: rgba(255, 255, 255, .45); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font); }
.hm-map__svg .bus-lbl { fill: #ffb257; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font); text-anchor: middle; }
.hm-node { cursor: pointer; outline: none; }
.hm-node circle { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.hm-node:hover circle, .hm-node.is-on circle, .hm-node:focus-visible circle { fill: rgba(255, 140, 0, .22); stroke: #ffb257; }
.hm-node .ico { color: #ffb257; }
.hm-node text { fill: #fff; font-size: 12.5px; font-weight: 700; font-family: var(--font); text-anchor: middle; }
.hm-node--center circle { fill: var(--orange); stroke: #ffb257; }
.hm-node--center .ico { color: #fff; }
.hm-node--out circle { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .14); stroke-dasharray: 4 4; }
.hm-node--out text { font-size: 11.5px; fill: rgba(255, 255, 255, .75); }
.hm-node--teya circle { stroke: rgba(94, 234, 212, .6); }
.hm-node--teya .ico { color: #5eead4; }
.hm-map__panel { padding: 26px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); min-height: 220px; }
.hm-map__panel .w-eyebrow { color: #ffb257; }
.hm-map__panel h3 { font-size: 1.4rem; color: #fff; margin: 10px 0 8px; }
.hm-map__panel p { color: rgba(255, 255, 255, .75); font-size: 15.5px; }
.hm-map__panel .w-link { margin-top: 14px; color: #fff; }
.hm-map__chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) { .hm-map__chips { display: none; } }
.hm-map__chips a { padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.hm-map__chips .i { color: #ffb257; }

/* ---------------------------------------------------------------- kalkulačka a tarify */
.hm-calc { display: grid; gap: 0; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
@media (min-width: 900px) { .hm-calc { grid-template-columns: 1.1fr .9fr; } }
.hm-calc__ctl { padding: 28px; display: grid; gap: 20px; }
.hm-calc__row { display: grid; gap: 8px; }
.hm-calc__row > .lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hm-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.hm-seg button { border: 0; background: transparent; border-radius: 10px; padding: 10px 8px; font-weight: 800; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.hm-seg button.is-on { background: var(--navy); color: #fff; box-shadow: 0 8px 16px -10px rgba(0, 40, 85, .7); }
.hm-seg button small { display: block; font-weight: 600; font-size: 11px; opacity: .75; }
.hm-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hm-stepper button { width: 44px; height: 44px; border: 0; background: var(--bg-2); color: var(--navy); font-size: 20px; font-weight: 800; cursor: pointer; }
.hm-stepper button:disabled { opacity: .35; cursor: default; }
.hm-stepper output { width: 56px; text-align: center; font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.hm-calc__hint { font-size: 13px; color: var(--ink-3); }
.hm-toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; font-size: 15px; }
.hm-toggle input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s; cursor: pointer; margin: 0; flex: none; }
.hm-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--spring); }
.hm-toggle input:checked { background: var(--orange); }
.hm-toggle input:checked::after { transform: translateX(20px); }
.hm-calc__out { background: var(--navy); color: #fff; padding: 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.hm-calc__out::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(40% 40% at 70% 30%, rgba(255, 140, 0, .35), transparent 60%); filter: blur(20px); }
.hm-calc__out > * { position: relative; }
.hm-calc__price { font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.hm-calc__price small { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, .7); letter-spacing: 0; }
.hm-calc__lines { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.hm-calc__lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .15); padding-bottom: 6px; }
.hm-calc__lines li b { color: #fff; font-variant-numeric: tabular-nums; }
.hm-calc__out .w-btn { margin-top: auto; }
.hm-calc__note { font-size: 12.5px; color: rgba(255, 255, 255, .55); margin-top: 12px; }
.hm-plans { margin-top: 36px; }
.hm-plans .w-plan { padding: 24px; }
.hm-plans .w-plan h3 { font-size: 1.25rem; }
.hm-plans .w-plan__price b { font-size: 2rem; }
.hm-plans .w-plan ul { font-size: 14px; gap: 7px; }

/* ---------------------------------------------------------------- reference (marquee) */
.hm-quotes { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hm-quotes__track { display: flex; gap: 18px; width: max-content; animation: hm-marquee 70s linear infinite; padding: 6px 0; }
.hm-quotes:hover .hm-quotes__track { animation-play-state: paused; }
.hm-quotes .w-quote { width: 360px; flex: none; }
@media (min-width: 900px) { .hm-faq { max-width: none; grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------------------------------------------------------------- telefon (WEB3 10. 11. 2026)
   Na telefonu měl úvod 20 700 px (25 obrazovek): sekce pod sebou jako na desktopu, sticky obrazovka dne
   přikrývala čtený text, mřížka řad měla implicitní sloupce. Teď: kratší mezery, hero zarovnané vlevo,
   den v provozu, řady, tarify, reference a články jako karty do strany (scroll-snap, tečky z home.js),
   kroky jako svislá osa bez ilustrací, Otevřenost ve dvou sloupcích. Desktop beze změny. */
.hm-only-m { display: none; }
.hm-dots { display: none; }
@media (max-width: 759px) {
    .hm-only-d { display: none; }
    .hm-only-m { display: inline; }
    .hm-root .w-section { padding: 60px 0; }
    .hm-root .w-head { margin-bottom: 24px; }
    .hm-root .w-head .w-lead { font-size: 16px; }

    /* hero */
    .hm-hero { padding: calc(var(--nav-h) + 20px) 0 34px; }
    .hm-hero__copy { text-align: left; }
    .hm-badge { font-size: 12px; margin-bottom: 18px; padding: 6px 12px 6px 8px; text-align: left; }
    .hm-h1 { font-size: min(2.3rem, 9.4vw); margin-bottom: 16px; }
    .hm-hero .w-lead { font-size: 16px; margin: 0 0 22px; }
    .hm-hero__cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 16px; }
    .hm-hero__cta .w-btn { width: 100%; justify-content: center; }
    .hm-hero__note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 12.5px; text-align: left; }
    .hm-hero__note span { align-items: flex-start; }
    .hm-hero__note .i { flex: none; margin-top: 2px; }
    /* maketa pokladny v hero: navržená na 460 × 310 px, home.js ji zmenší na šířku telefonu (--ms), nic se neořízne */
    .hm-stage-m { max-width: none; height: calc(310px * var(--ms, .78)); margin-top: 28px; perspective: none; }
    .hm-stage-m .dv { width: 460px; height: 310px; transform-origin: 0 0; transform: scale(var(--ms, .78)); border-width: 6px; border-radius: 16px; }
    .hm-hero__lines { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 24px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
    .hm-hero__lines::-webkit-scrollbar { display: none; }
    .hm-hero__lines .w-chip { flex: none; }

    /* karty do strany */
    .hm-root .hm-swipe { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 18px; scrollbar-width: none; position: relative; align-items: stretch; }
    .hm-root .hm-swipe::-webkit-scrollbar { display: none; }
    .hm-root .hm-swipe > * { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
    .hm-root .hm-swipe--full { margin-inline: 0; }
    .hm-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
    .hm-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: width .3s var(--ease), background .3s; }
    .hm-dots button.is-on { width: 22px; background: var(--orange); }

    /* den v provozu: obrazovka nahoře (ne sticky), pod ní karty dne do strany; karta přepíná obrazovku */
    .hm-day { gap: 14px; }
    .hm-screen { position: relative; top: auto; height: 236px; }
    .hm-stop, .hm-stop:first-child { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-1); transition: border-color .3s, box-shadow .3s; }
    .hm-stop.is-on { border-color: rgba(255, 140, 0, .55); box-shadow: 0 14px 30px -18px rgba(255, 140, 0, .55); }
    .hm-stop h3 { font-size: 1.2rem; }
    .hm-stop p { font-size: 15px; }

    /* řady */
    .hm-tile { padding: 22px; border-radius: 22px; }
    .hm-tile:hover { transform: none; }
    .hm-tile--gastro .hm-tile__chips, .hm-tile--gastro .hm-tile__mini--dark { display: none; }
    .hm-flowmini span { flex: 1 1 0; width: auto; min-width: 0; font-size: 10px; }
    .hm-flowmini span b { width: 38px; height: 38px; border-radius: 11px; }
    .hm-flowmini i { flex: 0 0 8px; min-width: 0; margin-bottom: 20px; }

    /* jak začít: svislá osa, bez ilustrací */
    .hm-start { gap: 0; }
    .hm-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding-bottom: 22px; }
    .hm-step__n { grid-row: 1 / span 3; width: 40px; height: 40px; margin: 0; font-size: 15px; }
    .hm-step h3 { grid-column: 2; margin: 8px 0 4px; }
    .hm-step p { grid-column: 2; flex: none; }
    .hm-step__time { grid-column: 2; margin-top: 6px; }
    .hm-step__art { display: none; }
    .hm-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 46px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
    #jak-zacit .w-hero__cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px !important; }
    #jak-zacit .w-hero__cta .w-btn { width: 100%; justify-content: center; }

    /* mapa systému: kratší seznam a panel bez střídání */
    .hm-map { gap: 18px; }
    .hm-map__chips { gap: 6px; }
    .hm-map__chips a { padding: 8px 12px; font-size: 13px; }
    .hm-map__panel { min-height: 0; padding: 22px; }

    /* cena */
    .hm-calc__ctl, .hm-calc__out { padding: 22px; }
    .hm-plans { margin-top: 26px; }
    .hm-root .hm-plans.hm-swipe { padding-top: 20px; }

    /* Otevřenost (common/open.tpl) jen na úvodu: dvě kolonky, ikona a název */
    .hm-root .op__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hm-root .op__tile { grid-template-columns: minmax(0, 1fr); padding: 14px; row-gap: 10px; }
    .hm-root .op__ico { grid-row: auto; width: 36px; height: 36px; border-radius: 11px; }
    .hm-root .op__ico .i { width: 19px; height: 19px; }
    .hm-root .op__tile b { font-size: 14.5px; line-height: 1.3; }
    .hm-root .op__tile span:last-child { display: none; }

    /* reference: karty do strany místo běžícího pásu */
    .hm-quotes { -webkit-mask-image: none; mask-image: none; }
    .hm-quotes__track { animation: none; width: auto; }
    .hm-quotes .w-quote { width: auto; }
}

/* ---------------------------------------------------------------- mobil a omezený pohyb */
@media (max-width: 999px) { .hm-hero__spot { display: none; } .hm-w > i, .hm-fade { animation: none; } }
@media (prefers-reduced-motion: reduce) {
    .hm-w > i, .hm-fade, .dv, .hm-hub, .hm-hub i, .hm-hub::after, .hm-wires .wire, .hm-trust__track, .hm-quotes__track, .hm-flowmini i::after, .ln--flow, .hm-form i::after, .hm-phone__flash, .hm-phone__menu i.is-read, .hm-addr i, .hm-people span em, .hm-pair b i, .hm-print i { animation: none !important; }
    .hm-people span em { width: 2.6em; } .hm-print i { height: 52px; }
}
