/* RESPAWN teaser — minimalistická verze.
   Barvy a font stejné jako na lasergame-cb.cz. Nic se netahá z internetu.
   Jedna svislá osa, hodně prázdna, dva modely vedle sebe.

   Paleta i písmo jsou ruční kopie `app/static/style/theme.css` — teaser je
   samostatná statická stránka, nesdílí s appkou žádný soubor. Kdo mění
   paletu v manuálu, mění ji i tady. */

/* Space Grotesk — variabilní (wght 300–700), jeden soubor na celý rozsah
   vah. Nese úplně všechno, včetně nadpisu (tak je to i v návrzích).
   Share Tech Mono a Sora jsou pryč — na webu je nic nenačítá. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.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;
}

/* Beon — stencil z manuálu, tytéž tahy jako písmena v logu. Nese JEN
   číslice odpočtu: jsou dost velké (pod ~18 px se jeho mezery slijí)
   a jsou to jediná „display" věc na stránce. */
@font-face {
  font-family: 'Beon';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/beon-latin.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: 'Beon';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/beon-latin-ext.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 {
  /* Tři úrovně pozadí z manuálu: stránka je nejtmavší, aby měl neon na co
     svítit; --surface je „Neon OFF 2" (karta), --surface-2 „Neon OFF". */
  --bg: #000E12;
  --surface: #00222D;
  --surface-2: #002F3C;
  --text: #E8F1EE;
  --text-strong: #FFFFFF;
  --muted: #8FA9AE;
  --faint: #5E7F86;
  --line: rgba(255, 255, 255, .09);
  --accent: #69BC44;
  --accent-rgb: 105, 188, 68;
  --accent-ink: #00222D;  /* text na plné zelené — nikdy bílá */
  --team-blue: #3da9fc;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Nadpisové písmo je token, ne druhá rodina — stejný důvod jako v appce:
     až designer dodá další, mění se to na jednom místě. */
  --font-head: var(--font);
  --font-display: 'Beon', var(--font);

  /* Neonový rámeček — tytéž tokeny jako `theme.css` v appce: tloušťka,
     mezera = 2× tloušťka, přerušení schválně mimo střed, rádius 14 px.
     teaser.js je čte přes getComputedStyle, takže se mění jen tady. */
  --frame-w: 5px;
  --frame-top-at: 16%;
  --frame-right-at: 62%;
  --frame-bottom-at: 71%;
  --frame-left-at: 28%;
  --radius-lg: 14px;
  --glow-filter: drop-shadow(0 0 5px rgba(105, 188, 68, .75))
                 drop-shadow(0 0 14px rgba(105, 188, 68, .35));
  --panel-pad: clamp(1.5rem, 3vw, 2rem);

  /* Pohyb. Jedna křivka na všechno, co přijíždí (rychlý start, dlouhý
     měkký dojezd), druhá na kreslení linek (souměrná). Nic na stránce
     nepruží a nic se neodráží. */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
@media (max-width: 760px) {
  :root { --frame-w: 3px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.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;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2.25rem, 7vw, 4.5rem) 1.5rem 0;
  text-align: center;
}

/* ── Úvod: najetí při načtení ─────────────────────────────────────────────
   Čistě CSS, žádný JS — kdyby teaser.js nedorazil, úvod se stejně ukáže.
   `both` drží prvek neviditelný i během zpoždění. */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.status, .lead, .count, .note, .cta { animation: rise 1s var(--ease) both; }
.status { animation-delay: .25s; }
.lead   { animation-delay: .95s; }
.count  { animation-delay: 1.1s; }
.note   { animation-delay: 1.2s; }
.cta    { animation-delay: 1.3s; }

/* ── Logo: písmena se napíšou, linka se protáhne, pak běží tep ───────── */
.logo {
  display: block;
  width: fit-content;
  margin: 0 auto clamp(1.75rem, 5vw, 2.75rem);
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .35));
}
.logo svg {
  display: block;
  height: clamp(44px, 5vw, 56px); width: auto;
  overflow: visible;
}
/* `pathLength="1"` + vzorek „1 dlouhá čárka, 2 mezera": posunem z 1 na 0
   se tah vykreslí od začátku do konce. Mezera 2 (ne 1) je schválně — při
   vzorku 1/1 by na konci dráhy začínala další čárka nulové délky a kulatý
   konec by z ní udělal tečku. Průhlednost v prvním snímku schová i tečku
   kulatého konce na startu. */
