/* agentura.css: landing Firmament agentury, směr „Klenba Noc" (19. 11. 2026, pohyb přepsán 19. 11. večer).
   Zdroj pravdy: 11_Projekty/Firmament/agentura-2026-11-19/BRAND-LANGUAGE-Klenba-Noc.md

   PRAVIDLA POHYBU (web.dev animations guide, motion.dev tier list, Emil Kowalski):
   1) Animuje se jen transform a opacity. Nic, co přepočítává rozvržení (width, flex, height, top).
      Bary a průběh formuláře jsou scaleX nebo clip-path, ne width.
   2) Vstup = ease-out (--ease-out), krátká dráha 14 px, 0,6 s. Tlačítka a hover do 0,2 s.
   3) Odkrývá se dřív, než si toho oko všimne: zpoždění skupiny se počítá z pořadí v dávce, max 5 kroků.
   4) Žádné plošné will-change (na iPhonu stovky vrstev = trhání). Vrstvu si prohlížeč vytvoří sám za běhu přechodu.
   5) Pohyb vázaný na scroll běží přes position: sticky (compositor), ne přes JS na scroll eventu.
   6) Smyčky (vlna) se mimo obrazovku pozastaví. Hover jen na zařízeních s myší, na dotyk :active.
   7) Omezit pohyb: žádné posuny ani zvětšení, jen krátké prolnutí. */

:root {
  --n-950: #07090D; --n-900: #0B0E14; --n-850: #10141A;
  --g-800: #1B2028; --g-700: #2A313B;
  --ink: #EDF1F6; --muted: #A3ADBA; --dim: #7D8896;
  --b-900: #16243A; --b-700: #12459B; --b-500: #1E6FE0; --b-400: #5B94EC; --b-300: #8FB6F1; --b-100: #E8F0FD;
  --mint: #0FBF9F;
  --paper: #F4F7FC; --surface: #FCFDFF; --ink-dark: #0F1319; --muted-dark: #5B6675; --line-light: #DFE6F0;
  --line: rgba(237, 241, 246, 0.08);
  --line-2: rgba(237, 241, 246, 0.14);
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --top-h: 72px;
  --px: clamp(16px, 5vw, 64px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--n-950); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--b-500); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.mono b { color: var(--b-400); font-weight: 400; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--n-950); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px;
  border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: box-shadow .3s var(--ease-out), background-color .2s var(--ease-out), transform .16s var(--ease-out), border-color .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: var(--n-950); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
@media (hover: hover) {
  .btn:hover svg { transform: translateX(3px); }
  .btn--primary:hover { box-shadow: 0 0 0 1px rgba(91,148,236,.5), 0 0 48px rgba(30,111,224,.45); }
  .btn--ghost:hover { border-color: var(--b-400); }
}
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn:focus-visible { outline: 2px solid var(--b-400); outline-offset: 3px; }

/* ---------- horní lišta ---------- */
/* Pozadí lišty se prolíná přes opacity pseudo-prvku, bez backdrop-filter (ten Safari při scrollu překresluje každý snímek). */
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); }
.top::before { content: ""; position: absolute; inset: 0; background: rgba(7,9,13,.94); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .3s var(--ease-out); }
.top.is-scrolled::before { opacity: 1; }
.top__in { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--top-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.04em; }
.brand img { width: 26px; height: 26px; }
.brand span { font-weight: 300; } .brand strong { font-weight: 700; }
.top__nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.top__nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .top__nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 120px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__orb { position: absolute; left: 50%; bottom: -62vw; width: 120vw; height: 120vw; transform: translateX(-50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, var(--n-950) 92%, rgba(143,182,241,.55) 97.4%, rgba(30,111,224,.25) 98.6%, transparent 100%);
  box-shadow: 0 0 160px 40px rgba(30,111,224,.28); animation: orb 2.4s var(--ease) both; }
