/* Layout: 12-col Swiss grid, 1280 content, typography carries the page; one flat accent. */
:root {
  --ground: #ffffff;
  --mist: #eaeef6;
  --mist-deep: #dfe5f0;
  --ink: #0d0e12;
  --ink-2: #16181f;
  --paper-inv: #f3f5f9;
  --muted-base: #565f6e;
  --muted: var(--muted-base);
  --muted-inv: #a3acba;
  --line: #d3dae6;
  --line-strong: #aab3c2;
  --line-inv: rgba(243, 245, 249, .16);
  --line-inv-strong: rgba(243, 245, 249, .42);
  --accent: #2438f0;
  --accent-hover: #1a2ac2;
  --accent-bright: #818dff;
  --accent-soft: #eceffe;
  --on-accent: #ffffff;
  --on-accent-muted: rgba(255, 255, 255, .84);
  --line-on-accent: rgba(255, 255, 255, .32);
  --scrim: rgba(13, 14, 18, .72);
  --focus: var(--accent);

  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --fs-display: clamp(3.25rem, 10.2vw, 9.25rem);
  --fs-h2: clamp(2.125rem, 4.8vw, 4.5rem);
  --fs-statement: clamp(1.625rem, 3.3vw, 3rem);
  --fs-lead: clamp(1.125rem, 1.5vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-micro: .8125rem;

  --wrap: 1280px;
  --gutter: clamp(16px, 4.5vw, 72px);
  --header-h: 76px;
  --ease: cubic-bezier(.79, .01, .22, .99);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a[href], button, summary, label, input[type="radio"], input[type="checkbox"] { cursor: pointer; }
button[disabled] { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.grid-12 { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
}

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--paper-inv); border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.mock-note { background: var(--ink); color: var(--paper-inv); font-size: var(--fs-micro); text-align: center; padding: 0 16px; }
.mock-note a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; font-weight: 600; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color .25s var(--ease-out), color .25s var(--ease-out), filter .2s var(--ease-out); }
.btn:active { filter: brightness(.9); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-small); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--light { background: var(--paper-inv); color: var(--ink); }
.btn--light:hover { background: var(--ground); }
.btn--on-accent { background: var(--ground); color: var(--ink); }
.btn--on-accent:hover { background: var(--ink); color: var(--ground); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-underline-offset .25s var(--ease-out); }
.link:hover { text-underline-offset: 3px; text-decoration-thickness: 2px; }
.link:active { opacity: .7; }
.link-btn { background: none; border: 0; padding: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--mist); transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .6s var(--ease); }
.site-header.is-scrolled, .site-header[data-open="true"] { background: var(--ground); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; padding-block: 9px; }
.brand img { height: 26px; width: auto; }
.menu-toggle { min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 600; font-size: var(--fs-small); transition: background-color .25s var(--ease-out), color .25s var(--ease-out); }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--ground); }
.nav { display: none; }
.nav__list a { text-decoration: none; font-weight: 500; }
.nav__lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; font-weight: 600; font-size: var(--fs-small); color: var(--muted); }
.nav__lang:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1023.98px) {
  .site-header[data-open="true"] .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - var(--header-h)); overflow: auto;
    background: var(--ground); border-bottom: 1px solid var(--line);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 28px max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .nav__list a { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
  .nav__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 32px; }
  .nav__list { display: flex; gap: 4px; }
  .nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: var(--fs-small); text-underline-offset: 6px; }
  .nav__list a:hover { text-decoration: underline; }
  .nav__actions { display: flex; align-items: center; gap: 12px; }
}

/* Hero */
.hero__stage { position: relative; padding-top: clamp(48px, 9vw, 128px); background: var(--mist); }
.hero__stage > .wrap { position: relative; z-index: 1; }
.field { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.reel__toggle .i-play { display: none; }
.reel__toggle[data-state="paused"] .i-play { display: block; }
.reel__toggle[data-state="paused"] .i-pause { display: none; }
.hero__wrap { container-type: inline-size; }
.hero__lockup { --d: calc(100cqi / 8.15); position: relative; }
.hero__title { font-size: var(--d); font-weight: 800; line-height: .88; letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; font-variation-settings: 'opsz' 32; }
.hero__line { display: block; overflow: hidden; padding-block: .1em; margin-block: -.1em; }
.hero__line > span { display: inline-block; }
.hero__services { display: grid; justify-items: start; margin-top: 20px; font-size: clamp(1.375rem, 6.4cqi, 2rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; font-variation-settings: 'opsz' 32; }
.hero__services li { clip-path: inset(-.1em -.3em -.3em -.3em); }
.hero__services a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .08em; text-underline-offset: .12em; transition: color .25s var(--ease-out), text-decoration-color .25s var(--ease-out); }
.hero__services a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
@container (min-width: 720px) {
  .hero__services { position: absolute; top: calc(var(--d) * .927); right: 0; justify-items: end; margin: 0; font-size: calc(var(--d) * .2); line-height: .98; text-align: right; transform: translateY(-100%); }
  .hero__services a { min-height: 0; }
}
.hero__row { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 768px) {
  .hero__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .hero__intro { grid-column: 1 / span 6; }
  .hero__side { grid-column: 8 / span 5; }
}
@media (min-width: 1024px) {
  .hero__side { grid-column: 9 / span 4; }
}
.hero__lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.hero__note { color: var(--muted); font-size: var(--fs-small); max-width: 36ch; }
.hero__side .link { margin-top: 12px; }

.reel-band { background: linear-gradient(var(--mist) 0 50%, var(--ground) 50% 100%); }
.reel { --reel-x: max(var(--gutter), calc((100% - var(--wrap)) / 2)); --reel-r: clamp(16px, 2vw, 28px); position: relative; height: min(56.25vw, 88svh); overflow: hidden; background: var(--ink); clip-path: inset(0 var(--reel-x) round var(--reel-r)); }
/* Na mobilu na výšku stejné video 16:9 jako na počítači, rámeček má jeho poměr (svislá verze měla černé pruhy) */
@media (max-width: 767.98px) and (orientation: portrait) {
  .reel { height: calc((100vw - 2 * var(--gutter)) * 9 / 16); }
}
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__toggle { position: absolute; right: calc(var(--reel-x) + 16px); bottom: 16px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--scrim); color: var(--paper-inv); transition: background-color .25s var(--ease-out); }
.reel__toggle:hover { background: var(--ink); }
.reel__toggle:focus-visible { outline-color: var(--paper-inv); }
.reel__toggle svg { width: 18px; height: 18px; }