@keyframes draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  6%   { opacity: 1; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}
.logo-ltr path,
.logo-ln {
  stroke-dasharray: 1 2;
  animation: draw 1.2s var(--ease-io) both;
}
.logo-ltr path { animation-delay: .1s; }
.logo-ln1 { animation-duration: .55s; animation-delay: .35s; animation-timing-function: cubic-bezier(.45, 0, 1, 1); }
.logo-ln2 { animation-duration: .95s; animation-delay: .9s; animation-timing-function: cubic-bezier(0, 0, .3, 1); }

/* Tep: krátká světlá čárka proběhne linkou zleva doprava, jednou za ~5 s.
   Konečný posun je za koncem dráhy (−1.1), aby čárka zmizela celá i s
   kulatým koncem, ne aby se na konci zastavila jako tečka. */
.logo-blip {
  stroke: #E4FFD6;
  stroke-width: 9;
  stroke-dasharray: .05 3;
  stroke-dashoffset: .06;
  opacity: 0;
  animation: blip 5.2s linear 2.2s infinite;
}
@keyframes blip {
  0%   { stroke-dashoffset: .06; opacity: 1; }
  30%  { stroke-dashoffset: -1.1; opacity: 1; }
  30.1%, 100% { stroke-dashoffset: -1.1; opacity: 0; }
}

/* ── Stav „Ve výstavbě" ─────────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.4rem;
  padding: .38rem .9rem .38rem .75rem;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.status-dot {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), .8);
}
/* Kroužek, který se od tečky rozplyne — „signál žije". */
.status-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  from { transform: scale(1); opacity: .9; }
  70%, to { transform: scale(3.2); opacity: 0; }
}

/* ── Nadpis: slovo po slovu ────────────────────────────────────────────── */
h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}
h1 .hl { color: var(--accent); }
/* inline-block kvůli transformu (na inline prvek nejde). Bez `overflow`
   ořezu — háčky a čárky (Č, ě) by se o něj useknuly; slovo proto
   přijíždí rozostřené, ne zpod masky. */
h1 .w {
  display: inline-block;
  animation: word 1.1s var(--ease) both;
}
@keyframes word {
  from { opacity: 0; transform: translateY(.38em); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
h1 .w:nth-child(1) { animation-delay: .45s; }
h1 .w:nth-child(2) { animation-delay: .53s; }
h1 .w:nth-child(3) { animation-delay: .61s; }
h1 .w:nth-child(4) { animation-delay: .69s; }
h1 .w:nth-child(5) { animation-delay: .77s; }

.lead {
  margin: 0 auto;
  max-width: 42ch;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--muted);
}
.lead strong { color: var(--text); font-weight: 600; letter-spacing: .04em; }

/* ── Odpočet ──────────────────────────────────────────────────────────── */
.count {
  margin: clamp(2.25rem, 6vw, 3.25rem) auto 0;
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(.1rem, 1vw, .5rem);
}
.count .u {
  display: flex; flex-direction: column; align-items: center;
  min-width: clamp(3.6rem, 16vw, 6.5rem);
}
.count .n {
  display: flex; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 12vw, 5.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text-strong);
}
/* Váleček jedné číslice. Beon nemá tabulkové číslice, takže šířku drží
   pevný slot — jinak by odpočet poskakoval s každou „1".
   Ořez je MASKA s měkkým přechodem nahoře a dole, ne `overflow: hidden`:
   číslice se do slotu vynoří, ne vyjedou zpoza hrany. Slot je o kus širší
   než číslice (záporný okraj vrací rozvržení), aby maska neuřízla zelenou
   záři sekund po stranách. */
