/* ==========================================================================
   29digitalstudio — V2 (rozložení MNTN, barvy Studio29: černobílá, dříve s limetkou)
   Desktop-first. Obrázky jsou zatím zástupné plochy (.placeholder).
   ========================================================================== */

:root {
  /* Barvy */
  --bg: #0d0d0d;
  --bg-deep: #000000;
  --surface: #1b1b1b;
  --white: #ffffff;
  --text: #ffffff;
  --text-soft: #b6b6b6;          /* 9,58:1 na --bg */
  --muted: #8c8c8c;              /* 5,78:1 na --bg */
  --line: rgba(255, 255, 255, .16);
  --accent: #ffffff;             /* černobílá varianta (V2.56) — limetka byla #d4ff3a, návrat = změnit zpět */
  --accent-ink: #0d0d0d;

  /* Layout */
  --content: 1462px;             /* šířka obsahu podle šablony (1920 − 2 × 229) */
  --pad: 80px;
  --gutter: max(var(--pad), calc((100% - var(--content)) / 2));
  --header-h: 104px;
  --header-h-compact: 80px;

  /* Spacing — mřížka 8 px */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 144px;

  /* Typografie */
  --font: Arial, Helvetica, sans-serif;               /* běžný text */
  --font-display: "Outfit", Arial, Helvetica, sans-serif;   /* nadpisy, čísla, logo */
  --fs-h1: clamp(72px, 6vw, 112px);
  --fs-h2: clamp(44px, 3.6vw, 64px);
  --fs-num: clamp(180px, 13vw, 240px);

  /* Pohyb */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .25s;
  --t-slow: .35s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-compact); }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; }
/* Zvýrazněné slovo v nadpisu — bez barvy zvýrazněno silnou linkou pod slovem */
.hl { color: var(--accent); font-style: normal; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .14em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100; padding: 12px 18px;
  color: var(--accent-ink); background: var(--accent); font-size: 13px; font-weight: 700;
  transform: translateY(-200%); transition: transform var(--t) ease;
}
.skip-link:focus { transform: translateY(0); }

/* Společné prvky ---------------------------------------------------------- */
/* Nadtitulek s linkou (MNTN „— A HIKING GUIDE“) */
.tagline {
  display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3);
  color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
}
.tagline::before { content: ""; flex: none; width: 72px; height: 2px; background: var(--accent); }

/* Textový odkaz se šipkou (MNTN „read more →“) */
.more-link {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--accent); font-size: 16px; font-weight: 700;
}
.more-link span { font-size: 20px; transition: transform var(--t) var(--ease); }
.more-link:hover span { transform: translateX(6px); }

.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-width: 260px; padding: 20px 24px; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  transition: transform var(--t) ease, background var(--t) ease;
}
.button span { font-size: 18px; line-height: 1; }
.button:hover { color: var(--white); background: transparent; border-color: var(--white); transform: translateY(-3px); }

