/* =========================================================
   17 – Jak by mohl vypadat váš web
   Vzhled stránky: „studio“ – světlé pozadí, Inter Tight 800,
   akcent #7B3FE4 → #9B6BF2, tmavé pilulky #140A2E.
   Styly náhledu (A–G) přes proměnné --s-* (nastavuje app.js).
   ========================================================= */

:root {
  --bg: #F7F6FB;
  --bg-2: #EFECF7;
  --ink: #140A2E;
  --muted: #554C6E;
  --line: #E3DEEE;
  --card: #FFFFFF;
  --g1: #7B3FE4;
  --g2: #9B6BF2;
  --grad: linear-gradient(100deg, #7B3FE4, #9B6BF2);
  --dark: #140A2E;
  --font: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--g1); outline-offset: 3px; }

/* ---------- štítek ---------- */
.demo-pill {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(20, 10, 46, .5);
}
.demo-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--g2); box-shadow: 0 0 0 3px rgba(155, 107, 242, .3); }

/* ---------- hlavička ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 251, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(227, 222, 238, .7);
}
.top-in { height: var(--head-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; margin-right: auto; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 18px -8px rgba(123, 63, 228, .7);
}
.brand-sub { display: none; font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 6px; }
.top-nav { display: none; gap: 4px; }
.top-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 999px; color: var(--muted); }
.top-nav a:hover { color: var(--ink); background: #fff; }
@media (min-width: 760px) { .brand-sub { display: inline; } .top-nav { display: flex; } }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15.5px; letter-spacing: -.005em; line-height: 1.1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--dark { background: var(--dark); color: #fff; box-shadow: 0 12px 26px -14px rgba(20, 10, 46, .8); }
.btn--grad { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(123, 63, 228, .65); }
.btn--light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- typografie stránky ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g1);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(155, 107, 242, .18); }
.h-display {
  font-weight: 800; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(44px, 7.4vw, 96px);
  margin: 18px 0 20px;
}
.h-display .line { display: block; }
.h2 { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(32px, 4.6vw, 58px); margin: 14px 0 16px; }
.h2 .grad { display: block; }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 46ch; line-height: 1.5; }

/* intro animace nadpisu */
.is-loaded .h-display .line { animation: rise 1s var(--ease) both; }
.is-loaded .h-display .l2 { animation-delay: .14s; }
.is-loaded .hero-head .lead { animation: rise 1s var(--ease) .28s both; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* =========================================================
   GENERÁTOR
   ========================================================= */
.hero { padding: 40px 0 72px; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -64px 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 360px at 85% 10%, rgba(155, 107, 242, .22), transparent 70%),
    radial-gradient(500px 320px at 5% 30%, rgba(123, 63, 228, .10), transparent 70%);
}
.hero-head { max-width: 1120px; margin-bottom: 34px; }

.gen { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) {
  .gen { grid-template-columns: minmax(340px, 400px) 1fr; gap: 36px; }
  .gen-preview { position: sticky; top: calc(var(--head-h) + 16px); }
}

.card { background: var(--card); border-radius: 26px; box-shadow: 0 1px 0 rgba(20, 10, 46, .04), 0 24px 60px -36px rgba(20, 10, 46, .35); }
.gen-form { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 600px) { .gen-form { padding: 28px; } }

.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14px; font-weight: 700; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 500; color: var(--muted); }
.field-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--g1); box-shadow: 0 0 0 4px rgba(123, 63, 228, .15); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.select::after {
  content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}

.style-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.style-opt {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; min-height: 52px; border-radius: 14px; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .2s, background-color .2s, transform .2s var(--ease);
}
.style-opt:hover { transform: translateY(-1px); }
.style-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--g1); background: #F4EFFE; }
.style-opt:has(input:focus-visible) { outline: 3px solid var(--g1); outline-offset: 2px; }
.style-sw { display: grid; grid-template-columns: 1fr 1fr; width: 28px; height: 28px; border-radius: 9px; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(20, 10, 46, .12); }
.style-sw i { display: block; }
.style-txt { display: grid; line-height: 1.15; min-width: 0; }
.style-txt b { font-size: 13px; color: var(--g1); }
.style-txt span { font-size: 13px; font-weight: 600; }

.gen-actions { display: grid; gap: 10px; }
@media (min-width: 420px) { .gen-actions { grid-template-columns: 1fr 1fr; } .gen-actions .btn { padding: 0 14px; } }

