/* Ukázka na demo.webeditor.click — vkládá se do webeditor.click jako okno
   na šířku obsahu a posouvá se do strany.

   Barvy, písmo a popisky jsou z webu (styles.css). Zařízení jsou ploché
   obrysy bez lesku a vymyšlený web pekárny má vlastní vzhled: je to cizí
   stránka, ne náš design. Pohyb patří jen tomu, co se na obrazovkách děje. */

:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #e9e9ef;
  --ink: #1c1c1e;
  --ink-2: #48484d;
  --ink-3: #6e6e73;
  --line: rgba(60, 60, 67, 0.18);
  --accent: #3d6b0f;
  --accent-fill: #c4f044;
  --accent-ink: #263b15;
  --accent-wash: rgba(196, 240, 68, 0.22);
  --device: #1c1c1e;
  --device-2: #2c2c2e;
  --device-edge: transparent;

  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Appka v zařízení je ve světlém vzhledu, ať je stránka kolem jakákoli. */
  --app-accent: #3d6b0f;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-edge: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --ink: #f2f2f7;
    --ink-2: #c7c7cc;
    --ink-3: #98989f;
    --line: rgba(84, 84, 88, 0.6);
    --accent: #c4f044;
    --accent-ink: #1a2410;
    --accent-wash: rgba(196, 240, 68, 0.12);
    --device-edge: rgba(255, 255, 255, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

svg { display: block; }

/* ── okno s posunem do strany ─────────────────────────────────────── */

.scroller {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) transparent;
  overscroll-behavior-x: contain;
}
.scroller:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Ukázka se do výšky okna vejde celá: demo.js nastaví --z, když je okno nižší. */
.stage {
  display: grid;
  grid-template-columns: 258px 96px 800px 96px 606px;
  grid-template-rows: auto auto;
  align-items: end;
  row-gap: 24px;
  width: max-content;
  /* Dole místo pro Pozastavit, ať nesedí na popiscích. */
  padding: 24px 40px 64px;
  zoom: var(--z, 1);
}

.device { position: relative; }
.phone { grid-column: 1; }
.mac { grid-column: 3; }
.pad { grid-column: 5; }
#wire1 { grid-column: 2; }
#wire2 { grid-column: 4; }

/* ── popisky kroků ────────────────────────────────────────────────── */

.cap { grid-row: 2; align-self: start; }
.cap-phone { grid-column: 1; }
.cap-mac { grid-column: 3; padding-left: 38px; }
.cap-pad { grid-column: 5; padding-left: 14px; }

.cap h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.steps { list-style: none; display: grid; gap: 4px; margin-top: 8px; }
.steps li {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center;
  font-size: 13px; color: var(--ink-3);
  transition: color 200ms;
}
.steps li::before {
  content: attr(value);
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-3);
  transition: background-color 200ms, color 200ms;
}
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--accent-fill); color: var(--accent-ink); }

/* ── spojnice mezi zařízeními ─────────────────────────────────────── */

.wire { position: relative; height: 32px; margin: 0 12px 232px; }
.wire::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
  background: var(--line); border-radius: 1px;
  transition: background-color 200ms;
}
.wire.on-lit::before { background: var(--accent); }
.wire span {
  position: absolute; left: 0; right: 0; top: 16px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  transition: color 200ms;
}
.wire.on-lit span { color: var(--ink); }
.wire .dot {
  position: absolute; left: 0; top: 2px; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 2px var(--accent);
  opacity: 0;
}

/* ── zařízení ─────────────────────────────────────────────────────── */

