/* KOVÁČ-STAV, zemní a stavební práce. Vzhled podle DESIGN.md (vzor SpaceX + high-end-visual-design). */

/* Písma z vlastního serveru (OFL, licence ve fonts/). Žádné volání Google Fonts: IP návštěvníků nejde třetí straně. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/geist-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/geist-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/geist-mono-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --canvas: #050505;
  --soft: #0e0e0f;
  --card: #151516;
  --elev: #1d1d1f;
  --shell: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --hi: rgba(255, 255, 255, .10);
  --ink: #fff;
  --body: #c4c4c7;
  --muted: #8c8c91;
  --red: #d8231c;
  --red-hover: #f03a32;
  --sand: #c9a25e;
  --ok: #4caf50;

  --f-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 12vw, 160px);
  --r-shell: 24px;
  --r-inner: 18px;
  --nav-top: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 12px 18px; border-radius: 999px;
  transition: top .4s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

/* ---------- Typografie ---------- */
.h2 {
  font: 700 clamp(36px, 5.2vw, 56px)/1 var(--f-display);
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
}
.lead { font: 300 clamp(17px, 1.6vw, 19px)/1.6 var(--f-body); color: var(--body); max-width: 44ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font: 500 11px/1 var(--f-mono); letter-spacing: 2.2px; text-transform: uppercase; color: var(--body);
  margin-bottom: 24px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.head { display: grid; gap: 4px; margin-bottom: clamp(40px, 6vw, 72px); }
.head .eyebrow { justify-self: start; }
.head .lead { margin-top: 16px; }

/* ---------- Tlačítka (pilulky s ikonou v kroužku) ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; gap: 16px;
  height: var(--h); padding: 0 8px 0 28px; border-radius: 999px;
  font: 600 14px/1 var(--f-body); letter-spacing: 1.4px; text-transform: uppercase;
  transition: transform .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  white-space: nowrap;
}
.btn { position: relative; isolation: isolate; overflow: hidden; transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--press, 1)); }
.btn:active { --press: .97; transition-duration: .14s; }
.btn__icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .16);
  transition: transform .5s var(--ease);
}
.btn__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.btn--red { background: var(--red); color: #fff; }

.btn--ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; background: rgba(5, 5, 5, .2); }

.btn--sm { --h: 44px; padding: 0 5px 0 18px; gap: 10px; font-size: 12px; }
.btn--sm .btn__icon { width: 34px; height: 34px; }
.btn--sm .btn__icon svg { width: 15px; height: 15px; }
.btn--full { width: 100%; justify-content: space-between; }

/* ---------- Dvojitý rám ---------- */
.bezel {
  display: block;
  padding: 6px; border-radius: var(--r-shell);
  background: var(--shell); border: 1px solid var(--line);
}
.bezel__core {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--r-inner); background: var(--card);
  box-shadow: inset 0 1px 0 var(--hi);
}