/* Hlavička ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--t-slow) ease, transform var(--t-slow) var(--ease);
}
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 40px; align-items: center;   /* stejně široké krajní sloupce → menu přesně na středu */
  height: var(--header-h); padding: 0 var(--pad);
  transition: height var(--t-slow) var(--ease);
}
/* Textové logo „29“ — dočasně místo loga (písmo Outfit, podobné logu) */
.brand {
  font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.04em;
  transition: font-size var(--t-slow) var(--ease), color var(--t) ease;
}
.brand:hover { color: var(--accent); }
.site-header[data-state="solid"],
.site-header[data-state="hidden"] {
  background: rgba(13, 13, 13, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.site-header[data-state="solid"] .site-header__inner,
.site-header[data-state="hidden"] .site-header__inner { height: var(--header-h-compact); }
.site-header[data-state="solid"] .brand,
.site-header[data-state="hidden"] .brand { font-size: 32px; }
.site-header[data-state="hidden"] { transform: translateY(-100%); }

.main-nav { justify-self: center; display: flex; gap: 36px; font-size: 15px; }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-contact { justify-self: end; display: flex; align-items: center; gap: 24px; font-size: 14px; }
.header-contact > a { display: inline-flex; align-items: center; gap: 8px; transition: color var(--t) ease; }
.header-contact > a:hover { color: var(--accent); }
.icon { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.header-social { display: flex; gap: 8px; padding-left: 24px; border-left: 1px solid var(--line); }
.header-social a {
  display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%;
  font-size: 13px; transition: color var(--t) ease, border-color var(--t) ease;
}
.header-social a:hover { color: var(--accent); border-color: var(--accent); }
/* Na užších obrazovkách se text kontaktu schová (zůstane ikona s popiskem), aby se menu vešlo na střed */
@media (max-width: 1759px) { .header-contact a[href^="mailto"] .header-contact__text { display: none; } }
@media (max-width: 1439px) { .header-contact a[href^="tel"] .header-contact__text { display: none; } }

/* Hero ---------------------------------------------------------------------- */
.hero { position: relative; height: max(calc(100vh + 180px), 72vw); overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: #1b1b1b; }
.hero__img { position: absolute; left: 0; top: calc(-8% - 50px);   /* fotka posunutá o 50 px nahoru (víc spodku fotky) */ width: 100%; height: 116%; object-fit: cover; object-position: center 40%; will-change: transform; }
/* Ztmavení: nahoře kvůli čitelnosti menu a nadpisu, dole plynulý přechod do pozadí stránky (jako v šabloně) */
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,13,13,.7) 0%, rgba(13,13,13,.35) 45%, rgba(13,13,13,0) 75%),
    linear-gradient(180deg, rgba(13,13,13,.6) 0%, rgba(13,13,13,.2) 35%, rgba(13,13,13,.1) 55%, rgba(13,13,13,.85) 85%, var(--bg) 100%);
}
/* Ořez fotek na výšku do širokého hero — výřez, který zůstane vidět */
.hero__img--a { object-position: 50% 42%; }   /* monitor kamery + řezník v pozadí */
.hero__img--b { object-position: 35% 14%; }   /* kameraman se sluchátky + herečka u stromku */

.hero__content {
  position: absolute; z-index: 2; top: max(22vh, 180px); left: max(26vw, calc(var(--pad) + 160px)); right: 200px;
}
.hero__lead { max-width: 560px; margin-bottom: var(--s-5); color: rgba(255,255,255,.85); font-size: 20px; line-height: 1.55; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.hero h1 { margin-bottom: var(--s-4); text-shadow: 0 2px 30px rgba(0,0,0,.35); font-size: var(--fs-h1); line-height: 1.02; }


.hero-index {
  position: fixed; z-index: 40; right: 20px; top: 50%; transform: translateY(-50%);
  display: grid; grid-template-columns: auto 3px; column-gap: 20px; row-gap: 30px; justify-items: end;
  font-size: 13px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.6);
  transition: opacity var(--t-slow) ease, visibility var(--t-slow);
}
.hero-index.is-hidden { opacity: 0; visibility: hidden; }   /* u patičky se schová */
.hero-index a { grid-column: 1; opacity: .5; transition: opacity var(--t) ease; }
.hero-index a:first-child { margin-bottom: 8px; }
.hero-index a:hover, .hero-index a.is-active { opacity: 1; }
.hero-index__track { grid-column: 2; grid-row: 1 / span 6; position: relative; width: 3px; background: rgba(255,255,255,.3); }
.hero-index__bar { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% / 6); background: var(--accent); transition: transform .6s var(--ease); }

/* Obsahové bloky ---------------------------------------------------------- */
.blocks { position: relative; z-index: 1; margin-top: -176px; }  /* první blok zasahuje do spodku hero jako v šabloně */
.block {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 566px); align-items: center; gap: 112px;
  padding: var(--s-8) var(--gutter);
}
.blocks .block:first-child { padding-top: 0; }   /* první blok zasahuje do spodku hero */
.block--reverse { grid-template-columns: minmax(360px, 566px) minmax(0, 1fr); }
.block--reverse .block__media { order: -1; }

