/* ============================================================
   Václav Klimeš - vaclavklimes.cz
   Design system: „Studio“ - čistý, vzdušný, apple-like.
   Paleta: bílá / mist / inkoust + jediný akcent „výheň“.
   Typografie: Schibsted Grotesk (display) + Inter (text).
   Podpis: oranžová tečka za titulky + tmavá pasáž Fotografie.
   ============================================================ */

/* ---------- 1 · Tokeny ---------- */
:root {
  --paper: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #56565c;
  --ink-faint: #86868b;
  --line: rgba(29, 29, 31, 0.1);
  --ember: #e8500b;
  --ember-deep: #c74100;

  /* tmavá pasáž (Fotografie) */
  --coal: #0b0b0d;
  --coal-2: #151517;
  --snow: #f5f5f7;
  --snow-soft: #a1a1a6;
  --line-dark: rgba(255, 255, 255, 0.14);

  --display: "Schibsted Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --shell: 1120px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --pad-section: clamp(88px, 12vw, 152px);
}

/* ---------- 2 · Reset & základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--ember); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: min(var(--shell), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3 · Typografie ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; }

/* podpis webu: tečka za titulkem v barvě výhně */
.dot { color: var(--ember); }

.eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.section { padding-block: var(--pad-section); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.centered { margin-inline: auto; text-align: center; }

.section-index {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-lead {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.section-lead a { font-weight: 600; }

/* ---------- 4 · Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent { background: var(--ember); color: #fff; }
.btn-accent:hover { background: var(--ember-deep); box-shadow: 0 10px 24px -12px rgba(232, 80, 11, 0.55); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; }

/* světlá varianta pro tmavou pasáž */
.stage-dark .btn-ghost { color: var(--snow); border-color: var(--line-dark); }
.stage-dark .btn-ghost:hover { border-color: var(--snow); }

/* ---------- 5 · Hlavička ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }

.nav { display: flex; gap: 26px; margin-inline: auto; }
.nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--ink); }

.header-cta { padding: 10px 20px; font-size: 14px; }

/* mobilní menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border-radius: 12px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 99;
  display: grid;
  gap: 4px;
  padding: 12px 24px 28px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.8) blur(24px);
  backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.18);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.mobile-nav.open { transform: translateY(0); opacity: 1; }
.mobile-nav a {
  padding: 13px 4px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { text-decoration: none; color: var(--ember); }

/* ---------- 6 · Hero ---------- */
.hero {
  padding-top: clamp(140px, 20vh, 208px);
  text-align: center;
}

.hero .eyebrow { margin-bottom: 26px; }

.hero-title {
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero-title .quiet { color: var(--ink-faint); }

.hero-lead {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-proof {
  display: flex;
  gap: 12px 36px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink-faint);
}
.hero-proof li { display: flex; align-items: baseline; gap: 8px; }
.hero-proof strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ---------- 7 · Plující rail s pracemi ---------- */
.rail {
  --h: clamp(200px, 26vw, 340px);
  overflow: hidden;
  padding-block: 8px;
}
.hero .rail { margin-top: clamp(56px, 8vw, 88px); }

.rail .m-item { margin: 0; }
.rail .zoom {
  display: block;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.rail .zoom img {
  height: var(--h);
  width: auto;
  max-width: none;
  transition: transform 0.6s var(--ease);
}
.rail .zoom:hover { box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.35); transform: translateY(-4px); }
.rail .zoom:focus-visible { outline-offset: -3px; }

/* marquee mechanika (track skládá main.js) */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--dur, 80s) linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-track.anim-off { animation-play-state: paused; }
.rail:hover .marquee-track,
.rail:focus-within .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  gap: 16px;
  margin-right: 16px;
}

@keyframes marquee {
  to { transform: translateX(calc(-100% / 2)); }
}

/* ---------- 8 · Pás klientů ---------- */
.clients {
  padding-block: clamp(48px, 7vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-inner {
  display: flex;
  align-items: center;
  gap: 20px 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.clients-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.clients-list {
  display: flex;
  gap: 16px 44px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.clients-list li {
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-faint);
}

/* ---------- 9 · Služby (Grafika) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.service {
  background: var(--mist);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.22); }
.service h3 {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.service p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- 10 · Tmavá pasáž (Fotografie) ---------- */
.stage-dark {
  background: var(--coal);
  color: var(--snow);
}
.stage-dark .section-index { color: var(--snow-soft); }
.stage-dark .section-lead { color: var(--snow-soft); }
.stage-dark ::selection { background: var(--snow); color: var(--coal); }
.stage-dark .wall .zoom { background: rgba(255, 255, 255, 0.06); }

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 clamp(40px, 6vw, 64px);
  padding: 0;
}
.tag-row li {
  padding: 8px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: var(--snow-soft);
}

/* ---------- 11 · Video ---------- */
.section-video { background: var(--mist); }

.video-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 18px;
  align-items: start;
}
.video-card { margin: 0; }
.video-trigger, .video-card .player {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
  background: #000;
  border: 0;
}
.video-card iframe.player { aspect-ratio: 16 / 9; height: auto; }
.video-portrait iframe.player { aspect-ratio: 9 / 16; }
.video-trigger img { width: 100%; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.video-trigger:hover img { transform: scale(1.03); opacity: 0.85; }

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease);
}
.play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0; height: 0;
  border-left: 18px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  translate: 3px 0;
}
.video-trigger:hover .play { transform: scale(1.08); }

.video-card figcaption {
  display: grid;
  gap: 2px;
  padding: 16px 6px 0;
  line-height: 1.4;
}
.video-card figcaption strong { font-family: var(--display); font-size: 16px; font-weight: 700; }
.video-card figcaption span { font-size: 14px; color: var(--ink-faint); }
.video-story {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  max-width: 58ch;
}
.video-story-item dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.video-story-item dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- 12 · Proces ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
}
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* ---------- 13 · O mně ---------- */
.section-about { background: var(--mist); }

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-aside { position: sticky; top: 96px; }
.about-aside .section-title { margin-bottom: 24px; }