/* ---------- Navigace: ostrůvek ---------- */
.nav {
  position: fixed; z-index: 40; top: var(--nav-top); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 8px 0 14px; border-radius: 999px;
  background: rgba(10, 10, 10, .72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  width: max-content; max-width: calc(100vw - 24px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand__mark { width: 52px; height: auto; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font: 700 21px/1 var(--f-display); letter-spacing: 1px; }
.brand__sub { font: 500 8.5px/1 var(--f-mono); letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font: 500 11px/1 var(--f-mono); letter-spacing: 2px; text-transform: uppercase; color: var(--body);
  position: relative; padding: 8px 0; transition: color .4s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); position: relative; }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform .6s var(--ease), top .6s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(5, 5, 5, .86); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px 24px 120px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .5s var(--ease); }
.menu nav { display: grid; gap: 6px; }
.menu nav a, .menu__phone {
  font: 700 44px/1.05 var(--f-display); text-transform: uppercase; color: #fff; letter-spacing: 1px;
  transform: translateY(48px); opacity: 0;
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.menu__phone { color: var(--red); font-size: 32px; }
.menu.is-open nav a, .menu.is-open .menu__phone { transform: none; opacity: 1; }
.menu.is-open nav a:nth-child(1) { transition-delay: .06s; }
.menu.is-open nav a:nth-child(2) { transition-delay: .12s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .18s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .24s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .30s; }
.menu.is-open nav a:nth-child(6) { transition-delay: .36s; }
.menu.is-open .menu__phone { transition-delay: .42s; }

/* ---------- Hloubkoměr ---------- */
.depth { display: none; }
@media (min-width: 1480px) {
  .depth {
    display: block; position: fixed; z-index: 20; left: 22px; top: 18vh; bottom: 18vh; width: 44px;
    pointer-events: none; transition: opacity .6s var(--ease);
  }
  .depth.is-off { opacity: 0; }
  .depth__scale {
    position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
    background:
      repeating-linear-gradient(to bottom, rgba(255,255,255,.28) 0 1px, transparent 1px 10%) left top / 12px 100% no-repeat,
      repeating-linear-gradient(to bottom, rgba(255,255,255,.14) 0 1px, transparent 1px 2%) left top / 6px 100% no-repeat;
    border-left: 1px solid rgba(255,255,255,.18);
  }
  .depth__marker {
    position: absolute; left: 0; top: 0; width: 100%;
    transform: translateY(calc(var(--depth, 0) * 64vh));
  }
  .depth__marker::before { content: ""; position: absolute; left: -1px; top: -1px; width: 18px; height: 2px; background: var(--red); }
  .depth__value {
    position: absolute; left: 22px; top: -7px; white-space: nowrap;
    font: 500 11px/1 var(--f-mono); letter-spacing: .5px; color: #fff; font-variant-numeric: tabular-nums;
  }
}

/* ---------- HERO ---------- */
.hero { position: relative; height: 480vh; background: var(--canvas); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.hero__frames { position: absolute; inset: 0; overflow: hidden; transform: scale(var(--hz, 1.04)); transform-origin: 50% 70%; will-change: transform; }
@media (min-width: 900px) { .hero__frames { transform-origin: 0% 70%; } }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; background: var(--canvas); }
@media (max-width: 767px) { .hero__video { object-position: 58% 50%; } }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--veil, 1);
  background:
    linear-gradient(to top, rgba(5,5,5,.92) 0%, rgba(5,5,5,.55) 32%, rgba(5,5,5,0) 60%),
    linear-gradient(to right, rgba(5,5,5,.75) 0%, rgba(5,5,5,.25) 45%, rgba(5,5,5,0) 70%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: clamp(96px, 14vh, 150px);
  padding: 0 var(--gutter); max-width: 1280px; margin: 0 auto;
  transform: translateY(var(--hero-shift, 0px)); opacity: var(--hero-op, 1);
  pointer-events: var(--hero-pe, auto);
}
.hero__title {
  font: 700 clamp(44px, 7.6vw, 116px)/.9 var(--f-display);
  letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
  text-wrap: balance;
}
.hero__accent { color: #fff; position: relative; display: inline-block; }
.hero__accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .08em; background: var(--red);
  transform: scaleX(var(--accent, 0)); transform-origin: left;
}
.hero__lead { margin-top: 24px; max-width: 46ch; font: 300 clamp(17px, 1.6vw, 19px)/1.6 var(--f-body); color: #e6e6e8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 20px;
  max-width: 1280px; margin: 0 auto;
}
@media (min-width: 1328px) { .hero__meta { left: calc((100vw - 1280px) / 2 + var(--gutter)); right: calc((100vw - 1280px) / 2 + var(--gutter)); } }
.hero__phase { font: 500 11px/1 var(--f-mono); letter-spacing: 2.2px; text-transform: uppercase; color: #fff; min-width: 190px; }
.hero__progress { height: 2px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; border-radius: 2px; }
.hero__progress span { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--hp, 0)); }
.hero__steps { grid-column: 2; display: flex; justify-content: space-between; font: 500 10px/1 var(--f-mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.hero__note {
  position: absolute; right: var(--gutter); top: 96px;
  font: 500 10px/1 var(--f-mono); letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.75);
  padding: 7px 12px; border-radius: 999px; background: rgba(5,5,5,.45); border: 1px solid var(--line);
}
.hero__hint {
  position: absolute; right: var(--gutter); bottom: 96px; display: none;
  font: 500 10px/1 var(--f-mono); letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  opacity: var(--hint, 1);
}
@media (min-width: 900px) {
  .hero__hint { display: flex; align-items: center; gap: 12px; }
  .hero__hint span { width: 1px; height: 40px; background: linear-gradient(var(--red), transparent); }
}

/* ---------- SLUŽBY: pásy ---------- */
.services { padding-top: var(--section); }
.services__intro { margin-bottom: clamp(40px, 6vw, 72px); }
.band {
  position: relative; display: grid; grid-template-columns: 1fr;
  min-height: 100vh; min-height: 100dvh; overflow: hidden; background: var(--canvas);
  border-top: 1px solid var(--line);
}
.band__media { position: relative; overflow: hidden; }
.band__img {
  width: 100%; height: 115%; object-fit: cover;
  transform: translate3d(0, var(--par, 0px), 0);
  filter: contrast(1.06) saturate(.88) brightness(.95);
}
.band__body {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 48px var(--gutter) 64px;
}
.band__num { font: 700 clamp(40px, 5vw, 64px)/1 var(--f-display); color: var(--red); letter-spacing: 1px; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.band__title { font: 700 clamp(44px, 6.2vw, 88px)/.92 var(--f-display); letter-spacing: 1.2px; text-transform: uppercase; color: #fff; }
.band__text { margin: 24px 0 32px; font: 300 clamp(17px, 1.6vw, 19px)/1.6 var(--f-body); color: var(--body); max-width: 38ch; }

@media (max-width: 767px) {
  .band { min-height: 0; }
  .band__media { aspect-ratio: 4 / 5; }
  .band__img { height: 112%; }
  .band__body { padding-top: 32px; }
}
@media (min-width: 768px) {
  .band { grid-template-columns: 55fr 45fr; align-items: stretch; }
  .band--flip { grid-template-columns: 45fr 55fr; }
  .band--flip .band__media { order: 2; }
  .band__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to right, rgba(5,5,5,0) 55%, rgba(5,5,5,.9) 100%);
  }
  .band--flip .band__media::after { background: linear-gradient(to left, rgba(5,5,5,0) 55%, rgba(5,5,5,.9) 100%); }
  .band__media img { position: absolute; inset: -7.5% 0 auto 0; }
  .band__body { justify-content: center; padding: 96px clamp(32px, 5vw, 96px); }
}

/* ---------- PŘED A PO ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .bento__big { grid-column: span 8; grid-row: span 1; }
  .bento__pair { grid-column: span 4; }
  .bento__steps { grid-column: span 12; }
}
.tag {
  position: absolute; top: 14px; z-index: 3;
  font: 500 10px/1 var(--f-mono); letter-spacing: 2px; text-transform: uppercase; color: #fff;
  padding: 7px 11px; border-radius: 999px; background: rgba(5,5,5,.6); border: 1px solid var(--line-strong);
}
.tag--l { left: 14px; }
.tag--r { right: 14px; }
.cap { padding: 16px 18px 18px; font: 500 12px/1.5 var(--f-mono); letter-spacing: .3px; color: var(--muted); }

.compare { position: relative; aspect-ratio: 1184 / 1568; max-height: 80vh; width: 100%; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
@media (min-width: 900px) { .compare { aspect-ratio: auto; height: min(78vh, 760px); max-height: none; } }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; pointer-events: none; filter: contrast(1.06) saturate(.92); }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 48px; margin-left: -24px; z-index: 4;
  display: grid; place-items: center; cursor: ew-resize;
}
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--red); }
.compare__knob {
  position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7);
  transition: transform .5s var(--ease);
}
.compare__handle:hover .compare__knob, .compare.is-drag .compare__knob { transform: scale(1.08); }
.compare__knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.pair { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--red); }
.pair__item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); }
.pair__item img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(.9); }
@media (min-width: 900px) {
  /* Výšku řádku určuje posuvník vlevo, dvojice se jí přizpůsobí (fotky jen vyplní prostor). */
  .bento__pair .bezel__core { height: 100%; display: flex; flex-direction: column; }
  .pair { flex: 1 1 0; min-height: 0; }
  .pair__item { aspect-ratio: auto; min-height: 0; }
  .pair__item img { position: absolute; inset: 0; }
}