.block__text { position: relative; isolation: isolate; padding: 104px 0 0 152px; }
.block__num {
  position: absolute; left: 0; top: 0; z-index: -1;
  color: rgba(255,255,255,.07); font-family: var(--font-display); font-size: var(--fs-num); font-weight: 700; line-height: 1; letter-spacing: -.04em;
}
.block__text h2 { max-width: 11em; margin-bottom: var(--s-4); font-size: var(--fs-h2); line-height: 1.05; }
.block__text > p:not(.tagline) { max-width: 34em; margin-bottom: var(--s-2); color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.block__text > p:not(.tagline):last-of-type { margin-bottom: var(--s-4); }   /* odstup před dlaždicemi / odkazem */

.block__text > p + .tiles { margin-top: var(--s-2); }   /* odstup odstavce od dlaždic */
/* Dlaždice stejné šířky (služby, projekty) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-1); max-width: 632px; margin-bottom: var(--s-4); }
.tiles li { display: flex; flex-direction: column; gap: 4px; padding: var(--s-2); border: 1px solid var(--line); transition: border-color var(--t) ease; }
.tiles li:hover { border-color: var(--accent); }
.tiles b { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.tiles span { color: var(--muted); font-size: 13px; line-height: 1.45; }
/* Klienti — dlaždice se zástupným logem vlevo */
.tiles--clients li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: var(--s-2); row-gap: 4px; align-content: center; align-items: start; }
.tiles--clients .tile-logo { align-self: center; }
.tiles--clients .tile-logo {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px dashed rgba(255,255,255,.28); border-radius: 50%;
  color: var(--text-soft); font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1;
}
.tiles--clients li:hover .tile-logo { color: var(--accent); border-color: var(--accent); }
/* 02 — bílé dlaždice služeb */
.tiles--inverse li { color: var(--bg); background: var(--white); border-color: var(--white); transition: border-color var(--t) ease, box-shadow var(--t) ease; }
.tiles--inverse span { color: #555; }                                     /* 7,46 : 1 */
.tiles--inverse li:hover { border-color: var(--white); box-shadow: inset 0 -3px 0 var(--bg); }
.block__text > p.block__statement:not(.tagline) { margin-top: var(--s-4); padding-left: var(--s-3); border-left: 2px solid var(--accent); color: var(--white); font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.3; }
.block__steps { display: grid; gap: 14px; max-width: 632px; margin-bottom: 36px; counter-reset: step; }
.block__steps li { position: relative; padding-left: 44px; color: var(--text-soft); font-size: 16px; line-height: 1.6; counter-increment: step; }
.block__steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 13px; font-weight: 700; }
.block__steps b { color: var(--white); }

/* Zástupná fotka 4:5 (566 × 720) */
.block__media { aspect-ratio: 566 / 720; width: 100%; }
.block__media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s ease; }
.block:hover .block__media img { transform: scale(1.04); }          /* jemný zoom při najetí na blok */
.placeholder {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.06), transparent 40%),
    linear-gradient(160deg, #2a2a2a 0%, #151515 70%);
}
.placeholder::before {
  content: ""; position: absolute; width: 90%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.02);
}
.placeholder::after {
  content: attr(data-label); position: absolute; left: 24px; bottom: 22px; right: 24px;
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}


