/* Michal Fogl: teplá tmavá paleta, jeden oranžový akcent (z loga MH) */
:root {
  --bg: #0e0d0c;
  --bg-2: #131211;
  --surface: rgb(28 26 24 / .72);
  --surface-solid: #1c1a18;
  --line: rgb(255 240 225 / .09);
  --line-2: rgb(255 240 225 / .16);
  --text: #f4efe8;
  --muted: #aaa298;
  --faint: #79726a;
  --accent: #ff6b1a;
  --accent-ink: #1d0e05;
  --accent-soft: rgb(255 107 26 / .12);

  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 400 17.5px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.section { padding: 112px 0; position: relative; }
.h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); max-width: 16ch; }
.section__head { display: grid; gap: 20px; margin-bottom: 64px; }
.section__lead { color: var(--muted); font-size: 1.14rem; max-width: 52ch; }

/* ---------- Pozadí: pomalé prolnutí barev + zrno ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ambient i {
  position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%;
  will-change: transform;
}
.ambient i:nth-child(1) { left: -30vmax; top: -40vmax; background: radial-gradient(closest-side, rgb(255 107 26 / .16), transparent 70%); animation: drift-a 46s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { right: -38vmax; top: 10vh; background: radial-gradient(closest-side, rgb(176 72 22 / .16), transparent 70%); animation: drift-b 58s ease-in-out infinite alternate; }
.ambient i:nth-child(3) { left: 10vw; bottom: -55vmax; background: radial-gradient(closest-side, rgb(255 170 110 / .07), transparent 70%); animation: drift-c 70s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(22vw, 18vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-26vw, 22vh) scale(.9); } }
@keyframes drift-c { to { transform: translate(18vw, -30vh) scale(1.1); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; background: none;
  font: 600 16px/1 var(--body); white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn i { font-size: 18px; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ff7d36; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: 11px 18px; font-size: 14.5px; }

/* ---------- Navigace ---------- */
.nav { position: sticky; top: 0; z-index: 20; transition: background-color .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgb(14 13 12 / .78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav__inner { max-width: 1240px; height: var(--nav-h); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 11px; font: 600 18px/1 var(--display); letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a:hover { color: var(--text); }
.nav__login { display: inline-flex; align-items: center; gap: 7px; margin-right: -14px; font-size: 15px; color: var(--muted); transition: color .3s; }
.nav__login i { font-size: 21px; }
.nav__login:hover { color: var(--text); }

/* ---------- Úvod ---------- */
.hero { padding: 56px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; min-height: calc(100dvh - var(--nav-h) - 152px); }
.hero__who { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; color: var(--muted); background: rgb(28 26 24 / .5); }
.hero__who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; }
.hero__title { margin: 30px 0 28px; font-size: clamp(3.2rem, 7.4vw, 6.6rem); line-height: .98; letter-spacing: -.045em; font-variation-settings: "opsz" 96; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.24rem; color: var(--muted); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero__visual { position: relative; }
.portrait { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--surface-solid); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.phone {
  position: relative; aspect-ratio: 9 / 19.5; border-radius: 30px; padding: 7px;
  background: #0a0908; border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8), inset 0 0 0 1px rgb(255 255 255 / .03);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: #000; }

/* ---------- Reference: pás log, který pořád jede a jde posunout myší ---------- */
.refs { padding: 24px 0 24px; }
.refs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.refs__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.refs__head p { color: var(--faint); font-size: 15px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); touch-action: pan-y; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee.is-dragging { cursor: grabbing; }
.marquee__track { display: flex; width: max-content; user-select: none; -webkit-user-select: none; will-change: transform; }
.marquee__track ul { display: flex; }
.marquee__track li { border-right: 1px solid var(--line); }
.marquee.is-dragging .ref-logo { cursor: grabbing; }
.ref-logo { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 300px; height: 204px; padding: 30px 28px 24px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .4s var(--ease); }
.ref-logo__mark { display: flex; align-items: center; height: 48px; }
.ref-logo img { width: auto; max-width: 170px; filter: brightness(0) invert(1); opacity: .62; transition: opacity .3s; -webkit-user-drag: none; }
.ref-logo__sum { margin-top: 18px; color: var(--faint); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.ref-logo:hover { background: rgb(255 255 255 / .03); }
.ref-logo:hover img, .ref-logo:hover .logo-text { opacity: 1; }
.ref-logo:hover .ref-logo__sum { color: var(--muted); }
.ref-logo:focus-visible { outline-offset: -4px; }
.ref-logo__more { margin-top: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; transition: background-color .3s, color .3s, border-color .3s; }
.ref-logo__more i { transition: transform .3s var(--ease); }
.ref-logo:hover .ref-logo__more { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ref-logo:hover .ref-logo__more i { transform: translateX(2px); }
.logo-text { display: flex; align-items: center; gap: 8px; color: #fff; opacity: .62; transition: opacity .3s; }
.logo-text--fogl { flex-direction: column; gap: 0; }
.logo-text--fogl b { font: 800 20px/1 "Instrument Sans", sans-serif; letter-spacing: .02em; }
.logo-text--fogl small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; margin-top: 4px; }
.logo-text--petka img { height: 28px; opacity: 1 !important; }
.logo-text--petka b { font: 600 22px/1 var(--display); }

/* detail reference v okně */
.ref-modal { width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-solid); color: var(--text); box-shadow: 0 60px 120px -30px rgb(0 0 0 / .9); overflow: auto; overscroll-behavior: contain; }
.ref-modal::backdrop { background: rgb(8 7 6 / .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ref-modal[open] { animation: modal-in .45s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
body:has(.ref-modal[open]) { overflow: hidden; }
.ref-modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(14 13 12 / .72); color: var(--text); font-size: 18px; cursor: pointer; backdrop-filter: blur(8px); transition: background-color .3s, color .3s; }
.ref-modal__close:hover { background: var(--accent); color: var(--accent-ink); }
.ref-detail__shot { aspect-ratio: 16 / 8; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.ref-detail__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ref-detail__body { display: grid; gap: 16px; padding: 30px 34px 8px; }
.ref-detail__kind { color: var(--accent); font-size: 14.5px; font-weight: 600; }
.ref-detail h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ref__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 36px; }
.ref__list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ref__list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1.5px; background: var(--accent); }
.ref__list b { color: var(--text); font-weight: 600; }
.ref-detail .link { margin-top: 6px; }
.ref-modal__nav { display: flex; justify-content: space-between; gap: 12px; padding: 20px 34px 28px; }
.ref-modal__nav button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--text); font: 500 14.5px/1 var(--body); cursor: pointer; transition: border-color .3s, color .3s; }
.ref-modal__nav button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Služby: průzkumník ---------- */
.explorer { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.explorer__list { counter-reset: svc; border-top: 1px solid var(--line); }
.svc { position: relative; padding: 26px 0 26px 4px; border-bottom: 1px solid var(--line); cursor: pointer; outline-offset: -2px; }
.svc h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); color: var(--faint); transition: color .4s var(--ease); }
.svc p { color: var(--muted); max-width: 46ch; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .5s var(--ease); }
.svc::before { content: ""; position: absolute; left: -24px; top: 34px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease); }
.svc:hover h3 { color: var(--text); }
.svc.is-active h3 { color: var(--text); }
.svc.is-active p { opacity: 1; margin-top: 10px; }
.svc.is-active::before { transform: scale(1); }
.svc:not(.is-active) p { max-height: 0; }
.svc.is-active p { max-height: 200px; }
/* služby se po 20 s samy přepnou, linka ukazuje, kolik zbývá */
.svc::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.explorer.is-auto .svc.is-active::after { animation: svc-time 20s linear forwards; }
.explorer.is-auto:hover .svc.is-active::after, .explorer.is-paused .svc.is-active::after { animation-play-state: paused; }
@keyframes svc-time { to { transform: scaleX(1); } }

.explorer__stage { position: sticky; top: calc(var(--nav-h) + 32px); min-height: 560px; }
.pv { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s .55s; display: flex; flex-direction: column; gap: 16px; }
.pv.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s; }
.pv__note { color: var(--faint); font-size: 14px; }

/* náhled 0: ukázka AI asistenta */
.demo { background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 18px; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8); }
.demo__mail { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.demo__mail.is-new { animation: mail-in .6s var(--ease); }
@keyframes mail-in { from { opacity: 0; transform: translateY(8px); } }
.demo__from { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.demo__from .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2c2824; font-size: 13px; font-weight: 600; color: var(--muted); }
.demo__from b { display: block; font-size: 15px; }
.demo__from small { color: var(--muted); font-size: 14px; }
.demo__from time { margin-left: auto; color: var(--faint); font-size: 13px; }
.demo__mail p { color: var(--muted); font-size: 15.5px; }
.demo__steps { display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.demo__steps li { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.demo__steps li.is-on { opacity: 1; transform: none; }
.demo__steps i { color: var(--accent); font-size: 18px; }
.demo__draft { background: rgb(255 255 255 / .03); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 10px; opacity: 0; transition: opacity .4s var(--ease); }
.demo__draft.is-on { opacity: 1; }
.demo__draft small { color: var(--faint); font-size: 13px; }
.demo__text { min-height: 4.8em; font-size: 15.5px; }
.demo__text::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
.demo__text.is-done::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.demo__btn { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 14px/1 var(--body); transition: transform .2s var(--ease), background-color .3s; }
.demo__btn i { display: none; }
.demo__btn.is-press { transform: scale(.95); }
.demo__btn.is-sent { background: #2a2622; color: var(--text); }
.demo__btn.is-sent i { display: inline; color: #7bd88f; }

/* rotace snímků aplikací */
.shots { display: grid; }
.shots__item { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .7s; }
.shots__item.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s; }
.shots__img { aspect-ratio: 1500 / 891; display: flex; align-items: flex-start; justify-content: center; }
.shots__img img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .85); }
.shots figcaption { color: var(--muted); font-size: 14.5px; }
.shots figcaption b { color: var(--text); font-weight: 600; }
.shots__dots { display: flex; gap: 6px; margin-top: 4px; }
.shots__dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: var(--line-2); cursor: pointer; transition: background-color .3s, width .4s var(--ease); }
.shots__dots button.is-on { width: 36px; background: var(--accent); }

/* náhled 4: automatizace */
.flow { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; min-height: 380px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.flow__lines { width: 100%; height: 300px; overflow: visible; }
.flow__lines path { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flow__lines path { stroke-dasharray: 4 10; animation: flow 1.6s linear infinite; stroke: rgb(255 107 26 / .55); }
.flow__lines path:nth-child(2) { animation-duration: 1.2s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.flow__targets { display: grid; gap: 24px; }
.flow__node { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #24211e; border: 1px solid var(--line); }
.flow__node i { font-size: 22px; color: var(--accent); margin-bottom: 6px; }
.flow__node b { font-size: 15px; }
.flow__node small { font-size: 13px; color: var(--muted); }
.flow__node--src { border-color: rgb(255 107 26 / .4); }

/* prohlížeč se screenshotem, který se po najetí projede */
.browser { border-radius: 14px; overflow: hidden; background: #1d1b19; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .85); }
.browser__bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #24211e; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3d3833; }
.browser__url { flex: 1; max-width: 300px; margin: 0 auto; padding: 4px 12px; border-radius: 7px; background: #171513; color: var(--muted); font-size: 12.5px; text-align: center; }
.browser__view { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; container-type: size; background: #fff; }
.browser__view img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transition: transform 9s cubic-bezier(.45, 0, .35, 1); }
.browser--scroll:hover .browser__view img { transform: translateY(calc(-100% + 100cqh)); transition-duration: 9s; }
.browser--scroll .browser__view img { transition-duration: 1.4s; }
.browser__view--fit img { height: 100%; object-fit: cover; object-position: top center; }
@media (hover: none) {
  .browser--scroll.is-in .browser__view img { animation: pan 16s cubic-bezier(.45, 0, .35, 1) 1s infinite alternate; }
}
@keyframes pan { to { transform: translateY(calc(-100% + 100cqh)); } }


/* ---------- Projekty ---------- */
.case { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 40px; }
.case:last-of-type { padding-bottom: 0; }
.case__text { display: grid; gap: 18px; align-content: start; }
.case__kind { color: var(--accent); font-size: 14.5px; font-weight: 600; }
.case h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.case__text > p:not(.case__kind) { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.case__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin: 8px 0; }
.case__facts dt { font-size: 13px; color: var(--faint); }
.case__facts dd { margin: 4px 0 0; font-size: 15px; }
.case__list { display: grid; gap: 10px; margin: 4px 0; }
.case__list li { position: relative; padding-left: 26px; color: var(--text); }
.case__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 1.5px; background: var(--accent); }
.link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 3px; transition: color .3s; }
.link:hover { color: var(--accent); }
.link i { color: var(--accent); }

.case--zc { grid-template-columns: 1.15fr .85fr; }
.zc { position: relative; padding: 0 12% 60px 0; }
.zc__phone { position: absolute; left: 6%; bottom: 0; width: 22%; }


/* ---------- Katalog ---------- */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.catalog__col { padding: 36px 32px 8px 0; }
.catalog__col + .catalog__col { padding-left: 32px; border-left: 1px solid var(--line); }
.catalog h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 22px; }
.catalog h3 i { color: var(--accent); font-size: 22px; }
.catalog li { padding: 11px 0; color: var(--muted); font-size: 16px; }
.catalog li + li { border-top: 1px dashed rgb(255 240 225 / .07); }

/* ---------- Postup ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 56px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-2); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.steps li { position: relative; padding-right: 32px; }
.steps__n { position: relative; z-index: 1; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font: 600 17px/1 var(--display); color: var(--accent); margin-bottom: 26px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; max-width: 30ch; }

/* ---------- O mně a příběh ---------- */

/* ---------- Kabinka ---------- */
.kab { padding-top: 96px; padding-bottom: 24px; }
.kab__top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.kab__copy { display: grid; gap: 24px; align-content: start; }
.kab__badge { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.kab__badge img { border-radius: 5px; }
.kab__title { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.04em; max-width: 15ch; }
.kab__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 8px; }
.kab__note { color: var(--faint); font-size: 14.5px; }

.kab__for { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid rgb(255 107 26 / .22); font-size: 15.5px; max-width: 52ch; }
.kab__for i { color: var(--accent); font-size: 22px; flex: none; margin-top: 1px; }
.nowrap { white-space: nowrap; }

/* posuvník před a po */
.ba { display: grid; gap: 16px; justify-self: center; width: 100%; max-width: 500px; }
.ba__frame { --pos: 50%; position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: #e9e5df; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 0 0 1px rgb(255 107 26 / .4), 0 50px 90px -40px rgb(0 0 0 / .9); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__after .ba__img { opacity: 0; transition: opacity .8s var(--ease); }
.ba__after .ba__img.is-on { opacity: 1; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px rgb(0 0 0 / .35); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-size: 15px; box-shadow: 0 0 0 6px rgb(255 107 26 / .22), 0 10px 24px rgb(0 0 0 / .35); transition: transform .3s var(--ease); }
.ba__frame:hover .ba__knob, .ba__frame.is-dragging .ba__knob { transform: scale(1.08); }
.ba__range:focus-visible ~ .ba__line .ba__knob { outline: 2px solid #fff; outline-offset: 3px; }
.ba__tag { position: absolute; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgb(14 13 12 / .72); color: var(--text); font-size: 13px; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; transition: opacity .3s; }
.ba__tag i { color: var(--accent); }
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba__frame.hide-before .ba__tag--before, .ba__frame.hide-after .ba__tag--after { opacity: 0; }
.ba__range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba__products { display: flex; align-items: center; gap: 10px; }
.ba__products span { color: var(--faint); font-size: 14px; margin-right: auto; }
.ba__products button { width: 56px; height: 56px; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #e9e5df; cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s, transform .3s var(--ease); }
.ba__products button img { width: 100%; height: 100%; object-fit: cover; }
.ba__products button:hover { opacity: .85; }
.ba__products button.is-active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px rgb(255 107 26 / .35); }

.kab__benefits { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--line); }
.kab__benefits li { padding: 32px 28px 32px 0; display: grid; gap: 10px; align-content: start; }
.kab__benefits li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.kab__benefits li:nth-child(n+4) { border-top: 1px solid var(--line); }
.kab__benefits i { font-size: 26px; color: var(--accent); }
.kab__benefits h3 { font-size: 1.3rem; }
.kab__benefits p { color: var(--muted); font-size: 15.5px; }

/* ---------- Video a foto ---------- */
.vid { padding: 72px 0 24px; }
.vid__row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.vid__text { display: grid; gap: 20px; }
.vid__links { display: grid; gap: 14px; }
.vlink { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color .4s var(--ease), transform .5s var(--ease); }
.vlink:hover { border-color: rgb(255 107 26 / .45); transform: translateY(-3px); }
.vlink > i:first-child { font-size: 28px; color: var(--accent); }
.vlink span { display: grid; gap: 2px; }
.vlink small { color: var(--faint); font-size: 13.5px; }
.vlink b { font: 600 1.25rem/1.2 var(--display); }
.vlink__go { margin-left: auto; font-size: 20px; color: var(--muted); transition: color .3s, transform .4s var(--ease); }
.vlink:hover .vlink__go { color: var(--accent); transform: translate(2px, -2px); }

/* ---------- Projekty: aplikace ---------- */
.zc__app { position: absolute; right: 0; top: 18%; width: 48%; border-radius: 10px; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .9); }

/* ---------- O mně ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.about__photo { position: sticky; top: calc(var(--nav-h) + 32px); border-radius: 28px; overflow: hidden; aspect-ratio: 1 / 1; background: #6f7072; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.about__text { display: grid; gap: 24px; }
.timeline { margin-top: 24px; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline span { font: 600 1.2rem/1.3 var(--display); color: var(--accent); }
.timeline p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Decentní tečky na pozadí ---------- */
#dots { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Cena ---------- */
.price { display: grid; grid-template-columns: 1fr 1.2fr 1fr; margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price__item { padding: 40px 32px 40px 0; display: grid; gap: 6px; align-content: start; }
.price__item + .price__item { padding-left: 32px; border-left: 1px solid var(--line); }
.price__item p { color: var(--muted); font-size: 15px; }
.price__item strong { font: 600 clamp(2rem, 3.4vw, 2.9rem)/1.1 var(--display); letter-spacing: -.03em; }
.price__item small { color: var(--faint); font-size: 14.5px; }
.price__item--main strong { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 600 1.15rem/1.35 var(--display); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; color: var(--accent); font: 400 26px/1 var(--body); transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 48px 26px 0; max-width: 62ch; }

/* ---------- Poptávka ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.contact__text .h2 { margin-bottom: 22px; }
.contact__me { display: flex; gap: 16px; align-items: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact__me img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; }
.contact__me div { display: grid; gap: 2px; }
.contact__me a { color: var(--muted); font-size: 15.5px; transition: color .3s; }
.contact__me a:hover { color: var(--accent); }

.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: 36px; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14.5px; font-weight: 600; color: #e6e0d8; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 12px; }
.opt { font-weight: 400; color: var(--faint); }
input, textarea, select {
  font: inherit; font-size: 16px; color: var(--text); width: 100%;
  background: #141210; border: 1px solid rgb(255 255 255 / .14); border-radius: 12px; padding: 13px 14px;
  transition: border-color .25s, box-shadow .25s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23aaa298' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { resize: vertical; min-height: 130px; }
::placeholder { color: #8a8279; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(255 107 26 / .22); }
.field__err { display: none; color: #ff8a6b; font-size: 13.5px; }
.field.is-error input, .field.is-error textarea { border-color: #ff8a6b; }
.field.is-error .field__err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); font-size: 14.5px; color: #e6e0d8; transition: background-color .25s, border-color .25s, color .25s; user-select: none; }
.chips label:hover span { border-color: rgb(255 255 255 / .34); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__foot small { color: var(--faint); font-size: 13.5px; }
.form__done { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; border-radius: inherit; background: var(--surface-solid); }
.form__done[hidden] { display: none; }
.form__done i { font-size: 52px; color: var(--accent); }
.form__done h3 { font-size: 1.7rem; }
.form__done p { color: var(--muted); }
.form__error { grid-column: 1 / -1; color: #ff8a6b; font-size: 14.5px; }
.form__error a { color: var(--text); border-bottom: 1px solid var(--accent); }
.footer__row a:hover { color: var(--accent); }
.form.is-sending .btn { opacity: .6; pointer-events: none; }

.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__row .brand { margin-right: auto; color: var(--text); font-size: 16px; }

/* ---------- Pohyb ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .reveal.is-in { opacity: 1; transform: none; }
  .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
  .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
  .is-loaded .hero__title .line > span { transform: none; }

  @supports (animation-timeline: scroll()) {
    .steps::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
    .hero__visual .portrait { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes grow { to { transform: scaleX(1); } }
@keyframes sink { to { transform: translateY(60px) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .ambient i { animation: none; }
  .browser__view img { transition: none !important; animation: none !important; }
  .flow__lines path { animation: none; }
  * { scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__login { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { max-width: 560px; }
  .explorer { grid-template-columns: 1fr; }
  .explorer__stage { display: none; }
  .svc p { opacity: 1; max-height: none !important; margin-top: 10px; }
  .svc h3 { color: var(--text); }
  .svc::before { display: none; }
  .svc .pv { position: static; opacity: 1; visibility: visible; transform: none; margin-top: 24px; }
  .case, .case--zc { grid-template-columns: 1fr; gap: 40px; }
  .case--zc .case__media { order: 2; }
  .catalog { grid-template-columns: 1fr; }
  .catalog__col + .catalog__col { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
  .faq, .contact { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .wrap, .nav__inner { padding-left: 16px; padding-right: 16px; }
  .section { padding: 88px 0; }
  .section__head { margin-bottom: 40px; }
  .brand span { display: none; }
  .nav__login span { display: none; }
  .hero { padding: 28px 0 56px; }
  .hero__who span { font-size: 13px; }
  .hero__title { margin: 22px 0 20px; }
  .ref-logo { width: 252px; height: 184px; padding: 24px 22px 20px; }
  .ref-logo img { max-width: 140px; }
  .ref-logo__sum { margin-top: 14px; font-size: 13px; }
  .ref__list { grid-template-columns: 1fr; }
  .ref-detail__shot { aspect-ratio: 16 / 10; }
  .ref-detail__body { padding: 24px 20px 4px; }
  .ref-modal__nav { padding: 18px 20px 22px; }
  .flow { grid-template-columns: 1fr; min-height: 0; gap: 16px; }
  .flow__lines { display: none; }
  .case { padding: 56px 0; }
  .case__facts { grid-template-columns: 1fr 1fr; gap: 18px; }
  .zc { padding-right: 18%; padding-bottom: 48px; }
  .steps { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .price__item, .price__item + .price__item { padding: 28px 0; border-left: 0; }
  .price__item + .price__item { border-top: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; padding: 22px; }
  details p { padding-right: 0; }
}

/* ---------- Nové sekce: tablet a mobil ---------- */
@media (max-width: 1080px) {
  .kab__top { grid-template-columns: 1fr; gap: 48px; }
  .kab__benefits { grid-template-columns: 1fr 1fr; }
  .kab__benefits li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .kab__benefits li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .kab__benefits li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .vid__row { grid-template-columns: 1fr; gap: 36px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { position: static; max-width: 420px; }
}
@media (max-width: 720px) {
  .kab { padding-top: 72px; }
  .kab__benefits { grid-template-columns: 1fr; margin-top: 64px; }
  .kab__benefits li, .kab__benefits li:nth-child(even) { padding: 24px 0; border-left: 0; }
  .kab__benefits li + li { border-top: 1px solid var(--line); }
  .ba__knob { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .ba__products button { width: 48px; height: 48px; border-radius: 12px; }
  .ba__products { gap: 8px; }
  .vid { padding: 56px 0 16px; }
  .vlink { padding: 18px 20px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .zc__app { width: 58%; }
}