.frame, .lid, .base { box-shadow: 0 0 0 1px var(--device-edge); }
.screen { position: relative; overflow: hidden; background: #fff; }

.phone .frame { width: 258px; height: 538px; padding: 9px; border-radius: 42px; background: var(--device); }
.phone .screen { width: 240px; height: 520px; border-radius: 33px; }

.mac .lid { width: 724px; margin: 0 auto; padding: 12px 12px 14px; border-radius: 18px 18px 4px 4px; background: var(--device); }
.mac .screen { width: 700px; height: 438px; border-radius: 6px 6px 0 0; background: #36404d; }
.mac .base { position: relative; width: 800px; height: 14px; border-radius: 2px 2px 14px 14px; background: var(--device-2); }
.mac .base i { position: absolute; left: 50%; top: 0; width: 112px; height: 5px; margin-left: -56px; border-radius: 0 0 6px 6px; background: var(--device); }

.pad .frame { width: 606px; height: 432px; padding: 13px; border-radius: 28px; background: var(--device); }
.pad .screen { width: 580px; height: 406px; border-radius: 16px; }

/* ── iPhone: appka WebEditor.click ────────────────────────────────── */

.status {
  position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 30px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px;
  font-size: 11px; font-weight: 600; color: #1c1c1e;
}
.island { position: absolute; left: 50%; top: 8px; width: 66px; height: 19px; margin-left: -33px; border-radius: 10px; background: #000; }
.meters { display: flex; gap: 3px; align-items: flex-end; }
.meters i { width: 3px; background: #1c1c1e; border-radius: 1px; }
.meters i:nth-child(1) { height: 5px; }
.meters i:nth-child(2) { height: 7px; }
.meters i:nth-child(3) { width: 18px; height: 9px; margin-left: 3px; border-radius: 3px; }

.view { position: absolute; inset: 0; overflow: hidden; }
.loading {
  position: absolute; z-index: 2; left: 0; top: 0; height: 2px; width: 0;
  background: var(--app-accent); opacity: 0;
}
.phone .loading { top: 30px; }
.pad .view { top: 38px; }
.view.on-loading .loading { width: 100%; opacity: 1; transition: width 600ms ease-out; }
.page { height: 100%; }
.page.flash { animation: flash 420ms ease-out; }
@keyframes flash { from { opacity: 0.35; } to { opacity: 1; } }
.phone .page { padding: 30px 0 70px; }

/* Clona s dírou kolem vybraného prvku (SPEC §2.11). */
.veil { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 200ms; }
.hole { position: absolute; border-radius: 6px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.5); }
#phone.on-sel .veil { opacity: 1; }

.hint, .toast {
  position: absolute; z-index: 4; left: 50%; bottom: 62px; transform: translate(-50%, 6px);
  white-space: nowrap; font-size: 11px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px;
  opacity: 0; transition: opacity 200ms, transform 200ms;
}
.hint { background: var(--glass); color: #48484d; box-shadow: 0 0 0 1px var(--glass-edge); }
.toast { background: rgba(28, 28, 30, 0.88); color: #fff; }
#phone.on-aim:not(.on-sel):not(.on-sheet):not(.on-toast) .hint,
#phone.on-toast .toast { opacity: 1; transform: translate(-50%, 0); }

.card {
  position: absolute; z-index: 4; left: 8px; right: 8px; bottom: 58px;
  padding: 4px 8px 6px 4px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.96); color: #1c1c1e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms;
}
#phone.on-card .card { opacity: 1; transform: none; }
.card .line { display: grid; grid-template-columns: 28px 1fr; align-items: start; }
.mic { width: 28px; height: 28px; padding: 6px; fill: none; stroke: #8e8e93; stroke-width: 2; stroke-linecap: round; }
#phone.on-listening .mic { stroke: var(--app-accent); }
#phone.on-listening .mic path { animation: level 900ms ease-in-out infinite; transform-origin: center; }
@keyframes level { 50% { opacity: 0.45; } }
.sentence { padding: 6px 2px 4px 0; font-size: 12px; line-height: 1.5; min-height: 44px; }
.chip {
  display: inline; padding: 1px 5px; border-radius: 5px;
  background: rgba(196, 240, 68, 0.45); color: #263b15; font-weight: 600; font-size: 11px;
}
.caret { display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--app-accent); opacity: 0; }
#phone.on-listening .caret { animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 1; } }
.card .row { display: flex; align-items: center; justify-content: space-between; padding-left: 8px; }
.discard { font-size: 11px; color: #8e8e93; }
.confirm { width: 28px; height: 28px; border-radius: 50%; background: var(--app-accent); display: grid; place-items: center; }
.confirm svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.menu {
  position: absolute; z-index: 6; left: 10px; bottom: 58px;
  display: flex; align-items: center; gap: 7px; padding: 9px 14px 9px 11px; border-radius: 12px;
  background: #fff; color: #1c1c1e; font-size: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translateY(6px) scale(0.96); transform-origin: left bottom;
  transition: opacity 180ms, transform 180ms;
}
.menu svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#phone.on-menu .menu { opacity: 1; transform: none; }

.bar { position: absolute; z-index: 5; left: 10px; right: 10px; bottom: 12px; display: flex; align-items: center; gap: 8px; }
.address {
  flex: 1; height: 38px; border-radius: 19px; padding: 0 14px;
  display: flex; align-items: center; gap: 7px;
  background: var(--glass); box-shadow: 0 0 0 1px var(--glass-edge);
  font-size: 12px; font-weight: 600; color: #1c1c1e;
}
.fav { width: 14px; height: 14px; border-radius: 4px; background: #b4532a; flex: none; }
.aim {
  position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--glass); box-shadow: 0 0 0 1px var(--glass-edge);
  transition: background-color 160ms;
}
.aim svg { width: 19px; height: 19px; fill: none; stroke: #1c1c1e; stroke-width: 1.8; stroke-linecap: round; transition: stroke 160ms; }
#phone.on-aim .aim { background: var(--app-accent); box-shadow: none; }
#phone.on-aim .aim svg { stroke: #fff; }
/* Zástrčka: agent je propojený (SPEC §7.6). */
.plug {
  position: absolute; right: -4px; top: -4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--app-accent); box-shadow: 0 0 0 2px #fff;
}
.plug::before, .plug::after { content: ""; position: absolute; background: #fff; }
.plug::before { left: 5px; top: 4px; width: 5px; height: 5px; border-radius: 1px 1px 2px 2px; }
.plug::after { left: 7px; top: 9px; width: 1px; height: 3px; }
.count {
  position: absolute; left: -7px; top: -5px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center;
  background: #1c1c1e; color: #fff; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px #fff;
  opacity: 0; transform: scale(0.6); transition: opacity 180ms, transform 180ms;
}
#phone.on-count .count { opacity: 1; transform: none; }

/* Galerie — krok k odeslání a jediná cesta ven (SPEC §2.11). */
.sheet {
  position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; height: 350px;
  padding: 8px 12px 0; border-radius: 22px 22px 0 0;
  background: #f2f2f7; color: #1c1c1e;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.14);
  transform: translateY(104%); transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
#phone.on-sheet .sheet { transform: none; }
.grabber { display: block; width: 36px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: #c7c7cc; }
.req {
  position: relative; padding: 10px 10px 12px; border-radius: 14px; background: #fff;
  transition: opacity 260ms, transform 260ms;
}
#phone.on-gone .req { opacity: 0; transform: translateX(-40%); }
.where { font-size: 11px; color: #6e6e73; }
.where b { color: #1c1c1e; font-weight: 600; }
.crop {
  height: 64px; margin: 8px 0; border-radius: 8px; background: #f7f1e8;
  display: grid; place-items: center;
}
.crop-btn {
  font: 600 11px/1 var(--text); padding: 7px 11px; border-radius: 3px;
  border: 1px solid #3b2616; color: #3b2616;
}
.said { font-size: 12px; line-height: 1.5; }
.acts { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.acts > * { flex: none; }
.agent-box { width: 28px; height: 28px; border-radius: 8px; background: #e9e9ef; display: grid; place-items: center; }
.agent-box svg { width: 18px; height: 18px; fill: none; stroke: #8e8e93; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agent-box .tick { stroke: #fff; stroke-width: 2.2; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset 300ms 100ms; }
#phone.on-checked .agent-box svg rect { fill: var(--app-accent); stroke: var(--app-accent); }
#phone.on-checked .agent-box .tick { stroke-dashoffset: 0; }
.done, .plain {
  height: 28px; padding: 0 10px; border-radius: 14px;
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.done { background: var(--app-accent); color: #fff; }
.done svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plain { background: #e9e9ef; color: var(--app-accent); }
.note {
  position: absolute; z-index: 2; left: 6px; right: 6px; top: calc(100% - 4px);
  padding: 9px 11px; border-radius: 12px; background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  font-size: 11px; line-height: 1.45; color: #48484d;
  opacity: 0; transform: translateY(-4px); transition: opacity 180ms, transform 180ms;
}
.note b { display: block; color: #1c1c1e; font-weight: 600; margin-bottom: 2px; }
#phone.on-note .note { opacity: 1; transform: none; }
.empty {
  position: absolute; left: 0; right: 0; top: 96px; text-align: center; font-size: 12px; color: #8e8e93;
  opacity: 0; transition: opacity 200ms 200ms;
}
#phone.on-gone .empty { opacity: 1; }
.send {
  position: absolute; left: 12px; right: 12px; bottom: 18px; height: 38px; border-radius: 19px;
  display: grid; place-items: center; background: var(--app-accent); color: #fff;
  font-size: 12px; font-weight: 600; transition: background-color 180ms, color 180ms, opacity 200ms;
}
.send > span { grid-area: 1 / 1; transition: opacity 160ms; }
.sent-label { opacity: 0; }
#phone.on-sent .send { background: #e3e3e8; color: var(--app-accent); }
#phone.on-sent .send-label { opacity: 0; }
#phone.on-sent .sent-label { opacity: 1; }
#phone.on-gone .send { opacity: 0; }

.finger {
  position: absolute; z-index: 9; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(28, 28, 30, 0.2); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none; opacity: 0; translate: 120px 560px;
  transition: translate 520ms cubic-bezier(0.3, 0.7, 0.2, 1), opacity 200ms, scale 120ms;
}
.finger.on { opacity: 1; }
.finger.press { scale: 0.78; background: rgba(28, 28, 30, 0.34); }

/* ── Mac: agent a CI/CD ───────────────────────────────────────────── */

.notch { position: absolute; z-index: 5; left: 50%; top: 0; width: 96px; height: 15px; margin-left: -48px; border-radius: 0 0 8px 8px; background: var(--device); }
.menubar {
  height: 21px; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 11px;
}
.menubar b { font-weight: 600; }
.menubar em { margin-left: auto; font-style: normal; }

.win {
  position: absolute; overflow: hidden; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 28px rgba(0, 0, 0, 0.32);
}
.win header { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 11px; }
.win header i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.win header i:nth-child(2) { background: #febc2e; }
.win header i:nth-child(3) { background: #28c840; }
.win header span { flex: 1; text-align: center; margin-right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.term { left: 14px; top: 34px; width: 440px; height: 390px; background: #1d1e21; }
.term header { background: #2a2b2f; color: #9a9aa2; }
.term-body { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; padding: 8px 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.lines { font: 11px/16px var(--mono); color: #e5e5ea; }
.ln { white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 14px; text-indent: -14px; }
.ln.new { animation: in 160ms ease-out; }
@keyframes in { from { opacity: 0; } }
.ln.dim { color: #8e8e98; }
.ln.tool { color: #fff; font-weight: 600; margin-top: 6px; }
.ln.tool::first-letter { color: #c4f044; }
.ln.good { color: #c4f044; }
.ln.add { color: #8fe39a; background: rgba(46, 160, 67, 0.16); }
.ln.del { color: #ffa198; background: rgba(248, 81, 73, 0.14); }
.ln.ask { color: #fff; margin-top: 6px; }
.ln.ask::first-letter { color: #8e8e98; }
.ln .cursor { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: #c7c7cc; animation: caret 1s steps(1) infinite; }

.ci { left: 468px; top: 54px; width: 218px; height: 262px; background: #fff; color: #1c1c1e; }
.ci header { background: #f2f2f7; color: #6e6e73; }
.ci-body { padding: 8px 12px; font-size: 11px; }
.run { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 7px 0; box-shadow: inset 0 -1px 0 #e5e5ea; }
.run b { font: 600 10.5px var(--mono); color: #6e6e73; }
.run span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run em, .jobs em { font-style: normal; font-weight: 700; }
.run .passed, .jobs li[data-state="ok"] em { color: var(--app-accent); }
.run.new { display: none; }
#mac.on-run .run.new { display: grid; animation: in 200ms ease-out; }
.run.new .state::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #c7c7cc; border-top-color: var(--app-accent); animation: spin 800ms linear infinite; }
#mac.on-deployed .run.new .state::before { content: "✓"; width: auto; height: auto; border: 0; animation: none; color: var(--app-accent); }
@keyframes spin { to { transform: rotate(1turn); } }
.jobs { list-style: none; margin-top: 6px; opacity: 0.4; transition: opacity 200ms; }
#mac.on-run .jobs { opacity: 1; }
.jobs li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 5px 0 5px 10px; color: #6e6e73; }
.jobs li[data-state="run"], .jobs li[data-state="ok"] { color: #1c1c1e; }
.jobs li[data-state="run"] em::before { content: ""; display: block; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #c7c7cc; border-top-color: var(--app-accent); animation: spin 800ms linear infinite; }
.live { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(196, 240, 68, 0.3); color: #263b15; opacity: 0; transition: opacity 200ms; }
#mac.on-deployed .live { opacity: 1; }

/* ── iPad: živý web ───────────────────────────────────────────────── */

.chrome {
  position: absolute; left: 0; right: 0; top: 0; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: #f7f7f8; box-shadow: inset 0 -1px 0 #e5e5ea;
}
.url { display: flex; align-items: center; gap: 6px; width: 240px; height: 26px; justify-content: center; border-radius: 8px; background: #ebebef; font-size: 11.5px; color: #1c1c1e; }
.url .fav { width: 12px; height: 12px; border-radius: 3px; }
.chrome svg { position: absolute; right: 16px; width: 14px; height: 14px; fill: none; stroke: #6e6e73; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── vymyšlený web pekárny ────────────────────────────────────────── */

.page { container-type: inline-size; overflow: hidden; background: #f7f1e8; color: #3b2616; font-family: Georgia, "Times New Roman", serif; }
.s-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.s-logo { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.s-head nav { display: none; gap: 18px; font: 12px var(--text); }
.s-burger { width: 16px; height: 10px; border-block: 2px solid #3b2616; position: relative; }
.s-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: #3b2616; }
.s-hero { display: grid; }
.s-art { order: -1; height: 120px; margin: 0 16px; border-radius: 10px; background: #ead9c0; display: grid; place-items: center; }
.s-art svg { width: 130px; }
.s-copy { padding: 14px 16px 0; }
.s-title { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.s-lead { font: 11.5px/1.45 var(--text); color: #7a6552; margin: 7px 0 14px; }
.s-btn {
  display: inline-block; font: 600 11px/1 var(--text); padding: 7px 11px; border-radius: 3px;
  border: 1px solid #3b2616; color: #3b2616; background: transparent;
}
.page[data-v="new"] .s-btn { background: #b4532a; border-color: #b4532a; color: #fff; font-size: 13px; padding: 11px 18px; }
.s-list { list-style: none; margin: 20px 16px 0; font: 11.5px var(--text); }
.s-list li { display: flex; justify-content: space-between; padding: 8px 0; box-shadow: inset 0 1px 0 #e2d4bf; }
.s-list b { font-weight: 600; }

@container (min-width: 420px) {
  .s-head { padding: 14px 24px; }
  .s-head nav { display: flex; }
  .s-burger { display: none; }
  .s-hero { grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; padding: 14px 24px 0; }
  .s-art { order: 0; height: 176px; margin: 0; }
  .s-art svg { width: 170px; }
  .s-copy { padding: 0; }
  .s-title { font-size: 30px; }
  .s-lead { font-size: 12.5px; margin: 10px 0 18px; }
  .s-btn { font-size: 12px; padding: 8px 12px; }
  .page[data-v="new"] .s-btn { font-size: 14px; padding: 12px 20px; }
  .s-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 24px 0; }
}

/* ── pauza ────────────────────────────────────────────────────────── */

.pause {
  position: fixed; left: 12px; bottom: 12px; z-index: 10;
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-2); font: 600 12px/1 var(--text);
}
.pause:hover { background: var(--surface-2); }
.pause:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pause svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pause .i-play { display: none; fill: currentColor; }
.pause[aria-pressed="true"] .i-play { display: block; }
.pause[aria-pressed="true"] .i-pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .finger { display: none; }
}