.ai-panel {
  border-radius: 18px; padding: 16px; background: linear-gradient(160deg, #F4EFFE, #FBF9FF);
  box-shadow: inset 0 0 0 1.5px #E3D6FB; animation: rise .5s var(--ease) both;
}
.ai-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.ai-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px; background: var(--dark); color: #fff; }
.ai-status { font-size: 13.5px; font-weight: 700; color: var(--g1); margin: 10px 0 4px; }
.ai-status.is-busy::after { content: '…'; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; animation: dots 1.1s steps(4) infinite; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
.ai-msg { font-size: 15px; line-height: 1.5; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.note .ic { margin-top: 2px; color: var(--g1); }

.typing::after {
  content: ''; display: inline-block; width: .07em; min-width: 2px; height: .95em; margin-left: .06em;
  background: currentColor; vertical-align: -.1em; animation: blink .7s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- náhled ---------- */
.gen-preview { min-width: 0; scroll-margin-top: calc(var(--head-h) + 10px); }
.gen-preview .ai-panel { margin-top: 14px; }
.pv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pv-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #4B21A8; background: #EDE5FD; padding: 7px 12px; border-radius: 999px;
}
.pv-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--g1); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(123, 63, 228, .18); } }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.seg button[aria-pressed="true"] { background: var(--dark); color: #fff; }
.seg .ic { width: 17px; height: 17px; }

.pv-stage {
  display: flex; justify-content: center; padding: 14px; border-radius: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 10, 46, .09) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(160deg, #EFEAFB, #F6F3FC);
  box-shadow: inset 0 0 0 1px rgba(20, 10, 46, .05);
}
@media (min-width: 600px) { .pv-stage { padding: 26px; } }

.pv-frame {
  position: relative; width: 100%; height: clamp(500px, 74vh, 740px);
  display: flex; flex-direction: column;
  background: var(--s-bg, #fff); border: 0 solid var(--dark); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(20, 10, 46, .55), 0 0 0 1px rgba(20, 10, 46, .08);
  transition: width .75s cubic-bezier(.65, 0, .35, 1), border-width .5s, border-radius .75s cubic-bezier(.65, 0, .35, 1), background-color .5s;
}
.pv-frame.is-mobile { width: min(360px, 100%); border-width: 10px; border-radius: 48px; }
.pv-chrome {
  flex: none; height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: #F1EEF7; border-bottom: 1px solid #E3DEEE; overflow: hidden;
  transition: height .5s var(--ease), opacity .4s;
}
.pv-frame.is-mobile .pv-chrome { height: 0; opacity: 0; border-bottom-width: 0; }
.pv-dots { display: flex; gap: 6px; }
.pv-dots i { width: 11px; height: 11px; border-radius: 50%; background: #D8D2E6; }
.pv-dots i:first-child { background: #F5A097; }
.pv-dots i:nth-child(2) { background: #F3CF7A; }
.pv-dots i:nth-child(3) { background: #9BD69E; }
.pv-url {
  flex: 1; min-width: 0; max-width: 420px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 28px; border-radius: 9px; background: #fff; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
.pv-url > span { overflow: hidden; text-overflow: ellipsis; }
.pv-url .ic { width: 12px; height: 12px; }
.pv-notch {
  position: absolute; z-index: 5; top: 8px; left: 50%; width: 92px; height: 24px; margin-left: -46px;
  border-radius: 999px; background: var(--dark); opacity: 0; transform: translateY(-30px);
  transition: opacity .4s .3s, transform .5s .3s var(--ease);
}
.pv-frame.is-mobile .pv-notch { opacity: 1; transform: none; }
.pv-viewport {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(20, 10, 46, .25) transparent;
  transition: padding .5s var(--ease);
}
.pv-frame.is-mobile .pv-viewport { padding-top: 40px; }
.pv-canvas { container: site / inline-size; }

/* animace sestavení náhledu */
.site > * { animation: build .8s var(--ease) both; }
.site > :nth-child(2) { animation-delay: .25s; }
.site > :nth-child(3) { animation-delay: .4s; }
.site > :nth-child(4) { animation-delay: .6s; }
.site > :nth-child(5) { animation-delay: .75s; }
.site > :nth-child(6) { animation-delay: .85s; }
.pv-frame.is-pulse .site > * { animation-name: build2; animation-duration: .6s; }
.pv-frame.is-pulse .site > :nth-child(n) { animation-delay: 0s; }
@keyframes build { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes build2 { from { opacity: .2; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =========================================================
   MINI WEB (náhled) – mobil první, přes container queries
   ========================================================= */
[data-scope] { --s-hw: 800; --s-track: -.02em; }
[data-style="A"] { --s-hw: 700; --s-track: -.025em; }
[data-style="B"] { --s-hw: 700; --s-track: -.035em; }
[data-style="C"] { --s-hw: 700; --s-track: -.03em; }
[data-style="D"] { --s-hw: 800; --s-track: -.04em; }
[data-style="E"] { --s-hw: 400; --s-track: -.02em; }
[data-style="F"] { --s-hw: 700; --s-track: -.01em; }
[data-style="G"] { --s-hw: 700; --s-track: -.01em; }

.site {
  min-height: 100%;
  background-color: var(--s-bg); color: var(--s-ink); font-family: var(--s-fb);
  font-size: 15px; line-height: 1.5;
  transition: background-color .5s, color .5s;
}
.site-badge {
  text-align: center; font-family: var(--font); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 10px; background: var(--dark); color: #fff;
}
.s-nav { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.s-logo { display: flex; align-items: center; gap: 9px; margin-right: auto; min-width: 0; font-family: var(--s-fh); font-weight: var(--s-hw); font-size: 16px; letter-spacing: -.01em; }
.s-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-mark {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: min(10px, var(--s-r)); background: var(--s-grad); color: #fff;
  font-family: var(--font); font-weight: 800; font-size: 12.5px; letter-spacing: .02em;
}
.s-menu { display: none; gap: 22px; font-size: 14px; font-weight: 600; color: var(--s-muted); }
.s-burger { display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--s-line); }
.s-burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--s-btn-r);
  background: var(--s-btn); color: var(--s-btn-ink);
  font-family: var(--s-fb); font-weight: 700; font-size: 14.5px; white-space: nowrap;
  box-shadow: 0 10px 22px -14px var(--s-acc);
}
.s-btn--sm { display: none; min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.s-btn--ghost { background: transparent; color: var(--s-ink); box-shadow: inset 0 0 0 1.5px var(--s-line); }
.s-btn--icon { width: 46px; padding: 0; }
.s-btn--icon .ic { width: 20px; height: 20px; }

.s-hero { display: grid; gap: 26px; padding: 18px 18px 34px; }
.s-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--s-acc); margin-bottom: 12px; }
.s-title {
  font-family: var(--s-fh); font-weight: var(--s-hw); letter-spacing: var(--s-track);
  font-size: clamp(32px, 9.4cqi, 66px); line-height: 1.02; margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.s-l1 { display: block; }
.s-l2 { display: inline; }
.s-sub { color: var(--s-muted); font-size: 16px; max-width: 44ch; margin-bottom: 22px; min-height: 1.5em; }
.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.s-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 700; font-size: 14.5px; }
.s-link .ic { color: var(--s-acc); }

.s-art { position: relative; aspect-ratio: 16 / 11; }
.s-art-bg {
  position: absolute; inset: 0; border-radius: calc(var(--s-r) * 1.4);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .35), transparent 38%),
    radial-gradient(circle at 15% 90%, rgba(0, 0, 0, .18), transparent 45%),
    var(--s-grad);
  box-shadow: 0 30px 60px -36px var(--s-acc);
  overflow: hidden;
}
.s-art-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .22;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); mask-image: linear-gradient(120deg, transparent 30%, #000);
}
.s-art-ring {
  position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, .08), 0 0 0 40px rgba(255, 255, 255, .05);
}
.s-art-ic { position: absolute; left: 50%; top: 50%; width: 30%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); color: #fff; stroke-width: 1.3; }
.s-art-chip {
  position: absolute; left: 6%; bottom: 8%;
  display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px;
  background: var(--s-card); color: var(--s-ink); font-size: 12.5px; font-weight: 700;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .45);
  animation: floaty 5s ease-in-out infinite;
}
.s-art-chip .ic { color: var(--s-acc); width: 16px; height: 16px; }
.s-art-chip--2 { left: auto; bottom: auto; right: 6%; top: 9%; animation-delay: -2.5s; }
@keyframes floaty { 50% { transform: translateY(-6px); } }

.s-services { padding: 8px 18px 30px; }
.s-h3 { font-family: var(--s-fh); font-weight: var(--s-hw); letter-spacing: var(--s-track); font-size: 26px; line-height: 1.1; margin-bottom: 16px; }
.s-cards { display: grid; gap: 12px; }
.s-card {
  background: var(--s-card); border-radius: var(--s-r); padding: 18px;
  box-shadow: inset 0 0 0 1px var(--s-line), 0 14px 30px -26px rgba(0, 0, 0, .5);
}
.s-ic {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px;
  border-radius: min(14px, var(--s-r)); background: var(--s-hl); color: var(--s-acc);
}
.s-ic .ic { width: 23px; height: 23px; }
.s-card h4 { font-family: var(--s-fh); font-weight: var(--s-hw); font-size: 18px; line-height: 1.2; margin-bottom: 6px; min-height: 1.2em; }
.s-card p { color: var(--s-muted); font-size: 14.5px; min-height: 1.5em; }

.s-contact {
  margin: 0 18px 22px; padding: 24px; border-radius: calc(var(--s-r) * 1.2);
  display: grid; gap: 18px; justify-items: start;
  background: var(--s-ink); color: var(--s-bg);
}
.s-contact .s-h3 { margin-bottom: 10px; }
.s-contact-list { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; }
.s-contact-list > span { display: inline-flex; align-items: center; gap: 7px; }
.s-contact-list .ic { width: 17px; height: 17px; opacity: .8; }
.s-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px 18px; font-size: 12.5px; color: var(--s-muted); border-top: 1px solid var(--s-line); }

@container site (min-width: 640px) {
  .s-nav { padding: 18px 40px; gap: 28px; }
  .s-menu { display: flex; }
  .s-burger { display: none; }
  .s-btn--sm { display: inline-flex; }
  .s-hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 40px 40px 56px; }
  .s-art { aspect-ratio: 1 / 1.02; }
  .s-sub { font-size: 17.5px; }
  .s-services { padding: 10px 40px 44px; }
  .s-h3 { font-size: 32px; margin-bottom: 22px; }
  .s-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .s-card { padding: 22px; }
  .s-contact { margin: 0 40px 34px; padding: 32px 36px; grid-template-columns: 1fr auto; align-items: center; }
  .s-foot { padding: 18px 40px 22px; }
}