@keyframes orb { from { opacity: 0; transform: translate(-50%, 6%); } to { opacity: 1; transform: translate(-50%, 0); } }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.hero__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.hero h1 { margin: 0; font-size: clamp(46px, 8vw, 124px); line-height: .96; letter-spacing: -0.05em; font-weight: 200; max-width: 12ch; }
.hero h1 strong { font-weight: 700; }
/* Gradient na každém slově zvlášť: Safari nevykreslí background-clip:text rodiče přes transformované potomky. */
.hero h1 strong .w > i { background: linear-gradient(180deg, var(--ink) 30%, var(--b-300) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .04em; }
/* Bez scale: zvětšovaný SVG obrázek Safari na konci přerastruje a „cukne". Jen posun a prolnutí. */
.hero__bg img { animation: rise 1.8s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 6%, 0); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-2.5%, 2%, 0); } }
.fin__wave { animation: drift 16s ease-in-out infinite; width: 106%; max-width: none; left: -3%; }
.fin__wave.is-paused { animation-play-state: paused; }
.hero__sub { margin: 28px 0 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; letter-spacing: -0.03em; color: var(--muted); }
.hero__sub strong { color: var(--ink); font-weight: 500; }
.hero__lead { margin: 22px 0 0; max-width: 560px; font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__meta { position: absolute; left: 0; right: 0; bottom: 36px; }
.hero__meta .wrap { display: flex; flex-wrap: wrap; gap: 10px 36px; }

/* slova titulku po jednom */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > i { display: inline-block; font-style: normal; transform: translate3d(0, 105%, 0); transition: transform .9s var(--ease-out); }
.split.is-in .w > i { transform: none; }

/* ---------- sekce obecně ---------- */
.sec { position: relative; padding: clamp(72px, 12vw, 168px) 0; }
.sec--line { border-top: 1px solid var(--line); }
.sec__head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 860px; }
.sec h2 { margin: 0; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 300; }
.sec h2 strong { font-weight: 700; }
.sec__lead { margin: 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 640px; }

/* odhalení při scrollu */
/* .js .rv má vyšší specificitu než vlastní přechody karet a tlačítek (.card, .btn). Dřív je přepsaly
   a průhlednost se přepnula bez animace, proto to „bliklo". Po doběhnutí JS třídu rv sundá,
   aby se vrátily vlastní přechody prvku (hover, stisk). */