.count .dg {
  position: relative;
  display: inline-block;
  width: calc(.62em + .5em);
  height: calc(1em + .5em);
  margin: -.25em -.25em;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.count .dg > span {
  position: absolute; left: 0; right: 0; top: .25em;
  text-align: center;
}
.count .dg > .in  { animation: dg-in .7s var(--ease) both; }
.count .dg > .out { animation: dg-out .7s var(--ease) both; }
@keyframes dg-in {
  from { transform: translateY(.65em); opacity: 0; filter: blur(3px); }
}
@keyframes dg-out {
  to { transform: translateY(-.65em); opacity: 0; filter: blur(3px); }
}
/* Sekundy svítí zeleně — jediná věc na stránce, která se pořád hýbe. */
.count .n.sec {
  color: var(--accent);
  text-shadow: 0 0 22px rgba(var(--accent-rgb), .55);
}
.count .l {
  margin-top: .6rem;
  font-family: var(--font-head);
  font-size: clamp(.6rem, 1.6vw, .72rem);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint);
}
.count .c {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 3.4rem);
  line-height: 1.45;
  font-style: normal;
  color: rgba(255, 255, 255, .2);
}
.count .c.blink { animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.note {
  margin: 1rem auto 0;
  max-width: 34ch;
  font-size: .85rem;
  color: var(--faint);
}

/* ── Tlačítka ─────────────────────────────────────────────────────────── */
.cta {
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease),
              background-color .3s, color .3s;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Na telefonu jdou tlačítka pod sebe — stejně široká, ne dvě různé délky. */
@media (max-width: 480px) {
  .cta .btn { width: min(100%, 19rem); }
}
.btn-primary {
  position: relative; overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
}
/* Odlesk, který přejede tlačítkem při najetí myší. */
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -6px rgba(var(--accent-rgb), .6);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .55), 0 8px 24px -10px rgba(var(--accent-rgb), .5);
}
.ig { fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.ig .ig-dot { fill: currentColor; stroke: none; }

/* ── Najetí při scrollu ───────────────────────────────────────────────────
   `.rv-on` na <html> přidává teaser.js — kdyby nedorazil, nic se neschová.
   Prvek se rozostřený zvedne o kousek, rámeček kolem se pak protáhne. */
.rv-on .rv {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
}
.rv-on .rv.is-in { opacity: 1; transform: none; filter: none; }
.rv-on .gear .item:nth-child(2) { transition-delay: .12s; }

/* ── Neonový rámeček s přerušeními ────────────────────────────────────────
   Tvar z manuálu (`.neon-frame` v appce): jedno přerušení na každé straně,
   mezera 2× tloušťka linky, kulaté konce. Tady je to SVG, které teaser.js
   dopočítá na pixely prvku, protože CSS rámeček se nedá „protáhnout".
   Záře je na obalovém <span>, ne na <svg> (Chrome by ji uřízl viewBoxem). */
[data-frame] { position: relative; border-radius: var(--radius-lg); }
.frame {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none;
  filter: var(--glow-filter);
}
.frame svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.frame path {
  fill: none;
  stroke: var(--accent);
  stroke-width: var(--frame-w);
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Kreslení: čtyři úseky jeden po druhém, po směru hodin. Délku a zpoždění
   každého úseku (--dur, --del) nastaví teaser.js podle jeho délky, aby
   linka jela stejnou rychlostí po celém obvodu. */
.rv-on .rv .frame path {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  opacity: 0;
  transition:
    stroke-dashoffset var(--dur, .4s) linear calc(var(--base, .25s) + var(--del, 0s)),
    opacity .01s linear calc(var(--base, .25s) + var(--del, 0s));
}
.rv-on .rv.is-in .frame path { stroke-dashoffset: 0; opacity: 1; }
.rv-on .gear .item:nth-child(2) .frame { --base: .4s; }

/* Panel nemá vlastní plochu (kolo 5 v appce) — prosvítá pozadí stránky. */
.panel {
  padding: calc(var(--panel-pad) + var(--frame-w));
  background: transparent;
}

/* Štítek „01 Zbraň" — HUD v rohu scény, začíná až za linkou rámečku. */
.hud, .secret-tag {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.hud-n {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hud-n::after {
  content: ''; display: inline-block;
  width: 1.4rem; height: 1px; margin-left: .6rem;
  vertical-align: middle;
  background: rgba(var(--accent-rgb), .5);
}

/* ── 01 / 02 Vybavení ─────────────────────────────────────────────────── */
.gear {
  margin: clamp(4rem, 12vw, 7rem) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
}
@media (max-width: 620px) { .gear { grid-template-columns: 1fr; } }

.item { margin: 0; }
.item .hud {
  position: absolute; z-index: 3;
  top: calc(var(--frame-w) + 1.1rem);
  left: calc(var(--frame-w) + 1.25rem);
  margin: 0;
}

/* Plocha modelu — jen o něco světlejší prostor, žádná deska. Přechod je
   `closest-side`, takže do průhledna dojede UVNITŘ čtverce; dřív končil
   za jeho spodní hranou a pod modelem zůstávala tvrdá vodorovná čára.
   `touch-action: pan-y` nechává svislé tažení prohlížeči na scroll. */
.viewer {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: radial-gradient(closest-side, rgba(0, 47, 60, .9), rgba(0, 47, 60, 0));
  touch-action: pan-y;
  cursor: grab;
}
.viewer:active { cursor: grabbing; }
.viewer canvas {
  display: block; width: 100%; height: 100%; touch-action: pan-y;
  opacity: 0;
  transform: scale(.94);
  transition: opacity 1.2s var(--ease) .15s, transform 1.6s var(--ease) .15s;
}
/* Model se po načtení vynoří, ne „blikne" do scény. */
.viewer.is-ready canvas { opacity: 1; transform: none; }

.viewer-fallback {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
  font-size: .8rem; color: var(--faint);
}
.viewer.is-failed { cursor: default; }
.viewer.is-failed .viewer-fallback { display: flex; }
.viewer.is-failed canvas { display: none; }

.drag-note {
  margin: 1.25rem 0 0;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
}
/* Šipky „↔" kreslené dvěma linkami, ať nejde o emoji ani o glyf fontu. */
.drag-note::before, .drag-note::after {
  content: ''; display: inline-block;
  width: .45em; height: .45em;
  border: solid currentColor; border-width: 0 0 1px 1px;
  vertical-align: .1em;
}
.drag-note::before { transform: rotate(45deg); margin-right: .7em; }
.drag-note::after  { transform: rotate(-135deg); margin-left: .7em; }

/* ── 03 Utajeno ───────────────────────────────────────────────────────── */
.secret {
  margin: clamp(4rem, 11vw, 6.5rem) auto 0;
  max-width: 34rem;
  text-align: left;
}
/* Vodorovné linky jako na starém monitoru. Statické, nic nebliká. Kryjí
   jen vnitřek, rámeček leží nad nimi. */
.secret::before {
  content: '';
  position: absolute; inset: var(--frame-w); pointer-events: none;
  border-radius: calc(var(--radius-lg) - var(--frame-w));
  background: repeating-linear-gradient(
    180deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
}
.secret-tag { margin: 0 0 1rem; }
.secret-txt {
  margin: 0;
  font-size: clamp(.98rem, 2vw, 1.08rem);
  color: var(--text);
}

/* Začerněné slovo. Bloky █ v HTML drží šířku i bez CSS; barva textu se
   srovná s pozadím pruhu, takže se nedá označit myší a přečíst.
   inline-block, aby se pruh nikdy nezlomil na dva řádky. */
.redacted {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0 .1em;
  line-height: 1.25;
  vertical-align: -.2em;
  color: transparent;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .22);
  border-radius: 3px;
  font-weight: 400;
  white-space: nowrap;
  user-select: none;
}
/* Skenovací odlesk, který pruhem jednou za čas přejede. */
.redacted::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .28), transparent);
  transform: translateX(-100%);
  animation: sweep 5s var(--ease-io) 1.5s infinite;
}
/* Pruh a pomlčka za ním drží na jednom řádku. `&nbsp;` nestačí — vedle
   inline-blocku smí prohlížeč zalomit i tak a pomlčka by začínala řádek. */
.nowrap { white-space: nowrap; }
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  28%, 100% { transform: translateX(100%); }
}
/* „Dešifrování" (teaser.js): znaky se na chvíli rozsvítí jako náhodné,
   pak pruh zase zčerná. Nikdy se nic neprozradí. */
