/* Aplikace na míru – prezentační stránka */
:root {
  --navy: #0F1B3D; --navy-2: #1d2b55; --orange: #FF6B35; --orange-d: #e2541f;
  --bg: #fff; --soft: #F4F6FA; --line: #E3E7EF; --muted: #5d6680;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-d: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pw: 300px; --ph: 620px; --fly: 1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--bg); line-height: 1.5; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.demo-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; background: var(--navy); color: #fff;
  font-size: .76rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 2px solid var(--orange);
  box-shadow: 0 8px 20px -8px rgba(15,27,61,.6);
}

/* tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
  border-radius: 14px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,107,53,.9); }
.btn-primary:hover { background: var(--orange-d); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { min-height: 40px; padding: 8px 16px; background: var(--navy); color: #fff; border-radius: 12px; font-size: .9rem; }
.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 1.08rem; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* lišta */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-d); font-weight: 800; font-size: 1.02rem; }
.logo small { display: block; font-family: var(--font); font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.logo-mark { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px; background: var(--navy); border-radius: 10px; }
.logo-mark i { background: #fff; border-radius: 3px; }
.logo-mark i:nth-child(4) { background: var(--orange); }
.nav { display: none; gap: 22px; font-weight: 600; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--navy); }

/* úvod */
.hero { display: grid; gap: 34px; padding: 40px 18px 30px; max-width: 1240px; margin: 0 auto; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,107,53,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,107,53,0); } }
.hero h1 { font-size: clamp(2.5rem, 10.5vw, 5.4rem); font-weight: 900; letter-spacing: -.035em; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(30px) rotate(3deg); animation: wordIn .7s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .w:nth-child(2) { animation-delay: .08s; } .hero h1 .w:nth-child(3) { animation-delay: .22s; } .hero h1 .w:nth-child(4) { animation-delay: .3s; }
.hero h1 .accent { color: var(--orange); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.lead { font-size: 1.1rem; color: #33405f; margin-top: 18px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-cta .btn { flex: 1 1 200px; }
.small { font-size: .84rem; color: var(--muted); margin-top: 14px; }

.hero-visual { position: relative; height: 330px; }
.tile {
  position: absolute; width: 46%; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(15,27,61,.5); display: flex; flex-direction: column; gap: 2px;
  opacity: 0; animation: tileIn .8s cubic-bezier(.2,.9,.25,1.2) forwards;
}
.tile b { font-family: var(--font-d); font-size: 1.1rem; }
.tile span { font-size: .84rem; color: var(--muted); }
.tile svg { width: 100%; height: 30px; }
.tile svg path { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.6s 1.3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.t1 { left: 0; top: 0; --r: -4deg; animation-delay: .35s; background: var(--navy); color: #fff; border-color: var(--navy); }
.t1 span { color: #ffb08f; }
.t2 { right: 0; top: 24px; --r: 3deg; animation-delay: .5s; }
.t3 { left: 4%; top: 116px; --r: 2deg; animation-delay: .65s; }
.t4 { right: 2%; top: 136px; --r: -3deg; animation-delay: .8s; }
.t5 { left: 0; top: 232px; --r: -2deg; animation-delay: .95s; }
.t6 { right: 0; top: 250px; --r: 4deg; animation-delay: 1.1s; background: var(--orange); color: #fff; border-color: var(--orange); }
.t6 span { color: #fff; opacity: .9; }
@keyframes tileIn { from { opacity: 0; transform: translateY(40px) scale(.85) rotate(calc(var(--r) * 4)); } to { opacity: 1; transform: rotate(var(--r)); } }

/* ===== scroll příběh ===== */
.story { position: relative; height: 560vh; background: linear-gradient(180deg, #fff 0%, var(--soft) 12%, var(--soft) 88%, #fff 100%); }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; padding: 64px 14px 14px;
  --p: 0;
}
.phone-wrap { grid-row: 1; perspective: 1400px; position: relative; width: 100%; height: 100%; min-height: 0; }
.phone {
  width: var(--pw); height: var(--ph); border-radius: 46px; background: #0c1430; padding: 12px; position: relative;
  box-shadow: inset 0 0 0 2px #2c3a66, inset 0 0 0 5px #0c1430, 0 40px 80px -30px rgba(15,27,61,.55), 0 0 0 1px rgba(15,27,61,.2);
  transform-style: preserve-3d;
  position: absolute; left: 50%; top: 50%; margin-left: calc(var(--pw) / -2); margin-top: calc(var(--ph) / -2);
  transform: scale(var(--fit, 1)) rotateY(calc((0.5 - var(--p)) * 26deg)) rotateX(calc(4deg + var(--p) * 2deg));
}
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 35%, transparent 70%, rgba(255,255,255,.06)); }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 86px; height: 22px; transform: translateX(-50%); background: #0c1430; border-radius: 14px; z-index: 5; }
.phone-shadow { display: none; position: absolute; bottom: -26px; left: 10%; right: 10%; height: 30px; background: radial-gradient(closest-side, rgba(15,27,61,.3), transparent); filter: blur(4px); }
.screen-area { position: relative; width: 100%; height: 100%; border-radius: 34px; background: #F4F6FA; }
.scr {
  position: absolute; inset: 0; border-radius: 34px; padding: 44px 12px 12px;
  display: flex; flex-direction: column; gap: 8px; --l: 0; --out: 0;
  background: transparent; pointer-events: none; opacity: calc(1 - var(--out));
}
.scr::before {
  content: ""; position: absolute; inset: 0; border-radius: 34px; background: #F4F6FA; z-index: -1;
  clip-path: inset(calc((1 - min(1, var(--l) * 3)) * 100%) 0 0 0 round 34px);
}
.scr { z-index: 0; isolation: isolate; }
.scr[data-s="0"]::before { clip-path: none; }
.part {
  --k: clamp(0, calc(var(--l) * 1.6 - var(--i) * 0.09), 1);
  transform: translate(calc((1 - var(--k)) * var(--dx) * 1px * var(--fly)), calc((1 - var(--k)) * var(--dy) * 1px)) rotate(calc((1 - var(--k)) * var(--dx) * .04deg)) scale(calc(.9 + var(--k) * .1));
  opacity: var(--k);
}
/* mini UI */
.m-bar { background: var(--navy); color: #fff; border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; }
.m-bar small { font-size: .6rem; opacity: .7; } .m-bar b { font-family: var(--font-d); font-size: 1rem; }
.m-chips { display: flex; gap: 5px; }
.m-chips span { font-size: .62rem; font-weight: 700; padding: 5px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.m-chips .on { background: var(--navy); color: #fff; border-color: var(--navy); }
.m-card, .m-box, .m-head, .m-item, .m-link { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 6px 14px -10px rgba(15,27,61,.4); }
.m-card b, .m-box b, .m-item b, .m-link b { font-size: .78rem; font-family: var(--font-d); }
.m-card small, .m-box small, .m-head small, .m-item small { font-size: .62rem; color: var(--muted); }
.mc { align-self: flex-start; font-size: .56rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-bottom: 2px; }
.s-nova { background: #fff1eb; color: #c2410c; } .s-plan { background: #e8eefc; color: #2446a8; } .s-hot { background: #e6f5ee; color: #12805c; }
.m-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: 14px; padding: 8px; gap: 6px; border: 1px solid var(--line); }
.m-tabs i { height: 18px; border-radius: 6px; background: #e3e7ef; }
.m-tabs i.on { background: var(--navy); }
.m-tabs i.add { background: var(--orange); transform: translateY(-8px) scale(1.2); border-radius: 8px; }
.m-head { background: transparent; border: 0; box-shadow: none; padding: 4px 2px; }
.m-head b { font-family: var(--font-d); font-size: 1.05rem; line-height: 1.15; }
.lbl { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.m-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.m-seg span { font-size: .62rem; font-weight: 700; text-align: center; padding: 7px 2px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.m-seg .on { background: var(--navy); color: #fff; border-color: var(--navy); }
.m-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph { aspect-ratio: 1; border-radius: 10px; display: block; }
.ph1 { background: linear-gradient(160deg, #cfd8e6 0 40%, #9fb0c9 40% 46%, #e9eef5 46%), #ccc; position: relative; overflow: hidden; }
.ph1::after { content: ""; position: absolute; left: 30%; top: 18%; width: 40%; height: 50%; border: 5px solid #7c8aa3; border-top-width: 9px; border-radius: 4px 4px 40% 40%; }
.ph2 { background: radial-gradient(circle at 55% 45%, #8fa3c2 0 14%, transparent 15%), linear-gradient(180deg, #e7ecf3 0 60%, #b9c4d6 60%); }
.ph.add { border: 2px dashed #c3cad8; display: grid; place-items: center; color: var(--orange); font-weight: 800; font-size: 1.3rem; }
.m-link { flex-direction: row; justify-content: space-between; align-items: center; }
.m-link span { font-weight: 800; font-size: .78rem; }
.m-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; }
.m-item div { display: flex; flex-direction: column; }
.m-item .q { font-weight: 800; font-size: .72rem; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; background: var(--soft); }
.m-item strong { font-size: .74rem; white-space: nowrap; }
.m-total { background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 12px; display: grid; gap: 3px; font-size: .72rem; }
.m-total div { display: flex; justify-content: space-between; }
.m-total .g { font-family: var(--font-d); font-weight: 800; font-size: .98rem; border-top: 1px solid rgba(255,255,255,.2); padding-top: 5px; }
.m-total .g span:last-child { color: #ffb08f; }
.m-note { font-size: .6rem; color: var(--muted); text-align: center; }
.m-text { font-size: .76rem; font-weight: 600; }
.m-input { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: .76rem; font-weight: 600; }
.m-sign { position: relative; height: 210px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.m-sign svg { position: absolute; inset: 10px 8px 30px; width: calc(100% - 16px); height: calc(100% - 40px); }
.sig-path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--l) - .45) * 2.2, 1)); }
.m-sign .line { position: absolute; left: 14px; right: 14px; bottom: 26px; border-top: 1.5px dashed #b9c1d3; font-size: .58rem; color: var(--muted); padding-top: 3px; }
.finger { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,107,53,.35); border: 2px solid var(--orange);
  left: calc(6% + clamp(0, (var(--l) - .45) * 2.2, 1) * 84%); top: 46%; opacity: calc(clamp(0, (var(--l) - .45) * 6, 1) - clamp(0, (var(--l) - .9) * 10, 1)); transform: translate(-50%, -50%); }
.m-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.m-btns span { text-align: center; font-size: .7rem; font-weight: 800; padding: 10px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.m-btns .pri { background: var(--orange); border-color: var(--orange); color: #fff; }
.m-sheet { background: #fff; border-radius: 6px; padding: 12px; box-shadow: 0 16px 30px -18px rgba(15,27,61,.6); display: grid; gap: 10px; }
.sh-head { display: flex; justify-content: space-between; border-bottom: 3px solid var(--navy); padding-bottom: 6px; font-size: .64rem; }
.sh-head span { text-align: right; color: var(--muted); }
.sh-head span b { color: var(--navy); font-family: var(--font-d); font-size: .78rem; }
.sh-lines, .sh-table { display: grid; gap: 6px; }
.sh-lines i, .sh-table i { height: 7px; border-radius: 4px; background: #e6eaf1; display: block; }
.sh-lines i.s { width: 60%; }
.sh-table i { height: 12px; background: linear-gradient(90deg, #eef1f6 0 62%, transparent 62% 70%, #eef1f6 70%); }
.sh-table i.g { background: linear-gradient(90deg, transparent 0 55%, var(--navy) 55%); height: 14px; }
.sh-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; height: 54px; }
.sh-sign span { border-top: 1.5px solid var(--navy); }
.sh-sign svg { width: 100%; height: 50px; border-bottom: 1.5px solid var(--navy); }
.sh-sign path { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; }
.m-stamp { align-self: center; margin-top: -6px; font-family: var(--font-d); font-weight: 900; font-size: .9rem; color: var(--orange-d); border: 3px solid var(--orange); padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.92);
  transform: rotate(-6deg) scale(calc(2.2 - var(--k) * 1.2)) !important; }

/* texty u telefonu */
.steps { grid-row: 2; position: relative; z-index: 3; width: 100%; max-width: 420px; min-height: 128px; }
.step {
  position: absolute; inset: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 18px 36px -24px rgba(15,27,61,.5); --a: 0; opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 24px));
}
.step-no { font-size: .74rem; font-weight: 800; color: var(--orange-d); letter-spacing: .06em; text-transform: uppercase; }
.step h2 { font-size: 1.22rem; margin: 4px 0 4px; }
.step p { font-size: .92rem; color: #33405f; }
.progress { display: none; }

.after-story { text-align: center; padding: 60px 18px 70px; max-width: 760px; margin: 0 auto; }
.after-story h2 { font-size: clamp(1.7rem, 6vw, 2.8rem); font-weight: 900; }
.after-story p { color: #33405f; margin: 14px auto 24px; max-width: 36em; }

/* sekce */
.section { padding: 64px 18px; max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.9rem, 6.5vw, 3.2rem); font-weight: 900; }
.sub { color: #33405f; margin-top: 12px; font-size: 1.05rem; }

.types { display: grid; grid-template-columns: 1fr; gap: 12px; }
.type { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; align-items: start; transition: transform .2s, box-shadow .2s, border-color .2s; }
.type:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(15,27,61,.5); border-color: #cfd5e2; }
.type svg { grid-row: span 2; width: 56px; height: 56px; padding: 8px; background: var(--soft); border-radius: 16px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.type svg .a { stroke: var(--orange); }
.type h3 { font-size: 1.12rem; }
.type p { color: #33405f; font-size: .95rem; }

.tools { background: var(--navy); color: #fff; max-width: none; }
.tools > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.tools .sub { color: #c9d1e6; }
.tools .eyebrow { color: #ffb08f; }
.tool-grid { display: grid; gap: 14px; }
.tool { background: var(--navy-2); border: 1px solid #2c3b6a; border-radius: 20px; padding: 22px; }
.tool h3 { font-size: 1.25rem; margin-bottom: 8px; }
.tool p { color: #d7ddee; }
.tool b { color: #fff; }
.tool ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tool li { padding-left: 24px; position: relative; color: #d7ddee; font-size: .94rem; }
.tool li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 4px; background: var(--orange); }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: f; position: relative; }
.flow li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; align-content: start; background: var(--soft); border-radius: 20px; padding: 18px; }
.flow .n { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-d); font-weight: 900; font-size: 1.4rem; }
.flow li:nth-child(2) .n { background: var(--orange); }
.flow h3 { font-size: 1.18rem; margin-bottom: 4px; }
.flow p { color: #33405f; }

.versus { display: grid; gap: 14px; }
.vs-col { border: 2px solid var(--line); border-radius: 22px; padding: 22px; }
.vs-col.app { border-color: var(--orange); background: #fff8f4; }
.vs-col h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ico { width: 38px; height: 38px; display: grid; place-items: center; background: var(--soft); border-radius: 12px; font-size: 1.2rem; }
.vs-col.app .ico { background: var(--orange); color: #fff; }
.vs-col ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #33405f; }
.tip { margin-top: 14px; font-size: .9rem; font-weight: 600; }

.contact { text-align: center; background: var(--soft); border-radius: 28px; margin: 20px 14px 40px; max-width: 1100px; }
@media (min-width: 1128px) { .contact { margin: 20px auto 60px; } }
.contact h2 { font-size: clamp(1.6rem, 5.5vw, 2.6rem); font-weight: 900; max-width: 760px; margin: 0 auto; }
.contact p { color: #33405f; margin-top: 12px; }
.contacts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.contacts span { background: #fff; border: 1px solid var(--line); padding: 10px 18px; border-radius: 12px; font-weight: 700; color: var(--navy); }
.ref { font-size: .88rem; }

.footer { border-top: 1px solid var(--line); padding: 26px 18px 80px; text-align: center; font-size: .88rem; color: var(--muted); display: grid; gap: 6px; }

/* odhalení při scrollu */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* dialog s aplikací */
.app-dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.app-dialog::backdrop { background: rgba(10,18,42,.72); backdrop-filter: blur(6px); }
.dlg-inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 20px; }
.dlg-side { background: #fff; border-radius: 22px; padding: 26px; max-width: 340px; }
.dlg-side h2 { font-size: 1.8rem; margin-bottom: 14px; }
.dlg-side ol { padding-left: 20px; display: grid; gap: 8px; color: #33405f; margin: 0 0 6px; }
.dlg-side .btn { width: 100%; margin-top: 16px; }
.phone-live { --pw: 380px; --ph: min(800px, calc(100vh - 60px)); transform: none; position: relative; left: auto; top: auto; margin: 0; width: var(--pw); height: var(--ph); }
.phone-live iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #F4F6FA; display: block; }
.phone-live .phone-notch { top: 14px; height: 18px; width: 70px; opacity: .0; }

/* ===== větší obrazovky ===== */
@media (max-width: 380px) { :root { --pw: 270px; --ph: 560px; } }
@media (max-width: 899px) { :root { --fly: .45; } .stage { gap: 10px; padding-bottom: 58px; } .steps { min-height: 150px; } .step { padding: 12px 14px; } .step h2 { font-size: 1.12rem; } .step p { font-size: .88rem; line-height: 1.4; } }

@media (min-width: 700px) {
  .types { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .versus { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(5, 1fr); }
  .flow li { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { grid-template-columns: 1.1fr 1fr; padding: 70px 32px 50px; min-height: calc(84vh - 60px); }
  .hero-visual { height: 420px; }
  .tile { width: 42%; padding: 18px 20px; }
  .t3 { top: 150px; } .t4 { top: 170px; } .t5 { top: 300px; } .t6 { top: 318px; }
  .stage { grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr; gap: 56px; padding: 70px 40px 20px; max-width: 1400px; margin: 0 auto; }
  .steps { grid-row: 1; grid-column: 1; justify-self: end; max-width: 400px; min-height: 230px; }
  .step { padding: 24px 26px; border-radius: 24px; transform: translateX(calc((1 - var(--a)) * -40px)); }
  .step h2 { font-size: 1.9rem; margin: 8px 0 10px; }
  .step p { font-size: 1.05rem; }
  .phone-wrap { grid-column: 2; grid-row: 1; width: calc(var(--pw) * var(--fit, 1)); }
  :root { --pw: 320px; --ph: 660px; }
  .progress { position: relative; z-index: 3; display: grid; grid-column: 3; grid-row: 1; justify-self: start; list-style: none; margin: 0; padding: 0; gap: 10px; }
  .progress li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #9aa3b8; font-size: 1.02rem; transition: color .3s; }
  .progress li::before { content: ""; width: 30px; height: 30px; border-radius: 10px; border: 2px solid #cfd5e2; background: #fff; transition: all .3s; flex: none; }
  .progress li.done { color: var(--navy); }
  .progress li.done::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; border-color: var(--navy); }
  .progress li.active { color: var(--orange-d); }
  .progress li.active::before { border-color: var(--orange); background: #fff1eb; }
  .types { grid-template-columns: repeat(4, 1fr); }
  .type { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .type svg { grid-row: auto; }
  .section { padding: 96px 32px; }
  .tools { padding: 96px 32px; }
}
@media (max-width: 899px) { .dlg-inner { padding: 0; } }

/* omezení pohybu: fáze pod sebou, konečné stavy */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .w, .tile, .reveal { opacity: 1; transform: none; }
  .tile { transform: rotate(var(--r)); }
  .tile svg path { stroke-dashoffset: 0; }
  .story { height: auto; }
  .stage { position: static; height: auto; display: block; padding: 40px 14px; overflow: visible; }
  .progress, .phone-shadow { display: none !important; }
  .phone-wrap { display: block; perspective: none; width: auto; height: auto; }
  .phone { position: static; margin: 0; transform: none; width: auto; height: auto; background: none; box-shadow: none; padding: 0; }
  .phone::after, .story .phone-notch { display: none; }
  .story .screen-area { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); background: none; max-width: 1400px; margin: 0 auto; }
  .scr { position: relative; inset: auto; opacity: 1 !important; background: #F4F6FA; --l: 1 !important; height: 560px; border: 10px solid #0c1430; border-radius: 40px; padding-top: 20px; }
  .part { --k: 1 !important; transform: none !important; opacity: 1 !important; }
  .m-stamp { transform: rotate(-6deg) !important; }
  .sig-path { stroke-dashoffset: 0; }
  .finger { display: none; }
  .steps { display: grid; gap: 10px; min-height: 0; max-width: 1400px; margin: 0 auto 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .step { position: static; opacity: 1; transform: none !important; }
}