.steps3 { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px; scrollbar-width: none; }
.steps3::-webkit-scrollbar { display: none; }
.steps3 li { scroll-snap-align: start; position: relative; }
.steps3 img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: 12px; filter: contrast(1.06) saturate(.9); }
.steps3__label {
  display: block; margin-bottom: 10px;
  font: 500 11px/1 var(--f-mono); letter-spacing: 2px; text-transform: uppercase; color: #fff;
}
@media (min-width: 900px) {
  .steps3 { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 20px; padding: 20px; }
  .steps3 img { max-width: 560px; }
  .steps3 li:not(:last-child)::after {
    content: ""; position: absolute; right: -16px; top: 50%; width: 12px; height: 2px; background: var(--red);
  }
}

/* ---------- TRASA ---------- */
.route { position: relative; padding: var(--section) 0 0; }
.route__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }
.route__viewport { position: relative; }
.route__track {
  display: flex; gap: 16px; padding: 0 var(--gutter) 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.route__track::-webkit-scrollbar { display: none; }
.route__track li { flex: 0 0 auto; scroll-snap-align: center; position: relative; z-index: 1; }
.shot { display: block; text-align: left; width: min(72vw, 340px); }
.shot .bezel__core { aspect-ratio: 3 / 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(.88) brightness(.95); transition: transform .9s var(--ease); }

.shot__cap { display: block; margin-top: 14px; font: 500 11px/1.5 var(--f-mono); letter-spacing: .4px; color: var(--muted); }
.shot__cap b { color: #fff; font-weight: 500; margin-right: 8px; }
.route__line { position: absolute; left: 0; right: 0; top: 46%; height: 2px; z-index: 0; overflow: hidden; }
.route__line span { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--rl, 1)); }

@media (min-width: 900px) {
  .route { padding-top: 0; }
  .route__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 72px; }
  .route__track { overflow: visible; gap: 28px; padding: 0 0 0 var(--gutter); width: max-content; transform: translate3d(var(--rx, 0px), 0, 0); will-change: transform; }
  .shot { width: auto; }
  .shot .bezel__core { height: min(58vh, 620px); width: auto; aspect-ratio: 3 / 4; }
  .route__track li:last-child { padding-right: var(--gutter); }
}

/* ---------- ŘEZ VÝKOPEM (řízeno scrollem, proměnné --k1 až --k9 nastavuje JS) ---------- */
.process__grid { display: grid; gap: 24px; position: relative; }
.process__visual { position: sticky; top: 76px; z-index: 2; align-self: start; background: var(--canvas); padding-bottom: 12px; }
.section-cut { padding: 18px 18px 14px; background: #0a0a0b; }
.cut-cap { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; font: 500 11px/1 var(--f-mono); letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.cut-cap__num { font: 700 26px/1 var(--f-display); color: var(--red); letter-spacing: 1px; }
.cut { width: 100%; height: auto; overflow: visible; }
.cut__lbl { font: 500 11px var(--f-mono); letter-spacing: 1.4px; fill: #fff; paint-order: stroke; stroke: #0a0a0b; stroke-width: 4px; stroke-linejoin: round; }
.cut__lbl--dim { fill: #b9b9bd; }
.cut * { transform-box: fill-box; }
.cut-surface { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--k1, 0)); }
.cut-o1 { opacity: calc(var(--k1, 0) * (1 - var(--k8, 0))); }
.cut-o2 { opacity: calc(var(--k2, 0) * (1 - var(--k3, 0))); }
.cut-dig { transform-origin: 50% 0; transform: scaleY(var(--k3, 0)); }
.cut-pile { transform-origin: 50% 100%; transform: scaleY(calc(var(--k3, 0) * (1 - var(--k7, 0)))); }
.cut-o3 { opacity: calc(var(--k3, 0) * (1 - var(--k7, 0))); }
.cut-sand { transform-origin: 50% 100%; transform: scaleY(var(--k4, 0)); }
.cut-ducts { opacity: var(--k5, 0); transform: translateY(calc((1 - var(--k5, 0)) * -180px)); }
.cut-cover { transform-origin: 50% 100%; transform: scaleY(var(--k6, 0)); }
.cut-foil { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--k6, 0)); }
.cut-o4 { opacity: var(--k6, 0); }
.cut-fill { transform-origin: 50% 100%; transform: scaleY(var(--k7, 0)); }
.cut-pave { transform-origin: 0 50%; transform: scaleX(var(--k8, 0)); }
.cut-o5 { opacity: var(--k8, 0); }
.cut-bar { height: 2px; margin-top: 10px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.cut-bar span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--k9, 0)); }