/* ---- charakter jednotlivých stylů ---- */
[data-style="A"] .s-l2 {
  background: linear-gradient(transparent 58%, var(--s-hl) 58% 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
[data-style="A"] .s-eyebrow, [data-style="F"] .s-eyebrow { letter-spacing: .1em; }

[data-style="B"] .s-hero { background: radial-gradient(70% 70% at 85% 10%, rgba(91, 43, 255, .32), transparent 70%); }
[data-style="B"] .s-l2, [data-style="D"] .s-l2 {
  background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-style="B"] .s-l2 { background-image: linear-gradient(90deg, #A68BFF, #5ED8D4); }
[data-style="B"] .s-eyebrow { color: #5ED8D4; font-family: var(--mono); }
[data-style="B"] .s-ic { background: rgba(94, 216, 212, .12); color: #5ED8D4; }
[data-style="B"] .s-card { box-shadow: inset 0 0 0 1px var(--s-line), 0 0 40px -20px rgba(91, 43, 255, .5); }
[data-style="B"] .s-contact { background: linear-gradient(135deg, #1B1640, #121233); color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-line); }

[data-style="C"] .s-l2 { color: var(--s-acc); }
[data-style="C"] .s-art-bg {
  background:
    linear-gradient(var(--s-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--s-line) 1px, transparent 1px) 0 0 / 28px 28px,
    #F1F5FD;
  box-shadow: inset 0 0 0 1px var(--s-line);
}
[data-style="C"] .s-art-bg::after { display: none; }
[data-style="C"] .s-art-ring { border-color: rgba(26, 115, 232, .35); box-shadow: 0 0 0 18px rgba(26, 115, 232, .05); }
[data-style="C"] .s-art-ic { color: var(--s-acc); }
[data-style="C"] .s-card { box-shadow: inset 0 0 0 1px var(--s-line); }
[data-style="C"] .s-mark { background: var(--s-acc); }

[data-style="D"] .s-card { box-shadow: 0 24px 50px -30px rgba(123, 63, 228, .45); }
[data-style="D"] .s-contact { background: #140A2E; color: #fff; }
[data-style="D"] .s-contact .s-btn { background: var(--s-grad); }

[data-style="E"] .site,
[data-style="E"].post .post-in, [data-style="E"] .post-in, [data-style="E"] .scr, [data-style="E"] .screen {
  background-image:
    linear-gradient(var(--s-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--s-line) 1px, transparent 1px);
  background-size: 22px 22px;
}
[data-style="E"] .s-title, [data-style="E"] .s-h3 { text-transform: uppercase; }
[data-style="E"] .s-title { font-size: clamp(30px, 8.4cqi, 60px); }
[data-style="E"] .s-l2 {
  background: linear-gradient(transparent 52%, var(--s-hl) 52% 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
[data-style="E"] .s-eyebrow { color: var(--s-ink); font-family: var(--mono); }
[data-style="E"] .s-btn { box-shadow: inset 0 0 0 2px #111, 3px 3px 0 #111; }
[data-style="E"] .s-btn--ghost { background: #fff; }
[data-style="E"] .s-art-bg { background: #111; box-shadow: 6px 6px 0 var(--s-hl); }
[data-style="E"] .s-art-bg::after { background: repeating-linear-gradient(135deg, rgba(255, 214, 10, .6) 0 2px, transparent 2px 16px); }
[data-style="E"] .s-art-ic { color: var(--s-hl); }
[data-style="E"] .s-art-ring { border-color: rgba(255, 214, 10, .5); }
[data-style="E"] .s-ic { background: var(--s-hl); color: #111; }
[data-style="E"] .s-card { box-shadow: inset 0 0 0 2px #111; }
[data-style="E"] .s-mark { background: var(--s-hl); color: #111; }
[data-style="E"] .s-contact { background: #111; color: #fff; }

[data-style="F"] .site, [data-style="F"] .post-in, [data-style="F"] .screen {
  background-image: repeating-linear-gradient(0deg, rgba(30, 42, 31, .025) 0 2px, transparent 2px 6px);
}
[data-style="F"] .s-l2 { color: var(--s-acc); text-decoration: underline; text-decoration-color: var(--s-acc2); text-decoration-thickness: .08em; text-underline-offset: .14em; }
[data-style="F"] .s-art-bg {
  background:
    radial-gradient(circle at 75% 25%, rgba(217, 164, 65, .55) 0 18%, transparent 18.5%),
    repeating-radial-gradient(circle at 20% 110%, rgba(255, 255, 255, .08) 0 2px, transparent 2px 16px),
    #2F5D3A;
}
[data-style="F"] .s-mark { background: var(--s-acc); }

[data-style="G"] .s-l2 { color: var(--s-acc); font-style: italic; }
[data-style="G"] .s-eyebrow { color: var(--s-acc2); }
[data-style="G"] .s-art-bg {
  background:
    radial-gradient(circle at 70% 30%, rgba(240, 163, 94, .55), transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(226, 104, 60, .45), transparent 45%),
    #2A1D19;
}
[data-style="G"] .s-ic { background: rgba(226, 104, 60, .14); }
[data-style="G"] .s-contact { background: #2A1D19; color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-line); }

/* =========================================================
   SEKCE OBECNĚ + REVEAL
   ========================================================= */
.sec { padding: 72px 0; }
@media (min-width: 900px) { .sec { padding: 120px 0; } }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.sec-head--row { max-width: none; display: grid; gap: 20px; align-items: end; }
@media (min-width: 900px) { .sec-head--row { grid-template-columns: 1fr auto; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   PŘED / PO
   ========================================================= */
.ba-layout { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .ba-layout { grid-template-columns: 1.55fr 1fr; gap: 48px; } }
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: #D4D4CC; touch-action: pan-y;
  box-shadow: 0 40px 80px -44px rgba(20, 10, 46, .6), 0 0 0 1px rgba(20, 10, 46, .08);
}
@media (min-width: 640px) { .ba { aspect-ratio: 16 / 11; } }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--g1); outline-offset: 4px; }
.ba-old, .ba-new { position: absolute; inset: 0; }
.ba-new { clip-path: inset(0 0 0 var(--pos)); background: #F8FAFC; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 10, 46, .15), 0 0 24px rgba(20, 10, 46, .35); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--dark); color: #fff;
  box-shadow: 0 0 0 4px #fff, 0 12px 30px rgba(20, 10, 46, .45);
}
.ba-knob .ic { width: 22px; height: 22px; }
.ba-tag { position: absolute; bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; pointer-events: none; }
.ba-tag--l { left: 14px; background: rgba(20, 10, 46, .78); color: #fff; }
.ba-tag--r { right: 14px; background: var(--grad); color: #fff; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; -webkit-appearance: none; appearance: none; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }

/* starý web – záměrně špatně */
.old {
  width: 900px; transform-origin: 0 0; background: #CFCFC6;
  font-family: 'Times New Roman', Times, serif; font-size: 11px; color: #7a7a72; line-height: 1.25;
}
.old-hdr { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: linear-gradient(#5d6e8c, #34405a); color: #c9d2e3; }
.old-logo { font-family: 'Comic Sans MS', 'Comic Neue', cursive; font-size: 26px; font-weight: 700; color: #ffe600; text-shadow: 2px 2px 0 #c00, 4px 4px 0 #000; line-height: 1; }
.old-hdr-r { text-align: right; font-size: 10px; }
.old-marq { overflow: hidden; white-space: nowrap; background: #c00; color: #ff0; font-weight: 700; font-size: 11px; padding: 3px 0; font-family: Arial, sans-serif; }
.old-marq span { display: inline-block; padding-left: 100%; animation: marq 16s linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }
.old-body { display: grid; grid-template-columns: 130px 1fr 170px; gap: 8px; padding: 8px; }
.old-nav { list-style: none; margin: 0; padding: 4px; background: #e2e2da; border: 2px outset #eee; }
.old-nav li { color: #00e; text-decoration: underline; font-size: 10px; padding: 2px 0; border-bottom: 1px dotted #aaa; }
.old-main { background: #dcdcd4; border: 2px inset #eee; padding: 8px; }
.old-main h3 { font-size: 15px; color: #b00; font-weight: 700; margin-bottom: 6px; font-style: italic; text-decoration: underline; }
.old-main p { margin-bottom: 8px; color: #8d8d85; }
.old-btns { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 8px; }
.old-btns span { font-family: Arial, sans-serif; font-size: 9px; font-weight: 700; padding: 3px 6px; border: 2px outset #ddd; }
.old-btns .b1 { background: #0c0; color: #ff0; animation: oldblink 1s steps(1) infinite; }
.old-btns .b2 { background: #fc0; color: #00c; }
.old-btns .b3 { background: #f0f; color: #0ff; animation: oldblink 1.3s steps(1) infinite; }
.old-btns .b4 { background: #39f; color: #fff; }
@keyframes oldblink { 50% { opacity: .2; } }
.old-img { height: 90px; display: grid; place-items: center; border: 2px dashed #999; color: #999; margin-bottom: 6px; background: repeating-linear-gradient(45deg, #ccc 0 6px, #d6d6ce 6px 12px); }
.old-small { font-size: 8.5px !important; color: #a3a39b !important; }
.old-side { display: grid; gap: 8px; align-content: start; }
.old-box { background: #ffffe0; border: 1px solid #cc9; padding: 6px; font-size: 9.5px; }
.old-box b { color: #c00; display: block; margin-bottom: 3px; }
.old-box p { margin-bottom: 3px; }
.old-foot { text-align: center; font-size: 8.5px; color: #8b8b83; padding: 6px; border-top: 1px solid #aaa; }

/* nový web */
.nw {
  height: 100%; container-type: inline-size; overflow: hidden;
  font-family: var(--font); color: #0F172A; background: #F8FAFC;
}
.nw-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #E2E8F0; background: #fff; }
.nw-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
.nw-mark { width: 28px; height: 28px; border-radius: 8px; background: #0F172A; color: #fff; display: grid; place-items: center; font-size: 11px; }
.nw-call { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: #FFF1E8; color: #C2410C; font-weight: 700; font-size: 13px; white-space: nowrap; }
.nw-call .ic { width: 15px; height: 15px; }
.nw-hero { padding: 22px 16px 18px; }
.nw-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C2410C; margin-bottom: 8px; }
.nw-title { font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(28px, 8.2cqi, 50px); margin-bottom: 12px; }
.nw-title span { color: #EA580C; }
.nw-sub { color: #334155; font-size: clamp(14px, 2.4cqi, 18px); max-width: 38ch; margin-bottom: 16px; }
.nw-actions { display: flex; align-items: center; gap: 8px; }
.nw-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; background: #0F172A; color: #fff; font-weight: 700; font-size: 15px; }
.nw-btn .ic { width: 18px; height: 18px; }
.nw-cards { position: relative; display: grid; gap: 8px; padding: 0 16px 18px; }
.nw-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #E2E8F0; font-size: 14px; }
.nw-card .ic { width: 22px; height: 22px; color: #EA580C; }
.nw-cards > .pin { position: absolute; top: -8px; right: 10px; }
@container (min-width: 560px) {
  .nw-nav { padding: 16px 28px; }
  .nw-hero { padding: 40px 28px 26px; }
  .nw-cards { grid-template-columns: repeat(3, 1fr); padding: 0 28px 24px; gap: 12px; }
  .nw-card { flex-direction: column; align-items: flex-start; padding: 16px; }
}
.pin {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; vertical-align: middle;
  border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0;
  box-shadow: 0 0 0 3px rgba(155, 107, 242, .3);
  animation: pinpulse 2.2s ease-in-out infinite;
}
.nw-title .pin { vertical-align: .35em; }
@keyframes pinpulse { 50% { box-shadow: 0 0 0 7px rgba(155, 107, 242, .12); } }

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.principles li { display: flex; gap: 14px; align-items: flex-start; }
.pr-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; }
.principles h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 2px; }
.principles p { color: var(--muted); font-size: 15.5px; }

/* =========================================================
   SCROLL SCRUB – obecně
   ========================================================= */
.scrub { position: relative; }
.ds { height: 520vh; }
.ph { height: 430vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: clip;
  padding-top: var(--head-h);
}
.fly {
  opacity: var(--t, 0);
  transform:
    translate3d(calc((1 - var(--t, 0)) * var(--dx, 0px)), calc((1 - var(--t, 0)) * var(--dy, 60px)), 0)
    rotate(calc((1 - var(--t, 0)) * var(--rot, 0deg)))
    scale(calc(.82 + .18 * var(--t, 0)));
  will-change: transform, opacity;
}

/* ---------- design systém ---------- */
.ds .stage { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.ds-wrap { display: grid; gap: 14px; align-content: center; height: 100%; padding-top: 10px; padding-bottom: 14px; }
.ds-side .h2 { font-size: clamp(26px, 3.6vw, 48px); margin: 8px 0 12px; }
.ds-side .h2 .grad { display: inline; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.steps li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--muted); background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.steps li span { font-family: var(--mono); font-size: 11px; opacity: .7; }
.steps li.is-done { color: var(--ink); }
.steps li.is-active { background: var(--dark); color: #fff; box-shadow: 0 8px 20px -10px rgba(20, 10, 46, .7); }
.ds-note { display: none; font-size: 15px; color: var(--muted); margin-top: 18px; }

.ds-board {
  position: relative; display: grid; gap: 10px; min-height: 0;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  grid-template-areas: "colors type" "buttons cards";
  height: min(66svh, 600px);
}
.cell {
  position: relative; min-width: 0; min-height: 0; border-radius: 18px; padding: 30px 12px 12px;
  border: 1.5px dashed #CFC6E4; display: flex; flex-direction: column; justify-content: center;
  color: var(--s-ink); font-family: var(--s-fb);
  isolation: isolate;
}
.cell::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1;
  background: var(--s-bg); box-shadow: 0 20px 50px -34px rgba(20, 10, 46, .5);
  opacity: var(--c, 0);
}
.cell-tag { position: absolute; top: 9px; left: 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--s-muted); opacity: calc(.45 + .55 * var(--c, 0)); }
.cell-colors { grid-area: colors; }
.cell-type { grid-area: type; }
.cell-buttons { grid-area: buttons; }
.cell-cards { grid-area: cards; }
.cell-screen { grid-area: screen; }

.sw-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw { display: grid; gap: 3px; min-width: 0; }
.sw-chip { height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 0 0 1px var(--s-line); }
.sw-n { font-size: 11px; font-weight: 700; }
.sw-v { display: none; font-family: var(--mono); font-size: 10px; color: var(--s-muted); }

.ty { display: flex; gap: 10px; align-items: center; }
.ty-aa { font-family: var(--s-fh); font-weight: var(--s-hw); font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--s-acc); }
[data-style="E"] .ty-aa { color: var(--s-ink); background: var(--s-hl); padding: 0 6px; }
.ty-stack { display: grid; gap: 4px; min-width: 0; }
.ty-h { font-family: var(--s-fh); font-weight: var(--s-hw); font-size: 15px; line-height: 1.1; }
.ty-p { font-size: 11.5px; color: var(--s-muted); line-height: 1.35; }
.ty-meta { font-family: var(--mono); font-size: 10px; color: var(--s-muted); }

.bt-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bt-row .s-btn { min-height: 40px; padding: 0 14px; font-size: 12.5px; }
.bt-row .s-btn--icon { width: 40px; padding: 0; }
.bt-spec { margin-top: 10px; font-family: var(--mono); font-size: 10px; color: var(--s-muted); }

.cd-row { display: grid; gap: 10px; }
.cd-row .s-card { padding: 12px; }
.cd-row .s-card:nth-child(2) { display: none; }
.cd-row .s-ic { width: 34px; height: 34px; margin-bottom: 8px; }
.cd-row .s-ic .ic { width: 18px; height: 18px; }
.cd-row h4 { font-size: 14px; margin-bottom: 2px; }
.cd-row p { font-size: 11.5px; line-height: 1.35; }

/* hotová obrazovka – na mobilu přeletí přes desku */
.cell-screen {
  position: absolute; inset: 4% 2%; z-index: 3; border-style: solid; border-color: transparent;
  opacity: var(--fin-show, 0); pointer-events: none;
}
.ds-board { --fin-show: var(--fin, 0); }
.ds-board > .cell:not(.cell-screen) { opacity: calc(1 - var(--fin, 0) * .85); }
.scr {
  background: var(--s-bg); border-radius: 16px; padding: 14px; display: grid; gap: 12px; align-content: start;
  box-shadow: 0 30px 60px -30px rgba(20, 10, 46, .55), 0 0 0 1px var(--s-line);
  overflow: hidden; grid-template-columns: minmax(0, 1fr);
  opacity: var(--c, 0); transform: scale(calc(.94 + .06 * var(--c, 0)));
}
.scr-nav { display: flex; align-items: center; gap: 8px; font-family: var(--s-fh); font-weight: var(--s-hw); font-size: 14px; }
.scr-nav .s-mark { width: 26px; height: 26px; font-size: 10.5px; }
.scr-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-dots { margin-left: auto; display: flex; gap: 4px; }
.scr-dots i { width: 14px; height: 2px; border-radius: 2px; background: var(--s-ink); opacity: .4; }
.scr-eb { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--s-acc); margin-bottom: 4px; }
[data-style="E"] .scr-eb { color: var(--s-ink); }
.scr-title { font-family: var(--s-fh); font-weight: var(--s-hw); letter-spacing: var(--s-track); font-size: 26px; line-height: 1.02; }
[data-style="E"] .scr-title { text-transform: uppercase; font-size: 22px; }
.scr-btn { justify-self: start; min-height: 40px; font-size: 13px; padding: 0 16px; }
.scr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.scr-card { display: grid; gap: 6px; padding: 9px; border-radius: min(12px, var(--s-r)); background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line); font-size: 10.5px; font-weight: 700; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.scr-card .ic { width: 18px; height: 18px; color: var(--s-acc); }
[data-style="E"] .scr-card .ic { color: var(--s-ink); }

@media (min-width: 1000px) {
  .ds-wrap { grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding-top: 0; }
  .ds-note { display: block; }
  .steps { flex-direction: column; gap: 8px; margin-top: 8px; }
  .steps li { padding: 10px 16px; font-size: 15px; width: fit-content; }
  .ds-board {
    grid-template-columns: 1fr 1fr 1.15fr; gap: 16px;
    grid-template-areas: "colors type screen" "buttons cards screen";
    height: min(72vh, 640px);
  }
  .cell { padding: 38px 20px 20px; border-radius: 22px; }
  .cell-tag { top: 12px; left: 18px; font-size: 11px; }
  .cell-screen { position: relative; inset: auto; opacity: 1; z-index: auto; border-style: dashed; border-color: #CFC6E4; }
  .ds-board > .cell:not(.cell-screen) { opacity: 1; }
  .sw-row { grid-template-columns: repeat(5, 1fr); }
  .sw-chip { height: 58px; border-radius: 14px; }
  .sw-v { display: block; }
  .ty { gap: 18px; }
  .ty-aa { font-size: 84px; }
  .ty-h { font-size: 22px; }
  .ty-p { font-size: 13px; }
  .ty-meta { font-size: 11px; }
  .bt-row .s-btn { min-height: 46px; padding: 0 20px; font-size: 14px; }
  .bt-row .s-btn--icon { width: 46px; padding: 0; }
  .cd-row { grid-template-columns: 1fr 1fr; }
  .cd-row .s-card:nth-child(2) { display: block; }
  .scr { padding: 18px; gap: 16px; }
  .scr-title { font-size: 34px; }
  [data-style="E"] .scr-title { font-size: 28px; }
  .scr-card { font-size: 12px; padding: 12px; }
}

/* ---------- telefony ---------- */
.ph .stage { background: radial-gradient(80% 60% at 70% 55%, rgba(155, 107, 242, .16), transparent 70%), var(--bg); }
.ph-wrap { display: grid; gap: 8px; height: 100%; grid-template-rows: auto 1fr; padding-top: 10px; padding-bottom: 10px; }
.ph-head .h2 { font-size: clamp(26px, 3.6vw, 48px); margin: 8px 0 10px; }
.ph-head .h2 .grad { display: inline; }
.ph-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ph-steps li { padding: 6px 11px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 13px; transition: background-color .3s, color .3s; }
.ph-steps li b { font-weight: 700; }
.ph-steps li span { display: none; }
.ph-steps li.is-active { background: var(--dark); color: #fff; }
.ph-steps li.is-done:not(.is-active) { color: var(--ink); }

.phones { position: relative; min-height: 0; perspective: 1300px; transform-style: preserve-3d; --spread: .62; }
.phone {
  --w: min(186px, 47vw, 33svh);
  --z: calc(var(--x) * var(--x) * -90px);
  position: absolute; left: 50%; top: 50%;
  width: var(--w); aspect-ratio: 9 / 19;
  margin-left: calc(var(--w) / -2); margin-top: calc(var(--w) * -1.055);
  transform-style: preserve-3d;
  transform:
    translateX(calc(var(--x) * var(--w) * var(--spread)))
    translateY(calc((1 - var(--in, 0)) * 80vh))
    translateZ(calc(var(--z) + var(--f, 0) * 150px))
    rotateY(calc(var(--ry) * (1 - var(--f, 0)) + (1 - var(--in, 0)) * var(--ry) * 1.6))
    rotateX(calc((1 - var(--in, 0)) * 28deg));
  opacity: min(1, calc(var(--in, 0) * 2));
  will-change: transform;
}
.phone-body {
  position: absolute; inset: 0; padding: calc(var(--w) * .035); border-radius: calc(var(--w) * .17);
  container-type: inline-size;
  background: linear-gradient(145deg, #2A1D52, #140A2E 45%, #0B0618);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    0 calc(30px + var(--f, 0) * 30px) calc(60px + var(--f, 0) * 40px) -30px rgba(20, 10, 46, .75),
    0 0 0 calc(var(--f, 0) * 3px) rgba(155, 107, 242, .55);
}
.phone-notch { position: absolute; z-index: 2; top: calc(var(--w) * .06); left: 50%; width: 30%; height: calc(var(--w) * .06); transform: translateX(-50%); border-radius: 999px; background: #0B0618; }
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * .135);
  background-color: var(--s-bg); color: var(--s-ink); font-family: var(--s-fb);
  font-size: 5.6cqi; line-height: 1.3;
  padding: 17cqi 6.5cqi 6cqi;
}
.scr-top { display: flex; align-items: center; gap: .5em; font-size: .85em; }
.scr-top .s-mark { width: 2.1em; height: 2.1em; font-size: .8em; border-radius: .6em; }
.scr-firm { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto; }
.scr-step { font-family: var(--mono); font-size: .85em; color: var(--s-muted); }
.scr-h { font-family: var(--s-fh); font-weight: var(--s-hw); letter-spacing: var(--s-track); font-size: 1.55em; line-height: 1.05; margin: .7em 0 .6em; }
.scr-h--c { text-align: center; font-size: 1.35em; margin-top: .4em; }
.scr-sel { font-size: .85em; color: var(--s-muted); margin: -.3em 0 .7em; }
.scr-hint { display: flex; gap: .45em; align-items: flex-start; margin-top: .9em; font-size: .78em; line-height: 1.35; color: var(--s-muted); }
.scr-hint .ic { width: 1.3em; height: 1.3em; color: var(--s-acc); }
[data-style="E"] .scr-hint .ic { color: var(--s-ink); }
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.svc li {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5em;
  padding: .75em .8em; border-radius: min(.9em, var(--s-r)); background: var(--s-card);
  box-shadow: inset 0 0 0 1px var(--s-line);
}
.svc-t { font-weight: 700; font-size: .95em; line-height: 1.2; }
.svc-m { grid-row: 2; font-size: .8em; color: var(--s-muted); }
.radio { grid-row: 1 / span 2; grid-column: 2; width: 1.25em; height: 1.25em; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--s-line); display: grid; place-items: center; }
.radio::after { content: ''; width: .65em; height: .65em; border-radius: 50%; background: var(--s-acc); transform: scale(var(--sel, 0)); }
[data-style="E"] .radio::after { background: var(--s-ink); }
.svc li.pick {
  box-shadow: inset 0 0 0 calc(1px + var(--sel, 0) * 1.5px) color-mix(in srgb, var(--s-acc) calc(var(--sel, 0) * 100%), var(--s-line));
  background: color-mix(in srgb, var(--s-hl) calc(var(--sel, 0) * 70%), var(--s-card));
}
.tap {
  position: absolute; right: 22%; top: 50%; width: 2.8em; height: 2.8em; border-radius: 50%; pointer-events: none;
  background: rgba(20, 10, 46, .22); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 calc(4px + (1 - var(--tap, 0)) * 10px) rgba(155, 107, 242, .25);
  opacity: var(--tap, 0); transform: translate(50%, -50%) scale(calc(1.5 - var(--tap, 0) * .5));
}
.scr-cta {
  position: absolute; left: 6.5cqi; right: 6.5cqi; bottom: 7cqi;
  display: flex; align-items: center; justify-content: center; gap: .4em; min-height: 3em;
  border-radius: min(var(--s-btn-r), 1.6em); background: var(--s-btn); color: var(--s-btn-ink);
  font-weight: 700; font-size: .95em; opacity: calc(.4 + .6 * var(--go, 0));
}
[data-style="E"] .scr-cta { box-shadow: inset 0 0 0 2px #111; }
.scr-cta .tap { right: 50%; }
.scr-cta--ghost { background: var(--s-card); color: var(--s-ink); box-shadow: inset 0 0 0 1.5px var(--s-line); bottom: 13cqi; }
.scr-cta .ic { width: 1.2em; height: 1.2em; }
.scr-fine { position: absolute; left: 0; right: 0; bottom: 4.5cqi; text-align: center; font-size: .72em; color: var(--s-muted); opacity: var(--go, 0); }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35em; margin-bottom: .8em; }
.days > span, .slots > span {
  position: relative; display: grid; place-items: center; padding: .5em 0; border-radius: min(.7em, var(--s-r));
  background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line); font-weight: 700; font-size: .9em; line-height: 1.15;
  isolation: isolate;
}
.days small { font-size: .72em; font-weight: 600; color: var(--s-muted); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.slots > span { padding: .75em 0; }
.is-off { opacity: .35; text-decoration: line-through; }
.days > .pick::before, .slots > .pick::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--s-acc); opacity: var(--sel, 0); }
[data-style="E"] .days > .pick::before, [data-style="E"] .slots > .pick::before { background: var(--s-hl); }
.days > .pick, .slots > .pick { color: color-mix(in srgb, #fff calc(var(--sel, 0) * 100%), var(--s-ink)); }
[data-style="E"] .days > .pick, [data-style="E"] .slots > .pick { color: #111; }
.days > .pick small { color: inherit; opacity: .8; }
.days .tap, .slots .tap { right: 50%; }
.ok { display: grid; place-items: center; margin-top: .6em; }
.ok svg { width: 36cqi; height: 36cqi; overflow: visible; }
.ok-c, .ok-p { fill: none; stroke: var(--s-acc); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
[data-style="E"] .ok-c, [data-style="E"] .ok-p { stroke: var(--s-ink); }
.ok-c { stroke-dashoffset: calc(1 - var(--ok, 0)); }
.ok-p { stroke-width: 5; stroke-dashoffset: calc(1 - clamp(0, var(--ok, 0) * 2 - 1, 1)); }
.ok svg { transform: scale(calc(.85 + .15 * var(--ok, 0))); }
.sum { margin-top: .5em; display: grid; gap: .1em; padding: .4em .8em; border-radius: min(.9em, var(--s-r)); background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line); opacity: var(--rows, 0); transform: translateY(calc((1 - var(--rows, 0)) * 1.5em)); }
.sum p { display: flex; justify-content: space-between; gap: .6em; padding: .45em 0; font-size: .82em; border-bottom: 1px solid var(--s-line); }
.sum p:last-child { border-bottom: 0; }
.sum span { color: var(--s-muted); flex: none; }
.sum b { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 700px) {
  .phones { --spread: 1.12; }
  .phone { --w: min(230px, 26vw, 34svh); }
}
@media (min-width: 1000px) {
  .ph-wrap { grid-template-columns: 340px 1fr; grid-template-rows: none; gap: 40px; align-items: center; }
  .phones { height: 100%; }
  .ph-steps { flex-direction: column; gap: 10px; margin-top: 10px; }
  .ph-steps li { border-radius: 16px; padding: 14px 18px; display: grid; gap: 2px; font-size: 15px; }
  .ph-steps li span { display: block; font-size: 14px; color: inherit; opacity: .85; }
  .phone { --w: min(240px, 17vw, 36svh); }
}
@media (max-width: 999px) {
  .ph-steps li.is-active span { display: none; }
}

/* =========================================================
   GRAFIKA – příspěvky
   ========================================================= */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (min-width: 900px) { .posts { grid-template-columns: 1fr 1fr 1fr .78fr; gap: 20px; } }
.post {
  container-type: inline-size; aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(20, 10, 46, .6), 0 0 0 1px rgba(20, 10, 46, .06);
}
.post.reveal { transform: perspective(900px) translateY(50px) rotateX(16deg); transform-origin: 50% 100%; }
.post.reveal.is-in { transform: none; }
.post-in {
  position: relative; height: 100%; padding: 8cqi;
  background-color: var(--s-bg); color: var(--s-ink); font-family: var(--s-fb);
  transition: background-color .5s, color .5s;
}
.post-k { display: inline-block; padding: 1.6cqi 3.6cqi; border-radius: 999px; background: var(--s-ink); color: var(--s-bg); font-size: 4.4cqi; font-weight: 700; }
.post-t { font-family: var(--s-fh); font-weight: var(--s-hw); letter-spacing: var(--s-track); font-size: 10.5cqi; line-height: 1.04; margin-top: 6cqi; max-width: 90%; overflow-wrap: anywhere; position: relative; z-index: 1; }
[data-style="E"] .post-t { text-transform: uppercase; font-size: 9cqi; }
.post-ic { position: absolute; right: -6cqi; bottom: 12cqi; width: 46cqi; height: 46cqi; color: var(--s-acc); opacity: .2; stroke-width: 1.1; }
.post-foot { position: absolute; left: 8cqi; right: 8cqi; bottom: 7cqi; display: flex; align-items: center; gap: 3cqi; font-size: 4.4cqi; font-weight: 700; min-width: 0; }
.post-foot > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-foot .s-mark, .story-top .s-mark { width: 9cqi; height: 9cqi; font-size: 3.4cqi; border-radius: 2.6cqi; }
.post-chips { display: flex; flex-wrap: wrap; gap: 2cqi; margin-top: 6cqi; }
.post-chips span { padding: 2cqi 3.6cqi; border-radius: min(999px, var(--s-btn-r)); background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line); font-size: 4.4cqi; font-weight: 700; }
.post--slots .post-chips span:first-child { background: var(--s-btn); color: var(--s-btn-ink); box-shadow: none; }
.post--grad .post-in { background: linear-gradient(150deg, var(--s-acc), color-mix(in srgb, var(--s-acc) 62%, #000)); color: #fff; }
.post--grad .post-k { background: rgba(255, 255, 255, .18); color: #fff; }
.post--grad .post-ic { color: #fff; opacity: .22; }
.post--grad .s-mark { background: #fff; color: var(--s-acc); }
[data-style="E"] .post--grad .post-in { background: #111; }
[data-style="E"] .post--grad .post-t { color: var(--s-hl); }
[data-style="E"] .post--grad .s-mark { color: #111; background: var(--s-hl); }
[data-style="G"] .post--grad .post-in { background: linear-gradient(150deg, #B94A22, #6E2A12); }
.post--story { aspect-ratio: 9 / 16; grid-column: 2; grid-row: 2 / span 2; }
.post--grad { grid-column: 1; grid-row: 2; }
@media (min-width: 900px) {
  .post--story, .post--grad { grid-column: auto; grid-row: auto; }
}
.post--story .post-in { display: flex; flex-direction: column; padding: 7cqi 8cqi 9cqi; }
.story-bar { display: flex; gap: 1.6cqi; margin-bottom: 4cqi; }
.story-bar i { flex: 1; height: 1cqi; min-height: 2px; border-radius: 2px; background: var(--s-ink); opacity: .25; }
.story-bar i:first-child { opacity: .9; }
.story-top { display: flex; align-items: center; gap: 3cqi; font-size: 5.5cqi; font-weight: 700; min-width: 0; }
.story-top > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-ic { width: 40cqi; height: 40cqi; margin: auto auto 6cqi; color: var(--s-acc); stroke-width: 1.2; }
[data-style="E"] .story-ic { color: var(--s-ink); }
.post--story .post-t { font-size: 13cqi; margin-top: 0; max-width: none; }
.post--story .post-t--acc { color: var(--s-acc); margin-bottom: 7cqi; }
[data-style="B"] .post-t--acc { color: #5ED8D4; }
[data-style="D"] .post-t--acc { background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-style="E"] .post-t--acc { color: var(--s-ink); background: var(--s-hl); width: fit-content; padding: 0 2cqi; }
[data-style="G"] .post-t--acc { font-style: italic; }
.story-cta { display: flex; align-items: center; justify-content: center; min-height: 15cqi; border-radius: min(var(--s-btn-r), 8cqi); background: var(--s-btn); color: var(--s-btn-ink); font-weight: 700; font-size: 6cqi; }
[data-style="E"] .story-cta { box-shadow: inset 0 0 0 2px #111; }
.story-url { margin-top: 3.5cqi; text-align: center; font-size: 4.8cqi; color: var(--s-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.posts-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

/* =========================================================
   ZÁVĚR + PATIČKA + DIALOG
   ========================================================= */
.end-card {
  position: relative; overflow: hidden; border-radius: 32px; padding: 44px 24px; text-align: center;
  background: radial-gradient(80% 120% at 85% 0%, rgba(155, 107, 242, .45), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(123, 63, 228, .35), transparent 60%), var(--dark);
  color: #fff;
}
.end-card .h2 { margin-top: 0; }
.end-card .grad { background-image: linear-gradient(100deg, #B794FF, #E0D0FF); }
.end-card .lead { color: rgba(255, 255, 255, .78); margin: 0 auto 26px; }
.end-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.end-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin-top: 26px; font-size: 14.5px; color: rgba(255, 255, 255, .7); }
@media (min-width: 700px) { .end-card { padding: 80px 40px; } }

.foot { padding: 30px 0 84px; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.badge { justify-self: start; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--dark); color: #fff; }

.dlg { width: min(580px, calc(100% - 24px)); max-height: calc(100svh - 24px); border: 0; padding: 0; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(20, 10, 46, .6); }
.dlg::backdrop { background: rgba(20, 10, 46, .5); backdrop-filter: blur(4px); }
.dlg[open] { animation: rise .45s var(--ease) both; }
.dlg-in { position: relative; padding: 26px 22px 24px; display: grid; gap: 14px; }
@media (min-width: 600px) { .dlg-in { padding: 34px; } }
.dlg-x { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg); font-size: 26px; line-height: 1; cursor: pointer; }
.dlg-h { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.dlg-sum { font-size: 14px; color: #4B21A8; background: #F4EFFE; padding: 10px 12px; border-radius: 12px; }
#qForm { display: grid; gap: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: -6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--g1); flex: none; }
.err { color: #B42318; font-weight: 600; font-size: 14.5px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.done { display: grid; gap: 12px; justify-items: start; }
.done-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.done-ic .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.payload { width: 100%; max-height: 220px; overflow: auto; margin: 0; padding: 12px; border-radius: 12px; background: #140A2E; color: #E8E0FF; font-family: var(--mono); font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }

/* =========================================================
   OMEZENÝ POHYB – konečné stavy, fáze pod sebou
   ========================================================= */
.rm .ds, .rm .ph { height: auto; }
.rm .stage { position: relative; height: auto; padding: 72px 0; overflow: clip; }
.rm .ds-board { height: auto; grid-template-areas: "colors type" "buttons cards" "screen screen"; grid-template-rows: auto; }
.rm .cell-screen { position: relative; inset: auto; opacity: 1; }
.rm .ds-board > .cell:not(.cell-screen) { opacity: 1; }
.rm .phones { height: 520px; }
.rm .phone { --in: 1; --f: 0; }
@media (min-width: 1000px) {
  .rm .ds-board { grid-template-areas: "colors type screen" "buttons cards screen"; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mobil: menší štítek, ať nepřekrývá obsah */
@media (max-width: 640px) {
  .demo-pill { font-size: 11px; padding: 5px 10px 5px 9px; left: 8px; bottom: 8px; }
  body { padding-bottom: 48px; }
}