/* Sections */
.section { position: relative; padding-block: var(--section-y, clamp(72px, 10vw, 144px)); }
.section--mist::before, .section--ink::before, .section--accent::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--section-bg); }
.story { position: fixed; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
.section--mist { --section-bg: var(--mist); }
.section--ink { --section-bg: var(--ink); color: var(--paper-inv); --muted: var(--muted-inv); --line: var(--line-inv); --line-strong: var(--line-inv-strong); --focus: var(--paper-inv); }
.section--accent { --section-bg: var(--accent); color: var(--on-accent); --muted: var(--on-accent-muted); --line: var(--line-on-accent); --focus: var(--on-accent); }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: .98; letter-spacing: -.045em; font-variation-settings: 'opsz' 32; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .h2 { max-width: 16ch; }
.section-head--stack { display: grid; justify-content: start; gap: 24px; }
.section-head--stack .h2 { max-width: 20ch; }

/* Problems */
.problems { --section-y: clamp(80px, 12vw, 168px); }
@media (min-width: 1024px) {
  .problems__title { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .xlist { grid-column: 7 / span 6; }
}
.xlist li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 16px; padding-block: 20px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.35; font-weight: 500; }
.xlist li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(var(--draw, 1)); transform-origin: left; }
.xlist li:last-child { border-bottom: 1px solid var(--line); }
.xlist__text { display: block; }
.xmark { width: 14px; height: 14px; margin-top: .4em; color: var(--accent); }
.statement { margin-top: clamp(64px, 9vw, 128px); font-size: var(--fs-statement); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; max-width: 28ch; text-wrap: balance; }

/* Services */
.svc { border-top: 1px solid var(--ink); }
.svc__row { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: start; padding-block: clamp(28px, 3.4vw, 44px); text-decoration: none; transition: color .45s var(--ease); }
.svc__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); transform: scaleX(var(--draw, 1)); transform-origin: left; }
.svc__title { font-size: clamp(1.75rem, 3.4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variation-settings: 'opsz' 32; transition: transform .6s var(--ease); }
.svc__body { grid-column: 1 / -1; }
.svc__desc { color: var(--muted); max-width: 52ch; transition: color .45s var(--ease); }
.svc__outcome { margin-top: 12px; font-weight: 600; max-width: 52ch; }

/* Na čem to poběží: tři sloupce textu oddělené linkou, linka se kreslí jako u služeb (--draw). */
.plat { display: grid; gap: 0 24px; }
.plat__item { position: relative; display: grid; align-content: start; gap: 12px; padding-block: clamp(28px, 3.4vw, 40px); }
.plat__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform: scaleX(var(--draw, 1)); transform-origin: left; }
.plat__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; font-variation-settings: 'opsz' 32; }
.plat__what { max-width: 44ch; }
.plat__when, .plat__ref { color: var(--muted); font-size: .95rem; max-width: 44ch; }
.plat__when strong { color: var(--ink); font-weight: 600; }
.plat__ref a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.plat__ref a:hover { color: var(--ink); text-decoration-thickness: 2px; }
.plat__note { margin-top: clamp(24px, 3vw, 40px); color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .plat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--ink); color: var(--ground); transition: background-color .3s var(--ease-out), transform .6s var(--ease); }
.arrow svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .svc__row::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(-1 * min(var(--gutter), 32px)); right: calc(-1 * min(var(--gutter), 32px)); background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
  .svc__row:hover { color: var(--paper-inv); }
  .svc__row:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc__row:hover .svc__desc { color: var(--muted-inv); }
  .svc__row:hover .svc__title { transform: translateX(16px); }
  .svc__row:hover .arrow { background: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
}
@media (min-width: 768px) {
  .svc__row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .svc__title { grid-column: 1 / span 5; }
  .svc__body { grid-column: 6 / span 6; }
  .arrow { grid-column: 12; grid-row: 1; justify-self: end; }
}