.js .rv { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- strop ---------- */
.strop { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.strop__calc { font-family: var(--mono); font-size: clamp(13px, 1.1vw, 15px); color: var(--muted); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 40px); background: linear-gradient(180deg, rgba(27,32,40,.6), rgba(16,20,26,.2)); }
.strop__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.strop__row span:last-child { color: var(--ink); }
.strop__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 22px; }
.strop__total strong { font-family: var(--font); font-size: clamp(34px, 4vw, 56px); font-weight: 200; letter-spacing: -0.05em; color: var(--ink); }
.strop__note { margin: 18px 0 0; font-family: var(--font); font-size: 14px; color: var(--dim); }
.pains { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pains li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.pains li:last-child { border-bottom: 1px solid var(--line); }
.pains .mono { padding-top: 4px; }
.pains p { margin: 0; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -0.015em; }
.pains p span { color: var(--muted); }
@media (max-width: 860px) { .strop { grid-template-columns: 1fr; } }

/* ---------- co postavíme ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.card { position: relative; background: var(--n-950); padding: clamp(24px, 2.6vw, 36px); min-height: 240px; display: flex; flex-direction: column; gap: 14px; transition: background .5s var(--ease); overflow: hidden; }
.card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(30,111,224,.28), transparent); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
@media (hover: hover) { .card:hover { background: var(--n-900); } .card:hover::after { opacity: 1; } }
.card__ico { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--b-300); }
.card__ico img, .card__ico svg { width: 22px; height: 22px; }
.card h3 { margin: 12px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .mono { margin-top: auto; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 6px; padding: 22px 20px; }
  .card > * { grid-column: 2; }
  .card__ico { grid-column: 1; grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 11px; }
  .card .mono { order: -1; margin: 0; font-size: 11px; }
  .card h3 { margin: 0; font-size: 18px; }
}

/* ---------- cesta: časová osa ----------
   Linka se plní čistě přes position: sticky (žádný JS na scroll, běží na compositoru i v Safari):
   .tl__fill je 100vh vysoký, začíná 100vh nad kolejí a lepí se spodní hranou na čtecí linku (60 % výšky okna).
   Kolej ho ořízne přes clip-path, ne overflow (overflow:hidden by sticky rozbil). */
.tl { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.tl__side { position: sticky; top: 112px; }
.tl__f { padding: 20px 0; border-top: 1px solid var(--line); opacity: .36; transition: opacity .45s var(--ease-out); }
.tl__f.is-on { opacity: 1; }
.tl__f .mono i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; background: var(--c); vertical-align: 0; }
.tl__f strong { display: block; margin: 10px 0 2px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.tl__f em { font-style: normal; color: var(--c); font-size: 14px; font-weight: 500; }
.tl__f p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.tl__ruler { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.tl__cells { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.tl__cells i { height: 6px; border-radius: 3px; background: var(--g-800); position: relative; overflow: hidden; }
.tl__cells i::after { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.tl__cells i.is-lit::after { transform: none; }
.tl__scale { position: relative; display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; }
.tl__d14 { position: absolute; left: calc(100% / 6 + 2px); top: 0; color: var(--b-300); }
.tl__d14::before { content: ""; position: absolute; left: -4px; top: -10px; width: 1px; height: 8px; background: var(--b-300); }

.tl__track { position: relative; padding-left: 48px; }
.tl__rail { position: absolute; left: 4px; top: 6px; bottom: 0; width: 16px; clip-path: inset(0 round 2px); }
.tl__rail::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--g-800); }
.tl__fill { position: sticky; top: -40vh; display: block; height: 100vh; margin-top: -100vh;
  background:
    radial-gradient(7px 7px at 50% calc(100% - 4px), #E8F0FD, rgba(143,182,241,.6) 45%, transparent 100%),
    linear-gradient(180deg, rgba(30,111,224,0) 0%, var(--b-500) 45%, var(--b-300) 96%) center / 2px 100% no-repeat; }
.tl__list { list-style: none; margin: 0; padding: 0; }
.tl__step { position: relative; padding-bottom: clamp(44px, 5vw, 72px); }
.tl__step:last-child { padding-bottom: 8px; }
.tl__node { position: absolute; left: -42px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--g-700); background: var(--n-950); transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.tl__step.is-passed .tl__node { border-color: var(--c); background: var(--c); box-shadow: 0 0 0 4px rgba(7,9,13,1), 0 0 18px var(--c); animation: pulse .5s var(--ease-out); }
@keyframes pulse { 40% { transform: scale(1.35); } }
.tl__step .mono { color: var(--muted); }
.tl__step .mono b { color: var(--c); }
.tl__step h3 { margin: 10px 0 10px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 300; letter-spacing: -0.045em; line-height: 1.05; }
.tl__step h3 strong { font-weight: 700; }
.tl__step p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); max-width: 52ch; }
.tl__out { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 14px; background: rgba(16,20,26,.6); max-width: 100%; }
.tl__out .mono { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.tl__phase { display: none; }
/* den 14: milník */
.tl__step--big .tl__node { width: 20px; height: 20px; left: -46px; top: 30px; }
.tl__card { border-radius: 24px; padding: clamp(24px, 3vw, 36px); border: 1px solid transparent;
  background: linear-gradient(var(--n-900), var(--n-900)) padding-box, linear-gradient(135deg, rgba(143,182,241,.7), rgba(30,111,224,.25) 40%, rgba(15,191,159,.55)) border-box;
  box-shadow: 0 30px 80px -30px rgba(30,111,224,.45); }
.tl__balik { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.tl__balik li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.tl__balik svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--mint); }
/* kontrolní bod */
.tl__step--cp .tl__node { border-radius: 3px; transform: rotate(45deg); width: 10px; height: 10px; left: -41px; }
.tl__step--cp.is-passed .tl__node { animation: none; }
.tl__step--cp h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 4px; }
.tl__step--cp p { font-size: 15px; }
.tl__foot { margin-top: clamp(32px, 4vw, 56px); padding: 24px 26px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(27,32,40,.55), rgba(16,20,26,.2)); }
.tl__foot strong { display: block; margin: 10px 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.tl__foot p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 900px) {
  .tl { grid-template-columns: 1fr; gap: 28px; }
  /* na telefonu: tenká lepicí lišta s aktuální fází pod horní lištou */
  .tl__side { top: var(--top-h); z-index: 6; margin: 0 calc(-1 * var(--px)); padding: 12px var(--px) 14px; background: rgba(7,9,13,.96); border-bottom: 1px solid var(--line); }
  .tl__f { display: none; padding: 0; border: 0; opacity: 1; }
  .tl__f.is-on { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; animation: fadein .35s var(--ease-out); }
  .tl__f strong { display: inline; margin: 0; font-size: 18px; letter-spacing: -0.02em; }
  .tl__f p { display: none; }
  .tl__f em { margin-left: auto; font-size: 13px; }
  .tl__ruler { margin-top: 10px; padding-top: 0; border: 0; }
  .tl__scale { display: none; }
  .tl__phase { display: block; margin: 0 0 28px; padding-top: 4px; }
  .tl__phase strong { display: block; margin-top: 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
  .tl__phase p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
  .tl__track { padding-left: 36px; }
  .tl__rail { left: 0; }
  .tl__node { left: -34px; }
  .tl__step--big .tl__node { left: -38px; }
  .tl__step--cp .tl__node { left: -33px; }
  .tl__balik { grid-template-columns: 1fr; }
  .tl__out { display: flex; flex-direction: column; gap: 4px; }
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- audit ---------- */
.audit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.audit__list { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 12px; }
.audit__list li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.audit__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); transform: translateY(-2px); }
.panel { position: relative; border-radius: 28px; padding: clamp(24px, 3vw, 40px); background: var(--paper); color: var(--ink-dark); box-shadow: 0 30px 80px rgba(30,111,224,.2), 0 0 0 1px rgba(143,182,241,.25); }
.panel__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line-light); }
.panel__top .mono { color: var(--muted-dark); }
.panel__score { font-size: clamp(48px, 5vw, 72px); font-weight: 200; letter-spacing: -0.06em; line-height: 1; }
.panel__score small { font-size: .32em; letter-spacing: 0; color: var(--muted-dark); font-weight: 400; }
.bars { display: grid; gap: 18px; margin-top: 24px; }
.bar__h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.bar__h span:last-child { white-space: nowrap; font-family: var(--mono); font-weight: 400; color: var(--muted-dark); font-size: 12px; }
.bar__t { height: 6px; border-radius: 99px; background: #E3EAF3; overflow: hidden; }
.bar__f { height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--b-500), var(--mint)); -webkit-clip-path: inset(0 100% 0 0 round 99px); clip-path: inset(0 100% 0 0 round 99px); transition: clip-path 1.1s var(--ease-out), -webkit-clip-path 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.bar__c { margin: 8px 0 0; font-size: 13px; color: var(--muted-dark); }
.bar__c b { color: var(--ink-dark); font-weight: 600; }
.panel__tag { position: absolute; top: -14px; right: 24px; background: var(--ink-dark); color: var(--ink); border-radius: 99px; padding: 6px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 960px) { .audit { grid-template-columns: 1fr; } }

