/* eetecko.cz – vlastní vizuální identita: tmavý základ, limetkový akcent, grotesk.
   Světlý „papírový" režim přes data-theme="light". Dotyk na prvním místě. */
:root {
  --bg: #0a0b09;
  --bg-grad: radial-gradient(1100px 620px at 85% -15%, rgba(200, 245, 66, .10), transparent 60%), radial-gradient(900px 600px at -10% 30%, rgba(94, 240, 192, .06), transparent 60%), #0a0b09;
  --surface: #131511;
  --surface-2: #1b1e18;
  --surface-3: #252920;
  --glass: rgba(16, 18, 14, .74);
  --text: #f2f4ea;
  --muted: #959c8b;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .15);
  --field-line: rgba(255, 255, 255, .15);
  --primary: #c8f542;
  --primary-ink: #0a0b09;
  --primary-soft: rgba(200, 245, 66, .12);
  --link: #c8f542;
  --accent: #ff6a3d;
  --grad: linear-gradient(115deg, #c8f542 0%, #6ef2c4 100%);
  --ok: #3ddc84;
  --ok-soft: rgba(61, 220, 132, .13);
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, .13);
  --danger: #ff5f5f;
  --danger-soft: rgba(255, 95, 95, .13);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .04) inset;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -24px rgba(0, 0, 0, .9);
  --shadow-lg: 0 40px 90px -20px rgba(0, 0, 0, .85);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f1e9;
  --bg-grad: radial-gradient(1100px 620px at 85% -15%, rgba(170, 220, 20, .22), transparent 60%), #f3f1e9;
  --surface: #fffefa; --surface-2: #ecebe2; --surface-3: #e2e0d4; --glass: rgba(255, 254, 250, .78);
  --text: #12140f; --muted: #555a4c; --line: rgba(18, 20, 15, .12); --line-strong: rgba(18, 20, 15, .24); --field-line: rgba(18, 20, 15, .52);
  --primary: #c8f542; --primary-ink: #12140f; --primary-soft: rgba(150, 200, 0, .14); --link: #4d6b00;
  --ok: #0b6b3a; --ok-soft: #e0f4e8; --warn: #864b00; --warn-soft: #fbefd9; --danger: #b0261f; --danger-soft: #fbe3e1;
  --shadow: 0 1px 2px rgba(18, 20, 15, .05), 0 14px 32px -18px rgba(18, 20, 15, .25);
  --shadow-lg: 0 30px 70px -20px rgba(18, 20, 15, .35);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg-grad); background-attachment: fixed; color: var(--text); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--primary); color: var(--primary-ink); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.container { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 36px) 90px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }

/* ---------- značka ---------- */
.brand { font: 800 21px/1 var(--display); letter-spacing: -.04em; color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; flex: 0 0 auto; position: relative; overflow: hidden; }
.brand-mark svg { width: 20px; height: 20px; }
.brand b { color: var(--primary); font-weight: 800; }
:root[data-theme="light"] .brand b { color: var(--link); }

