/* wdd.cz — návrh A „Papír“. Jeden list přes celou šířku na šedém pozadí:
   bílá navigace a pásy (krémová, bílá, černá) těsně pod sebou, zakulacený začátek a konec.
   Navigace stojí nahoře pořád stejná, obsah zajíždí pod ni; po posunu jemné bílé sklo (.top.scrolled).
   Megamenu Reference / Aplikace / Hosting, plynulé přechody mezi stránkami (View Transitions). */

@font-face { font-family: Archivo; src: url(fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Archivo; src: url(fonts/archivo-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Newsreader; src: url(fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Newsreader; src: url(fonts/newsreader-ext.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Newsreader; font-style: italic; src: url(fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Newsreader; font-style: italic; src: url(fonts/newsreader-italic-ext.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-ext-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F; }

:root {
  --bg: #f5f6f8;          /* naše šedá */
  --ink: #0e1218;
  --ink-2: #2a313c;
  --mute: #5c6573;
  --line: #e1e4ea;
  --line-2: #d7dbe3;
  --white: #fff;
  --cream: #f1ece3;
  --cream-line: #e4ddd0;
  --night: #0e1218;
  --night-2: #171c24;
  --night-line: #262d38;
  --night-mute: #8e96a3;
  --night-text: #b7bec9;
  /* stavové barvy jen pro stav služeb */
  --ok: #1f9d57;
  --warn: #d48806;
  --bad: #d93025;
  --off: #aab1bc;

  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --content: 1168px;       /* šířka obsahu uvnitř pásů */
  --frame: 12px;           /* šedý okraj kolem listu */
  --radius: 24px;          /* zakulacení listu nahoře a dole */
  --pad-x: clamp(20px, 4.4vw, 56px);
  --pad-y: clamp(48px, 6vw, 88px);
  --nav-x: max(var(--pad-x), calc((100% - var(--content)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--frame) + 92px); }
@media (prefers-reduced-motion: no-preference) { html:not(.smooth-js) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; font-stretch: 125%; letter-spacing: -0.02em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.black :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

.mono { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); line-height: 1.4; }
.black .mono { color: var(--night-mute); }
.lead { font-family: var(--serif); font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--mute); }
.black .lead { color: var(--night-text); }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink-2); }

/* ── Stránka: jeden list, pásy bez mezer ─────────────────────── */
.page { padding: 0 var(--frame); }
.sheet { background: var(--white); border-radius: 0 0 var(--radius) var(--radius); overflow: clip; }
.band { padding: var(--pad-y) var(--pad-x); position: relative; }
.band.white { background: var(--white); }
.band.cream { background: var(--cream); }
.band.black { background: var(--night); color: #f5f6f8; }
.band.white + .band.white { border-top: 1px solid var(--line); }
.in { max-width: var(--content); margin: 0 auto; }

/* ── Navigace ─────────────────────────────────────────────────
   Hlavička je přilepená nahoře celá: šedý pruh nad navigací a bílý pruh se zaoblenými
   horními rohy. Obsah zajíždí pod ni. Rohy kreslí ::before / ::after (šedá mimo oblouk),
   takže pod průsvitným sklem nikde neprosvítá obsah. */
/* view-transition-name dostává hlavička jen během přechodu stránek (site.js): trvale by z ní udělal
   „backdrop root“ a sklo by přestalo rozmazávat obsah pod sebou. */
.top { position: sticky; top: 0; z-index: 30; margin: 0 calc(-1 * var(--frame)); padding: var(--frame) var(--frame) 0; }
.top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--frame); background: var(--bg); }
.nav { height: 76px; background: rgba(255, 255, 255, 1); color: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--nav-x); position: relative; box-shadow: 0 1px 0 rgba(14, 18, 24, 0); transition: background-color .5s ease, box-shadow .5s ease; }
.nav::before, .nav::after { content: ""; position: absolute; top: 0; width: var(--radius); height: var(--radius); pointer-events: none; z-index: 1; }
.nav::before { left: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--radius) - .5px), var(--bg) var(--radius)); }
.nav::after { right: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--radius) - .5px), var(--bg) var(--radius)); }
/* Po posunu jemné bílé sklo: obsah pod ním prosvítá rozmazaně, text zůstává tmavý. */
.top.scrolled .nav { background: rgba(255, 255, 255, .8); box-shadow: 0 1px 0 rgba(14, 18, 24, .07); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .top.scrolled .nav { background: rgba(255, 255, 255, .97); } }
html.mm-open .top .nav { background: var(--white); }
.brand { display: flex; align-items: center; color: inherit; padding: 8px 0; position: relative; z-index: 2; }
.logo { display: block; height: 28px; width: auto; margin: 0 calc(-28px * 8 / 100.25); fill: currentColor; overflow: visible; }
.logo .sq { shape-rendering: crispEdges; }
.links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.mi { position: static; }
.mt, .ml { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font: inherit; font-size: 15px; font-weight: 500; color: inherit; background: none; border: 0; cursor: pointer; }
.mt::after, .ml::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.mt:hover::after, .ml:hover::after, .mt[aria-expanded="true"]::after, .mt[data-active]::after, .ml[aria-current]::after { transform: scaleX(1); }
.chev { width: 10px; height: 10px; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.mt[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; transition: border-color .2s; }
.pill:hover { border-color: var(--ink); }
.menu-btn { display: none; font: inherit; font-size: 15px; font-weight: 600; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: inherit; cursor: pointer; transition: border-color .2s; }
.menu-btn:hover { border-color: var(--ink); }
.menu-close, .nav.open .menu-open { display: none; }
.nav.open .menu-close { display: inline; }

/* ── Megamenu ── */
/* Panel jen vyjede zpod navigace: odkrývá se odshora dolů, obsah dojede o kousek. Žádná vrstva přes stránku. */
.mp { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 32px var(--nav-x) 36px; cursor: auto; }
.mp[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mp { animation: mp-in .5s cubic-bezier(.16,1,.3,1) both; }
  .mp > * { animation: mp-content .55s cubic-bezier(.16,1,.3,1) both; }
  .mp.swap, .mp.swap > * { animation: none; }
  .mp.closing { animation: mp-out .28s cubic-bezier(.4,0,1,1) both; }
  .mp.closing > * { animation: none; }
  @keyframes mp-in { from { clip-path: inset(0 0 100% 0 round 0 0 var(--radius) var(--radius)); } to { clip-path: inset(0 -1px -1px -1px round 0 0 var(--radius) var(--radius)); } }
  @keyframes mp-out { from { clip-path: inset(0 -1px -1px -1px round 0 0 var(--radius) var(--radius)); } to { clip-path: inset(0 0 100% 0 round 0 0 var(--radius) var(--radius)); } }
  @keyframes mp-content { from { opacity: 0; transform: translateY(-14px); } }
}
.mp .mono { display: block; }
.mp-ref { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 48px; }
.mp-list { margin-top: 12px; }
.mp-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; transition: padding-left .25s cubic-bezier(.16,1,.3,1); }
.mp-list a:hover { padding-left: 6px; }
.mp-list a span { font-size: 13px; font-weight: 400; color: var(--mute); text-align: right; }
.mp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.mp-card .shot, .mp-app .shot { aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 10px; }
.mp-card .shot img, .mp-app .shot img { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.mp-card:hover .shot img, .mp-app:hover .shot img { transform: scale(1.04); }
.mp-card b, .mp-app b { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; font-stretch: 115%; letter-spacing: -0.01em; }
.mp-card > span:last-child, .mp-app > span:last-child { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); }
.mp-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.mp-apps { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 48px; }
.mp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mp-app > span:last-child { font-family: var(--serif); font-size: 15px; line-height: 1.4; }
.mp-row { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); margin-top: 12px; }
.mp-row b { display: block; font-size: 15px; font-weight: 600; }
.mp-row span { font-size: 13px; color: var(--mute); }
.mp-note { margin-top: 16px; font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--mute); }
.mp-host { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mp-tile { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 14px; background: var(--bg); transition: background .25s; }
.mp-tile:hover { background: #eceef2; }
.mp-tile b { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; font-stretch: 115%; letter-spacing: -0.01em; }
.mp-tile > span:not(.mono) { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--mute); }
.mp-tile .mono { margin-top: auto; padding-top: 10px; }

/* Stavová tečka: šedá, dokud stav neznáme. Barvy jen pro stav. */
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--off); position: relative; }
.dot[data-lv="ok"] { background: var(--ok); }
.dot[data-lv="warn"] { background: var(--warn); }
.dot[data-lv="bad"] { background: var(--bad); }
.dot.big { width: 11px; height: 11px; }
@media (prefers-reduced-motion: no-preference) {
  .dot.pulse[data-lv]:not([data-lv="unknown"])::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; animation: pulse 2.6s cubic-bezier(.2,.6,.35,1) infinite; }
  .dot.pulse[data-lv="warn"]::after, .dot.pulse[data-lv="bad"]::after { animation-duration: 1.5s; }
  @keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.7); opacity: 0; } }
}

