/* Servis Bajt – ukázka. Paleta: grafit, elektrická modrá, signální zelená. */
:root {
  --bg: #0E1114;
  --bg2: #12161B;
  --surface: #161B21;
  --surface2: #1C232A;
  --line: #2A333D;
  --text: #E6EBF0;
  --muted: #95A2B0;
  --blue: #4DA3FF;
  --blue-d: #2F7FE0;
  --green: #2EE6A0;
  --red: #FF5A5F;
  --amber: #F5B947;
  --head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; }
.mono { font-family: var(--mono); }
.small { font-size: .88rem; }
.tiny { font-size: .78rem; color: var(--muted); margin-top: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Štítky */
.demo-badge { flex: none; white-space: nowrap; background: var(--green); color: #04150E; font-family: var(--mono); font-weight: 700; font-size: .68rem; padding: 5px 10px; border-radius: 6px; letter-spacing: .01em; }
.demo-badge-inline { display: inline-block; margin-bottom: .6rem; }
.sim-badge, .fake-badge { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; vertical-align: middle; }
.sim-badge { color: var(--green); border: 1px dashed var(--green); }
.fake-badge { color: var(--amber); border: 1px dashed var(--amber); }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-family: var(--head); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #06101C; box-shadow: 0 0 0 0 rgba(77,163,255,.5), 0 8px 24px -10px rgba(77,163,255,.7); }
.btn-primary:hover { background: #6BB4FF; }
.btn-primary:disabled { background: #2B3742; color: #7F8B97; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: .92rem; }

/* Lišta */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(14,17,20,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.05rem; display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand-name small { font-family: var(--mono); font-weight: 400; font-size: .64rem; color: var(--muted); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav a:hover { color: var(--text); }
.topbar .demo-badge { margin-left: auto; }
@media (min-width: 1000px) { .nav { display: flex; } .topbar .demo-badge { margin-left: 8px; } .topbar { padding: 12px 32px; } }

.eyebrow { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: none; }

/* Hero */
.hero { position: relative; padding: 40px 18px 56px; background:
  radial-gradient(800px 400px at 85% 10%, rgba(77,163,255,.14), transparent 60%),
  linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 32px 32px; }
.hero-grid { max-width: 1200px; margin: 0 auto; display: grid; gap: 34px; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); font-weight: 700; }
.hl { color: var(--blue); background: linear-gradient(90deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 > * , .hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; } .hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lead { font-size: 1.1rem; color: #C3CDD7; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #C3CDD7; font-size: .95rem; }
.hero-facts .mono { color: var(--green); margin-right: 8px; font-size: .8rem; }
.hero-term { background: #0A0D10; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(77,163,255,.06); overflow: hidden; font-family: var(--mono); font-size: .82rem; animation: rise .8s .2s both; align-self: center; }
.term-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.term-head span { width: 9px; height: 9px; border-radius: 50%; background: #3A4450; }
.term-head b { font-weight: 500; color: var(--muted); margin-left: 8px; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-lines { list-style: none; margin: 0; padding: 14px 16px 6px; min-height: 196px; }
.term-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: #C3CDD7; animation: typeIn .3s both; }
.term-lines li em { font-style: normal; }
.term-lines .ok { color: var(--green); } .term-lines .bad { color: var(--red); } .term-lines .info { color: var(--blue); }
@keyframes typeIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.term-status { display: flex; align-items: center; gap: 10px; padding: 10px 16px 14px; color: var(--muted); border-top: 1px dashed var(--line); }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 1s infinite; }
.led.done { background: var(--green); box-shadow: 0 0 12px var(--green); animation: none; }
@keyframes blink { 50% { opacity: .35; } }
@media (min-width: 900px) {
  .hero { padding: 80px 32px 90px; }
  .hero-grid { grid-template-columns: 1.2fr .9fr; gap: 56px; }
  .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; }
}

/* ===== Scroll scéna ===== */
.explode { position: relative; background: var(--bg2); border-top: 1px solid var(--line); }
.explode-intro { max-width: 1200px; margin: 0 auto; padding: 56px 18px 8px; }
.explode-intro p:last-child { color: var(--muted); max-width: 36em; }
.explode-track { height: 560vh; position: relative; }
.explode-scene { --p: 0; position: sticky; top: 56px; height: calc(100vh - 56px); height: calc(100svh - 56px); overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.scene-grid { position: absolute; inset: 0; background:
  linear-gradient(rgba(77,163,255,.05) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, rgba(77,163,255,.05) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 75%); pointer-events: none; }
.stage { position: relative; min-height: 0; perspective: 1500px; perspective-origin: 50% 30%; display: grid; place-items: center; }
.halo { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle, rgba(77,163,255,.45), rgba(46,230,160,.15) 45%, transparent 70%); opacity: calc(.15 + var(--on, 0) * .85); transform: scale(calc(.7 + var(--on, 0) * .4)); pointer-events: none; }
.phone-wrap { --w: 150px; --h: 308px; --gap: 46px; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: translateY(calc(var(--tilt, 0) * 24px + var(--spreadAll, 0) * var(--drop, 70px))); }
.phone3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(calc(var(--tilt, 0) * 56deg)) rotateZ(calc(var(--tilt, 0) * -36deg)) rotateY(calc((1 - var(--tilt, 0)) * var(--sway, 0) * 1deg)); }
.layer { position: absolute; inset: 0; transform-style: preserve-3d; --s: 0;
  transform: translateZ(calc(var(--k) * (2px + var(--s) * var(--gap)))); }
.layer svg { width: 100%; height: 100%; display: block; overflow: hidden; border-radius: 16%/8%; }
.layer[data-k="0"] { --k: 0; } .layer[data-k="1"] { --k: 1; } .layer[data-k="2"] { --k: 2; } .layer[data-k="3"] { --k: 3; } .layer[data-k="4"] { --k: 4; } .layer[data-k="5"] { --k: 5; }
.l-back { filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.l-cam, .l-board, .l-batt, .l-frame { opacity: calc(.35 + var(--tilt, 0) * .65); }
.l-disp-old { transform: translateZ(calc(5 * (2px + var(--s) * var(--gap)))) translateX(calc(var(--swap, 0) * -170%)) translateY(calc(var(--swap, 0) * -30%)); opacity: calc(1 - var(--swap, 0) * 1.1); }
.l-disp-new { transform: translateZ(calc(5 * (2px + var(--s) * var(--gap)) + 1px)) translateX(calc((1 - var(--swap, 0)) * 170%)) translateY(calc((1 - var(--swap, 0)) * 30%)); opacity: calc(var(--swap, 0) * 1.2 - .1); }
.bad-tint { opacity: calc(var(--bad, 0) * .55); }
.bad-text { opacity: var(--bad, 0); }
.crack { stroke: color-mix(in srgb, #C9D6E3, var(--red) calc(var(--bad, 0) * 100%)); }
.l-disp-old { filter: drop-shadow(0 0 calc(var(--bad, 0) * 18px) rgba(255,90,95,.8)); }
.l-disp-new { filter: drop-shadow(0 0 calc(var(--swap, 0) * (1 - var(--on, 0)) * 16px) rgba(46,230,160,.75)); }
.screen-on { opacity: var(--on, 0); }
.new-text { opacity: calc(var(--swap, 0) * (1 - var(--on, 0))); }
.pin { position: absolute; right: -14px; top: 46%; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #06101C; font: 700 .72rem var(--mono); opacity: var(--s); box-shadow: 0 0 0 3px rgba(77,163,255,.25); }
.l-disp-old .pin { background: color-mix(in srgb, var(--blue), var(--red) calc(var(--bad, 0) * 100%)); }
.pin-new { background: var(--green); }
.l-back .pin { top: 70%; }
.l-cam .pin { top: 8%; right: auto; left: 100px; }

.scene-panel { position: relative; padding: 0 16px 14px; }
.phase-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.phase-num { color: var(--green); font-size: .78rem; white-space: nowrap; }
.phase-bar { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.phase-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); transform-origin: left; transform: scaleX(var(--p)); }
.phases { list-style: none; margin: 0; padding: 0; position: relative; min-height: 92px; }
.phases li { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.phases li.is-active { opacity: 1; transform: none; }
.phases b { display: block; font-family: var(--head); font-size: 1.3rem; margin-bottom: 2px; }
.phases span { color: #C3CDD7; font-size: .94rem; }
.parts { list-style: none; margin: 6px 0 0; padding: 0; position: relative; min-height: 50px; }
.parts li { display: none; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(22,27,33,.85); }
.parts li.is-focus { display: grid; border-color: var(--blue); }
.parts li.is-bad { border-color: var(--red); }
.parts li.is-bad .pin-sm { background: var(--red); }
.parts li.is-new { border-color: var(--green); }
.parts li.is-new .pin-sm { background: var(--green); }
.parts b { font-family: var(--head); font-size: .98rem; }
.parts small { grid-column: 2; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.pin-sm { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #06101C; font: 700 .72rem var(--mono); }

@media (min-width: 700px) {
  .phone-wrap { --w: 190px; --h: 390px; --gap: 60px; }
}
@media (min-width: 1000px) {
  .explode-intro { padding: 80px 32px 10px; }
  .explode-scene { top: 64px; height: calc(100vh - 64px); grid-template-rows: none; grid-template-columns: 1.25fr 1fr; align-items: center; max-width: 1280px; margin: 0 auto; }
  .phone-wrap { --w: 200px; --h: 410px; --gap: 70px; --drop: 110px; }
  .scene-panel { padding: 0 32px 0 0; }
  .phases { min-height: 120px; }
  .phases b { font-size: 1.9rem; }
  .phases span { font-size: 1.05rem; }
  .parts { min-height: 0; display: grid; gap: 8px; margin-top: 18px; }
  .parts li { display: grid; opacity: .35; transition: opacity .3s, border-color .3s, transform .3s; }
  .parts li.is-shown { opacity: .8; }
  .parts li.is-focus { opacity: 1; transform: translateX(-6px); }
  .halo { width: 560px; height: 560px; margin: -280px 0 0 -280px; }
}

/* ===== Sekce ===== */
.section { padding: 64px 18px; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 1100px; margin: 0 auto 28px; }
.section-head p:last-child { color: var(--muted); }
@media (min-width: 900px) { .section { padding: 96px 32px; } }

/* Wizard */
.wizard { max-width: 1100px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.wiz-steps { list-style: none; margin: 0; padding: 12px; display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #13181D; scrollbar-width: none; }
.wiz-steps li { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); white-space: nowrap; padding: 4px 8px; border-radius: 8px; }
.wiz-steps li span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 700 .72rem var(--mono); border: 1px solid var(--line); }
.wiz-steps li.is-active { color: var(--text); background: rgba(77,163,255,.1); }
.wiz-steps li.is-active span { background: var(--blue); color: #06101C; border-color: var(--blue); }
.wiz-steps li.is-done span { background: var(--green); color: #04150E; border-color: var(--green); }
.wiz-body { padding: 22px 16px 24px; }
.wiz-pane { display: none; animation: rise .35s both; }
.wiz-pane.is-active { display: block; }
.hint { color: var(--muted); font-size: .92rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { text-align: left; background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s, background .15s; min-height: 64px; }
.choice:hover { border-color: var(--blue); transform: translateY(-2px); }
.choice.is-on { border-color: var(--blue); background: rgba(77,163,255,.12); }
.choice b { font-family: var(--head); font-size: 1.05rem; }
.choice small { color: var(--muted); font-size: .8rem; }
.choice svg { width: 40px; height: 40px; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; cursor: pointer; font-size: .94rem; min-height: 42px; }
.chips button:hover { border-color: var(--blue); }
.chips button[aria-pressed="true"] { background: var(--blue); color: #06101C; border-color: var(--blue); font-weight: 600; }
.wiz-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 20px; }
@media (min-width: 700px) { .choice-grid.devices { grid-template-columns: repeat(4, 1fr); } .wiz-body { padding: 30px; } .choice-grid.two { max-width: 640px; } }

.result { display: grid; gap: 14px; }
.res-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.res-head h3 { margin: 0; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; }
.res-list b { font-family: var(--head); }
.res-list small { color: var(--muted); grid-column: 1 / -1; font-size: .84rem; }
.res-list .price { font-family: var(--mono); color: var(--green); white-space: nowrap; }
.res-total { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.res-total div { display: flex; flex-direction: column; }
.res-total small { color: var(--muted); font-size: .78rem; font-family: var(--mono); text-transform: uppercase; }
.res-total strong { font-family: var(--head); font-size: 1.5rem; }
.res-note { color: var(--muted); font-size: .86rem; margin: 0; }
.handover { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

.order-summary { color: var(--blue); font-size: .85rem; }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: #C3CDD7; }
.form-grid input, .form-grid select, .form-grid textarea { background: #0F1317; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px; width: 100%; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(77,163,255,.2); }
.form-grid .check { flex-direction: row; align-items: center; gap: 10px; }
.form-grid .check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--green); }
.order-form:not(.is-svoz) .only-svoz { display: none; }
.form-err { color: var(--red); min-height: 1.2em; margin: 8px 0 0; font-size: .9rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.confirm { text-align: left; }
.confirm .big-check { width: 54px; height: 54px; border-radius: 14px; background: var(--green); display: grid; place-items: center; margin-bottom: 12px; }
.confirm .big-check svg { width: 28px; height: 28px; }

/* Sledování */
.track { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; }
.track-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.track-top { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.track-top small { display: block; color: var(--muted); font-size: .74rem; font-family: var(--mono); text-transform: uppercase; }
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tsteps li { position: relative; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; padding: 6px 0 14px; color: var(--muted); }
.tsteps li::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: -6px; width: 2px; background: var(--line); }
.tsteps li:last-child::before { display: none; }
.tsteps li.is-done::before { background: var(--green); }
.tdot { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); position: relative; z-index: 1; transition: background .3s, border-color .3s, box-shadow .3s; }
.tsteps b { font-family: var(--head); font-size: 1.02rem; }
.tsteps small { font-size: .84rem; }
.tsteps li.is-done { color: var(--text); }
.tsteps li.is-done .tdot { background: var(--green); border-color: var(--green); }
.tsteps li.is-done .tdot::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #04150E; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tsteps li.is-now { color: var(--text); }
.tsteps li.is-now .tdot { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(77,163,255,.18); background: var(--blue); animation: blink 1.4s infinite; }
.track-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sms-phone { position: relative; width: min(100%, 330px); justify-self: center; background: #07090B; border: 2px solid #2F3943; border-radius: 34px; padding: 14px 12px 16px; height: 460px; display: flex; flex-direction: column; box-shadow: 0 40px 80px -40px rgba(77,163,255,.35); }
.sms-notch { width: 80px; height: 18px; border-radius: 10px; background: #000; margin: 0 auto 10px; }
.sms-head { display: flex; align-items: center; gap: 10px; padding: 0 6px 10px; border-bottom: 1px solid var(--line); }
.sms-head small { display: block; color: var(--muted); font-size: .72rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #06101C; font: 700 .76rem var(--mono); }
.sms-list { flex: 1; overflow-y: auto; padding: 12px 4px 0; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.sms { align-self: flex-start; max-width: 88%; background: #1E262E; border-radius: 16px 16px 16px 4px; padding: 9px 12px; font-size: .86rem; line-height: 1.4; animation: smsIn .4s cubic-bezier(.2,.8,.2,1.2) both; }
.sms time { display: block; color: var(--muted); font-size: .68rem; margin-top: 3px; font-family: var(--mono); }
.sms-empty { color: var(--muted); font-size: .84rem; text-align: center; margin: auto 0; }
@keyframes smsIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .track { grid-template-columns: 1.2fr .8fr; align-items: start; } .track-card { padding: 28px; } }

/* Chat */
.chat { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; min-height: 200px; max-height: 440px; overflow-y: auto; padding: 4px 2px 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .94rem; animation: smsIn .35s both; }
.msg p { margin: 0 0 .4em; } .msg p:last-child { margin: 0; }
.msg ul { margin: .3em 0 .4em; padding-left: 1.2em; }
.msg-ai { align-self: flex-start; background: var(--surface2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg-ai .who { display: block; font: 700 .7rem var(--mono); color: var(--green); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.msg-me { align-self: flex-end; background: var(--blue); color: #06101C; border-top-right-radius: 4px; }
.msg-ai .btn { margin-top: 8px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chat-quick button { background: transparent; color: var(--blue); border: 1px solid rgba(77,163,255,.45); border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: .88rem; min-height: 38px; }
.chat-quick button:hover { background: rgba(77,163,255,.1); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; background: #0F1317; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.chat-form input:focus { border-color: var(--blue); outline: none; }

/* Patička */
.footer { padding: 48px 18px 40px; border-top: 1px solid var(--line); background: #0A0D10; color: #C3CDD7; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; }
.footer b { color: var(--text); font-family: var(--head); display: block; margin-bottom: 4px; }
.footer-brand { font-size: 1.3rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }

/* Omezení pohybu: konečné stavy, fáze pod sebou */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .explode-track { height: auto; }
  .explode-scene { position: relative; top: 0; height: auto; overflow: hidden; padding: 20px 0 40px; }
  .l-disp-new { display: none; }
  .stage { min-height: 560px; }
  .phases { min-height: 0; display: grid; gap: 12px; }
  .phases li { position: static; opacity: 1; transform: none; padding-left: 12px; border-left: 2px solid var(--line); }
  .parts { display: grid; gap: 8px; }
  .parts li { display: grid; opacity: 1 !important; }
  .phase-head { display: none; }
}