/* ---------- veřejná horní lišta ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--glass); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line); }
.topbar-public { background: transparent; border-color: transparent; padding: 18px clamp(16px, 4vw, 48px); transition: background .2s, border-color .2s; }
.topbar-public.scrolled { background: var(--glass); border-color: var(--line); }
.topbar-public nav { display: flex; gap: 4px; margin-left: 18px; }
.topbar-public nav a { color: var(--muted); font-weight: 550; padding: 8px 12px; border-radius: 999px; }
.topbar-public nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .topbar-public nav { display: none; } }

/* ---------- správa: boční panel, na mobilu spodní lišta ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.side .brand { padding: 4px 10px 22px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
@media (min-width: 901px) { .side { overflow-y: auto; scrollbar-width: thin; } .side-foot { padding-top: 12px; } }
.side-group { margin: 12px 12px 3px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.side-nav a svg { width: 20px; height: 20px; flex: 0 0 auto; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-nav a.on { background: var(--primary); color: var(--primary-ink); }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.side-co { padding: 12px; border-radius: 16px; background: var(--surface-2); font-size: 13px; }
.side-co strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .btn { width: 100%; }
.shell > main { min-width: 0; }
.mobile-top { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 40; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .side .brand, .side-foot, .side-group { display: none; }
  .side-nav { flex-direction: row; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .side-nav a { flex: 1 0 64px; flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 11px; border-radius: 12px; text-align: center; }
  .side-nav a.on { background: var(--primary-soft); color: var(--text); }
  .side-nav a.on svg { color: var(--primary); }
  :root[data-theme="light"] .side-nav a.on svg { color: var(--link); }
  .mobile-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .mobile-top .btn { margin-left: auto; }
  .shell > main { padding-bottom: 96px; }
}

/* ---------- komponenty ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
:is(.grid-2, .grid-4, .modes, .bento, .pricing, .kds) > .card { margin-top: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font: 600 15px/1.2 var(--font); cursor: pointer; background: var(--surface-2); color: var(--text); transition: transform .08s var(--ease), background .15s, box-shadow .15s, filter .15s; text-decoration: none !important; user-select: none; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--primary-ink); font-weight: 700; box-shadow: 0 10px 30px -12px rgba(200, 245, 66, .55); }
.btn-primary:hover { background: var(--primary); filter: brightness(1.06); }
.btn-ok { background: var(--ok); color: #06150c; font-weight: 700; }
.btn-ok:hover { background: var(--ok); filter: brightness(1.06); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger); filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
input, select, textarea { width: 100%; font: 15px var(--font); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--field-line); background: var(--surface-2); color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); vertical-align: -3px; margin-right: 6px; }
input[type="color"] { padding: 3px; height: 44px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.flash { max-width: 1200px; margin: 16px auto 0; padding: 12px 16px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); font-weight: 650; border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.shell .flash { margin: 16px clamp(16px, 3vw, 36px) 0; }
.alert { padding: 12px 16px; border-radius: 16px; background: var(--warn-soft); color: var(--warn); font-weight: 600; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.alert a { color: inherit; text-decoration: underline; }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.card:has(> table.list), .card:has(> .tscroll) { overflow-x: auto; }
.stat { font: 800 32px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 5px; vertical-align: -2px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 14px var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--primary); color: var(--primary-ink); }
.seg button[disabled] { opacity: .4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: 9px 15px; font: 600 14px var(--font); cursor: pointer; }
.chips button.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head .row { margin-left: auto; }

/* ---------- veřejný web ---------- */
.landing section { max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(24px, 5vw, 64px); padding-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 550; color: var(--muted); }
.eyebrow b { background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(40px, 4.9vw, 78px); line-height: .92; letter-spacing: -.055em; margin: 22px 0 22px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
:root[data-theme="light"] .hero h1 em { color: var(--text); background: linear-gradient(transparent 62%, var(--primary) 62%, var(--primary) 92%, transparent 92%); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 540px; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.hero-note span { font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.hero-note span::before { content: '● '; color: var(--primary); font-size: 9px; vertical-align: 2px; }

/* zařízení v hero */
.device-wrap { position: relative; padding: 20px 0 30px; }
.device { position: relative; border-radius: 30px; padding: 10px; background: #1a1c17; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.4); }
.device-screen { border-radius: 22px; overflow: hidden; background: #0c0d0b; display: grid; grid-template-columns: 58px 1fr 150px; min-height: 340px; color: #f2f4ea; }
.device .rail { padding: 10px 8px; display: grid; gap: 8px; align-content: start; }
.device .rail i { display: block; height: 48px; border-radius: 14px; background: #1b1e18; }
.device .rail i.on { background: var(--primary); }
.device .dtiles { padding: 10px 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.device .dtiles div { position: relative; height: 74px; border-radius: 16px; color: #fff; font: 700 12px/1.15 var(--font); padding: 9px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.device .dtiles div span:last-child { align-self: flex-start; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.22); }
.device .dtiles div i { position: absolute; top: 6px; left: 6px; min-width: 20px; height: 20px; border-radius: 999px; background: #fff; color: #0c0d0b; font: 800 11px/20px var(--font); text-align: center; font-style: normal; }
.device .dcart { background: #161814; margin: 8px 8px 8px 0; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.device .dcart strong { font-family: var(--display); font-size: 14px; }
.device .dcart .ln { display: flex; justify-content: space-between; gap: 6px; color: #c9cdbf; }
.device .dcart .sum { margin-top: auto; font: 800 24px/1 var(--display); letter-spacing: -.03em; }
.device .dcart .dpay { display: grid; gap: 6px; }
.device .dcart .dpay span { border-radius: 12px; padding: 9px; text-align: center; font-weight: 700; }
.receipt { position: absolute; right: -18px; bottom: -8px; width: 190px; background: #fbfaf4; color: #12140f; padding: 16px 16px 22px; font: 11px/1.45 ui-monospace, 'Cascadia Mono', Consolas, monospace; box-shadow: var(--shadow-lg); transform: rotate(4deg); z-index: 3;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 0, transparent 5px, #000 5.5px) bottom/12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 0, transparent 5px, #000 5.5px) bottom/12px 8px repeat-x; }
.receipt b { display: block; text-align: center; font: 800 14px var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.receipt .r { display: flex; justify-content: space-between; }
.receipt hr { border: 0; border-top: 1px dashed #9a9a90; margin: 7px 0; }
.receipt .pok { margin-top: 6px; padding: 5px 7px; background: #12140f; color: #c8f542; border-radius: 6px; font-size: 10px; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 11px 14px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; z-index: 2; }
.float-card .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; background: var(--primary); color: var(--primary-ink); }
.float-card.f1 { left: -22px; top: 6px; }

/* běžící pás */
.marquee { overflow: hidden; background: var(--primary); padding: 20px 0; margin-bottom: 100px; }
.marquee div { display: flex; gap: 48px; width: max-content; animation: marq 40s linear infinite; font: 700 clamp(20px, 2.4vw, 30px)/1 var(--display); letter-spacing: -.03em; color: var(--primary-ink); }
.marquee span::after { content: '✳'; color: var(--primary-ink); margin-left: 48px; font-size: .7em; vertical-align: .15em; }
@keyframes marq { to { transform: translateX(-50%); } }

.section-head { max-width: 760px; margin: 0 0 40px; }
.section-head .kicker { display: inline-block; font: 600 13px var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--primary); margin-bottom: 14px; }
:root[data-theme="light"] .section-head .kicker, :root[data-theme="light"] .kicker { color: var(--link); }   /* limetka na světlém pozadí je nečitelná */
.section-head h2 { font-size: clamp(34px, 4.6vw, 62px); letter-spacing: -.045em; line-height: .98; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 600px; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 120px; }
.mode { position: relative; display: flex; flex-direction: column; transition: transform .2s var(--ease), border-color .2s; overflow: hidden; }
.mode:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.mode .num { font: 800 13px var(--display); color: var(--muted); margin-bottom: 26px; }
.mode .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; background: var(--surface-2); }
.mode h3 { font-size: 22px; }
.mode ul { margin: 18px 0 0; padding: 16px 0 0; list-style: none; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.mode li { padding: 4px 0 4px 20px; position: relative; }
.mode li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 3px; background: var(--primary); }
.mode.hl { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.mode.hl .muted, .mode.hl ul, .mode.hl .num { color: rgba(10, 11, 9, .68); }
.mode.hl ul { border-color: rgba(10, 11, 9, .15); }
.mode.hl li::before { background: var(--primary-ink); }
.mode.hl .ico { background: rgba(10, 11, 9, .1); }
@media (max-width: 1050px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .modes { grid-template-columns: 1fr; } }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding-bottom: 120px; }
.bento .card { grid-column: span 2; margin: 0; padding: 26px; }
.bento .card.wide { grid-column: span 3; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.bento .card.wide .k { position: absolute; top: 22px; right: 24px; font-size: 64px; margin: 0; opacity: .9; }
.bento .card.wide h3 { font-size: 26px; max-width: 80%; }
.bento .card.dark { background: #12140f; color: #f2f4ea; }
:root:not([data-theme="light"]) .bento .card.dark { background: var(--primary); color: var(--primary-ink); }
:root:not([data-theme="light"]) .bento .card.dark p { color: rgba(10, 11, 9, .7); }
.bento .k { font-size: 30px; margin-bottom: 12px; }
.bento h3 { font-size: 19px; }
.bento p { color: var(--muted); margin: 0; }
.kbd-demo { display: inline-flex; gap: 6px; margin-top: 14px; }
.kbd-demo span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font: 700 15px var(--font); background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 3px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento .card, .bento .card.wide { grid-column: auto; } .hero { grid-template-columns: 1fr; } .hero h1 { font-size: clamp(40px, 9vw, 72px); } .float-card.f1 { left: 8px; } .receipt { right: 6px; width: 160px; } }
@media (max-width: 560px) { .device-screen { grid-template-columns: 1fr; } .device .rail, .device .dcart { display: none; } .receipt { display: none; } }
.eet-band { border-radius: 32px; padding: clamp(26px, 5vw, 64px); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 120px; position: relative; overflow: hidden; }
.eet-band::before { content: 'EET'; position: absolute; right: -20px; bottom: -70px; font: 800 260px/1 var(--display); letter-spacing: -.06em; color: var(--primary); opacity: .07; pointer-events: none; }
.eet-wrap { padding-bottom: 0; }
.eet-band h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -.045em; font-weight: 800; }
.eet-band p { color: var(--muted); }
.eet-band .kicker { color: var(--primary); }
.eet-band .steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; }
.eet-band .steps-list li { counter-increment: s; background: var(--surface-2); border-radius: 18px; padding: 16px 16px 16px 62px; position: relative; }
.eet-band .steps-list li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font: 800 15px var(--display); }
@media (max-width: 900px) { .eet-band { grid-template-columns: 1fr; } }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 980px; padding-bottom: 120px; }
.price-card { padding: 34px; margin: 0; display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--primary); color: var(--primary-ink); border-color: transparent; box-shadow: 0 30px 80px -30px rgba(200, 245, 66, .5); }
.price-card.featured .muted, .price-card.featured .price small { color: rgba(10, 11, 9, .65); }
.price-card.featured .checks li::before { background: var(--primary-ink); color: var(--primary); }
.price-card.featured .btn-primary { background: var(--primary-ink); color: var(--primary); box-shadow: none; }
.price { font: 800 clamp(56px, 7vw, 84px)/1 var(--display); letter-spacing: -.05em; margin: 18px 0 10px; }
.price small { font: 600 17px var(--font); color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: '✓'; flex: 0 0 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--primary-soft); color: var(--primary); }
:root[data-theme="light"] .checks li::before { color: var(--link); }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-bottom: 120px; align-items: start; }
.faq .section-head { position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { font: 700 18px var(--display); letter-spacing: -.01em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 20px; transition: transform .2s var(--ease), background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--primary); color: var(--primary-ink); }
.faq p { color: var(--muted); margin: 12px 0 0; max-width: 620px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 0; } .faq .section-head { position: static; } }
.cta-final { padding-bottom: 100px; }
.cta-box { border-radius: 36px; background: var(--primary); color: var(--primary-ink); padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: end; }
.cta-box h2 { font-size: clamp(38px, 6vw, 84px); letter-spacing: -.055em; line-height: .92; font-weight: 800; margin: 0; }
.cta-box p { margin: 16px 0 0; font-size: 18px; color: rgba(10, 11, 9, .7); }
.cta-box .btn { background: var(--primary-ink); color: var(--primary); box-shadow: none; }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; } }
.footer { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 48px); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- přihlášení a registrace ---------- */
.auth-page { min-height: 100dvh; display: grid; grid-template-columns: 1fr minmax(0, 560px); }
.auth-art { position: relative; overflow: hidden; background: var(--primary); color: var(--primary-ink); padding: 36px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; }
.auth-art .brand, .auth-art .brand b { color: var(--primary-ink); }
.auth-art .brand-mark { background: var(--primary-ink); color: var(--primary); }
.auth-art h2 { margin-top: auto; font-size: clamp(40px, 5vw, 76px); letter-spacing: -.055em; line-height: .92; font-weight: 800; }
.auth-art p { font-size: 18px; color: rgba(10, 11, 9, .7); max-width: 460px; }
.auth-art .big { position: absolute; right: -40px; top: 40px; font: 800 340px/1 var(--display); letter-spacing: -.08em; opacity: .08; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 32px clamp(16px, 4vw, 56px); }
.auth-main .wizard { margin: 0; padding: 0; max-width: 460px; width: 100%; }
.auth-main .card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.auth-main .mobile-brand { display: none; margin-bottom: 28px; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-main { justify-content: flex-start; padding-top: 24px; } .auth-main .mobile-brand { display: inline-flex; } }
.auth-page.wide { grid-template-columns: minmax(0, 420px) 1fr; }
.auth-page.wide .auth-main .wizard { max-width: 640px; }
@media (max-width: 900px) { .auth-page.wide { grid-template-columns: 1fr; } }

/* ---------- registrace ---------- */
.wizard { max-width: 640px; margin: 16px auto 60px; padding: 0 16px; }
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps span { flex: 1; height: 6px; border-radius: 6px; background: var(--line-strong); }
.steps span.on { background: var(--primary); }
.modepick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.mode-card { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 16px; cursor: pointer; margin: 0; font-weight: 500; background: var(--surface); transition: border-color .15s, background .15s, transform .1s, box-shadow .15s; }
.mode-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.mode-card:active { transform: scale(.99); }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.mode-ico { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.social { display: grid; gap: 8px; margin: 6px 0 4px; }
.btn-social { background: var(--surface); border: 1px solid var(--line-strong); justify-content: center; padding: 13px 16px; }
.szn-logo { width: 18px; height: 18px; border-radius: 5px; background: #cc0000; color: #fff; font: 800 12px/18px var(--font); text-align: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- správa ---------- */
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 170px; align-items: end; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar span { width: 100%; min-height: 3px; border-radius: 8px 8px 4px 4px; background: var(--primary); }
.bar small { font-size: 11px; color: var(--muted); margin-top: 5px; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color-pick { margin: 0; cursor: pointer; }
.color-pick input { display: none; }
.color-pick span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 11px; color: var(--muted); border: 2px solid transparent; }
.color-pick input:checked + span { border-color: var(--text); box-shadow: 0 0 0 3px var(--surface) inset; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.perm { font-weight: 550; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin: 0; }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--text); cursor: pointer; }
.cat-row.on, .cat-row:hover { background: var(--surface-2); text-decoration: none; }
.cat-row-wrap summary { list-style: none; }
.cat-row-wrap summary::-webkit-details-marker { display: none; }
.cat-edit { padding: 8px 10px; display: grid; gap: 6px; }

/* plánek stolů */
.plan-wrap { display: grid; grid-template-columns: 1fr 290px; gap: 16px; margin-top: 16px; align-items: start; }
.plan-board { position: relative; background-color: var(--surface); border: 1px solid var(--line); border-radius: 20px; touch-action: none; user-select: none;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 30%, transparent) 1px, transparent 1px); background-size: 20px 20px; }
.pos-plan { aspect-ratio: 1000 / 640; }
.plan-table { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; background: var(--primary-soft);
  border: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); color: var(--text); cursor: grab; box-shadow: var(--shadow); touch-action: none; font: inherit; padding: 0; }
.plan-table.round { border-radius: 50%; }
.plan-table.sel { border-color: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 22%, transparent); }
.plan-table strong { font-size: clamp(13px, 1.8vw, 20px); }
.plan-table small { font-size: 11px; color: var(--muted); }
.plan-table .rs { position: absolute; right: -9px; bottom: -9px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); cursor: nwse-resize; }
.plan-table.busy { background: var(--warn-soft); border-color: var(--warn); }
.plan-table.busy small { color: var(--warn); font-weight: 800; }
.pos-plan .plan-table { cursor: pointer; }
.pos-plan .plan-table:active { transform: scale(.96); }
@media (max-width: 900px) { .plan-wrap { grid-template-columns: 1fr; } }