/* ── Tlačítka a odkazy ───────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.2; transition: background .2s, border-color .2s, color .2s; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a313c; }
.btn-line { border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.black .btn-line { border-color: #3a4250; color: #fff; }
.black .btn-line:hover { border-color: #fff; }
.arrow { display: inline-block; transition: transform .25s ease; }
a:hover .arrow { transform: translateX(4px); }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-weight: 600; font-size: 15px; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }

/* ── Rámeček prohlížeče se snímkem ───────────────────────────── */
.frame { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: clip; background: var(--white); transition: border-color .25s, transform .35s ease; }
.frame .bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.frame .bar i { width: 8px; height: 8px; border-radius: 50%; background: #dde1e8; }
.frame .bar span { margin-left: 10px; font-family: var(--mono); font-size: 10.5px; color: #8a919c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot { display: block; position: relative; aspect-ratio: 16 / 9; overflow: clip; background: #eef0f4; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
a.frame:hover { border-color: #b9bfca; }
.black .frame { border-color: var(--night-line); background: var(--night-2); }
.black .frame .bar { background: var(--night-2); border-color: var(--night-line); }
.black .frame .bar i { background: #343c49; }

/* ── Úvod ─────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(32px, 4.4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.05; margin-top: 18px; }
.hero .lead { margin-top: 24px; max-width: 540px; }
.hero .actions { margin-top: 32px; }
.hero-show { position: relative; }
.hero-frame .shot img { opacity: 0; transition: opacity .7s ease; }
.hero-frame .shot img.is-on { opacity: 1; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.thumb { border-radius: 8px; position: relative; }
.thumb .shot { aspect-ratio: 16 / 10; }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .25s; pointer-events: none; }
.thumb.is-on::after { box-shadow: inset 0 0 0 2px var(--ink); }

/* ── Hlavičky sekcí ───────────────────────────────────────────── */
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.sh h2 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.08; margin-top: 10px; }
.sh .note { max-width: 420px; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--mute); }
.black .sh .note { color: var(--night-text); }

/* ── Karty referencí ──────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: 14px; overflow: clip; transition: transform .35s ease; }
.card .shot { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--cream-line); }
.card .shot img { transition: transform .6s cubic-bezier(.2,.6,.35,1); }
.card:hover .shot img { transform: scale(1.03); }
.card-b { padding: 16px 20px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.card-b b { font-size: 18px; font-weight: 600; font-stretch: 115%; letter-spacing: -0.01em; }
.card-b span { font-size: 14px; color: var(--mute); }
.white .card { border: 1px solid var(--line); }
.white .card .shot { border-bottom-color: var(--line); }
.card[hidden] { display: none; }

/* ── Aplikace (černý panel) ───────────────────────────────────── */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app { display: flex; flex-direction: column; background: var(--night-2); border-radius: 14px; padding: 24px 24px 0; overflow: clip; color: #f5f6f8; transition: background .25s; }
.app:hover { background: #1c222c; }
.app-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.app-h b { font-size: 24px; font-weight: 500; font-stretch: 125%; letter-spacing: -0.02em; }
.app p { margin: 10px 0 20px; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--night-text); }
.app-shot { margin-top: auto; height: 190px; border-radius: 10px 10px 0 0; overflow: clip; background: #fff; position: relative; }
.app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .6s cubic-bezier(.2,.6,.35,1); }
.app:hover .app-shot img { transform: translateY(-6px); }
.skel { position: absolute; inset: 0; padding: 14px; display: flex; gap: 14px; }
.skel i { display: block; background: #eef0f4; border-radius: 3px; }
.skel .side { width: 56px; border-radius: 6px; }
.skel .col { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.apps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot.app-big { aspect-ratio: 16 / 10; }
.gallery .shot { aspect-ratio: 16 / 10; }

/* ── Hosting ──────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.fact { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.fact b { display: block; font-size: clamp(28px, 2.8vw, 38px); font-weight: 500; font-stretch: 125%; letter-spacing: -0.02em; line-height: 1.1; }
.fact span { display: block; margin-top: 8px; font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--mute); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hc { display: flex; flex-direction: column; background: var(--bg); border-radius: 14px; padding: 24px; transition: background .25s; }
a.hc:hover { background: #eceef2; }
.hc h3 { font-size: 21px; font-weight: 600; font-stretch: 115%; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.hc p { margin-top: 10px; font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--mute); }
.hc .mono { margin-top: auto; padding-top: 16px; }
/* ── Živý pult provozu: čísla ze status.wdd.systems, bez čerstvých dat pomlčka ── */
.pult { background: var(--night); color: #f5f6f8; border-radius: 18px; padding: 24px 28px 28px; margin-bottom: clamp(28px, 3vw, 40px); position: relative; overflow: clip; }
.pult::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.pult-h { position: relative; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--night-line); }
.pult-s { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; font-stretch: 115%; }
.pult-h .mono { color: var(--night-mute); }
.pult-a { margin-left: auto; transition: color .2s; }
.pult-a:hover { color: #fff !important; }
.pult-g { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pc { padding: 22px 18px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.pc + .pc { padding-left: 18px; border-left: 1px solid var(--night-line); }
.pc-n { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--night-text); }
.pc-v { font-family: var(--mono); font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pc-v small { font-size: .55em; color: var(--night-mute); margin-left: 3px; letter-spacing: 0; }
.pc-l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--night-mute); }
@media (prefers-reduced-motion: no-preference) {
  .pc-v.in { animation: pc-in .9s cubic-bezier(.16,1,.3,1) both; }
  .pc:nth-child(2) .pc-v.in { animation-delay: .06s; } .pc:nth-child(3) .pc-v.in { animation-delay: .12s; }
  .pc:nth-child(4) .pc-v.in { animation-delay: .18s; } .pc:nth-child(5) .pc-v.in { animation-delay: .24s; }
  @keyframes pc-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
}

/* ── Kontakt ──────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 4.4vw, 56px); align-items: end; }
.contact h2 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.05; margin-top: 12px; }
.contact .lead { margin-top: 18px; max-width: 520px; }
.rows { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: var(--white); border-radius: 14px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; font-stretch: 115%; letter-spacing: -0.01em; transition: background .2s, color .2s; }
.row:hover { background: var(--ink); color: #fff; }
.white .row { background: var(--cream); }
.white .row:hover { background: var(--ink); }
.row small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-stretch: 100%; margin-bottom: 4px; }
.row:hover small { color: #8e96a3; }

/* ── Patička ──────────────────────────────────────────────────── */
/* ── Patička: velké logo přes celou šířku obsahu ── */
.foot { padding: 28px calc(var(--nav-x) - var(--frame)) clamp(20px, 3vw, 40px); font-size: 14px; color: var(--mute); overflow-x: clip; }
.nw { white-space: nowrap; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { transition: color .2s; }
.foot nav a:hover { color: var(--ink); }
/* Glyfy loga zabírají 479,3 z 495,3 jednotek šířky (okraj 8 na každé straně). */
.foot-logo { display: block; margin-top: clamp(28px, 4vw, 56px); color: var(--ink); }
.foot-logo .logo { width: calc(100% * 495.3 / 479.3); height: auto; margin: 0 0 0 calc(-100% * 8 / 479.3); }
@media (prefers-reduced-motion: no-preference) {
  /* Čtvereček v logu dosedne na své místo, jak patička vjíždí do obrazu. */
  @supports (animation-timeline: view()) {
    .foot-logo { view-timeline: --flogo block; }
    .foot-logo .sq { transform-box: fill-box; transform-origin: center; animation: sq-drop linear both; animation-timeline: --flogo; animation-range: entry 10% entry 100%; }
    @keyframes sq-drop { from { transform: translateY(-150%) rotate(-90deg); } 70% { transform: translateY(6%) rotate(0); } to { transform: none; } }
  }
}

/* ── Detail reference a aplikace ─────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 8px; }
.back:hover { color: var(--ink); }
.black .back:hover { color: #fff; }
.d-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: end; margin-top: 22px; }
.d-head h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; }
.d-head .lead { margin-top: 20px; }
.meta { display: grid; gap: 0; border-top: 1px solid var(--line); }
.meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.meta dt { margin: 0; }
.meta dd { margin: 0; font-weight: 500; text-align: right; }
.meta a { border-bottom: 1px solid currentColor; }
.black .meta, .black .meta div { border-color: var(--night-line); }
.cream .meta, .cream .meta div { border-color: var(--cream-line); }
.d-shot { margin-top: clamp(28px, 4vw, 48px); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4.4vw, 64px); }
.story h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; margin: 10px 0 18px; }
.steps { counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--cream-line); font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--mute); padding-top: 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(14, 18, 24, .06); font-size: 13px; font-weight: 500; }
.white .tag { background: var(--bg); }
.white .steps li { border-top-color: var(--line); }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.feat { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.feat .mono { display: block; margin-bottom: 12px; }
.feat h3 { font-size: 21px; font-weight: 600; font-stretch: 115%; letter-spacing: -0.01em; }
.feat p { margin-top: 8px; font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--mute); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
.tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; margin-top: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.views { flex: none; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(14, 18, 24, .06); }
.views button { font: inherit; font-size: 14px; font-weight: 500; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.views button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 18, 24, .08); }
/* ── Rejstřík referencí ── */
.index[hidden] { display: none; }
.ix-h, .ix-row { display: grid; grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) 24px; gap: 16px; align-items: baseline; }
.ix-h { padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.ix-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.ix-row[hidden] { display: none; }
.ix-n { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.ix-row b { font-size: clamp(20px, 2vw, 28px); font-weight: 500; font-stretch: 125%; letter-spacing: -0.02em; line-height: 1.15; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.ix-d, .ix-o { font-size: 14px; color: var(--ink-2); }
.ix-w { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.ix-row .arrow { justify-self: end; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.ix-row:hover b { transform: translateX(10px); }
.ix-row:hover .arrow { opacity: 1; transform: none; }
.index:hover .ix-row:not(:hover) { opacity: .45; }
.ix-row { transition: opacity .3s; }
/* Náhled, který na počítači jede za kurzorem */
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: 340px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; pointer-events: none; opacity: 0; scale: .92; transition: opacity .25s ease, scale .35s cubic-bezier(.16,1,.3,1); box-shadow: 0 30px 60px -20px rgba(14, 18, 24, .35); background: #eef0f4; will-change: transform; }
.peek.on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.filters button { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button span { opacity: .7; margin-left: 4px; }
.err { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.err h1 { font-size: clamp(40px, 5vw, 64px); margin: 18px 0 20px; }
.err .actions { margin-top: 32px; }

/* ── Pohyb (jen bez „omezit pohyb“) ───────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  /* Objevení při posunu: jemně a pomalu */
  html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1); }
  html.js .rv.seen { opacity: 1; transform: none; }
  /* Snímky v kartách se při posunu lehce posouvají v rámečku (hloubka). Jen kde to prohlížeč umí.
     Rámečky ořezávají přes overflow: clip — overflow: hidden by z nich udělal posuvník a časová osa by stála. */
  @supports (animation-timeline: view()) {
    .card .shot img, .d-shot .shot img { scale: 1.06; animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { translate: 0 -2.5%; } to { translate: 0 2.5%; } }
  }
  /* Přechod mezi stránkami: snímek reference se přesune z karty do detailu, zbytek se prolne. */
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
  ::view-transition-old(root) { animation: vt-out .25s ease both; }
  ::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.16,1,.3,1) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}

/* ── Menší obrazovky ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-show { max-width: 720px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 900px) {
  .links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open .links { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--nav-x) 22px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); max-height: calc(100dvh - var(--frame) - 80px); overflow-y: auto; overscroll-behavior: contain; }
  @media (prefers-reduced-motion: no-preference) {
    .nav.open .links { animation: mp-in .5s cubic-bezier(.16,1,.3,1) both; }
    .nav.open .links > * { animation: mp-content .55s cubic-bezier(.16,1,.3,1) both; }
    .nav.closing .links { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--nav-x) 22px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); animation: mp-out .28s cubic-bezier(.4,0,1,1) both; }
  }
  .mi, .ml { border-bottom: 1px solid var(--line); }
  .mt, .ml { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 18px; }
  .mt::after, .ml::after { display: none; }
  .mp, .mp > *, .mp.closing { position: static; padding: 0 0 18px; border: 0; border-radius: 0; animation: none; }
  .mp > * { padding: 0; }
  .mp-ref, .mp-apps, .mp-host { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mp-feat, .mp .shot { display: none; }
  .mp-tiles { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mp-app { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mp-app b { margin-top: 0; }
  .mp-tile { padding: 16px 18px; }
  .nav.open .links .pill { align-self: flex-start; margin-top: 18px; }
  .sh { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cards, .apps, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps .app:last-child:nth-child(odd), .g3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .contact, .d-head, .story { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pult-g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc:nth-child(4) { border-left: 0; padding-left: 0; }
  .tools { flex-direction: column; }
  .ix-h, .ix-row { grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) 24px; }
  .ix-o, .ix-w, .ix-h span:nth-child(4), .ix-h span:nth-child(5) { display: none; }
}
@media (max-width: 620px) {
  :root { --frame: 8px; --radius: 20px; }
  .nav { height: 64px; padding: 0 16px 0 20px; }
  html { scroll-padding-top: calc(var(--frame) + 76px); }
  .logo { height: 24px; margin: 0 calc(-24px * 8 / 100.25); }
  .cards, .apps, .apps.two, .g3, .g2, .feats, .gallery { grid-template-columns: minmax(0, 1fr); }
  .pult { padding: 20px; }
  .pult-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pc, .pc + .pc { padding: 16px 0 8px; border-left: 0; }
  .pult-a { margin-left: 0; }
  .ix-h { display: none; }
  .ix-row { grid-template-columns: 36px minmax(0, 1fr); row-gap: 2px; }
  .ix-d { grid-column: 2; }
  .ix-o, .ix-w, .ix-row .arrow { display: none; }
  .thumbs { gap: 8px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .row { padding: 18px 20px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