/* ---------- vážně ---------- */
.vazne { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.vazne > div { border-top: 1px solid var(--line-2); padding-top: 22px; }
.vazne h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.vazne p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .vazne { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vazne { grid-template-columns: 1fr; } }

/* ---------- dotazník ---------- */
.dotaznik { position: relative; overflow: hidden; }
.dotaznik__in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.kroky3 { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: k; }
.kroky3 li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.kroky3 li strong { display: block; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 4px; }
.kroky3 li span { color: var(--muted); font-size: 15px; }
.form { border-radius: 28px; background: var(--paper); color: var(--ink-dark); padding: clamp(24px, 3vw, 40px); box-shadow: 0 0 0 1px rgba(143,182,241,.25), 0 30px 80px rgba(30,111,224,.16); }
.form__prog { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.form__track { flex: 1; height: 2px; background: #E3EAF3; border-radius: 2px; overflow: hidden; }
.form__track i { display: block; height: 100%; width: 100%; background: var(--b-500); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-out); }
.form__prog .mono { color: var(--muted-dark); }
.form h3 { margin: 0 0 22px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.form__opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 10px 18px; border: 1px solid #D3DEEC; border-radius: 14px; background: var(--surface); text-align: left; color: var(--ink-dark); font-size: 16px; transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), transform .16s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.opt:active { transform: scale(.985); }
@media (hover: hover) { .opt:hover { border-color: var(--b-400); } }
.opt[aria-pressed="true"] { border-color: var(--b-500); background: var(--b-100); }
.opt__k { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1px solid #C7DAF8; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted-dark); }
.opt[aria-pressed="true"] .opt__k { background: var(--b-500); border-color: var(--b-500); color: var(--surface); }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field input { height: 54px; border-radius: 12px; border: 1px solid #D3DEEC; background: var(--surface); padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink-dark); }
.field input:focus { outline: none; border-color: var(--b-500); box-shadow: 0 0 0 3px var(--b-100); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted-dark); margin: 10px 0; }
.check a { text-decoration: underline; }
.form__act { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.form__back { background: none; border: 0; color: var(--muted-dark); font-size: 14px; padding: 8px 0; }
.form__back[hidden] { display: inline-block; visibility: hidden; }
.form .btn--primary { background: var(--ink-dark); color: var(--ink); }
.form .btn--primary[disabled] { opacity: .35; cursor: not-allowed; box-shadow: none; }
.form__err { color: #B3261E; font-size: 14px; margin: 12px 0 0; }
.form__fine { margin: 18px 0 0; font-size: 12px; color: var(--muted-dark); }
.step-in { animation: stepin .4s var(--ease-out) both; }
@keyframes stepin { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .dotaznik__in { grid-template-columns: 1fr; } }

/* výsledek ve formuláři */
.res h3 { margin-bottom: 6px; }
.res__note { margin: 0 0 22px; font-size: 13px; color: var(--muted-dark); }
.res__zmena { margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-light); }
.res__zmena .mono { color: var(--b-500); }
.res__zmena p { margin: 8px 0 0; font-size: 15px; }
.res__cta { display: grid; gap: 10px; margin-top: 22px; }
.res__zmena--ok .mono { color: #0A7F6C; }
.panel__score { white-space: nowrap; }
.res .panel__top { align-items: flex-end; }
.res .panel__score { font-size: clamp(40px, 4vw, 56px); }
.res .form__track { margin-top: 18px; }
.res .btn { white-space: normal; height: auto; min-height: 56px; padding: 14px 24px; text-align: center; }
.form .btn--ghost { color: var(--ink-dark); border-color: #C7DAF8; }
.bar__tag { margin-left: 10px; padding: 3px 8px; border-radius: 99px; background: var(--b-100); color: var(--b-700); font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; vertical-align: 1px; }

/* ---------- závěr ---------- */
.fin { position: relative; text-align: center; padding: clamp(120px, 14vw, 200px) 0 clamp(200px, 22vw, 300px); overflow: hidden; }
.fin h2 { margin: 0 auto; font-size: clamp(44px, 7vw, 112px); line-height: .96; letter-spacing: -0.055em; font-weight: 200; max-width: 12ch; }
.fin h2 strong { font-weight: 700; }
.fin p { margin: 24px auto 40px; color: var(--muted); max-width: 520px; font-size: 18px; }
.fin__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; opacity: .95; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 22px; }

/* ---------- telefon ---------- */
@media (max-width: 700px) {
  :root { --top-h: 60px; }
  .brand { font-size: 17px; } .brand img { width: 22px; height: 22px; }
  .btn--sm { height: 38px; padding: 0 15px; font-size: 13.5px; }
  .hero { min-height: 0; display: block; padding: calc(var(--top-h) + 56px) 0 0; }
  /* obzor dole jako hranice úvodu: oblouk těsně nad spodní hranou, záře za údaji, ne přes tlačítka */
  /* klenba: obrázek širší než displej (170 %), celý oblouk je vidět jako kopule, ne jen plochý výřez */
  .hero__bg { top: auto; bottom: 0; left: -35%; right: -35%; }
  .hero__bg img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .hero__eyebrow { margin-bottom: 26px; font-size: 10.5px; letter-spacing: .06em; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .hero__sub { margin-top: 20px; font-size: 22px; }
  .hero__lead { font-size: 16px; }
  .hero__cta { flex-direction: column; gap: 10px; margin-top: 30px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__meta { position: static; margin-top: 52px; padding: 0 0 calc(30vw + 24px); }
  .hero__meta .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .hero__meta .mono { font-size: 10.5px; letter-spacing: .05em; color: var(--muted); }
  .sec__head { margin-bottom: 40px; }
  .pains li { grid-template-columns: 28px 1fr; gap: 10px; padding: 18px 0; }
  .strop__total { flex-wrap: wrap; }
  .panel__tag { right: 16px; }
  .vazne > div { padding-top: 18px; }
  .fin { padding: 96px 0 160px; }
  .foot nav { flex-wrap: wrap; gap: 10px 22px; }
}

/* Omezit pohyb: žádné posuny, zvětšení ani smyčky. Jen krátké prolnutí (průhlednost nepůsobí potíže). */
@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none !important; transition: opacity .5s ease-out; transition-delay: calc(var(--d, 0) * 50ms); }
  .split .w > i { transform: none !important; opacity: 0; transition: opacity .6s ease-out; }
  .split.is-in .w > i { opacity: 1; }
  .hero__bg img { animation: fade 1.2s ease-out both; }
  .fin__wave { animation: none; }
  .tl__step.is-passed .tl__node { animation: none; }
  .btn:active, .opt:active { transform: none; }
  .step-in { animation: fade .3s ease-out both; }
  html { scroll-behavior: auto; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