.process__steps { display: grid; gap: 16px; padding-bottom: 40vh; }
.pstep {
  position: relative; padding: 28px 24px 28px 88px; border-radius: var(--r-shell);
  border: 1px solid var(--line); background: var(--shell);
  min-height: 46vh; display: flex; flex-direction: column; justify-content: center;
  transition: border-color .6s var(--ease), background-color .6s var(--ease), opacity .6s var(--ease);
  opacity: .45;
}
.pstep.is-on { border-color: rgba(216, 35, 28, .55); background: rgba(216, 35, 28, .05); opacity: 1; }
.pstep__num { position: absolute; left: 24px; top: 28px; font: 700 40px/1 var(--f-display); color: var(--muted); transition: color .6s var(--ease); font-variant-numeric: tabular-nums; }
.pstep.is-on .pstep__num { color: var(--red); }
.pstep h3 { font: 700 clamp(26px, 2.6vw, 32px)/1.05 var(--f-display); text-transform: uppercase; color: #fff; letter-spacing: .5px; margin-bottom: 8px; }
.pstep p { color: var(--body); }
.pstep__img { margin-top: 18px; width: 100%; max-width: 360px; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; border-radius: 14px; filter: contrast(1.06) saturate(.9); }
@media (max-width: 899px) {
  .process__visual { top: 72px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px; }
  .pstep { min-height: 52vh; padding: 24px 20px 24px 76px; }
  .pstep__num { left: 20px; top: 24px; font-size: 34px; }
}
@media (min-width: 900px) {
  .process__grid { grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
  .process__visual { top: max(96px, calc(50vh - 260px)); padding: 0; background: none; }
  .pstep { min-height: 62vh; }
}

/* ---------- MĚSTA ---------- */
.cities { border-top: 1px solid var(--line); }
.cities li {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 20px;
  padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line);
}
.cities__num { font: 500 12px/1 var(--f-mono); color: var(--muted); letter-spacing: 1px; }
.cities__line { height: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.cities__line::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.cities__name { font: 700 clamp(36px, 6vw, 72px)/1 var(--f-display); text-transform: uppercase; color: #fff; letter-spacing: 1px; transition: transform .7s var(--ease); }
.cities li.is-in .cities__line::after { transform: scaleX(1); }
.cities__note { margin-top: 40px; }

/* ---------- KONTAKT ---------- */
.contact__grid { display: grid; gap: 48px; scroll-margin-top: 110px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 7vw, 112px); align-items: start; } }
.contact__info .lead { margin-top: 16px; }
.contact__phone {
  display: inline-block; margin-top: 40px;
  font: 700 clamp(52px, 7.4vw, 104px)/.92 var(--f-display); color: #fff; letter-spacing: 1px; white-space: nowrap;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 3px no-repeat; padding-bottom: 8px;
  transition: background-size .8s var(--ease);
}
.contact__phone:hover { background-size: 100% 3px; }
.contact__rows { margin-top: 40px; border-top: 1px solid var(--line); }
.contact__rows a { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: #fff; font-weight: 600; }
.contact__rows small { display: block; font: 400 15px/1.4 var(--f-body); color: var(--body); }
.ring { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.ring svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }


.contact__form .bezel__core { padding: clamp(20px, 3vw, 36px); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font: 500 11px/1 var(--f-mono); letter-spacing: 1.8px; text-transform: uppercase; color: var(--body); }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 15px 18px; border-radius: 14px;
  background: var(--soft); color: #fff; border: 1px solid var(--line-strong);
  font: 400 16px/1.5 var(--f-body);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.hp { position: absolute; left: -9999px; }
.form__ok, .form__err { margin-top: 18px; display: flex; align-items: center; gap: 10px; color: #fff; }
.form__ok[hidden], .form__err[hidden] { display: none; }
.ok-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.form__err { color: #ffb4b0; }

/* ---------- PATIČKA ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
.footer__contact a:hover { color: #fff; }

/* ---------- MOBILNÍ VOLACÍ PILULKA ---------- */
.callbar { display: none; }
@media (max-width: 899px) {
  .callbar {
    position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; gap: 8px;
    transition: transform .6s var(--ease), opacity .6s var(--ease);
  }
  .callbar.is-hidden { transform: translateY(140%); opacity: 0; }
  .callbar__call {
    flex: 1; height: 60px; border-radius: 999px; background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font: 600 15px/1 var(--f-body); letter-spacing: 1.2px; text-transform: uppercase;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  }
  .callbar__wa {
    width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: rgba(20,20,20,.85); border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .callbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(5,5,5,.9); color: #fff;
}
.lightbox::backdrop { background: rgba(5,5,5,.6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__fig { display: grid; gap: 14px; justify-items: center; padding: 72px 16px 24px; }
.lightbox__fig img { max-height: calc(100dvh - 160px); max-width: min(92vw, 900px); width: auto; border-radius: 18px; }
.lightbox figcaption { font: 500 12px/1.4 var(--f-mono); letter-spacing: .5px; color: var(--body); text-align: center; }
.lb-btn {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-strong); color: #fff;
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-btn:active { transform: scale(.96); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn--close { top: 16px; right: 16px; }
.lb-btn--prev { left: 16px; top: 50%; margin-top: -26px; }
.lb-btn--next { right: 16px; top: 50%; margin-top: -26px; }
@media (max-width: 767px) { .lb-btn--prev, .lb-btn--next { top: auto; bottom: 20px; margin: 0; } }

/* ---------- ZRNO ---------- */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .06;
  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");
}

/* ---------- PŘÍJEZD PRVKŮ ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 48px, 0); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .band__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.js .band.is-in .band__media { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { filter: none; transform: none; transition: opacity .6s var(--ease); }
}

/* ---------- RESPONZIVITA NAVIGACE ---------- */
@media (max-width: 899px) {
  .nav { left: 12px; right: 12px; transform: none; width: auto; justify-content: space-between; gap: 12px; top: 12px; }
  .nav__links, .nav__call { display: none; }
  .burger { display: block; }
  .hero__note { top: 84px; right: 12px; }
  .hero__content { bottom: 120px; }
  .hero__meta { bottom: 92px; display: none; }
}
@media (max-width: 899px) and (min-height: 700px) {
  .hero__meta { display: grid; grid-template-columns: 1fr; bottom: 100px; }
  .hero__phase { min-width: 0; }
  .hero__steps { display: none; }
  .hero__content { bottom: 136px; }
}
@media (max-width: 899px) {
  .hero__actions { display: none; }
  .hero__lead { margin-top: 16px; }
}

/* ---------- MIKROINTERAKCE (kurzor a tlačítka) ----------
   Hover jen pro myš. Při reduced motion zůstávají barvy, pohyb se vypíná. */
.btn > span { position: relative; z-index: 1; }
.btn__icon { overflow: hidden; }
.btn--ghost::before, .btn--red::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .55s var(--ease);
}
.btn--ghost::before { background: #fff; }
.btn--red::before { background: var(--red-hover); }
.btn__icon svg { transition: transform .45s var(--ease); }
.shot__zoom {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 999px;
  background: rgba(5,5,5,.72); border: 1px solid var(--line-strong); color: #fff;
  font: 500 10px/1 var(--f-mono); letter-spacing: 1.6px; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.shot__zoom svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.shot:focus-visible .shot__zoom { opacity: 1; transform: none; }
.field label { transition: color .3s var(--ease); }
.field:focus-within label { color: #fff; }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after { transform: scaleX(1); }
.contact__rows a > span:nth-child(2) { transition: transform .45s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scaleX(1); transform-origin: left center; }
  .btn--ghost:hover { color: #050505; border-color: #fff; }
  .btn--ghost:hover .btn__icon { background: rgba(0, 0, 0, .08); }
  .btn:hover .btn__icon { transform: scale(1.06); }
  .btn:hover [data-icon="arrow"] svg { animation: icon-arrow .5s var(--ease); }
  .btn:hover [data-icon="phone"] svg { animation: icon-ring .6s var(--ease); }
  .btn:hover [data-icon="wa"] svg { animation: icon-pop .45s var(--ease); }
  .shot:hover img { transform: scale(1.04); }
  .shot:hover .shot__zoom { opacity: 1; transform: none; }
  .shot:hover .bezel { border-color: var(--line-strong); }
  .contact__rows a:hover .ring { background: var(--red); border-color: var(--red); }
  .contact__rows a:hover [data-icon="wa"] svg, .contact__rows a:hover [data-icon="fb"] svg { animation: icon-pop .45s var(--ease); }
  .contact__rows a:hover > span:nth-child(2) { transform: translateX(6px); }
  .compare { cursor: col-resize; }
}
@keyframes icon-arrow {
  0% { transform: translateX(0); }
  45% { transform: translateX(160%); }
  46% { transform: translateX(-160%); }
  100% { transform: translateX(0); }
}
@keyframes icon-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(4deg); }
}
@keyframes icon-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover [data-icon] svg, .contact__rows a:hover [data-icon] svg { animation: none; }
  .btn::before { transition-duration: .01s; }
  .contact__rows a:hover > span:nth-child(2) { transform: none; }
}

/* ---------- MOBIL (úprava pro telefony) ----------
   Fotka pod textem u služeb, připnutý řez s textem kroku, čitelnější drobné písmo,
   větší cíle pro prst, ukazatel posunu u vodorovných pásů, kratší mezery. */
.cut-step { display: none; }
.swipe { display: none; }

@media (max-width: 899px) {
  :root { --section: 76px; }
  .head { margin-bottom: 32px; }

  /* čitelnost drobného písma */
  .eyebrow { font-size: 12px; letter-spacing: 2px; margin-bottom: 18px; }
  .hero__phase { font-size: 12px; }
  .hero__note { font-size: 11px; }
  .tag { font-size: 11.5px; padding: 8px 12px; }
  .cap { font-size: 13px; line-height: 1.55; }
  .steps3__label { font-size: 12.5px; }
  .shot__cap { font-size: 12.5px; }
  .shot__cap b { font-size: 12.5px; }
  .field label { font-size: 12.5px; letter-spacing: 1.4px; }
  .cities__num { font-size: 13px; }
  .brand__sub { font-size: 9.5px; letter-spacing: 1.4px; }
  .cut__lbl { font-size: 18px; letter-spacing: 1px; stroke-width: 5px; }
  .cut-cap { font-size: 12.5px; }

  /* cíle pro prst */
  .brand { padding: 5px 0; }
  .footer__contact { flex-direction: column; gap: 0; font-size: 16px; }
  .footer__contact span { display: none; }
  .footer__contact a { display: block; padding: 12px 0; color: var(--body); }

  /* ukazatel posunu u vodorovných pásů */
  .swipe { display: flex; align-items: center; gap: 14px; padding: 4px var(--gutter) 0; }
  .swipe--in { padding: 0 14px; }
  .swipe__bar { position: relative; flex: 1; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
  .swipe__bar span { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--sp, .14)); transition: transform .2s var(--ease-out); }
  .swipe__hint { font: 500 11.5px/1 var(--f-mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: opacity .4s var(--ease); }
  .swipe.is-moved .swipe__hint { opacity: 0; }
  .route__head { margin-bottom: 28px; }
  .route__line { display: none; }
}

@media (max-width: 767px) {
  /* Služby: fotka přes celou obrazovku, text dole na přechodu (místo fotka a pod ní text) */
  .band { display: block; min-height: 92vh; min-height: 92svh; border-top: 0; margin-top: 10px; }
  .band__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .band__media img { position: absolute; left: 0; right: 0; top: -6%; height: 112%; }
  .band__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(5,5,5,.97) 0%, rgba(5,5,5,.82) 30%, rgba(5,5,5,.25) 58%, rgba(5,5,5,0) 75%);
  }
  .band__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 40px; }
  .band__num { font-size: 40px; margin-bottom: 10px; }
  .band__title { font-size: clamp(40px, 11.5vw, 52px); }
  .band__text { margin: 16px 0 24px; color: #dcdcdf; }
  .services__intro { margin-bottom: 24px; }

  /* Řez výkopem: připnutý panel s nákresem i textem aktuálního kroku, karty jsou jen dráha pro scroll */
  .process__visual { top: 70px; padding-bottom: 0; }
  .cut-step { display: block; padding: 18px 2px 14px; min-height: 112px; }
  .cut-step h3 { font: 700 30px/1 var(--f-display); text-transform: uppercase; color: #fff; letter-spacing: .5px; margin-bottom: 8px; }
  .cut-step p { font-size: 16px; color: var(--body); }
  .cut-step.is-swap h3, .cut-step.is-swap p { animation: step-in .45s var(--ease); }
  .process__steps { gap: 0; padding-bottom: 12vh; }
  .pstep { min-height: 58vh; min-height: 58svh; opacity: 0 !important; pointer-events: none; border: 0; background: none; }
  .process__grid { gap: 0; }
}
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .cut-step.is-swap h3, .cut-step.is-swap p { animation: none; }
}

/* Telefon na šířku a jiné nízké obrazovky */
@media (max-height: 520px) and (orientation: landscape) {
  .nav { top: 8px; height: 52px; }
  .hero__title { font-size: clamp(30px, 9vh, 44px); }
  .hero__lead { display: none; }
  .hero__content { bottom: 72px; }
  .hero__content .eyebrow { margin-bottom: 10px; }
  .hero__meta { display: none !important; }
  .hero__note { top: 68px; }
  .callbar { left: auto; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); }
  .callbar__call { flex: none; height: 48px; padding: 0 20px; font-size: 13px; }
  .callbar__wa { width: 48px; height: 48px; }
  .process__visual { top: 64px; }
  .cut { width: auto; max-width: 100%; height: calc(100vh - 170px); height: calc(100svh - 170px); margin: 0 auto; display: block; }
  .cut-step { display: none !important; }
  .pstep { opacity: 1 !important; min-height: 70vh; }
  .band { min-height: 0; }
}

/* ---------- AUDIT (impeccable): prvky prohlížeče, monospace jen pro data a měření, stavy ---------- */
::selection { background: var(--red); color: #fff; }
html { scrollbar-color: #2a2a2d var(--canvas); accent-color: var(--red); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: #2a2a2d; border-radius: 999px; border: 2px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: #3a3a3e; }
input, textarea { caret-color: var(--red); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* Monospace zůstává jen u měření a čísel (hloubkoměr, nákres řezu, fáze, počítadla). Popisky jsou v Geist. */
.nav__links a, .field label, .cap, .tag, .shot__zoom, .hero__note, .brand__sub, .swipe__hint, .steps3__label, .shot__cap, .menu__phone {
  font-family: var(--f-body);
}
.nav__links a { font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .8px; text-transform: none; }
.cap { font-size: 14px; letter-spacing: 0; color: var(--body); }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; }
.shot__zoom { font-size: 11.5px; font-weight: 600; letter-spacing: 1px; }
.hero__note { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; }
.brand__sub { font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.swipe__hint { font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.steps3__label { font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.shot__cap { font-size: 13px; letter-spacing: 0; }
.shot__cap b { font-family: var(--f-mono); font-weight: 500; }
.menu__phone { font-family: var(--f-display); }

/* Bez čísel u měst: jen čára a název */
.cities li { grid-template-columns: 1fr auto; }

/* Bez štítku nad nadpisem: nadpis nese sekci sám */
.head { gap: 0; }
.hero__title { margin-top: 0; }

/* Formulář: informace o údajích a stav odesílání */
.form__note { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.form__note a { color: var(--body); text-decoration: underline; }
.form__note a:hover { color: #fff; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn[aria-busy="true"] [data-icon="arrow"] svg { animation: icon-busy 1s var(--ease) infinite; }
@keyframes icon-busy { 0% { transform: translateX(-160%); } 60%, 100% { transform: translateX(160%); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"] [data-icon="arrow"] svg { animation: none; } }

@media (max-width: 899px) {
  .brand__sub { font-size: 11px; letter-spacing: .6px; }
  .field label { font-size: 14px; }
}

/* ---------- Formulář: potvrzení zásad a chybové stavy ---------- */
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 0 0 16px; padding: 10px 0; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 24px; height: 24px; border-radius: 7px;
  border: 1px solid var(--line-strong); background: var(--soft); cursor: pointer; display: grid; place-items: center;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.check input::after {
  content: ""; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .3s var(--ease);
}
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.check span { font-size: 14.5px; line-height: 1.55; color: var(--body); }
.check span a { color: #fff; text-decoration: underline; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b63; box-shadow: 0 0 0 1px #ff6b63; }
.field.is-invalid label { color: #ffb4b0; }
.check.is-invalid input { border-color: #ff6b63; box-shadow: 0 0 0 1px #ff6b63; }
.form__invalid { margin: 0 0 16px; color: #ffb4b0; font-size: 14.5px; line-height: 1.5; }
.form__invalid[hidden] { display: none; }

/* ---------- Stránka Děkuji (odeslání bez JavaScriptu) ---------- */
.thanks { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.thanks__mark { width: 120px; margin: 0 auto 32px; }
.thanks h1 { font: 700 clamp(40px, 7vw, 72px)/1 var(--f-display); text-transform: uppercase; color: #fff; letter-spacing: 1px; }
.thanks p { margin: 20px auto 36px; font-size: 18px; color: var(--body); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Telefon a e-mail vedle sebe, stačí jedno */
.contact-pair { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0 14px; grid-template-columns: 1fr; }
.contact-pair .field { margin-bottom: 12px; }
.field__hint { grid-column: 1 / -1; margin: -2px 0 18px; font-size: 13.5px; color: var(--muted); }
@media (min-width: 1100px) { .contact-pair { grid-template-columns: 1fr 1fr; } }
.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; }

/* Úvodní video na počítači: posunuté doprava, aby výkop nebyl pod nadpisem; levý okraj se rozplyne do černé */
@media (min-width: 900px) {
  .hero__video {
    left: 24%; width: 76%;
    object-position: 50% 62%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
            mask-image: linear-gradient(to right, transparent 0%, #000 22%);
  }
  .hero__frames { transform-origin: 70% 70%; }
}
@media (min-width: 900px) {
  .hero__veil {
    background:
      linear-gradient(to top, rgba(5,5,5,.7) 0%, rgba(5,5,5,.2) 16%, rgba(5,5,5,0) 30%),
      linear-gradient(to right, rgba(5,5,5,.88) 0%, rgba(5,5,5,.55) 34%, rgba(5,5,5,0) 58%);
  }
}

/* ---------- VÝKON NA MOBILU (plynulý scroll) ----------
   1) Úvod nemění výšku, když lišta prohlížeče zmizí nebo se objeví (lvh místo dvh).
      Obsah dole se posune o rozdíl mezi velkým a malým výřezem, aby nebyl pod lištou.
   2) Panel řezu má pevnou výšku, jinak se obsah pod ním posouval a scroll „skákal“.
   3) Na telefonu bez rozmazání pozadí, bez rozostření při příjezdu a bez zrnitosti. */
.hero__stage { height: 100vh; height: 100lvh; }
.hero, .process__visual { overflow-anchor: none; }
@supports (height: 100lvh) {
  @media (max-width: 899px) {
    .hero__content { bottom: calc(144px + (100lvh - 100svh)); }
    .hero__meta { bottom: calc(100px + (100lvh - 100svh)) !important; }
  }
}
@media (max-width: 767px) {
  .cut-step { height: 152px; min-height: 0; overflow: hidden; }
}
@media (max-width: 899px) {
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 12, 13, .94); }
  .callbar__wa { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 22, 24, .96); }
  .grain { display: none; }
  .js .reveal { filter: none; transform: translate3d(0, 28px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { transform: none; }
  .hero__frames { will-change: auto; }
  .hero__video { will-change: auto; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero__content { bottom: 72px; }
}

/* Zalomení nadpisů bez <br>: každý řádek je blok, mezi slovy zůstává normální mezera (čtečky i vyhledávače čtou celé věty) */
.ln { display: block; }

/* ---------- ÚVOD S FOTKOU (místo videa řízeného scrollem) ---------- */
.hero--photo { height: auto; }
.hero--photo .hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 600px; }
.hero--photo .hero__frames { transform: none; will-change: auto; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; }
.hero--photo .hero__content { bottom: clamp(56px, 10vh, 120px); }
@media (min-width: 900px) {
  .hero__img {
    left: 30%; width: 70%;
    object-position: 50% 60%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
            mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  }
}
@media (max-width: 899px) {
  .hero--photo .hero__content { bottom: 112px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero--photo .hero__stage { min-height: 0; }
  .hero--photo .hero__content { bottom: 72px; }
}

/* ---------- FILTRY GALERIE ---------- */
.route__head .lead { margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--body);
  font: 600 13px/1 var(--f-body); letter-spacing: 1px; text-transform: uppercase;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.filter span { font: 500 12px/1 var(--f-mono); color: var(--muted); transition: color .4s var(--ease); }
.filter.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.filter.is-on span { color: rgba(255,255,255,.85); }
@media (hover: hover) and (pointer: fine) {
  .filter:not(.is-on):hover { border-color: #fff; color: #fff; }
}
.route__track li[hidden] { display: none; }
/* Vodorovný pás na mobilu: posun do strany nezasahuje do svislého scrollu stránky */
@media (max-width: 899px) {
  .route__track { overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
}

/* ---------- Karta „Na stavbě“ (klientovo video u výkopových prací) ---------- */
.clip {
  position: absolute; z-index: 2; display: block; text-align: left;
  width: clamp(132px, 34vw, 230px); left: 32px; bottom: 40px;
  transition: transform .5s var(--ease);
}
.clip .bezel { background: rgba(5,5,5,.35); border-color: var(--line-strong); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.clip .bezel__core { aspect-ratio: 366 / 458; background: #0a0a0b; }
.clip__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip__tag {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 5px; border-radius: 999px; background: rgba(5,5,5,.72); border: 1px solid var(--line-strong);
  font: 600 11.5px/1 var(--f-body); letter-spacing: 1px; text-transform: uppercase; color: #fff;
}
.clip__play { width: 22px; height: 22px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.clip__play svg { width: 11px; height: 11px; fill: #fff; margin-left: 1px; }
.clip:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .clip:hover { transform: translateY(-4px); }
  .clip:hover .clip__play { transform: scale(1.08); }
}
.clip__play { transition: transform .4s var(--ease); }
/* reduced motion: video nehraje samo, výraznější tlačítko přehrát */
.clip.is-static .clip__play { width: 30px; height: 30px; }
.clip.is-static .clip__play svg { width: 14px; height: 14px; }
@media (max-width: 767px) {
  .clip { left: auto; right: 14px; bottom: auto; top: 86px; width: 38vw; max-width: 170px; }
}
/* lightbox s videem */
.lightbox__video { width: min(92vw, 512px, calc((100dvh - 180px) * 0.8)); height: auto; aspect-ratio: 366 / 458; border-radius: 18px; background: #000; }
.lightbox__video[hidden], .lightbox__fig img[hidden] { display: none; }
.lightbox.is-video .lb-btn--prev, .lightbox.is-video .lb-btn--next { display: none; }

/* Karta u zdi: tři kroky místo dvojice před a po */
.pair--3 { list-style: none; margin: 0; padding: 0; grid-template-rows: 1fr 1fr 1fr; }
.pair--3 .pair__item img { object-position: 50% 55%; }
@media (max-width: 899px) {
  .pair--3 { grid-template-rows: none; }
  .pair--3 .pair__item { aspect-ratio: 4 / 3; }
}

/* Motto klienta v úvodu */
.hero__motto {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 22px;
  font: 600 clamp(18px, 1.8vw, 24px)/1.1 var(--f-display); letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
}
.hero__sep { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.hero__motto + .hero__lead { margin-top: 14px; }
@media (max-width: 899px) { .hero__motto { margin-top: 16px; gap: 4px 10px; } }
/* tečka patří k následujícímu slovu, aby nezůstala viset na konci řádku */
.hero__motto { gap: 6px 0; }
.hero__motto > span { white-space: nowrap; display: inline-flex; align-items: center; }
.hero__motto > span + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin: 0 14px; flex: none; }
@media (max-width: 899px) {
  .hero__motto { font-size: clamp(13px, 3.9vw, 20px); letter-spacing: 1px; }
  .hero__motto > span + span::before { width: 6px; height: 6px; margin: 0 9px; }
}

/* Věta nad mottem: co klient dělá, od začátku do konce */
.hero__claim {
  margin-top: 26px; display: flex; align-items: center; gap: 14px;
  font: 600 clamp(22px, 2.4vw, 34px)/1.05 var(--f-display); letter-spacing: 1px; text-transform: uppercase; color: #fff;
}
.hero__claim::before { content: ""; width: 40px; height: 3px; background: var(--red); flex: none; }
.hero__claim + .hero__motto { margin-top: 10px; }
.hero__motto { color: #e6e6e8; }
@media (max-width: 899px) {
  .hero__claim { margin-top: 16px; gap: 10px; font-size: clamp(19px, 5.4vw, 26px); }
  .hero__claim::before { width: 24px; }
  .hero__claim + .hero__motto { margin-top: 8px; }
}
@media (max-height: 520px) and (orientation: landscape) { .hero__claim, .hero__motto { display: none; } }

/* ---------- ZÁVĚREČNÉ MOTTO (před patičkou) ---------- */
.closing { border-top: 1px solid var(--line); }
.closing__motto {
  display: flex; align-items: center; gap: 18px;
  font: 700 clamp(40px, 7.6vw, 116px)/.95 var(--f-display); letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
  text-wrap: balance;
}
.closing__motto::before { content: ""; width: 40px; height: 3px; background: var(--red); flex: none; align-self: center; }
.closing__sub {
  margin-top: 18px; max-width: 40ch;
  font: 300 clamp(18px, 3.6vw, 52px)/1.2 var(--f-body); color: var(--body);
}
@media (max-width: 899px) {
  .closing__motto { gap: 12px; }
  .closing__motto::before { width: 24px; }
}
/* reveal: jen opacity a transform, sub se zpožděním 60 ms */
.js .closing [data-closing] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 260ms cubic-bezier(0.23, 1, 0.32, 1), transform 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.js .closing .closing__sub { transition-delay: 60ms; }
.js .closing.is-in [data-closing] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .closing [data-closing] { opacity: 1; transform: none; transition: none; }
}
.closing__sub { text-wrap: balance; max-width: 30ch; }
@media (max-width: 899px) { .closing__motto { font-size: clamp(32px, 9.6vw, 44px); } }
/* Motto je od 13. 10. pod úvodem: bez dělicí čáry nahoře, menší mezera ke službám */
.closing { border-top: 0; padding-bottom: clamp(24px, 4vw, 48px); }

/* Identifikace podnikatele v patičce (§ 435 OZ) */
.footer__legal { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Stránka Ochrana osobních údajů (přesunuto z inline <style> kvůli CSP bez unsafe-inline) ---------- */
.legal { padding: 140px 0 96px; }
  .legal .wrap { max-width: 760px; }
  .legal h1 { font: 700 clamp(40px, 6vw, 64px)/1 var(--f-display); text-transform: uppercase; color: #fff; letter-spacing: 1px; margin-bottom: 20px; }
  .legal h2 { font: 700 26px/1.1 var(--f-display); text-transform: uppercase; color: #fff; letter-spacing: .5px; margin: 48px 0 14px; }
  .legal p, .legal li { color: var(--body); font-size: 17px; line-height: 1.65; max-width: 68ch; }
  .legal p + p { margin-top: 12px; }
  .legal ul { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 8px; }
  .legal li { padding-left: 20px; position: relative; }
  .legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--red); }
  .legal a { color: #fff; text-decoration: underline; }
  .legal .lead { font-size: 19px; }
  .legal .updated { margin-top: 48px; color: var(--muted); font-size: 14px; }
  .legal-back { display: inline-flex; margin-bottom: 40px; }
.nav--legal { gap: 16px; }
.flip-x { transform: scaleX(-1); }
/* výchozí poloha posuvníku před a po (dřív inline atribut) */
.compare { --pos: 50%; }
.legal .btn { text-decoration: none; }

/* Formulář: povinný telefon (hvězdička), nepovinný e-mail */
.field label .req { color: var(--red); }
.field label .opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input::placeholder { color: var(--muted); }

/* Automaticky vyplněná pole (Chrome, Edge, Safari) zůstávají tmavá jako ostatní, ne světle modrá */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--soft) inset;
  -webkit-text-fill-color: #fff;
  caret-color: var(--red);
  transition: background-color 600000s 0s, color 600000s 0s;
}
.field input:autofill { box-shadow: 0 0 0 1000px var(--soft) inset; -webkit-text-fill-color: #fff; }