/* ---------- POKLADNA ---------- */
body.pos { overflow: hidden; height: 100dvh; background: var(--bg); }
.pos-app { display: grid; grid-template-columns: 112px minmax(0, 1fr) 400px; grid-template-rows: 58px minmax(0, 1fr); height: 100dvh; }
.pos-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 58px; min-width: 0; }
.pos-head strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net { font-size: 12px; font-weight: 700; padding: 4px 10px 4px 22px; border-radius: 999px; position: relative; white-space: nowrap; }
.net::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: currentColor; }
.net.online { background: var(--ok-soft); color: var(--ok); }
.net.offline { background: var(--danger-soft); color: var(--danger); }
.cats { grid-row: 2; grid-column: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); scrollbar-width: none; }
.cats button { flex: 0 0 auto; position: relative; border: 0; border-radius: 16px; min-height: 76px; padding: 10px 8px; font: 750 13px/1.15 var(--font); color: var(--text); cursor: pointer; background: var(--surface-2); text-align: center; transition: transform .08s var(--ease), background .15s; overflow-wrap: anywhere; }
.cats button::before { content: ''; display: block; width: 26px; height: 6px; border-radius: 6px; margin: 0 auto 8px; background: var(--c); }
.cats button.on { background: var(--c); color: var(--ink, #fff); box-shadow: 0 10px 20px -10px var(--c); }
.cats button.on::before { background: rgba(255,255,255,.6); }
.cats button:active { transform: scale(.96); }
.pos-left { grid-row: 2; grid-column: 2; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.search { padding: 12px 14px 4px; position: relative; display: flex; gap: 8px; align-items: center; }
.search input { padding-left: 42px; background: var(--surface); border-radius: 14px; height: 48px; }
.search::before { content: ''; position: absolute; left: 30px; top: 27px; width: 18px; height: 18px; background: var(--muted); pointer-events: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.mult { flex: 0 0 auto; min-width: 54px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: var(--primary); color: var(--primary-ink); padding: 0 12px; }
.tiles { flex: 1; overflow-y: auto; padding: 10px 14px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 112px; gap: 12px; align-content: start; overscroll-behavior: contain; }
.tile { position: relative; border: 0; border-radius: 20px; padding: 14px; text-align: left; color: #fff; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; font: 700 15px/1.2 var(--font); user-select: none; overflow: hidden;
  background: var(--c, #475569); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -24px 40px -20px rgba(0,0,0,.25), 0 8px 18px -10px var(--c, #475569); transition: transform .08s var(--ease), filter .15s; }
.tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 60px at 85% -10%, rgba(255,255,255,.28), transparent 70%); pointer-events: none; }
.tile:hover { filter: brightness(1.05); }
.tile:active { transform: scale(.95); filter: brightness(.95); }
.tile .p { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile .stockwarn { position: absolute; top: 9px; right: 9px; background: rgba(0,0,0,.35); border-radius: 8px; padding: 2px 7px; font-size: 11px; }
.tile .fav { position: absolute; top: 8px; right: 10px; font-size: 14px; opacity: .9; }
.tile.add { background: transparent; color: var(--muted); border: 2px dashed var(--line-strong); box-shadow: none; align-items: center; justify-content: center; text-align: center; }
.tile.add::after { display: none; }
.pos-right { grid-row: 2; grid-column: 3; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); min-height: 0; }
.cart-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cart-head strong { font-size: 16px; }
.cart { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.cart-line:active { background: var(--surface-2); }
.cart-line.sel { background: var(--primary-soft); box-shadow: inset 4px 0 0 var(--primary); }
.cart-line .n { font-weight: 650; }
.cart-line .t { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line .q { color: var(--muted); font-size: 13px; }
.cart-line .q s { opacity: .7; }
.cart-line.sent .n::after { content: ' ✓'; color: var(--ok); }
.cart-line.disc-line { background: var(--ok-soft); cursor: default; }
.cart-line.disc-line .n, .cart-line.disc-line .t { color: var(--ok); }
.cart-empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-ico { font-size: 40px; margin-bottom: 8px; opacity: .7; }
.cart-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cart-tools .btn { padding: 8px 4px; font-size: 13px; min-height: 46px; border-radius: 12px; }
.cart-tools .btn[data-tool="minus"], .cart-tools .btn[data-tool="plus"] { font-size: 22px; font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 16px 2px; }
.cart-total .sum { font-size: 36px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px 12px; }
.pay .btn { padding: 18px 10px; font-size: 18px; border-radius: 16px; min-height: 62px; }
#pay-table .btn { min-height: 48px; padding: 12px; font-size: 15px; }
.done { padding: 30px 20px; text-align: center; animation: fade .3s var(--ease); }
.done-check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; background: var(--ok); color: #06150c; display: grid; place-items: center; font-size: 32px; font-weight: 800; box-shadow: 0 12px 28px -10px var(--ok); }
.done-sum { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0; }
.done-change { font-size: 20px; padding: 10px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); display: inline-block; }
.done-change strong { font-size: 26px; }
.done-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.done-actions .btn-primary { grid-column: 1 / -1; padding: 16px; font-size: 17px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.cart-bar { display: none; }

@media (max-width: 1100px) { .pos-app { grid-template-columns: 96px minmax(0, 1fr) 340px; } .cats button { min-height: 64px; font-size: 12px; } }
/* mobil a úzký tablet: kategorie nahoře, účet jako vysouvací panel */
@media (max-width: 820px) {
  .pos-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 54px auto minmax(0, 1fr); }
  .pos-head { min-height: 54px; gap: 8px; }
  .pos-head .muted.small, #h-user { display: none; }
  .cats { grid-row: 2; grid-column: 1; flex-direction: row; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cats button { min-height: 0; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
  .cats button::before { display: none; }
  .pos-left { grid-row: 3; grid-column: 1; padding-bottom: 78px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); grid-auto-rows: 96px; gap: 8px; padding: 6px 10px 16px; }
  .tile { border-radius: 16px; padding: 11px; font-size: 14px; }
  .search { padding: 8px 10px 2px; }
  .search::before { left: 24px; top: 23px; }
  .pos-right { position: fixed; left: 0; right: 0; bottom: 0; top: 54px; z-index: 40; border: 0; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); transform: translateY(calc(100% - 78px)); transition: transform .3s var(--ease); }
  .pos-right.open { transform: translateY(0); }
  .cart-bar { display: flex; position: relative; align-items: center; gap: 12px; min-height: 78px; padding: 14px 16px 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
  .cart-bar::before { content: ''; position: absolute; top: 6px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 5px; background: var(--line-strong); }
  .cart-bar .cnt { background: var(--primary); color: var(--primary-ink); border-radius: 999px; min-width: 30px; height: 30px; display: grid; place-items: center; font-weight: 800; font-size: 14px; padding: 0 9px; }
  .cart-bar .tot { margin-left: auto; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
}

/* modální okna */
.modal-back { position: fixed; inset: 0; background: rgba(5, 8, 20, .55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal-back.open { display: flex; animation: fade .18s var(--ease); }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; width: min(540px, 100%); max-height: 92dvh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal.modal-wide { width: min(1000px, 100%); }
.modal h2 { margin-bottom: 14px; }
@media (max-width: 600px) { .modal-back { align-items: flex-end; padding: 0; } .modal { border-radius: 24px 24px 0 0; max-height: 94dvh; } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.keypad button { padding: 18px 0; font: 700 24px var(--font); border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.keypad button:active { background: var(--surface-3); transform: scale(.97); }
.quick-cash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-cash .btn { min-height: 54px; font-size: 16px; }
.change { font-size: 32px; font-weight: 800; color: var(--ok); font-variant-numeric: tabular-nums; }
.kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; font: 600 12px var(--font); text-align: center; color: var(--muted); background: var(--surface); }

/* stoly bez plánku */
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.table-btn { border: 2px solid var(--line-strong); border-radius: 16px; padding: 16px 10px; background: var(--surface); text-align: center; cursor: pointer; font: 750 18px var(--font); color: var(--text); }
.table-btn.busy { border-color: var(--warn); background: var(--warn-soft); }
.table-btn small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }

/* kuchyně */
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; padding: 16px; }
.ticket { background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.ticket header { padding: 12px 16px; background: var(--surface-2); display: flex; justify-content: space-between; font-weight: 800; }
.ticket.late header { background: var(--danger-soft); color: var(--danger); }
.ticket ul { list-style: none; margin: 0; padding: 6px 0; }
.ticket li { padding: 10px 16px; display: flex; gap: 10px; align-items: center; font-size: 18px; font-weight: 650; cursor: pointer; }
.ticket li.ready { text-decoration: line-through; color: var(--muted); }
.ticket li .qty { font-weight: 800; min-width: 38px; }
.kds-body { min-height: 100dvh; }

/* účtenka pro tisk */
#print-area { display: none; }
@media print {
  /* tmavé pozadí pokladny (body.pos, color-scheme: dark) se se zapnutou „Grafikou na pozadí“ tisklo – termotiskárna pak vyjela celá černá */
  :root, html, body, body.pos { background: #fff !important; color-scheme: light !important; }
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; background: transparent !important; color: #000 !important; text-shadow: none !important; box-shadow: none !important; print-color-adjust: economy; -webkit-print-color-adjust: economy; }
  #print-area { display: block; position: absolute; left: 0; top: 0; width: 72mm; font: 12px/1.35 'Courier New', monospace; color: #000; }
  #print-area .c { text-align: center; }
  #print-area .r { display: flex; justify-content: space-between; }
  #print-area hr { border: 0; border-top: 1px dashed #000; }
  @page { margin: 2mm; size: 80mm auto; }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 10px); background: var(--text); color: var(--bg); padding: 13px 20px; border-radius: 14px; font-weight: 700; z-index: 70; opacity: 0; transition: opacity .2s, transform .2s var(--ease); pointer-events: none; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 820px) { .toast { bottom: 96px; } }

/* dotyk: větší cíle */
@media (pointer: coarse) {
  .btn { min-height: 48px; }
  .btn-sm { min-height: 42px; }
  input, select { min-height: 48px; font-size: 16px; }
  .tabs a { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* tarif a logo */
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 14px; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.logo-prev { padding: 16px; border-radius: 16px; background: #fff; display: grid; place-items: center; }
.logo-prev img { max-width: 220px; max-height: 90px; }

/* zkušební provozovna */
.demo-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px clamp(16px, 3vw, 36px); background: color-mix(in srgb, var(--warn) 16%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); font-size: 14px; }
.demo-banner .btn { margin-left: auto; }
.demo-pick { display: grid; gap: 10px; margin-top: 18px; }
.demo-pick form { margin: 0; }
.demo-card { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, transform .1s, background .15s; }
.demo-card:hover { border-color: var(--primary); background: var(--surface-2); }
.demo-card:active { transform: scale(.99); }
.demo-card .mode-ico { font-size: 34px; margin: 0; }
.demo-card .dc-t { display: grid; gap: 3px; flex: 1; }
.demo-card .dc-t strong { font: 700 17px var(--display); }
.demo-card .arr { font-size: 22px; color: var(--primary); }
.mode-try { margin-top: auto; padding-top: 18px; }
.mode.hl .mode-try .btn { background: var(--primary-ink); color: var(--primary); }
.quick-box { padding: 18px; border-radius: 20px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); margin: 6px 0 22px; }
.quick-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-switch { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; }
.demo-switch label { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.demo-switch select { height: 34px; padding: 0 30px 0 10px; font-size: 13px; width: auto; }
.demo-switch + .btn { margin-left: 0; }

/* právní stránky a návody */
.legal-page { max-width: 820px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 48px; line-height: 1.65; }
.legal-page h1 { font: 800 clamp(28px, 4vw, 40px)/1.1 var(--display); margin-bottom: 6px; }
.legal-page h2 { font: 750 21px/1.25 var(--display); margin: 32px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal-page p, .legal-page li { color: var(--text); }
.legal-sum { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 18px 0; }
.legal-sum ul { margin: 8px 0 0; padding-left: 20px; }
.legal-table { width: 100%; font-size: 14px; }
.legal-table td, .legal-table th { vertical-align: top; }
/* manuál: obsah ve skupinách (sloupce), vyhledávání, nadpisy skupin – assets/js/navody.js */
.guide-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 22px; margin: 16px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.guide-toc .toc-group-t { margin: 0 0 6px; padding: 0; border: 0; font: 750 13px/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.guide-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.guide-toc a { display: block; padding: 3px 0; color: var(--text); text-decoration: none; font-weight: 550; font-size: 14.5px; line-height: 1.3; }
.guide-toc a:hover { color: var(--primary); text-decoration: underline; }
:root[data-theme="light"] .guide-toc a:hover { color: var(--link); }
.guide-toc li[hidden], .guide-toc .toc-group[hidden] { display: none; }
.guide-search { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; }
.guide-search input { flex: 1; min-width: 220px; min-height: 48px; padding: 0 16px; border-radius: 14px; font-size: 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm, none); }
.guide-group > .guide-group-t { margin: 40px 0 -18px; font: 750 13px/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.guide-group[hidden], .guides section.guide[hidden] { display: none; }
.guides mark { background: var(--primary-soft, rgba(200,245,66,.35)); color: inherit; border-radius: 3px; padding: 0 1px; }
.guides ol { padding-left: 22px; display: grid; gap: 8px; }
.guides section { scroll-margin-top: 80px; }
@media (max-width: 600px) { .legal-table thead { display: none; } .legal-table tr { display: grid; padding: 8px 0; } }
.pay-box { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.pay-box img { background: #fff; border-radius: 12px; padding: 6px; flex: 0 0 auto; }
.pay-box > div { flex: 1; min-width: 220px; }
.pay-tbl { margin: 10px 0 6px; font-size: 14px; }
.pay-tbl td { padding: 3px 12px 3px 0; }
/* logo s doménou */
.brand .brand-tld { font-style: normal; font-weight: 700; color: var(--muted); letter-spacing: -.02em; }
/* manuál: co je podporováno na kterém zařízení */
.guide ol li:has(.support-table) { list-style: none; margin-left: -1.4em; }
.support-table { display: grid; gap: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; margin: 6px 0 4px; font-size: 14px; }
.support-table .st-row { display: grid; grid-template-columns: 1.05fr 1.4fr 1fr .8fr .95fr .65fr; }
.support-table .st-row > span { padding: 10px 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.support-table .st-row > span:first-child { border-left: 0; }
.support-table .st-head > span { border-top: 0; font-weight: 700; background: var(--surface-2); font-size: 13px; }
.support-table .ok { color: var(--ok, #16a34a); }
.support-table .mid { color: var(--warn, #b45309); }
.support-table .no { color: var(--muted); }
@media (max-width: 760px) {
  .support-table .st-head { display: none; }
  .support-table .st-row { grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
  .support-table .st-row:first-of-type { border-top: 0; }
  .support-table .st-row > span { border-left: 0; }
  .support-table .st-row > span:nth-child(2)::before { content: 'Termotiskárna: '; color: var(--muted); }
  .support-table .st-row > span:nth-child(3)::before { content: 'Běžná tiskárna: '; color: var(--muted); }
  .support-table .st-row > span:nth-child(4)::before { content: 'Zásuvka: '; color: var(--muted); }
  .support-table .st-row > span:nth-child(5)::before { content: 'Zákaznický displej: '; color: var(--muted); }
  .support-table .st-row > span:nth-child(6)::before { content: 'E-mail / odkaz: '; color: var(--muted); }
}
/* titulka 2026-10-02: skutečná obrazovka pokladny, co potřebujete, proč eetecko */
.device-real { padding: 8px; border-radius: 22px; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.device-real img { display: block; width: 100%; height: auto; border-radius: 15px; }
@media (max-width: 900px) { .device-real { transform: none; } }
@media (prefers-reduced-motion: reduce) { .device-real { transform: none; } }
.receipt .c { text-align: center; }
.why-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 56px; }
.why-strip > div { background: var(--surface); padding: 20px 22px; display: grid; gap: 6px; }
.why-strip strong { font: 800 17px/1.2 var(--display); letter-spacing: -.02em; }
.why-strip span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 1000px) { .why-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-strip { grid-template-columns: 1fr; } }
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.needs .card { margin: 0; padding: 24px; }
.needs .k { font-size: 34px; margin-bottom: 12px; }
.needs h3 { margin: 0 0 8px; font-size: 19px; }
.needs p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.needs p strong { color: var(--text); }
.needs-more { margin: 18px 0 120px; color: var(--muted); }
@media (max-width: 1050px) { .needs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .needs { grid-template-columns: 1fr; } .needs-more { margin-bottom: 80px; } }
.why-wrap { padding-top: 0 !important; padding-bottom: 0 !important; }
@media (min-width: 901px) {
  .landing .hero { grid-template-columns: .9fr 1.25fr; }
  .landing .device-wrap { margin-right: calc(-1 * clamp(0px, 4vw, 60px)); }
}
.landing .receipt { width: 158px; right: auto; left: -34px; bottom: -34px; font-size: 9.5px; padding: 12px 12px 16px; transform: rotate(-4deg); }
.landing .receipt b { font-size: 12px; }
@media (max-width: 900px) { .landing .receipt { display: none; } }
/* registrace: shrnutí zpracování osobních údajů */
.gdpr-info { margin: 0 0 16px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.gdpr-info summary { cursor: pointer; font-weight: 600; color: var(--text); }
.gdpr-info p { margin: 8px 0 0; line-height: 1.5; }
/* lišta o cookies */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); font-size: 14px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; color: var(--muted); line-height: 1.45; }
.cookie-bar p strong { color: var(--text); }
.cookie-bar .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; } }
/* manuál: cesty v menu, úvod a tipy */
.guides .path { display: inline; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: .95em; white-space: normal; }
.guides .guide-intro { color: var(--muted); margin: -4px 0 10px; }
.guides .guide-tip { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft, rgba(200,245,66,.12)); font-size: .95em; }

/* mobilní menu webu (pod 860 px): tlačítko ☰ a rozbalovací panel. Bez animací – funguje i s prefers-reduced-motion. */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 4px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--glass); color: var(--text); cursor: pointer; order: 3; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.topbar-public .mobile-nav { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .topbar-public .mobile-nav:not([hidden]) { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 12px; right: 12px; margin: 0; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); }
  .topbar-public .mobile-nav a { color: var(--text); font-weight: 600; font-size: 17px; padding: 12px 14px; border-radius: 12px; }
  .topbar-public .mobile-nav a:hover { background: var(--surface-2); text-decoration: none; }
  .topbar-public .mobile-nav a.btn { justify-content: center; margin-top: 6px; color: var(--primary-ink); }
  .topbar-public:has(.mobile-nav:not([hidden])) { background: var(--glass); border-color: var(--line); }
}
@media (max-width: 480px) { .topbar-public .topbar-right { display: none; } .nav-toggle { margin-left: auto; } }

/* srovnání verzí Free × Premium */
#cenik .pricing { padding-bottom: 28px; }
.compare-wrap { max-width: 980px; padding-bottom: 120px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare caption { text-align: left; font: 700 22px var(--display); padding: 0 0 12px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font-weight: 700; color: var(--text); border-bottom-color: var(--line-strong); }
.compare thead th small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); }
.compare td { color: var(--muted); white-space: nowrap; }
.compare .c-yes { color: var(--primary); font-weight: 800; }
:root[data-theme="light"] .compare .c-yes { color: var(--ok); }
.compare .c-no { color: var(--muted); }
@media (max-width: 560px) { .compare { font-size: 14px; } .compare th, .compare td { padding: 10px 8px; } .compare td { white-space: normal; } }
.footer-op { flex-basis: 100%; font-size: 13px; }
.side-switch select{width:100%;margin-top:6px}
/* čtečka čárových kódů ve skladu: naposledy načtený řádek */
tr.scan-hit td { background: var(--ok-soft); }
.scan-field input { font-size: 18px; }
/* titulka: karta přes celou šířku mřížky funkcí (čtečka čárových kódů) */
.bento .card.full { grid-column: 1 / -1; }
.bento .card.full p { max-width: 760px; }

/* ── QA mobil 2026-10-05: responzivita veřejného webu a správy ─────────────── */
/* titulka: zkosená obrazovka v hero přesahovala vpravo → stránka šla posunout do strany (od 901 px) */
body.landing > main { overflow-x: clip; }
.eyebrow b { white-space: nowrap; }
/* kotvy (/#cenik, /navody#…) nezajedou pod lepící horní lištu */
html:has(.topbar-public) { scroll-padding-top: 88px; }
/* podstránky webu: lišta při posouvání čitelná i bez skriptu z titulky */
body:not(.landing) .topbar-public { background: var(--glass); border-color: var(--line); }
/* rozbalené menu na telefonu na šířku: delší než obrazovka → posouvat uvnitř */
@media (max-width: 860px) { .topbar-public .mobile-nav:not([hidden]) { max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; } }
/* manuál: obsah na telefonu ve třech řádcích posouvaných do strany (40 odkazů pod sebou zabíralo tři obrazovky) */
@media (max-width: 600px) {
  .guide-toc { grid-template-columns: 1fr; padding: 14px 16px; }
}
/* tabulky ve správě v obalu .scroll-x (sklad, doplňky, denní menu…) se na mobilu posouvají uvnitř, ne celá stránka */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* produkty: kategorie a seznam vedle sebe jen na širší obrazovce (pevných 300 px přetékalo z telefonu) */
@media (max-width: 760px) { .grid-2[style*="300px 1fr"] { grid-template-columns: minmax(0, 1fr) !important; } }
/* iOS přiblíží stránku u pole s písmem pod 16 px – platí i pro textarea */
@media (pointer: coarse) { textarea { font-size: 16px; } }
/* úzký telefon: horní lišta správy se nevešla (tlačítko Odhlásit přetékalo) */
@media (max-width: 380px) { .mobile-top { gap: 8px; padding: 10px 12px; } .mobile-top .brand { font-size: 19px; gap: 8px; } .mobile-top .brand-tld { display: none; } }
/* bezpečné okraje (viewport-fit=cover): výřez displeje na šířku, domovský proužek iPhonu */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.cookie-bar { bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) { .cookie-bar { bottom: calc(10px + env(safe-area-inset-bottom)); padding: 12px 14px; gap: 10px; } }
@media (max-width: 900px) {
  .side { padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
  .shell > main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) { .modal { padding-bottom: calc(24px + env(safe-area-inset-bottom)); } }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (max-width: 820px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }
/* tisk: veřejné stránky (manuál, podmínky) a správa se tiskly prázdné – pravidlo pro účtenku skrývalo vše */
@media print {
  body:has(> .topbar-public) *, body:has(> .shell) * { visibility: visible; }
  :root:has(body > .topbar-public), :root:has(body > .shell) { --bg: #fff; --bg-grad: #fff; --surface: #fff; --surface-2: #f1f1ec; --text: #111; --muted: #444; --line: #ccc; --line-strong: #999; --link: #111; --primary-soft: #eef5d8; color-scheme: light; }
  body:has(> .topbar-public), body:has(> .shell) { background: #fff; color: #111; padding: 0; }
  .topbar-public, .cookie-bar, .footer, .side, .mobile-top, .demo-banner, .guide-toc, .nav-toggle { display: none !important; }
  .shell { display: block; }
  .legal-page { max-width: none; padding: 0; }
  .legal-page a { text-decoration: underline; }
  .guides section, .support-table .st-row { break-inside: avoid; }
  body:has(> .topbar-public), body:has(> .shell) { page: eet-doc; }
}
@page eet-doc { size: A4; margin: 14mm;
}
@media (max-width: 420px) { .demo-banner .demo-switch .db-long { display: none; } }
/* Lístky a QR: formulář v úzkém sloupci přetékal z telefonu */
.mc-wrap > * { min-width: 0; }
.mc-wrap .mc-tpl { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
/* patička na telefonu: větší dotykové plochy odkazů */
@media (max-width: 600px) { .footer { gap: 2px 18px; } .footer a { padding: 9px 0; } .footer .brand { padding: 0; margin-bottom: 6px; } }
/* viditelný fokus z klávesnice (výchozí kroužek prohlížeče na tmavém pozadí skoro nebyl vidět) */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
:root[data-theme="light"] :is(a, button, summary, .btn):focus-visible { outline-color: var(--text); }

/* ── Telefon a tablet, 2. kolo 2026-10-05: rytmus sekcí, hero, mřížky, ceník, srovnávací tabulka, FAQ, patička, manuál ──
   Jen veřejné stránky (.landing, .legal, .topbar-public, .auth-page, .footer) – správa (.shell) a pokladna (body.pos) beze změny.
   Zlomy: telefon ≤ 600 px, tablet 601–900 px (na výšku), telefon na šířku = výška ≤ 500 px. */
:root { --hdr: 80px; }
.landing { --sec: 120px; }
@media (max-width: 900px) { .landing { --sec: 96px; } }
@media (max-width: 600px) { :root { --hdr: 64px; } .landing { --sec: 72px; } }
@media (max-height: 500px) and (orientation: landscape) { :root { --hdr: 60px; } .landing { --sec: 64px; } }
html:has(.topbar-public) { scroll-padding-top: calc(var(--hdr) + 8px); }

/* horní lišta: na telefonu nízká, na šířku ještě nižší */
@media (pointer: coarse) { .topbar-public .btn-sm, .landing .btn-sm, .legal .btn-sm { min-height: 44px; } .topbar-public .brand { min-height: 44px; } }
@media (max-width: 600px) { .topbar-public { padding-top: 10px; padding-bottom: 10px; gap: 10px; } .topbar-public .brand { font-size: 19px; gap: 8px; } }
@media (max-height: 500px) and (orientation: landscape) { .topbar-public { padding-top: 8px; padding-bottom: 8px; } }

/* mobilní menu jako celoobrazovkový panel: velké odkazy, tlačítka dole, stránka pod ním se neposouvá */
@media (max-width: 860px) {
  .topbar-public .mobile-nav:not([hidden]) { top: 100%; left: 0; right: 0; height: calc(100dvh - 100%); max-height: none; margin: 0; gap: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--bg); box-shadow: none; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px calc(clamp(16px, 4vw, 48px) + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(clamp(16px, 4vw, 48px) + env(safe-area-inset-left)); }
  .topbar-public .mobile-nav a:not(.btn) { font: 750 clamp(24px, 6.4vw, 30px)/1.15 var(--display); letter-spacing: -.025em; padding: 15px 2px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .topbar-public .mobile-nav a:not(.btn):hover { background: none; color: var(--primary); }
  .topbar-public .mobile-nav a[href="/prihlaseni"] { font: 650 17px/1.2 var(--font); letter-spacing: 0; text-align: center; padding: 15px; margin-bottom: 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .topbar-public .mobile-nav a.btn { min-height: 54px; font-size: 17px; margin-top: 0; }
  .topbar-public .mobile-nav > a:nth-child(6) { margin-top: auto; }
  .topbar-public .mobile-nav > a:nth-child(5) { margin-bottom: 28px; }
  html:has(.topbar-public .mobile-nav:not([hidden])) { overflow: hidden; }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 860px) {
  .topbar-public .mobile-nav a:not(.btn) { font-size: 19px; padding: 8px 2px; }
  .topbar-public .mobile-nav > a:nth-child(5) { margin-bottom: 12px; }
  .topbar-public .mobile-nav a[href="/prihlaseni"] { padding: 11px; margin-bottom: 8px; }
  .topbar-public .mobile-nav a.btn { min-height: 46px; }
}

/* rytmus sekcí titulky: jedna škála místo pevných 100–120 px */
.landing .marquee { margin-bottom: var(--sec); }
.landing :is(.modes, .bento, .faq, .compare-wrap) { padding-bottom: var(--sec); }
.landing .eet-band { margin-bottom: var(--sec); }
.landing .needs-more { margin-bottom: var(--sec); }
.landing .cta-final { padding-bottom: calc(var(--sec) * .8); }
.landing .why-strip { margin-bottom: calc(var(--sec) * .5); }
@media (max-width: 600px) {
  .section-head { margin-bottom: 26px; }
  .section-head .kicker { margin-bottom: 10px; font-size: 12px; }
  .section-head h2 { font-size: clamp(32px, 10vw, 44px); line-height: 1; }
  .section-head p { font-size: 16.5px; line-height: 1.55; }
  .marquee { padding: 14px 0; }
  .marquee div { font-size: 20px; gap: 32px; }
  .marquee span::after { margin-left: 32px; }
}
@media (min-width: 601px) and (max-width: 900px) { .section-head h2 { font-size: clamp(40px, 6.4vw, 54px); } .section-head p { font-size: 17px; } }

/* hero na telefonu: menší nadpis, tlačítka pod sebou přes celou šířku, výhody jako klidný seznam */
@media (max-width: 600px) {
  .landing .hero { padding-top: 14px; padding-bottom: 32px; gap: 28px; }
  .eyebrow { font-size: 12.5px; }
  .hero h1 { font-size: clamp(36px, 11.6vw, 54px); line-height: .95; letter-spacing: -.05em; margin: 18px 0 16px; }
  .hero p.lead { font-size: 17px; line-height: 1.5; }
  .hero-cta { flex-direction: column; gap: 10px; margin-top: 24px; }
  .hero-cta .btn { width: 100%; padding: 15px 18px; font-size: 16px; }
  .hero-note { gap: 6px 16px; margin-top: 22px; }
  .hero-note span { padding: 0; background: none; border: 0; border-radius: 0; font-size: 13.5px; line-height: 1.35; }
  .landing .device-wrap { padding: 0; }
  .landing .device-real { padding: 5px; border-radius: 16px; }
  .landing .device-real img { border-radius: 12px; }
}
@media (max-width: 360px) { .hero-cta .btn { padding: 14px 12px; font-size: 15px; gap: 6px; } .eyebrow { font-size: 12px; } }
/* telefon na šířku: text a obrazovka vedle sebe, nadpis i tlačítka v první obrazovce */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1000px) {
  .landing .hero { grid-template-columns: 1.05fr .95fr; gap: 24px; padding-top: 10px; padding-bottom: 36px; }
  .eyebrow { font-size: 12px; padding-top: 4px; padding-bottom: 4px; }
  .hero h1 { font-size: clamp(28px, 4.6vw, 40px); line-height: .95; margin: 10px 0 8px; }
  .hero p.lead { font-size: 14.5px; line-height: 1.45; }
  .hero-cta { margin-top: 16px; gap: 8px; }
  .hero-cta .btn-lg { padding: 12px 18px; font-size: 15px; min-height: 46px; }
  .hero-note { margin-top: 14px; gap: 6px; }
  .hero-note span { font-size: 12px; padding: 4px 10px; }
  .landing .device-wrap { padding: 0; }
  .landing .receipt { display: none; }
}

/* text na telefonu aspoň 16 px, české dělení slov v úzkých sloupcích */
@media (max-width: 600px) {
  body:has(> .topbar-public), body:has(.auth-page) { font-size: 16px; }
  .needs p { font-size: 16px; }
  .why-strip span { font-size: 15px; }
  .mode ul { font-size: 15px; }
  :is(.landing, .legal) :is(p, li), .auth-page :is(p, .hint) { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
  :is(.landing, .legal) :is(h1, h2, h3) { overflow-wrap: break-word; }
}

/* režimy: na telefonu kompaktnější karta; na tabletu poslední lichá karta přes obě kolony (dřív osiřelá) */
@media (max-width: 600px) {
  .landing :is(.modes, .bento, .needs) > .card { padding: 22px 20px; }
  .mode .num { margin-bottom: 14px; }
  .mode .ico { width: 48px; height: 48px; font-size: 24px; border-radius: 15px; margin-bottom: 14px; }
  .mode h3 { font-size: 21px; }
}
@media (min-width: 601px) and (max-width: 1050px) {
  .modes > .mode:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .modes > .mode:last-child:nth-child(odd) ul { columns: 2; column-gap: 28px; }
  .modes > .mode:last-child:nth-child(odd) li { break-inside: avoid; }
}

/* funkce (bento): desktop bez děr (dense), tablet 2 kolony, telefon 1; ikony širokých karet už nepřekrývají text */
@media (min-width: 901px) { .bento { grid-auto-flow: row dense; } .bento .card.wide { padding-top: 104px; } }
@media (max-width: 900px) {
  .bento .card.wide { min-height: 0; justify-content: flex-start; }
  .bento .card.wide .k { position: static; font-size: 34px; margin: 0 0 12px; }
  .bento .card.wide h3 { font-size: 21px; max-width: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .card.full { grid-column: 1 / -1; }
  .bento:has(> .card.full) > .card:last-child:nth-child(even), .bento:not(:has(> .card.full)) > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* pás EET */
@media (max-width: 600px) {
  .eet-band { border-radius: 24px; padding: 28px 20px; gap: 26px; }
  .eet-band::before { font-size: 170px; bottom: -36px; }
  .eet-band .steps-list li { padding: 14px 14px 14px 56px; }
  .eet-band .steps-list li::before { left: 13px; }
}

/* ceník: telefon pod sebou, užší tablet (601–699) v čitelné šířce, tablet od 700 px tři kolony */
@media (max-width: 600px) {
  .price-card { padding: 26px 22px; }
  body.landing #cenik .pricing.p3 .price { font-size: 50px; }
}
@media (min-width: 601px) and (max-width: 699px) { body.landing #cenik .pricing.p3 { max-width: 560px; } }
@media (min-width: 700px) and (max-width: 900px) {
  body.landing #cenik .pricing.p3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  #cenik .price-card { padding: 22px 18px; }
  body.landing #cenik .pricing.p3 .price { font-size: clamp(32px, 4.8vw, 42px); margin-top: 12px; }
  #cenik .price small { display: block; font-size: 14px; margin-top: 6px; }
  #cenik .price-card .checks { font-size: 14px; gap: 8px; }
  #cenik .price-card .btn-lg { padding: 13px 10px; font-size: 15px; }
}

/* srovnání verzí na telefonu: řádek = název funkce přes celou šířku, pod ním tři hodnoty; hlavička tarifů se drží nahoře */
@media (max-width: 600px) {
  .landing .compare-wrap { overflow: visible; }
  .compare, .compare caption { display: block; }
  .compare thead, .compare tbody { display: contents; }
  .compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .compare th, .compare td { border-bottom: 0; }
  .compare thead tr { position: sticky; top: var(--hdr); z-index: 3; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line-strong); }
  .compare thead th:first-child { display: none; }
  .compare thead th { padding: 10px 4px; font-size: 14px; line-height: 1.2; }
  .compare tbody th { grid-column: 1 / -1; padding: 14px 2px 0; font-size: 15px; font-weight: 600; }
  .compare td { padding: 6px 4px 14px; font-size: 14px; }
  .compare :is(.c-yes, .c-no) { font-size: 18px; }
}
/* tabulky, které se posouvají do strany: stín na okraji naznačí, že pokračují */
@media (max-width: 900px) {
  .compare-wrap, .legal-page .tscroll {
    background: linear-gradient(90deg, var(--bg) 30%, transparent) left / 32px 100% no-repeat local, linear-gradient(270deg, var(--bg) 30%, transparent) right / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(200, 245, 66, .22), transparent) left / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(200, 245, 66, .22), transparent) right / 12px 100% no-repeat scroll;
  }
}

/* FAQ: klepací plocha je celý řádek otázky (dřív jen 32 px textu) */
.faq details { padding: 0; }
.faq summary { padding: 18px 0; align-items: center; min-height: 60px; }
.faq details p { margin: -4px 0 20px; }
@media (max-width: 600px) { .faq summary { font-size: 17px; padding: 15px 0; min-height: 56px; } .faq summary::after { flex-basis: 30px; height: 30px; } }

/* závěrečná výzva */
@media (max-width: 600px) {
  .cta-box { border-radius: 26px; padding: 32px 22px 24px; }
  .cta-box h2 { font-size: clamp(36px, 11vw, 48px); }
  .cta-box p { font-size: 16px; }
}
@media (min-width: 601px) and (max-width: 760px) { .cta-box > div:last-child { grid-auto-flow: column; justify-content: start; } }

/* patička na telefonu: značka a rok nahoře, odkazy ve dvou sloupcích, kontakt a provozovatel přes celou šířku */
@media (max-width: 600px) {
  .footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: center; padding-top: 26px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .footer .brand { margin-bottom: 12px; }
  .footer > span:nth-child(2) { justify-self: end; margin-bottom: 12px; }
  .footer .spacer { display: none; }
  .footer a:not(.brand) { padding: 11px 0; min-height: 44px; display: flex; align-items: center; line-height: 1.3; }
  .footer a[href^="mailto:"], .footer .footer-op { grid-column: 1 / -1; }
  .footer .footer-op { margin-top: 8px; }
}
@media (min-width: 601px) and (pointer: coarse) { .footer { gap: 0 20px; } .footer a:not(.brand) { padding: 11px 0; } }

/* přihlášení, registrace, zkušební provozovna: na tabletu formulář uprostřed místo nalepení vlevo */
@media (min-width: 601px) and (max-width: 900px) {
  .auth-main { padding-top: 32px; padding-bottom: 56px; }
  .auth-main .wizard { margin-inline: auto; }
  .auth-main .mobile-brand { margin-bottom: 40px; }
}
@media (max-width: 600px) { .auth-main { padding-bottom: calc(40px + env(safe-area-inset-bottom)); } .demo-card { padding: 16px 14px; gap: 14px; } }

/* právní stránky a manuál: na tabletu a telefonu 16 px a řádek do ~80 znaků; dlouhé cesty a kód se zalomí */
@media (max-width: 1024px) { .legal-page { font-size: 16px; } }
@media (min-width: 601px) and (max-width: 1024px) { .legal-page { max-width: 760px; } }
@media (max-width: 600px) { .legal-page { padding-top: 22px; } .legal-page h2 { font-size: 20px; margin-top: 28px; } }
.legal-page :is(p, li) { overflow-wrap: break-word; }
.legal-page code { overflow-wrap: anywhere; }

/* manuál: tlačítko „Obsah manuálu“ (místo 50 štítků), plovoucí Obsah / Nahoru a obsah jako spodní panel (assets/js/navody.js) */
.guide-toc-btn { display: none; }
@media (max-width: 900px) {
  .guides.toc-js .guide-toc { display: none; }
  .guides.toc-js .guide-toc-btn { display: flex; width: 100%; justify-content: flex-start; margin: 18px 0 6px; padding: 14px 18px; border-radius: 16px; background: var(--surface); }
}
.guide-toc-btn .muted { font-weight: 500; }
.guide-fab { position: fixed; z-index: 25; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.guide-fab[hidden], body:has(#cookie-bar:not([hidden])) .guide-fab { display: none; }
.guide-fab button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; font: 650 15px var(--font); background: var(--surface-2); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.guide-fab button.p { background: var(--primary); color: var(--primary-ink); }
dialog.toc-sheet { width: min(620px, 100%); max-width: 100%; max-height: min(86dvh, 860px); margin: auto auto 0; padding: 0; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.toc-sheet[open] { display: flex; flex-direction: column; }
dialog.toc-sheet::backdrop { background: rgba(5, 6, 4, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (min-width: 601px) { dialog.toc-sheet { margin: auto; border-bottom: 1px solid var(--line-strong); border-radius: 24px; } }
.toc-sheet .ts-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.toc-sheet .ts-head strong { font: 750 19px var(--display); letter-spacing: -.02em; }
.toc-sheet .ts-close { margin-left: auto; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-size: 18px; cursor: pointer; }
.toc-sheet .ts-list { list-style: none; counter-reset: ts; margin: 0; padding: 8px 8px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.toc-sheet .ts-list li { counter-increment: ts; }
.toc-sheet .ts-list a { display: flex; gap: 12px; align-items: baseline; padding: 11px 12px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: 16px; line-height: 1.3; text-decoration: none; }
.toc-sheet .ts-list a::before { content: counter(ts); min-width: 22px; text-align: right; color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.toc-sheet .ts-list a:hover { background: var(--surface-2); }
.toc-sheet .ts-list a.on { background: var(--primary-soft); color: var(--primary); }
html:has(dialog.toc-sheet[open]) { overflow: hidden; }
@media print { .guide-fab, .guide-toc-btn, dialog.toc-sheet { display: none !important; } }

/* manuál: obsah v panelu po skupinách (navody.js) */
.toc-sheet .ts-group { margin: 10px 12px 2px; font: 750 12px/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc-sheet .ts-list li.ts-group { counter-increment: none; }

/* ── mobil 8. 10. 2026 ── */
/* tabulky ve Správě: částka a sazba se nelámou („52,00 / Kč“), název má aspoň rozumnou šířku; karta se posouvá do strany */
@media (max-width: 600px) {
  table.list td.num, table.list th.num { white-space: nowrap; }
  table.list td:first-child { min-width: 150px; }
}
/* proužek zkušební provozovny ve Správě na telefonu: text přes celou šířku, obě tlačítka vedle sebe */
@media (max-width: 600px) {
  body:not(.pos) .demo-banner { gap: 8px; }
  body:not(.pos) .demo-banner .db-t { flex: 1 1 100%; }
  body:not(.pos) .demo-banner .btn { margin: 0; flex: 1 1 auto; }
}

/* Proklik na sesterskou fakturaci (2026-10-09) */
.sister { padding-top: 0; }
.sister .kicker { display: inline-block; font: 600 13px var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--primary); margin-bottom: 12px; }
:root[data-theme="light"] .sister .kicker { color: var(--link); }
.sister-box { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; padding: 34px 38px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line); }
.sister-txt h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.05; font-weight: 800; margin: 0 0 12px; }
.sister-txt p { color: var(--muted); margin: 0 0 8px; max-width: 720px; }
.sister-txt p strong { color: var(--text); }
.sister-btn { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; border-color: transparent; white-space: nowrap; }
.sister-btn:hover { filter: brightness(1.08); }
@media (max-width: 760px) { .sister-box { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 22px; } .sister-btn { width: 100%; justify-content: center; } }

/* ══ Manuál jako centrum nápovědy (2026-10-09) – navody.php + assets/js/navody.js ══ */
.hc { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 64px; line-height: 1.6; }
.hc-hero { text-align: center; padding: 26px 0 30px; }
.hc-crumb { display: inline-block; font: 700 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--link); text-decoration: none; margin-bottom: 14px; }
.hc-hero h1 { font: 800 clamp(30px, 4.6vw, 52px)/1.04 var(--display); letter-spacing: -.04em; margin: 0 0 10px; }
.hc-lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 22px; }
.hc-search { position: relative; max-width: 640px; margin: 0 auto; }
.hc-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.hc-search input { width: 100%; min-height: 58px; padding: 0 56px 0 50px; border-radius: 18px; font-size: 17px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: 0 18px 40px -28px rgba(18, 20, 15, .45); }
.hc-search input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px var(--primary-soft), 0 18px 40px -28px rgba(18, 20, 15, .45); }
.hc-search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 600 12px var(--font); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface-2); }
.hc-pop { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; }
.hc-pop a { padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.hc-pop a:hover { border-color: var(--link); color: var(--link); }

.hc-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.hc-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.hc-side-btn { display: none; }
.hc-nav { display: grid; gap: 2px; padding-right: 4px; }
.hc-nav a { color: var(--text); text-decoration: none; }
.hc-nav-home { display: block; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.hc-nav-home:hover { background: var(--surface-2); }
.hc-ng summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-weight: 650; font-size: 15px; line-height: 1.25; }
.hc-ng summary::-webkit-details-marker { display: none; }
.hc-ng summary:hover { background: var(--surface-2); }
.hc-ng summary svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--link); }
.hc-ng summary span { flex: 1; }
.hc-ng summary em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--muted); }
.hc-ng summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.hc-ng[open] summary::after { transform: rotate(45deg); }
.hc-ng ul { list-style: none; margin: 2px 0 8px 21px; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: grid; gap: 1px; }
.hc-ng li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.hc-ng li a:hover { background: var(--surface-2); color: var(--text); }
.hc-ng li a.on { background: var(--primary-soft); color: var(--text); font-weight: 650; box-shadow: inset 3px 0 0 var(--link); }

/* rozcestník */
.hc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hc-card { display: flex; flex-direction: column; padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.hc-card:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -30px rgba(18, 20, 15, .5); }
.hc-card-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.hc-ico { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-ink); }
.hc-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-card h2 { font: 750 18px/1.2 var(--display); letter-spacing: -.02em; margin: 2px 0 4px; padding: 0; border: 0; }
.hc-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hc-card ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.hc-card li a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--text); text-decoration: none; font-weight: 550; font-size: 15px; line-height: 1.3; }
.hc-card li a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--link); flex-shrink: 0; opacity: .6; }
.hc-card li a:hover { color: var(--link); }
.hc-more { margin-top: auto; padding-top: 6px; font-weight: 650; font-size: 14px; color: var(--link); text-decoration: none; }
.hc-help { margin: 26px 0 0; text-align: center; color: var(--muted); }

/* kapitola */
.hc-ch { max-width: 780px; }
.hc-js .hc-ch[hidden] { display: none; }
.hc-ch-crumb { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.hc-ch-crumb a { color: var(--link); text-decoration: none; font-weight: 600; }
.hc-ch > h2 { font: 800 clamp(26px, 3.2vw, 36px)/1.1 var(--display); letter-spacing: -.035em; margin: 0 0 14px; padding: 0; border: 0; }
.hc .guide-intro { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.hc-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 10px; }
.hc-steps > li { counter-increment: st; position: relative; padding: 14px 16px 14px 56px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); line-height: 1.6; }
.hc-steps > li::before { content: counter(st); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font: 750 14px var(--font); background: var(--primary); color: var(--primary-ink); }
.hc-steps > li:has(.support-table) { padding-left: 16px; } .hc-steps > li:has(.support-table)::before { display: none; }
.hc .guide-tip { position: relative; margin: 12px 0 0; padding: 14px 16px 14px 48px; border-radius: 16px; background: var(--primary-soft); font-size: 15px; }
.hc .guide-tip::before { content: 'Tip'; position: absolute; left: 12px; top: 14px; font: 750 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 4px 5px; border-radius: 5px; background: var(--primary); color: var(--primary-ink); }
.hc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.hc-pn a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 650; line-height: 1.3; }
.hc-pn a small { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hc-pn a:hover { border-color: var(--link); }
.hc-pn .hc-next { text-align: right; grid-column: 2; }
.hc-pn .hc-prev small::before { content: '← '; } .hc-pn .hc-next small::after { content: ' →'; }

/* výsledky hledání */
.hc-res-info { font-weight: 650; margin: 0 0 12px; }
.hc-res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hc-res-list a { display: grid; gap: 3px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.hc-res-list a:hover { border-color: var(--link); }
.hc-res-g { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.hc-res-list strong { font: 700 17px/1.3 var(--display); }
.hc-res-s { color: var(--muted); font-size: 14px; line-height: 1.5; }
.hc mark { background: var(--primary-soft, rgba(200,245,66,.35)); color: inherit; border-radius: 3px; padding: 0 1px; }

/* bez skriptu: vše pod sebou; se skriptem: přehled NEBO kapitola */
.hc:not(.hc-js) .hc-ch { margin-top: 40px; }
.hc-js .hc-in .hc-hero { padding-bottom: 18px; }
.hc.hc-js.hc-in .hc-hero .hc-lead, .hc.hc-js.hc-in .hc-hero .hc-pop { display: none; }
.hc.hc-js.hc-in .hc-hero h1 { font-size: clamp(24px, 3vw, 32px); }

@media (max-width: 900px) {
  .hc-wrap { grid-template-columns: 1fr; gap: 16px; }
  .hc-side { position: static; max-height: none; overflow: visible; }
  .hc-side-btn { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 700 16px var(--font); cursor: pointer; }
  .hc-side-btn::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: 10px; }
  .hc-side-btn .muted { margin-left: auto; font-weight: 500; font-size: 14px; }
  .hc-js .hc-nav { display: none; margin-top: 8px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
  .hc-js .hc-side.open .hc-nav { display: grid; }
  .hc-js .hc-side:not(.open) .hc-side-btn { }
  .hc-hero { padding: 10px 0 18px; text-align: left; }
  .hc-lead { margin-left: 0; }
  .hc-pop { justify-content: flex-start; }
  .hc-search kbd { display: none; }
  .hc-cards { grid-template-columns: 1fr; gap: 10px; }
  .hc-card { padding: 16px; }
  .hc-steps > li { padding: 12px 14px 12px 50px; }
  .hc-steps > li::before { left: 12px; top: 12px; }
  .hc-pn { grid-template-columns: 1fr; } .hc-pn .hc-next { grid-column: 1; }
}
@media (max-width: 900px) { .hc:not(.hc-js) .hc-side-btn { display: none; } }
@media print { .hc-side, .hc-hero .hc-search, .hc-pop, .hc-pn, .hc-home { display: none !important; } .hc-js .hc-ch[hidden] { display: block; } .hc-wrap { display: block; } }
@media (prefers-reduced-motion: reduce) { .hc-ng summary::after { transition: none; } }

.hc .hc-steps { padding-left: 0 !important; margin-left: 0 !important; }
.hc .hc-steps > li { margin-left: 0; }