.about-body .about-lead {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
}
.about-body p { margin: 0 0 18px; color: var(--ink-soft); }
.about-body p:last-child { margin-bottom: 0; }

/* ---------- 15 · Kontakt ---------- */
.section-contact { background: var(--mist); }

.contact-grid {
  display: grid;
  align-items: start;
}

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.contact-tile {
  display: grid;
  gap: 16px;
  padding: 26px 24px;
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.contact-tile:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.25);
}
.ct-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ember);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.ct-icon svg { width: 21px; height: 21px; }
.contact-tile:hover .ct-icon { background: var(--ember); color: #fff; }
.ct-text { display: grid; gap: 3px; }
.ct-label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.ct-value { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; word-break: break-word; }

.contact-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-faint); }

/* ---------- 16 · Patička ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 48px;
  align-items: start;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand p { margin: 2px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-faint); }

.footer-nav {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-nav a, .footer-nav button {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0;
}
.footer-nav a:hover, .footer-nav button:hover { color: var(--ink); text-decoration: none; }

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
}

/* ---------- 17 · Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 13, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.lightbox.open { opacity: 1; }
.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 1400px);
  max-height: 92vh;
  margin: 0;
}
.lb-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8);
}
.lb-caption {
  max-width: 640px;
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  transition: background 0.2s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- 18 · Galerie (podstránka portfolia) ---------- */
.back-fab {
  position: fixed;
  top: 16px; left: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 10px 28px -16px rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.back-fab:hover { text-decoration: none; transform: translateY(-1px); background: #fff; }

.wall-intro {
  width: min(860px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(120px, 18vh, 180px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}
.wall-intro h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}
.wall-intro p {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-soft);
}

.wall-head {
  width: min(var(--shell), 100% - 48px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 0 24px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wall {
  columns: 3;
  column-gap: 14px;
  width: min(1400px, 100% - 32px);
  margin: 0 auto;
}
@media (max-width: 900px) { .wall { columns: 2; } }

.wall .tile { margin: 0 0 14px; break-inside: avoid; line-height: 0; }
.wall .zoom {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
  background: var(--mist);
}
.wall .zoom img { width: 100%; transition: transform 0.55s var(--ease); }
.wall .zoom:hover img { transform: scale(1.025); }
.wall .zoom:focus-visible { outline-offset: -3px; }

.wall-cta {
  padding: clamp(72px, 10vw, 120px) 24px;
  text-align: center;
}
.wall-cta h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.wall-cta p { margin: 16px auto 30px; max-width: 540px; color: var(--ink-soft); }
.wall-cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.gallery-footer { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; }
.gallery-footer .footer-copy { border: 0; padding: 0; }

/* ---------- 19 · Právní stránka / poděkování ---------- */
.legal { max-width: 760px; padding-block: clamp(120px, 18vh, 160px) var(--pad-section); }
.legal h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 24px; }
.legal h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }

.thanks {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.thanks h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
}
.thanks p { max-width: 560px; margin: 22px auto 0; font-size: clamp(16px, 1.8vw, 20px); color: var(--ink-soft); }
.thanks .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- 19b · Cookie lišta (markup skládá consent.js) ---------- */
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 180;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie-banner.show { opacity: 1; transform: none; }

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
  max-width: 760px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 1px 0 var(--line), 0 32px 64px -32px rgba(0, 0, 0, 0.35);
}
.cookie-text { flex: 1 1 320px; }
.cookie-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cookie-copy { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 20px; font-size: 14px; }

/* ---------- 19c · Případová studie ---------- */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  width: min(860px, 100% - 48px);
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.case-meta-item { font-size: 15px; color: var(--ink); }
.case-meta-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.case-hero-media { width: min(1120px, 100% - 48px); margin: 0 auto clamp(56px, 8vw, 96px); }
.case-hero-media .zoom {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mist);
  cursor: zoom-in;
  line-height: 0;
}
.case-hero-media img { width: 100%; display: block; }