/* Jak pracujeme — bílá sekce s časovou osou ------------------------------- */
.process { position: relative; padding: var(--s-8) var(--gutter) var(--s-6); }
.process__head { position: relative; isolation: isolate; max-width: 900px; padding: 104px 0 0 152px; margin-bottom: var(--s-7); }
.process h2 { max-width: 14em; margin-bottom: var(--s-3); font-size: var(--fs-h2); line-height: 1.05; }
.process__lead { color: var(--text-soft); font-size: 17px; line-height: 1.7; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin: 0 0 var(--s-6) 152px; }
/* šedá osa + bílá, která se „dokreslí“ při najetí sekce do výřezu */
.timeline::before, .timeline::after { content: ""; position: absolute; top: 23px; left: 24px; right: 0; height: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.timeline.is-visible::after { transform: scaleX(1); }
.timeline li { position: relative; }
.timeline__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-4);
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: var(--bg);
  font-family: var(--font-display); font-size: 14px; font-weight: 600; transition: background .4s ease, color .4s ease;
}
.timeline.is-visible li .timeline__dot { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.timeline.is-visible li:nth-child(2) .timeline__dot { transition-delay: .35s; }
.timeline.is-visible li:nth-child(3) .timeline__dot { transition-delay: .7s; }
.timeline.is-visible li:nth-child(4) .timeline__dot { transition-delay: 1.05s; }
.timeline h3 { margin: 0 0 var(--s-2); font-size: 24px; }
.timeline p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.65; }