/* Vývoj 2.0 */
@media (min-width: 1024px) {
  .v2 { align-items: center; }
  .v2__text { grid-column: 1 / span 6; }
  .v2__stage { grid-column: 8 / span 5; }
}
.kicker { margin-bottom: 20px; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.v2__text .lead { margin-top: 24px; }
.checks { margin-top: 32px; border-top: 1px solid var(--line); }
.checks li { padding-block: 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.v2__stage { background: var(--mist); padding: clamp(20px, 4vw, 56px); }
.req { padding: 24px; border-radius: 16px; background: var(--ground); box-shadow: 0 1px 2px rgba(13, 14, 18, .06), 0 16px 40px -16px rgba(13, 14, 18, .22); }
.req__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: var(--fs-micro); color: var(--muted); }
.req__title { margin-top: 16px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.req__desc { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); }
.prio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; font-size: var(--fs-micro); }
.prio__label { margin-right: 6px; color: var(--muted); }
.prio__opt { padding: 6px 12px; border: 1px solid transparent; border-radius: 8px; background: var(--mist); color: var(--muted); }
.prio__opt.is-on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.steps { margin-top: 24px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding-block: 11px; border-top: 1px solid var(--line); font-size: var(--fs-small); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; transform: scale(var(--tick, 1)); }
.steps small { font-size: var(--fs-micro); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Calculator */
@media (min-width: 1024px) {
  .calc__fields { grid-column: 1 / span 8; }
  .calc__result { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.calc__field { margin: 0; padding: 22px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.calc__field::after { content: ""; display: table; clear: both; }
.calc__field legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
@media (min-width: 768px) {
  .calc__field legend { width: 190px; margin: 10px 0 0; }
  .chips { clear: none; margin-left: 214px; }
}
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: var(--fs-small); transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out); }
.chip:hover span { border-color: var(--paper-inv); }
.chip input:checked + span { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.calc__result { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--line); background: var(--ink-2); }
.calc__top { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-micro); color: var(--muted); font-variant-numeric: tabular-nums; }
.calc__status { display: grid; gap: 6px; overflow: hidden; }
.calc__tier { font-size: var(--fs-small); font-weight: 600; }
.calc__amount { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; word-spacing: .04em; }
.calc__result[data-state="empty"] .calc__amount { font-size: var(--fs-body); font-weight: 500; line-height: 1.5; letter-spacing: 0; color: var(--muted); }
.calc__scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.calc__scale li { padding-top: 10px; border-top: 3px solid var(--line); font-size: var(--fs-micro); color: var(--muted); transition: border-color .45s var(--ease), color .45s var(--ease); }
.calc__scale li.is-on { border-color: var(--accent-bright); color: var(--paper-inv); }
.calc__note { font-size: var(--fs-micro); color: var(--muted); }
.calc-dock { position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--accent-bright); color: var(--ink); font-size: var(--fs-small); font-weight: 600; text-decoration: none; --focus: var(--paper-inv); }
.calc-dock span:last-child { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .calc-dock { display: none; }
}