.redacted.is-decrypting {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(var(--accent-rgb), .6);
}
.redacted.is-decrypting::after { animation: none; opacity: 0; }

.secret-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: .85rem; font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.secret-link span { display: inline-block; transition: transform .5s var(--ease); }
.secret-link:hover span { transform: translateX(4px); }

/* ── Sekce s formulářem ───────────────────────────────────────────────── */
.notify, .contact {
  margin: clamp(4.5rem, 12vw, 7rem) auto 0;
  max-width: 620px;
}
.notify h2, .contact h2 {
  margin: 0 0 .4rem;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.section-sub {
  margin: 0 auto 1.6rem;
  max-width: 40ch;
  font-size: .95rem;
  color: var(--muted);
}

/* „Dej mi vědět": pole a tlačítko v jedné pilulce. */
.nf-row {
  display: flex; gap: .4rem;
  max-width: 30rem; margin: 0 auto;
  padding: .3rem;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .4s var(--ease);
}
.nf-row:focus-within {
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(var(--accent-rgb), .12);
}
/* 16 px schválně: pod 16 px iOS Safari při focusu přiblíží stránku. */
.nf-row input {
  flex: 1; min-width: 0;
  padding: 0 1rem;
  background: transparent;
  border: 0; outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
}
.nf-row input::placeholder { color: var(--faint); }
.nf-row .btn { min-height: 44px; padding: 0 1.25rem; }
@media (max-width: 420px) {
  .nf-row { flex-direction: column; border-radius: 22px; padding: .4rem; }
  .nf-row input { min-height: 44px; text-align: center; }
}
.fineprint {
  margin: .9rem 0 0;
  font-size: .75rem;
  color: var(--faint);
}
.notify .cf-status { text-align: center; }

/* ── Kontakt ──────────────────────────────────────────────────────────── */
.contact-panel { text-align: left; }

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 480px) { .cf-row { grid-template-columns: 1fr; } }