/* Kontakt ------------------------------------------------------------------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-6) var(--s-7); align-items: start;
  padding: var(--s-8) var(--gutter) var(--s-8) calc(var(--gutter) + 152px);
}
.contact h2 { max-width: 12em; margin-bottom: var(--s-3); font-size: var(--fs-h2); line-height: 1.05; }
.contact__lead { max-width: 34em; margin-bottom: var(--s-5); color: var(--text-soft); font-size: 19px; line-height: 1.6; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.button--ghost { min-width: 200px; color: var(--white); background: transparent; border-color: rgba(255,255,255,.35); }
.button--ghost:hover { color: var(--accent-ink); background: var(--white); }

/* pravý sloupec */
.contact__side { display: grid; gap: var(--s-1); padding-top: 56px; }
.contact-person {
  display: grid; grid-template-columns: 56px 1fr; gap: 4px var(--s-2); align-items: center;
  padding: var(--s-4); background: var(--surface); border: 1px solid var(--line);
}
.contact-person__avatar {
  grid-row: 1 / span 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  color: var(--accent-ink); background: var(--accent); font-family: var(--font-display); font-size: 20px; font-weight: 700;
}
.contact-person__name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.contact-person__role { margin-top: 4px; color: var(--muted); font-size: 14px; }
.contact-person__badge {
  grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-1); margin-top: var(--s-2); padding-top: var(--s-2);
  border-top: 1px solid var(--line); color: var(--text-soft); font-size: 13px;
}
.contact-person__badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.contact__hint { max-width: 34em; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.contact__hint-title { margin-bottom: var(--s-2); font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.contact__hint ol { counter-reset: hint; }
.contact__hint li { position: relative; padding-left: 32px; margin-bottom: var(--s-1); color: var(--text-soft); font-size: 14px; line-height: 1.55; counter-increment: hint; }
.contact__hint li:last-child { margin-bottom: 0; }
.contact__hint li::before { content: "0" counter(hint); position: absolute; left: 0; top: 1px; color: var(--accent); font-family: var(--font-display); font-size: 12px; font-weight: 600; }

/* kanály — samostatné boxy pod sebou v pravém sloupci */
.channels { display: grid; gap: var(--s-1); }
.channel {
  display: grid; grid-template-columns: 24px 1fr auto; grid-template-rows: auto auto; column-gap: var(--s-2); row-gap: 2px; align-items: center;
  padding: 20px var(--s-3); border: 1px solid var(--line); transition: border-color var(--t) ease, background var(--t) ease;
}
.channel:hover { border-color: var(--accent); background: rgba(255,255,255,.02); }
.channel__icon { grid-row: 1 / span 2; width: 22px; height: 22px; }
.channel__label { grid-column: 2; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.channel__value { grid-column: 2; font-family: var(--font-display); font-size: 18px; font-weight: 600; white-space: nowrap; transition: color var(--t) ease; }
a.channel__value:hover { color: var(--accent); }
.channel__note { grid-column: 2; color: var(--muted); font-size: 13px; }
.channel .copy, .channel__action, .channel__social { grid-column: 3; grid-row: 1 / span 3; justify-self: end; }
.channel__action { color: var(--text-soft); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color var(--t) ease, border-color var(--t) ease; }
.channel__action:hover { color: var(--accent); border-color: var(--accent); }
.channel__social { display: flex; gap: var(--s-1); }
.channel__social a {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  font-size: 14px; transition: color var(--t) ease, border-color var(--t) ease;
}
.channel__social a:hover { color: var(--accent); border-color: var(--accent); }
.copy {
  flex: none; padding: 7px 12px; color: var(--text-soft); background: transparent; border: 1px solid var(--line);
  font: inherit; font-size: 12px; cursor: pointer; transition: color var(--t) ease, border-color var(--t) ease;
}
.copy:hover, .copy.is-done { color: var(--accent); border-color: var(--accent); }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Patička ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  display: grid; grid-template-columns: 1fr 240px 240px; gap: var(--s-5) var(--s-6);
  padding: var(--s-7) var(--gutter) var(--s-6);
}
.brand--footer { display: inline-block; margin-bottom: var(--s-3); font-size: 48px; }
.site-footer__brand p { max-width: 320px; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.site-footer__col h3 { margin: 0 0 24px; color: var(--accent); font-size: 16px; }
.site-footer__col li { margin-bottom: 14px; font-size: 15px; }
.site-footer__col a { color: var(--text-soft); transition: color var(--t) ease; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__copy { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.site-footer__copy a { text-decoration: underline; text-underline-offset: 3px; }

/* Omezený pohyb ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Objevování při scrollu (jen když běží JS — bez JS je vše vidět) ------------ */
.js .reveal > * { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s var(--ease); }   /* zjemněno na polovinu */
.js .reveal.is-in > * { opacity: 1; transform: none; }
.js .reveal.is-in > *:nth-child(2) { transition-delay: .04s; }
.js .reveal.is-in > *:nth-child(3) { transition-delay: .08s; }
.js .reveal.is-in > *:nth-child(4) { transition-delay: .12s; }
.js .reveal.is-in > *:nth-child(5) { transition-delay: .16s; }
.js .reveal.is-in > *:nth-child(n+6) { transition-delay: .2s; }
.js .reveal > .block__num { transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   RESPONZIVITA (V2.60) — desktop je výchozí, níže úpravy pro menší šířky
   1279 px  menší notebook  · 1199 px  tablet (hamburger)  · 640 px  mobil
   ========================================================================== */

/* Tlačítko menu a mobilní menu — na desktopu skryté */
.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1279px) {
  :root { --pad: 56px; --s-8: 120px; }
  .site-header__inner { column-gap: 24px; }
  .main-nav { gap: 28px; }
  .block { gap: 64px; }
  .block__text { padding-left: 96px; }
  .process__head { padding-left: 96px; }
  .timeline { margin-left: 96px; gap: var(--s-4); }
  .contact { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-6) var(--s-5); padding-left: calc(var(--gutter) + 96px); }
  .hero__content { left: calc(var(--pad) + 96px); right: 120px; }
}

@media (max-width: 1199px) {
  :root { --pad: 40px; --s-8: 96px; --s-7: 72px; --header-h: 80px; --header-h-compact: 64px;
          --fs-h1: clamp(48px, 8vw, 72px); --fs-h2: clamp(34px, 5.4vw, 48px); --fs-num: clamp(110px, 18vw, 160px); }

  /* hlavička: logo + hamburger */
  .site-header__inner { grid-template-columns: 1fr auto; }
  .main-nav, .header-contact { display: none; }
  .site-header[data-state="solid"] .brand, .site-header[data-state="hidden"] .brand { font-size: 30px; }
  .nav-toggle {
    display: grid; align-content: center; gap: 7px; width: 48px; height: 48px; margin-right: -12px; padding: 0 12px;
    background: none; border: 0; color: var(--white); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: currentColor; transition: transform var(--t) var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--header-h-compact) + var(--s-5)) var(--pad) var(--s-5); overflow-y: auto;
    background: var(--bg); opacity: 0; transition: opacity .3s ease;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu.is-open { opacity: 1; }
  .mobile-menu__nav { display: grid; }
  .mobile-menu__nav a {
    padding: 14px 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-size: clamp(28px, 6vw, 40px); font-weight: 600; letter-spacing: -.02em;
  }
  .mobile-menu__contact { display: grid; gap: var(--s-2); padding-top: var(--s-5); color: var(--text-soft); font-size: 16px; }
  .mobile-menu__contact .header-social { padding: var(--s-1) 0 0; border: 0; }
  .mobile-menu__contact .header-social a { width: 44px; height: 44px; font-size: 16px; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { transform: none; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* hero */
  .hero { height: max(100svh, 640px); }
  .hero__img { top: -8%; }
  .hero__content { top: auto; bottom: 120px; left: var(--pad); right: var(--pad); }
  .hero__lead { font-size: 18px; margin-bottom: var(--s-4); }
  .hero-index { display: none; }

  /* bloky: fotka nahoře, text pod ní */
  .blocks { margin-top: -64px; }
  .block, .block--reverse { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-7) var(--gutter); }
  .block__media { order: -1; aspect-ratio: 4 / 3; }
  .block__text { padding: 64px 0 0; }
  .block__text h2 { max-width: 14em; }
  .tiles { max-width: none; }

  /* Jak pracujeme: svislá časová osa */
  .process__head { padding: 64px 0 0; margin-bottom: var(--s-5); }
  .timeline { grid-template-columns: 1fr; gap: var(--s-4); margin-left: 0; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; }
  .timeline.is-visible::after { transform: scaleY(1); }
  .timeline li { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s-3); }
  .timeline__dot { grid-row: 1 / span 2; margin-bottom: 0; }
  .timeline h3 { margin: 10px 0 var(--s-1); font-size: 22px; }

  /* kontakt pod sebou */
  .contact { grid-template-columns: 1fr; gap: var(--s-5); padding-left: var(--gutter); }
  .contact__side { padding-top: 0; }
  .contact__actions { margin-bottom: var(--s-5); }

  /* patička */
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; --s-8: 72px; --s-7: 56px; --s-6: 48px; --header-h: 72px;
          --fs-h1: clamp(40px, 11.5vw, 52px); --fs-h2: clamp(30px, 8.6vw, 38px); --fs-num: 104px; }
  .brand { font-size: 34px; }
  .tagline { gap: var(--s-2); font-size: 12px; letter-spacing: .24em; }
  .tagline::before { width: 40px; }

  .hero__content { bottom: 88px; }
  .hero h1 { margin-bottom: var(--s-3); }
  .hero__lead { font-size: 16px; }
  .button { min-width: 0; gap: var(--s-3); padding: 18px 20px; }

  .block__media { aspect-ratio: 4 / 5; }
  .block__text { padding-top: 48px; }
  .block__text > p:not(.tagline) { font-size: 16px; }
  .block__text > p.block__statement:not(.tagline) { font-size: 20px; padding-left: var(--s-2); }
  .tiles { grid-template-columns: 1fr; }
  .process__head { padding-top: 48px; }
  .process__lead { font-size: 16px; }

  .contact__lead { font-size: 17px; }
  .contact__actions .button { flex: 1 1 100%; }
  .contact-person { padding: var(--s-3); }
  /* kanály: akce (kopírovat, mapa, sítě) pod hodnotu, dlouhý e-mail se smí zalomit */
  .channel { grid-template-columns: 24px 1fr; padding: var(--s-2); }
  .channel__value { font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
  .channel .copy, .channel__action, .channel__social { grid-column: 2; grid-row: auto; justify-self: start; margin-top: var(--s-1); }

  .site-footer__inner { grid-template-columns: 1fr; gap: var(--s-4); }
}