/* Work */
.work { display: grid; gap: clamp(48px, 6vw, 80px) 24px; }
@media (min-width: 768px) {
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .work { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work__item--feature { grid-column: 1 / -1; }
}
.work__link { display: block; text-decoration: none; }
.cover { container-type: inline-size; display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 7cqi; overflow: hidden; background: var(--mist); transition: background-color .5s var(--ease); }
.cover--ink { background: var(--ink); }
.work__link:hover .cover { background: var(--mist-deep); }
.work__link:hover .cover--ink { background: var(--ink-2); }
.ui { width: min(100%, 400px); padding: 1.2em 1.3em; border-radius: 12px; background: var(--ground); color: var(--ink); font-size: clamp(11px, 3.3cqi, 14px); line-height: 1.35; box-shadow: 0 1px 2px rgba(13, 14, 18, .06), 0 16px 40px -16px rgba(13, 14, 18, .28); }
.ui__head { display: flex; justify-content: space-between; gap: 1em; margin-bottom: .7em; font-weight: 700; }
.ui__muted { font-weight: 500; color: var(--muted); }
.ui__rows li { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding-block: .6em; border-top: 1px solid var(--line); }
.ui__pill { flex: none; padding: .2em .6em; border: 1px solid transparent; border-radius: 6px; background: var(--mist); font-size: .86em; font-weight: 600; }
.ui__pill--soft { background: var(--accent-soft); color: var(--accent-hover); }
.ui__pill--line { background: transparent; border-color: var(--ink); }
.ui__pill--done { background: var(--ink); color: var(--ground); }
.cover--phone { place-items: end center; padding-bottom: 0; }
.ui--phone { width: min(64%, 250px); padding: 1.6em 1.3em 2.4em; border-radius: 22px 22px 0 0; }
.ui__ok { flex: none; width: .8em; height: .8em; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 .22em var(--accent-soft); }
.ui__scope li { display: flex; align-items: center; gap: .6em; padding-block: .45em; }
.ui__scope li::before { content: ""; flex: none; width: 1em; height: 1em; border-radius: 999px; }
.ui__scope .is-in::before { background: var(--accent); box-shadow: inset 0 0 0 .3em var(--accent-soft); }
.ui__scope .is-later { color: var(--muted); }
.ui__scope .is-later::before { border: 1.5px dashed var(--muted); }
.flow { display: grid; grid-template-columns: auto minmax(2em, 1fr) minmax(0, 11em); align-items: center; width: 100%; max-width: 460px; font-size: clamp(10px, 3cqi, 14px); }
.flow__in { display: grid; gap: .6em; }
.flow__in li { padding: .45em .8em; border: 1px solid var(--line-inv); border-radius: 8px; color: var(--paper-inv); font-weight: 600; line-height: 1.35; }
.flow__lines { width: 100%; height: 10.8em; color: var(--accent-bright); }
.flow__lines path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.work__link:hover .flow__lines path { animation: flow-dash .9s linear infinite; }
@keyframes flow-dash { to { stroke-dashoffset: -18; } }
.flow__out { width: 100%; padding: 1em; }
.work__item--feature .ui { width: min(100%, 500px); }
/* Skutečný projekt: snímek obrazovky jako „displej“ zespodu obálky, horní část stránky. */
.cover--shot { grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: stretch; padding: 6% 7% 0; }
.cover--shot img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: top; border-radius: 10px 10px 0 0; box-shadow: 0 1px 2px rgba(13, 14, 18, .06), 0 16px 40px -16px rgba(13, 14, 18, .28); transition: transform .6s var(--ease); }
.work__link:hover .cover--shot img { transform: translateY(-4px); }
div.work__link:hover .cover { background: var(--mist); }
div.work__link:hover .cover--shot img { transform: none; }
div.work__link:hover .work__title { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .cover--shot img { transition: none; } .work__link:hover .cover--shot img { transform: none; } }
.work__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; margin-top: 20px; }
.work__title { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.work__link:hover .work__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.work__client { padding-top: 5px; font-size: var(--fs-micro); font-weight: 600; white-space: nowrap; }
.work__meta { grid-column: 1 / -1; font-size: var(--fs-micro); color: var(--muted); }
@media (min-width: 1024px) {
  .work__item--feature .work__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .work__item--feature .cover { grid-column: 1 / span 8; aspect-ratio: 16 / 9; }
  .work__item--feature .ui { font-size: clamp(12px, 1.9cqi, 16px); }
  .work__item--feature .work__body { grid-column: 9 / span 4; grid-template-columns: 1fr; margin: 0; }
  .work__item--feature .work__client { order: -1; padding: 0; }
  .work__item--feature .work__title { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.08; letter-spacing: -.035em; }
}
.fineprint { margin-top: 40px; font-size: var(--fs-micro); color: var(--muted); }

/* FAQ */
@media (min-width: 1024px) {
  .faq__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .faq__list { grid-column: 7 / span 6; }
}
.faq__head .link { margin-top: 24px; }
.qa { border-top: 1px solid var(--line-strong); }
.qa:last-child { border-bottom: 1px solid var(--line-strong); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-block: 20px; list-style: none; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 600; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 999px; transition: transform .5s var(--ease), background-color .3s var(--ease-out), color .3s var(--ease-out); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa summary:hover .qa__icon { background: var(--ground); }
.qa.is-open .qa__icon { transform: rotate(45deg); background: var(--ink); color: var(--mist); }
.qa__a { overflow: hidden; }
.qa__a p { max-width: 60ch; padding-bottom: 28px; color: var(--muted); }

/* Contact */
.contact-section { --section-y: clamp(80px, 11vw, 160px); position: relative; overflow: hidden; }
.contact-section > .wrap { position: relative; z-index: 1; }
@media (min-width: 1024px) {
  .contact__intro { grid-column: 1 / span 6; }
  .contact__form { grid-column: 8 / span 5; }
}
.h2--contact { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.02; }
.contact__intro .lead { margin-top: 24px; max-width: 46ch; }
.direct { display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; margin-top: 40px; align-items: baseline; }
.direct dt { font-size: var(--fs-micro); color: var(--muted); }
.direct dd { display: grid; justify-items: start; }
.direct a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem; font-weight: 600; text-underline-offset: 5px; }
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.field__group { display: grid; align-content: start; gap: 8px; }
.field__group label { font-size: var(--fs-small); font-weight: 600; }
.input { width: 100%; min-height: 52px; padding: 14px 16px; border: 2px solid transparent; border-radius: 12px; background: var(--ground); color: var(--ink); font: inherit; }
textarea.input { min-height: 148px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--ink); }
.field__error { min-height: 1.3em; font-size: var(--fs-micro); font-weight: 600; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 56px; }
.form__note { font-size: var(--fs-micro); color: var(--muted); max-width: 32ch; }
.success { padding: 32px; border-radius: 16px; background: var(--ground); color: var(--ink); --muted: var(--muted-base); --focus: var(--accent); }
.success h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.success p { margin-top: 10px; color: var(--muted); }
.success .link-btn { margin-top: 16px; }