/* Input font-size 16px schválně (stejný důvod jako v appce): pod 16px iOS
   Safari při focusu přiblíží stránku a při blurru zase oddálí. Ovládací
   prvky stojí na --surface-2 („Neon OFF"), panel kolem je průhledný. */
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: .5rem;
  padding: .7rem .85rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 16px;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color .3s, box-shadow .3s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}

.cf-submit {
  width: 100%;
  margin-top: .3rem;
  min-height: 48px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .15s;
}
.cf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -8px rgba(var(--accent-rgb), .6);
}
.cf-submit:disabled, .btn:disabled { opacity: .5; cursor: default; transform: none; }

.cf-status {
  margin: .8rem 0 0;
  font-size: .85rem;
  min-height: 1.2em;
}
/* Prázdný stav nezabírá místo (pod polem „Dej mi vědět" dělal díru), ale
   v DOM zůstává — čtečka ohlásí zprávu jen z živé oblasti, která už existuje. */
.cf-status:empty { margin: 0; min-height: 0; }
.cf-status[data-state="ok"] { color: var(--accent); }
.cf-status[data-state="err"] { color: #ff8a80; }

/* ── Patička ──────────────────────────────────────────────────────────── */
.foot {
  margin-top: clamp(4.5rem, 12vw, 7rem);
  padding: 1.75rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .78rem;
}
.foot p { margin: 0 0 .7rem; color: var(--faint); }
.foot-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem;
}
.foot a {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--muted); text-decoration: none;
  transition: color .3s;
}
.foot a:hover { color: var(--accent); }

/* Nasvícení pozadí. Fixed vrstva pod obsahem, aby při scrollu nedýchala. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 50% 32%, rgba(var(--accent-rgb), .10), transparent 65%),
    radial-gradient(38rem 26rem at 50% 100%, rgba(61, 169, 252, .06), transparent 70%);
}

/* Omezený pohyb: všechno je rovnou na místě, linky nakreslené, nic
   neběží dokola. Odpočet se dál přepisuje, jen bez rolování. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv-on .rv { opacity: 1; transform: none; filter: none; }
  .rv-on .rv .frame path { stroke-dashoffset: 0; opacity: 1; }
  .logo-blip { display: none; }
  .viewer canvas { opacity: 1; transform: none; }
}