.case-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.case-block:first-of-type { border-top: 0; padding-top: 0; }
.case-block-media .zoom {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mist);
  cursor: zoom-in;
  line-height: 0;
}
.case-block-media img { width: 100%; display: block; }
.case-block-body .step-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--ember);
}
.case-block-body h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.case-block-body p { margin: 0 0 12px; font-size: 15.5px; color: var(--ink-soft); }
.case-block-body p:last-child { margin-bottom: 0; }

.case-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.case-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 980px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.case-doc-link:hover { border-color: var(--line-strong); background: var(--mist); text-decoration: none; }

.case-outcome {
  background: var(--mist);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  margin-top: clamp(48px, 7vw, 80px);
}
.case-outcome h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.case-outcome p { margin: 0 0 14px; font-size: 16px; color: var(--ink-soft); }
.case-outcome p:last-child { margin-bottom: 0; }

/* featured odkaz na případovou studii (nad galerií portfolia) */
.case-feature {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 80px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.case-feature:hover { border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; }
.case-feature img { width: 76px; height: 108px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.case-feature-body { display: block; }
.case-feature-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 4px;
}
.case-feature-title {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.case-feature-cta { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* ---------- 20 · Animace při scrollu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* jemné zpoždění pro hero sekvenci */
.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ---------- 21 · Responzivita ---------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .about-photo { max-width: 420px; }
  .case-block { grid-template-columns: 1fr; }
  .case-block-media { max-width: 340px; }
  .contact-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-proof { gap: 10px 24px; }
  .rail { --h: clamp(170px, 44vw, 220px); }
  .wall { columns: 2; column-gap: 8px; width: calc(100% - 16px); }
  .wall .tile { margin-bottom: 8px; }
  .case-feature { flex-direction: column; text-align: center; }
  .case-feature img { width: 96px; height: 136px; }
  .contact-tiles { grid-template-columns: 1fr; }
}

/* ---------- 22 · Redukovaný pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }

  .reveal { opacity: 1; transform: none; }

  .marquee-track { animation: none; }
  .rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-inline: 24px;
  }
}