/* Footer */
.footer { padding-top: clamp(64px, 8vw, 112px); padding-bottom: 32px; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.footer__claim { grid-column: 1 / -1; max-width: 22ch; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.footer__contact { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__contact { grid-column: auto; }
}
@media (min-width: 1024px) {
  .footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) repeat(3, minmax(0, 2fr)); }
  .footer__claim { grid-column: 1; }
  .footer__col--first { grid-column: 3; }
}
.footer__h { margin-bottom: 8px; font-size: var(--fs-micro); font-weight: 600; color: var(--muted); }
.footer__top ul a, .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: var(--fs-small); }
.footer__top ul a:hover, .footer__contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__mark { width: 100%; height: auto; margin-top: clamp(56px, 8vw, 112px); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-micro); color: var(--muted); }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* Motion: headline load sequence in CSS; scroll choreography and the cross fields in JS. */
.w { display: inline-block; clip-path: inset(-.25em -.08em -.14em -.08em); }
.w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .brand { animation: brand-wipe .75s cubic-bezier(.66, .02, .34, 1) .18s backwards; }
  .hero__line > span { animation: rise 1.05s var(--ease) both; }
  .hero__line:nth-child(2) > span { animation-delay: .09s; }
  .hero__row { animation: settle .9s var(--ease-out) .4s both; }
  .hero__services a { animation: rise-deep 1s var(--ease) both; }
  .hero__services li:nth-child(1) a { animation-delay: .22s; }
  .hero__services li:nth-child(2) a { animation-delay: .3s; }
  .hero__services li:nth-child(3) a { animation-delay: .38s; }
}
@keyframes brand-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise-deep { from { transform: translateY(140%); } to { transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ==========================================================================
   Podstránky: komponenty nad stejným základem jako homepage.
   Pravidlo: bez nových barev a stínů; povrch nesou sekce (bílá, mist, ink, accent),
   obsah drží 12sloupcová mřížka a vlasové linky.
   ========================================================================== */

/* Hlavička nad tmavým herem (AI stránky): do prvního scrollu tmavá, pak jako všude. */
.brand__inv { display: none; }
.nav__list a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.is-ink-hero .site-header:not(.is-scrolled):not([data-open="true"]) { background: var(--ink); color: var(--paper-inv); --focus: var(--paper-inv); }
.is-ink-hero .site-header:not(.is-scrolled):not([data-open="true"]) .brand__img { display: none; }
.is-ink-hero .site-header:not(.is-scrolled):not([data-open="true"]) .brand__inv { display: block; }
.is-ink-hero .site-header:not(.is-scrolled):not([data-open="true"]) .menu-toggle { border-color: var(--paper-inv); }
.is-ink-hero .site-header:not(.is-scrolled):not([data-open="true"]) .menu-toggle:hover { background: var(--paper-inv); color: var(--ink); }
.is-ink-hero .site-header:not(.is-scrolled):not([data-open="true"]) .nav__lang { color: var(--muted-inv); }
.is-ink-hero .site-header:not(.is-scrolled):not([data-open="true"]) .nav__lang:hover { color: var(--paper-inv); }

/* Hero podstránky */
.phero__stage { position: relative; overflow: hidden; padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); background: var(--mist); }
.phero__stage > .wrap { position: relative; z-index: 1; }
.phero--ink .phero__stage { background: var(--ink); color: var(--paper-inv); --muted: var(--muted-inv); --line: var(--line-inv); --line-strong: var(--line-inv-strong); --focus: var(--paper-inv); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; font-size: var(--fs-micro); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.crumbs [aria-current="page"] { color: inherit; }
.phero__kicker { margin-top: clamp(16px, 2.4vw, 32px); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.phero__title { margin-top: 12px; max-width: 15ch; font-size: clamp(2.75rem, 7.2vw, 6.75rem); font-weight: 800; line-height: .94; letter-spacing: -.05em; text-wrap: balance; font-variation-settings: 'opsz' 32; }
.phero__title--wide { max-width: 19ch; }
.phero__title--article { max-width: 22ch; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.045em; }
.phero__row { display: grid; gap: 28px; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 768px) {
  .phero__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .phero__intro { grid-column: 1 / span 7; }
  .phero__side { grid-column: 9 / span 4; }
}
.phero__lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 40ch; }
.phero__side { font-size: var(--fs-small); color: var(--muted); }
.phero__side > * + * { margin-top: 12px; }
.phero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.phero--ink .btn--primary:hover { background: var(--accent-bright); color: var(--ink); }

/* Klíčová čísla nebo fakta pod herem (dřívější „band") */
.facts { display: grid; column-gap: 24px; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-strong); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
.facts > div { padding-block: 20px 8px; }
.facts dt { font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.facts dd { margin-top: 8px; max-width: 34ch; font-size: var(--fs-small); color: var(--muted); }

/* Text a nadpisy uvnitř sekcí */
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; font-variation-settings: 'opsz' 32; }
.h4 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.copy > * + * { margin-top: 16px; }
.copy > .h2 + *, .copy > .h3 + *, .copy > .kicker + * { margin-top: 24px; }
.copy p:not(.lead):not(.kicker) { max-width: 58ch; color: var(--muted); }
.section-head__main { display: grid; gap: 24px; }
.section-head__main .h2 { max-width: 18ch; }
.section-head__main .lead { max-width: 56ch; }
.section--ink .kicker, .section--accent .kicker { color: var(--muted); }

/* Dvousloupec: lepivý nadpis vlevo, obsah vpravo (jako problémy a FAQ na homepage) */
@media (min-width: 1024px) {
  .split__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .split__body { grid-column: 7 / span 6; }
}
.split__head .lead { margin-top: 24px; }
.split__head .link { margin-top: 20px; }

/* Text vedle ukázky (dřívější case-block, v2) */
@media (min-width: 1024px) {
  .duo { align-items: center; }
  .duo__text { grid-column: 1 / span 6; }
  .duo__media { grid-column: 8 / span 5; }
  .duo--flip .duo__text { grid-column: 7 / span 6; grid-row: 1; }
  .duo--flip .duo__media { grid-column: 1 / span 5; grid-row: 1; }
  .duo--wide .duo__text { grid-column: 1 / span 5; }
  .duo--wide .duo__media { grid-column: 7 / span 6; }
}
.stage { padding: clamp(20px, 4vw, 56px); background: var(--mist); }
.section--mist .stage { background: var(--mist-deep); }
.section--ink .stage { background: var(--ink-2); }
.ui--wide { width: 100%; max-width: none; }
/* Bílá karta ukázky na tmavém podkladu si drží světlé tokeny, jinak by zdědila šedé linky a texty pro ink. */
.section--ink .ui, .phero--ink .ui, .compare__col--new .ui { --muted: var(--muted-base); --line: #d3dae6; --line-strong: #aab3c2; --focus: var(--accent); color: var(--ink); }

/* Služby na tmavé sekci */
.section--ink .svc { border-top-color: var(--paper-inv); }
.section--ink .arrow { background: var(--paper-inv); color: var(--ink); }
@media (hover: hover) {
  .section--ink .svc__row::before { background: var(--ink-2); }
}

/* Dlaždice: číslo, nadpis, text; vlasové linky místo karet */
.tiles { display: grid; column-gap: 24px; border-top: 1px solid var(--line-strong); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { padding-block: 28px 36px; border-bottom: 1px solid var(--line); }
.tile__n { display: block; font-size: var(--fs-micro); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.section--ink .tile__n { color: var(--accent-bright); }
.tile__title { margin-top: 14px; font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.tile__text { margin-top: 10px; max-width: 46ch; color: var(--muted); }
.tile__meta { margin-top: 14px; font-size: var(--fs-small); font-weight: 600; }

/* Postup: velké číslo, nadpis, text; linka se kreslí při scrollu */
.process { border-top: 1px solid var(--ink); }
.section--ink .process { border-top-color: var(--paper-inv); }
.process__step { position: relative; display: grid; gap: 12px 24px; padding-block: clamp(28px, 3.4vw, 44px); }
.process__step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); transform: scaleX(var(--draw, 1)); transform-origin: left; }
.process__n { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; font-variation-settings: 'opsz' 32; }
.section--ink .process__n { color: var(--accent-bright); }
.process__title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.process__body > * + * { margin-top: 12px; }
.process__body p { max-width: 54ch; color: var(--muted); }
@media (min-width: 768px) {
  .process__step { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .process__n { grid-column: 1 / span 2; }
  .process__title { grid-column: 3 / span 4; }
  .process__body { grid-column: 7 / span 6; }
}

/* Řádky problém → přínos: problém vlevo přes pět sloupců, přínos vpravo */
@media (min-width: 768px) {
  .process--pairs .process__title { grid-column: 1 / span 5; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.025em; }
}
.process__body strong { font-weight: 600; color: var(--ink); }
.section--ink .process__body strong { color: var(--paper-inv); }

/* Číslovaný seznam podmínek a signálů (velikost písma jako seznam problémů na homepage) */
.numlist { counter-reset: num; }
.numlist li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 500; line-height: 1.4; counter-increment: num; }
.numlist li:last-child { border-bottom: 1px solid var(--line); }
.numlist li::before { content: counter(num, decimal-leading-zero); padding-top: .3em; font-size: var(--fs-micro); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.section--ink .numlist li::before { color: var(--accent-bright); }

/* Štítky (integrace, technologie, AI × člověk) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-micro); font-weight: 600; }
.tag--accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-hover); }
.tag--ink { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.section--ink .tag--ink { border-color: var(--paper-inv); background: var(--paper-inv); color: var(--ink); }

/* Odrážky s nadpisem; vlasové linky jako seznam problémů */
.bullets li { position: relative; padding: 16px 0 16px 28px; border-top: 1px solid var(--line); }
.bullets li:last-child { border-bottom: 1px solid var(--line); }
.bullets li::before { content: ""; position: absolute; left: 0; top: calc(16px + .75em); width: 12px; height: 2px; background: var(--accent); }
.section--ink .bullets li::before, .section--accent .bullets li::before { background: currentColor; }
.bullets strong { display: block; font-weight: 700; }
.bullets strong + span { display: block; margin-top: 4px; color: var(--muted); }

/* Otázka a odpověď vedle sebe (bezpečnost dat, rizika) */
.deflist { display: grid; column-gap: 24px; border-top: 1px solid var(--line-strong); }
@media (min-width: 768px) { .deflist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deflist > div { padding-block: 24px 28px; border-bottom: 1px solid var(--line); }
.deflist dt { font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.deflist dd { margin-top: 8px; max-width: 46ch; color: var(--muted); }

/* Tabulka (matice příležitostí, srovnání). Na mobilu se řádek složí pod sebe. */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th, .table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { padding-top: 0; border-bottom-color: var(--ink); font-size: var(--fs-micro); font-weight: 600; color: var(--muted); }
.section--ink .table thead th { border-bottom-color: var(--paper-inv); }
.table tbody th { font-size: var(--fs-body); font-weight: 700; }
.table .is-yes { font-weight: 600; color: var(--accent); }
.section--ink .table .is-yes { color: var(--accent-bright); }
.table .is-total th, .table .is-total td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 800; }
@media (max-width: 767.98px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { display: grid; gap: 6px; padding-block: 18px; border-bottom: 1px solid var(--line); }
  .table th, .table td { display: block; padding: 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label) ": "; font-weight: 500; color: var(--muted); }
  .table .is-total { border-top: 1px solid var(--ink); }
  .table .is-total th, .table .is-total td { border-top: 0; }
}

/* Nabídky a vstupní kroky (s cenou) */
.offers { display: grid; gap: 24px; }
@media (min-width: 768px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .offers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.offer { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 36px); background: var(--mist); }
.section--mist .offer { background: var(--ground); }
.section--ink .offer { background: var(--ink-2); }
.offer__n { font-size: var(--fs-micro); font-weight: 600; color: var(--muted); }
.offer__title { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.offer__price { font-size: var(--fs-small); font-weight: 700; color: var(--accent); }
.section--ink .offer__price { color: var(--accent-bright); }
.offer__text { color: var(--muted); }
.offer .checks { margin-top: 8px; }
.offer .link { margin-top: auto; padding-top: 8px; }
.offer.offer--accent, .section--mist .offer--accent, .section--ink .offer--accent { background: var(--accent); color: var(--on-accent); --muted: var(--on-accent-muted); --line: var(--line-on-accent); --focus: var(--on-accent); }
.offer--accent .offer__price { color: var(--on-accent); }

/* Výsledková čísla */
.metrics { display: grid; gap: 32px 24px; }
@media (min-width: 768px) { .metrics { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
.metric { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.metric__num { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; font-variation-settings: 'opsz' 32; }
.metric__num .u { margin-left: .08em; font-size: .42em; letter-spacing: -.02em; }
.metric__label { margin-top: 12px; max-width: 32ch; color: var(--muted); }

/* Srovnání dřív → teď */
.compare { display: grid; gap: 24px; }
@media (min-width: 768px) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare__col { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); background: var(--mist); }
.section--mist .compare__col { background: var(--ground); }
.compare__col--new { background: var(--ink); color: var(--paper-inv); --muted: var(--muted-inv); --line: var(--line-inv); --line-strong: var(--line-inv-strong); }
.section--mist .compare__col--new { background: var(--ink); }
.compare__h { font-size: var(--fs-micro); font-weight: 600; color: var(--muted); }
.compare__title { margin-top: 10px; font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.compare__list { margin-top: 20px; counter-reset: compare; }
.compare__list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); counter-increment: compare; }
.compare__list li::before { content: counter(compare, decimal-leading-zero); padding-top: .2em; font-size: var(--fs-micro); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.compare__list .tag { min-height: 24px; margin-right: 8px; padding: 0 8px; }
.compare__foot { margin-top: auto; padding-top: 20px; font-weight: 700; }

/* Filtr (práce, blog) */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: var(--fs-small); font-weight: 600; transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out); }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.filters__count { margin-left: auto; font-size: var(--fs-micro); color: var(--muted); }

/* Karty práce: štítek modelového příkladu a obrázkový podklad tam, kde není UI ukázka */
.work__flag { display: inline-flex; margin-right: 8px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }

/* Seznam článků */
.posts { border-top: 1px solid var(--ink); }
.post-row { position: relative; display: grid; gap: 8px 24px; padding-block: clamp(24px, 3vw, 40px); text-decoration: none; }
.post-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); transform: scaleX(var(--draw, 1)); transform-origin: left; }
.post-row__cat { font-size: var(--fs-micro); font-weight: 600; color: var(--accent); }
.post-row__title { font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.post-row__excerpt { max-width: 52ch; color: var(--muted); }
.post-row__meta { margin-top: 8px; font-size: var(--fs-micro); color: var(--muted); }
.post-row:hover .post-row__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-row--feature .post-row__title { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.045em; }
@media (min-width: 768px) {
  .post-row { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .post-row__cat { grid-column: 1 / span 2; padding-top: .6em; }
  .post-row__title { grid-column: 3 / span 6; }
  .post-row__side { grid-column: 9 / span 4; }
  .post-row--feature .post-row__title { grid-column: 3 / span 7; }
  .post-row--feature .post-row__side { grid-column: 10 / span 3; }
}

/* Článek */
.article { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .article { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .article__aside { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .prose { grid-column: 5 / span 7; }
}
.article__aside { display: grid; align-content: start; gap: 16px; font-size: var(--fs-small); color: var(--muted); }
.article__aside dt { font-size: var(--fs-micro); }
.article__aside dd { color: var(--ink); font-weight: 600; }
.prose { font-size: 1.125rem; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.prose h3 { margin-top: 1.8em; font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose a { text-underline-offset: 4px; }
.prose strong { font-weight: 700; }
.prose blockquote { margin-block: 2em; margin-inline: 0; padding-left: 24px; border-left: 3px solid var(--accent); font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.prose blockquote p { margin: 0; }
.callout { padding: 24px 28px; background: var(--mist); }
.callout > * + * { margin-top: .6em; }
.callout__title { font-weight: 700; }
/* Perex, kód a metadata článku; na užší šířce se metadata složí do řádku nad text. */
.prose > p:first-child { font-size: var(--fs-lead); line-height: 1.55; letter-spacing: -.01em; }
.prose { max-width: 37em; }
.prose code { padding: .1em .35em; border-radius: 4px; background: var(--mist); font-size: .88em; }
@media (max-width: 1023.98px) {
  .article__aside { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
}

/* Případová studie */
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--line-strong); }
@media (min-width: 1024px) { .case-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.case-meta > div { padding-block: 16px 20px; border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: var(--fs-micro); color: var(--muted); }
.case-meta dd { margin-top: 4px; font-weight: 700; }
.quote-slot { padding: clamp(28px, 4vw, 48px); border: 1.5px dashed var(--line-strong); }
.quote-slot__text { font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; color: var(--muted); }
.quote-slot__who { margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }
/* Přehled projektu (obor, velikost, postup) dole v heru */
.phero .case-meta { margin-top: clamp(40px, 6vw, 80px); }
/* Upozornění na modelový scénář: ikona a text */
.disclaimer { display: flex; align-items: flex-start; gap: 10px; max-width: 46ch; }
.disclaimer svg { flex: none; width: 18px; height: 18px; margin-top: .1em; }
/* Karta procesu z auditu v ukázce rozhraní: popisek vlevo, hodnota vpravo */
.ui__dl > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 1em; padding-block: .6em; border-top: 1px solid var(--line); }
.ui__dl dt { color: var(--muted); }
.ui__dl dd { font-weight: 600; }
/* Dashboard v ukázce: dlaždice s čísly, druhý nadpis v kartě */
.ui__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5em; margin-bottom: 1.4em; }
@media (min-width: 640px) { .ui__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ui__kpis > div { padding: .8em .9em; border-radius: 8px; background: var(--mist); }
.ui__kpis dt { font-size: .86em; color: var(--muted); }
.ui__kpis dd { margin-top: .35em; font-size: 1.6em; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ui__kpis small { margin-left: .15em; font-size: .5em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
/* Dřív / teď vedle textu: na desktopu sloupce pod sebou; štítek Člověk čitelný i na tmavém sloupci */
@media (min-width: 1024px) { .duo__media .compare { grid-template-columns: minmax(0, 1fr); } }
.compare__col--new .tag--ink { border-color: var(--paper-inv); background: var(--paper-inv); color: var(--ink); }
/* Období nad názvem kroku (plán ve vlnách) */
.process__when { display: block; margin-bottom: 10px; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--muted); }
/* Nadpis nad výsledkovými čísly */
.metrics__title { margin-bottom: 28px; }
* + .metrics__title { margin-top: clamp(56px, 7vw, 96px); }
.section-head + .metrics__title { margin-top: 0; }
/* Po spuštění: nadpis sekce a integrace vlevo, měřené ukazatele vpravo */
.ops__h { margin: clamp(32px, 4vw, 56px) 0 16px; }
.ops__list { margin-top: 20px; }
/* Další případové studie: dvě karty vedle sebe */
@media (min-width: 1024px) { .work--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Místo pro citaci klienta */
.case-quote { max-width: 56rem; }
.quote-slot blockquote { margin: 0; }
  

/* Závěrečná výzva na modré (kontaktní formulář je jen na homepage a v kontaktu) */
@media (min-width: 1024px) {
  .cta__intro { grid-column: 1 / span 7; }
  .cta__side { grid-column: 9 / span 4; align-self: end; }
}
.cta__intro .lead { margin-top: 24px; max-width: 46ch; }
.cta__side .direct { margin-top: 0; }

/* Mobil: jméno klienta nad nadpisem karty, nadpis pak má celou šířku */
@media (max-width: 767.98px) {
  .work__body { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .work__client { order: -1; padding-top: 0; }
}

/* Práce: poslední dlaždice mřížky vyzve k další zakázce */
.work__item--cta .work__cta {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; height: 100%; min-height: 280px;
  padding: clamp(28px, 3vw, 40px); border-radius: 0; background: var(--accent); color: var(--on-accent); text-decoration: none;
  transition: background-color .25s var(--ease-out);
}
.work__item--cta .work__cta:hover { background: var(--accent-hover); }
.work__item--cta .work__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.work__cta-title { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.work__cta-text { max-width: 30ch; color: var(--on-accent-muted); }
.work__cta-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.work__cta-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.work__item--cta .work__cta:hover .work__cta-btn svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .work__item--cta .work__cta, .work__cta-btn svg { transition: none; } }

/* Patička: slogan mezi copyrightem a jazyky */
.footer__slogan { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
