/* ============================================================
   PENĚŽNÍ PROSTOR – nová homepage (/new)
   Stojí na scrollcraft.css (mechanika) + vlastní kompozice.
   Večer (tmavé sekce) → ráno (světlá sekce s formulářem).
   ============================================================ */

:root {
    --sc-canvas: #100E0B;
    --sc-surface: #1B1713;
    --sc-ink: #F4EEE3;
    --sc-ink-soft: #BDB2A0;
    --sc-accent: #FFC72C;
    --sc-accent-ink: #17130D;
    --sc-font-display: "Archivo", system-ui, sans-serif;
    --sc-font-text: "Archivo", system-ui, sans-serif;
    --sc-font-mono: "Archivo", system-ui, sans-serif;
    --sc-shadow-color: 30 30% 4%;

    --serif: "Instrument Serif", Georgia, serif;
    --paper: #F4EDE1;
    --paper-2: #EAE1D2;
    --paper-ink: #1C1813;
    --paper-soft: #5A5146;
    --paper-line: #D9CEBC;
    --accent-deep: #7A5900;
    --ok: #2F8F4E;
    --err: #B3361F;
    --bar-h: 72px;
}

html { scroll-padding-top: var(--bar-h); background-color: #100E0B; }

/* Připnuté sekce mají výšku a lepivou scénu rovnou z CSS, ne až po spuštění JS. Jinak by při
   načtení stránky hero na zlomek vteřiny nemělo výšku a nahoře by probliklo „Co právě řešíte?“.
   Výšky = data-sc-span × 100vh (engine je pak nastaví stejně). */
[data-sc-act] { position: relative; }
.hero { height: 210vh; }
.range { height: 260vh; }
.flow { height: 340vh; }
[data-sc-act] > [data-sc-stage] { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
body { font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
em { font-style: normal; }

.skip {
    position: fixed; left: 16px; top: -60px; z-index: 2000;
    background: var(--sc-accent); color: var(--sc-accent-ink);
    padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
    transition: top 160ms var(--sc-ease-out);
}
.skip:focus { top: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------- typografie -- */
.h2 {
    font-family: var(--sc-font-display);
    font-weight: 800;
    font-size: clamp(2rem, 1.25rem + 2.7vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -0.032em;
    text-wrap: balance;
    margin: 0;
}
.h2 em, .hero__title em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--sc-accent);
}
.lede {
    font-size: var(--sc-t-lg);
    line-height: 1.5;
    color: var(--sc-ink-soft);
    max-width: 48ch;
    text-wrap: pretty;
}

/* ------------------------------------------- tlačítka: původní (.btn v chrome.css) -- */
.linkbtn {
    background: none; border: 0; padding: 8px 4px; cursor: pointer;
    font: inherit; font-weight: 600; color: inherit;
    text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px;
}
.linkbtn:hover { color: var(--accent-deep); }
.linkbtn { white-space: nowrap; }
@media (max-width: 640px) {
    .lead .sheet__nav, .contact__nav { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
    .lead .sheet__nav .btn, .contact__nav .btn { width: 100%; }
}
.btn .ico { width: 1em; height: 1em; }
.req { color: #B3361F; font-weight: 700; }

/* =================================================================== HERO == */
.hero__stage { background: #0B0907; isolation: isolate; }

/* deska s fotkou: drží poměr stran obrázku a pokrývá viewport, takže světlo
   lampy a prach jsou vždy na stejném místě fotky */
.hero__plate {
    --ar: 1.7778;
    position: absolute; left: 50%; top: 50%;
    width: max(100vw, 100svh * var(--ar));
    height: max(100svh, 100vw / var(--ar));
    translate: -50% -50%;
    transform-origin: 65% 72%;
    transform: scale(calc(1.02 + var(--sc-p, 0) * 0.62));
    will-change: transform;
    z-index: 0;
}
.hero__plate img { width: 100%; height: 100%; object-fit: cover; }
.hero__lamp {
    position: absolute; z-index: 1; pointer-events: none;
    left: 50%; top: 50%;
    width: max(100vw, 100svh * 1.7778); height: max(100svh, 100vw / 1.7778);
    translate: -50% -50%;
    transform-origin: 65% 72%;
    transform: scale(calc(1.02 + var(--sc-p, 0) * 0.62));
    background: radial-gradient(22% 30% at 88.5% 40%, hsl(38 100% 62% / 0.22), transparent 70%),
        radial-gradient(30% 22% at 82% 70%, hsl(36 100% 55% / 0.12), transparent 70%);
    animation: lamp 7s ease-in-out infinite alternate;
}
@keyframes lamp { from { opacity: 0.75; } to { opacity: 1; } }

.hero__dust {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none;
    transform: translate3d(0, calc(var(--sc-p, 0) * -10vh), 0) scale(calc(1 + var(--sc-p, 0) * 0.25));
}
.hero__shade {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(90deg, hsl(30 25% 4% / 0.8) 0%, hsl(30 25% 4% / 0.55) 34%, hsl(30 25% 4% / 0.2) 52%, transparent 64%);
    opacity: clamp(0, 1 - var(--sc-p, 0) * 2.2, 1);
}

.hero__copy--a {
    position: absolute; z-index: 5;
    left: var(--sc-gutter); top: 50%;
    width: min(54rem, 60vw);
    translate: 0 -58%;
    opacity: clamp(0, 1 - var(--sc-p, 0) * 3.4, 1);
    transform: translate3d(0, calc(var(--sc-p, 0) * -90px), 0);
}
.hero.is-past .hero__copy--a { pointer-events: none; visibility: hidden; }
.hero__title {
    font-family: var(--sc-font-display);
    font-weight: 800;
    font-size: clamp(2.7rem, 1.2rem + 4.4vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.038em;
    text-wrap: balance;
    margin: 0;
    color: #FBF6EC;
}
.hero__title em { font-size: 1.1em; line-height: 0.8; }
.hero__lede {
    margin-top: 22px;
    font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.28rem);
    line-height: 1.55;
    max-width: 34ch;
    color: #E3D9C8;
}
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scrim-b {
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
    background: linear-gradient(to top right, hsl(30 25% 4% / 0.92) 0%, hsl(30 25% 4% / 0.72) 34%, hsl(30 25% 4% / 0.25) 58%, transparent 76%);
    opacity: clamp(0, (var(--sc-p, 0) - 0.3) * 3, 1);
}
.hero__copy--b {
    position: absolute; z-index: 5;
    left: var(--sc-gutter); bottom: clamp(3rem, 12vh, 8rem);
    width: min(40rem, 70vw);
}
.hero__beat {
    font-weight: 800;
    font-size: clamp(1.7rem, 1.1rem + 2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #FBF6EC;
    text-wrap: balance;
}
.hero__beat-sub { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: var(--sc-accent); }

.hero__leaves {
    position: absolute; z-index: 6; pointer-events: none;
    left: -3vw; bottom: -15vh;
    width: min(26vw, 420px); height: auto;
    filter: brightness(0.62) saturate(0.9);
    transform: translate3d(calc(var(--sc-p, 0) * -26vw), calc(var(--sc-p, 0) * 34vh), 0) scale(calc(1 + var(--sc-p, 0) * 0.5));
    transform-origin: 0 100%;
    will-change: transform;
}

@media (max-width: 760px) {
    .hero__plate, .hero__lamp {
        --ar: 0.5625;
        width: max(100vw, 100svh * 0.5625); height: max(100svh, 100vw / 0.5625);
        transform-origin: 42% 76%;
    }
    .hero__lamp {
        background: radial-gradient(34% 18% at 94% 45%, hsl(38 100% 62% / 0.24), transparent 70%),
            radial-gradient(40% 14% at 70% 72%, hsl(36 100% 55% / 0.12), transparent 70%);
    }
    /* nahoře nadpis na tmavé zdi, dole tlačítka pod palcem; tmavý přechod nahoře i dole */
    .hero__shade {
        background:
            linear-gradient(180deg, hsl(30 25% 4% / 0.7) 0%, hsl(30 25% 4% / 0.45) 38%, transparent 58%),
            linear-gradient(0deg, hsl(30 25% 4% / 0.92) 0%, hsl(30 25% 4% / 0.6) 16%, transparent 34%);
    }
    .hero__copy--a {
        top: calc(var(--bar-h) + 3svh); bottom: max(6svh, calc(env(safe-area-inset-bottom) + 24px));
        translate: none; width: auto; right: var(--sc-gutter);
        display: flex; flex-direction: column;
    }
    .hero__title { font-size: clamp(2.35rem, 1.2rem + 6vw, 3.2rem); }
    .hero__lede { margin-top: 14px; font-size: 1.02rem; }
    .hero__actions { margin-top: auto; padding-top: 22px; flex-direction: column; gap: 10px; }
    .hero__actions .btn { width: 100%; }
    .hero__copy--b { width: auto; right: var(--sc-gutter); bottom: 9svh; }
    .hero__scrim-b { background: linear-gradient(to top, hsl(30 25% 4% / 0.94) 0%, hsl(30 25% 4% / 0.75) 30%, hsl(30 25% 4% / 0.2) 55%, transparent 70%); }
    .hero__leaves { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__plate, .hero__lamp, .hero__dust, .hero__leaves, .hero__copy--a { transform: none !important; }
    .hero__lamp { animation: none; }
}

/* ============================================================== CHECK-UP == */
.checkup {
    position: relative;
    padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7.5rem);
    background:
        radial-gradient(60% 50% at 80% 0%, hsl(38 60% 20% / 0.35), transparent 70%),
        #14110D;
}
.checkup__wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--sc-gutter); }
.checkup__head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 56px; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.checkup__head .lede { justify-self: end; }

.sheet {
    position: relative;
    background: var(--paper);
    color: var(--paper-ink);
    border-radius: 22px;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    box-shadow: var(--sc-e3), inset 0 1px 0 hsl(40 60% 98% / 0.8);
    --sc-ink: var(--paper-ink);
    --sc-ink-soft: var(--paper-soft);
    --sc-hairline: var(--paper-line);
    overflow: hidden;
}
.sheet::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.22;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.28 0 0 0 0.18 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.sheet > * { position: relative; }
.sheet__progress { position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--paper-2); }
.sheet__progress span { display: block; height: 100%; background: var(--sc-accent); transform-origin: 0 50%; transform: scaleX(0.08); transition: transform 420ms var(--sc-ease-out); }
.sheet[data-krok="1"] .sheet__progress span { transform: scaleX(0.45); }
.sheet[data-krok="2"] .sheet__progress span { transform: scaleX(0.85); }
.sheet.is-sent .sheet__progress span { transform: scaleX(1); }

.sheet__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.sheet__step:not([hidden]) { animation: stepIn 420ms var(--sc-ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.sheet__q {
    font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
    font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.1rem);
    margin: 0 0 clamp(1.25rem, 2.4vw, 1.75rem); padding: 0;
}

/* výběr situace: dva sloupce řádků, šipka v kulatém čipu jako u hlavních tlačítek */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(2rem, 5vw, 4.5rem); }
.opts__h { margin-bottom: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
.opt {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; padding: 18px 2px 18px 0;
    background: none; border: 0; border-top: 1px solid var(--paper-line);
    color: var(--paper-ink); text-align: left; cursor: pointer; font: inherit;
}
.opt:last-child { border-bottom: 1px solid var(--paper-line); }
.opt__t { display: flex; flex-direction: column; gap: 3px; transition: transform 240ms var(--sc-ease-out); }
.opt__t strong { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.opt__t small { font-size: 0.95rem; color: var(--paper-soft); }
.opt__go {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC72C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") 50% 50% / 18px 18px no-repeat, linear-gradient(180deg, #2A251E 0%, #13110D 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 6px rgba(120, 80, 0, 0.25);
    transition: transform 240ms var(--sc-ease-out);
}
.opt.is-on .opt__go,
.opt:focus-visible .opt__go { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316130F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") 50% 50% / 18px 18px no-repeat, linear-gradient(180deg, #FFDA6A 0%, #FFC72C 55%, #F2B21A 100%); }
.opt:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 4px; border-radius: 6px; }
.opt:active .opt__t { transform: translateX(3px); }
@media (hover: hover) and (pointer: fine) {
    .opt:hover .opt__t { transform: translateX(6px); }
    .opt:hover .opt__go { transform: scale(1.06); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316130F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") 50% 50% / 18px 18px no-repeat, linear-gradient(180deg, #FFDA6A 0%, #FFC72C 55%, #F2B21A 100%); }
}

.ask { display: none; }
.ask.is-on { display: block; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span:first-child, .field--date > span:first-child, .toggle legend { font-size: 0.92rem; font-weight: 600; color: var(--paper-soft); padding: 0; }
.field small { font-weight: 400; }
.field input, .field select, .pair select {
    width: 100%; min-height: 54px; padding: 0 16px;
    font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums;
    background: #FFFDF8; color: var(--paper-ink);
    border: 1px solid var(--paper-line); border-radius: 12px;
    transition: border-color 140ms, box-shadow 140ms;
    appearance: none; -webkit-appearance: none;
}
.field select, .pair select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1813' stroke-width='2.4' stroke-linecap='round'><path d='M6 9.5l6 6 6-6'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
.field input:focus, .field select:focus, .pair select:focus { outline: none; border-color: var(--paper-ink); box-shadow: 0 0 0 3px hsl(44 100% 58% / 0.55); }
.field input.is-err { border-color: var(--err); box-shadow: 0 0 0 3px hsl(10 70% 50% / 0.18); }
.unit { position: relative; display: block; }
.unit input { padding-right: 52px; }
.unit i { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-style: normal; font-weight: 600; color: var(--paper-soft); pointer-events: none; }
.pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; color: var(--paper-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--paper-ink); }
.fields .check { align-self: end; min-height: 54px; align-items: center; }
.toggle { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toggle legend { width: 100%; margin-bottom: 8px; }
.toggle label { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; }
.toggle label:has(input) { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--paper-line); border-radius: 999px; background: #FFFDF8; font-weight: 600; cursor: pointer; }
.toggle label:has(input:checked) { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.toggle label:has(input:focus-visible) { outline: 2px solid var(--paper-ink); outline-offset: 3px; }
.hint { margin-top: 14px; font-size: 0.9rem; color: var(--paper-soft); max-width: 60ch; }

.sheet__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-top: 18px; border-top: 1px solid var(--paper-line); }

/* výsledek */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 8px; border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.figures > div { padding: 18px 20px 18px 0; }
.figures > div + div { padding-left: 20px; border-left: 1px solid var(--paper-line); }
.figures dt { font-size: 0.88rem; font-weight: 600; color: var(--paper-soft); }
.figures dd { margin: 6px 0 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.figures dd small { display: block; margin-top: 6px; font-size: 0.86rem; font-weight: 500; letter-spacing: 0; color: var(--paper-soft); line-height: 1.35; }
.figures dd .up { color: var(--err); }
.figures dd .down { color: var(--ok); }

/* časová osa – podpisový prvek: kreslí se z Vašich vlastních dat */
.line { position: relative; height: 210px; margin: 26px 6px 6px; }
.line__track { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--paper-line); }
.line__fill { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--paper-ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1500ms cubic-bezier(0.45, 0, 0.2, 1); }
.line.is-drawn .line__fill { transform: scaleX(1); }
.mark { position: absolute; top: 50%; left: var(--x); width: 0; }
.mark__dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--paper-ink); transform: scale(0.6); opacity: 0; transition: transform 260ms var(--sc-ease-out), opacity 200ms; transition-delay: var(--d); }
.mark--now .mark__dot { background: var(--sc-accent); }
.mark--hot .mark__dot { background: var(--paper-ink); }
.mark__stem { position: absolute; left: -1px; width: 2px; height: 26px; background: var(--paper-ink); opacity: 0; transition: opacity 200ms; transition-delay: var(--d); }
.mark__txt {
    position: absolute; width: max-content; max-width: 190px;
    font-size: 0.86rem; line-height: 1.35; color: var(--paper-soft);
    opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity 320ms var(--sc-ease-out), transform 320ms var(--sc-ease-out); transition-delay: var(--d);
}
.mark__txt b { display: block; color: var(--paper-ink); font-size: 0.98rem; letter-spacing: -0.01em; }
.mark__txt time { display: inline-block; margin-bottom: 3px; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--paper-ink); font-weight: 700; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.mark--up .mark__stem { bottom: 8px; }
.mark--up .mark__txt { bottom: 40px; }
.mark--down .mark__stem { top: 8px; }
.mark--down .mark__txt { top: 40px; }
.mark--left .mark__txt { left: -10px; }
.mark--mid .mark__txt { left: 0; translate: -50% 0; text-align: center; }
.mark--right .mark__txt { right: -10px; text-align: right; }
.line.is-drawn .mark__dot { transform: none; opacity: 1; }
.line.is-drawn .mark__stem, .line.is-drawn .mark__txt { opacity: 1; transform: none; }
.result__note { margin-top: 10px; font-size: 0.86rem; color: var(--paper-soft); max-width: 70ch; }
.result__note a { color: var(--paper-ink); }

.lead { margin-top: clamp(1.75rem, 3vw, 2.5rem); padding: clamp(1.25rem, 2.6vw, 1.75rem); border-radius: 16px; background: hsl(40 40% 92%); border: 1px solid var(--paper-line); }
.lead__title { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.lead__title span { display: block; margin-top: 4px; font-weight: 500; font-size: 1rem; letter-spacing: 0; color: var(--paper-soft); }
.fields--lead { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.fields--lead .field--span2 { grid-column: span 2; }
.lead .check + .check { margin-top: 8px; }
.lead .sheet__nav { border-top: 0; padding-top: 0; margin-top: 18px; }
.status { margin-top: 12px; font-size: 0.95rem; font-weight: 600; }
.status.err { color: var(--err); }
.done { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 16px; background: #FFF6D8; border: 1px solid #EBD38A; margin-top: 24px; }
.done__title { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 6px; }

@media (max-width: 900px) {
    .checkup__head { grid-template-columns: 1fr; }
    .checkup__head .lede { justify-self: start; }
}
@media (max-width: 640px) {
    .opts { grid-template-columns: 1fr; gap: 22px; }
    .opt { padding: 15px 0; }
    .opt__go { width: 38px; height: 38px; }
    .fields, .fields--lead { grid-template-columns: 1fr; }
    .fields--lead .field--span2 { grid-column: auto; }
    .figures { grid-template-columns: 1fr; }
    .figures > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--paper-line); }
    /* osa na výšku */
    .line { height: auto; margin: 22px 0 0; padding: 4px 0 4px 34px; display: flex; flex-direction: column; gap: 22px; }
    .line__track, .line__fill { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
    .line__fill { transform-origin: 50% 0; transform: scaleY(0); }
    .line.is-drawn .line__fill { transform: scaleY(1); }
    .mark { position: relative; top: auto; left: auto; width: auto; min-height: 30px; }
    .mark__dot { left: -31px; top: 2px; }
    .mark__stem { display: none; }
    .mark__txt { position: static; max-width: none; translate: none !important; text-align: left !important; }
}

/* ============================================================ KDO JSME == */
.who { padding: var(--sc-section) 0; background: var(--sc-canvas); }
.who__wrap {
    width: 100%; max-width: var(--sc-maxw); margin: 0 auto; padding: 0 var(--sc-gutter);
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.who__photo { margin: 0; grid-row: span 2; border-radius: 22px; overflow: hidden; box-shadow: var(--sc-e3); }
.who__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.who__text p:not(.who__sign):not(.who__fee) { margin-top: 22px; font-size: var(--sc-t-lg); line-height: 1.55; color: #DCD2C2; max-width: 52ch; }
.who__sign { margin-top: 26px; font-weight: 800; font-size: 1.1rem; }
.who__sign span { display: block; font-weight: 500; font-size: 0.95rem; color: var(--sc-ink-soft); margin-top: 2px; }
.who__fee { margin-top: 18px; padding-left: 16px; border-left: 1px solid var(--sc-accent); color: var(--sc-ink-soft); max-width: 52ch; }
.who__reviews { display: grid; grid-template-columns: auto 1fr 1fr; gap: 16px; align-items: stretch; }
.rating { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 18px 22px; border-radius: 16px; background: var(--sc-accent); color: var(--sc-accent-ink); text-decoration: none; }
.rating strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.rating .stars { letter-spacing: 2px; }
.rating span:last-child { font-size: 0.86rem; font-weight: 600; }
.who__reviews blockquote { margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--sc-surface); box-shadow: var(--sc-edge); }
.who__reviews blockquote p { font-size: 0.98rem; line-height: 1.5; }
.who__reviews cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.86rem; color: var(--sc-ink-soft); }
@media (max-width: 900px) {
    .who__wrap { grid-template-columns: 1fr; }
    .who__photo { grid-row: auto; max-width: 420px; }
    .who__reviews { grid-template-columns: 1fr; }
    .rating { flex-direction: row; align-items: center; gap: 12px; }
}

/* ============================================================ CO ŘEŠÍME == */
.range__stage { display: flex; align-items: center; background: #0D0B09; }
.range__rail { display: flex; gap: clamp(18px, 2.4vw, 32px); padding: 0 var(--sc-gutter); align-items: center; will-change: transform; }
.range__lead { flex: 0 0 min(30rem, 78vw); padding-right: clamp(0px, 3vw, 48px); }
.range__lead .lede { margin-top: 18px; }
.range__more { margin-top: 22px; color: var(--sc-ink-soft); font-size: 0.95rem; }
.range__more a { color: var(--sc-ink); }
.door { flex: 0 0 clamp(250px, 24vw, 360px); display: flex; flex-direction: column; text-decoration: none; }
.door__img { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--sc-e2); }
.door__img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms var(--sc-ease-out); }
.door__name { margin-top: 18px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.025em; }
.door__fact { margin-top: 6px; color: var(--sc-ink-soft); font-size: 0.98rem; line-height: 1.45; }
.door__go { margin-top: 12px; font-weight: 700; color: var(--sc-accent); }
@media (hover: hover) and (pointer: fine) { .door:hover .door__img img { transform: scale(1.04); } }
@media (max-width: 760px) {
    .door { flex-basis: 72vw; }
    .door__img img { aspect-ratio: 5 / 4; }
}

/* ======================================================= JAK TO PROBÍHÁ == */
/* Vodorovný pás (inspirace lepshee.ai): karta s logem, pak mapa kroků. Scroll posouvá pás do strany,
   čára se kreslí a na jejím konci jede tečka. Každý krok má --a (0–1) z JS: nejdřív vyroste nožka,
   pak naskočí tečka, nadpis a řádky popisu jeden po druhém. */
.flow { --gold: #C08A12; --flow-ink: #1C1813; --flow-soft: #5E554A; }
.flow__stage {
    background: #F5F0E6; color: var(--flow-ink);
    display: flex; align-items: center;
    padding-top: 64px; overflow: hidden; isolation: isolate;
}
.flow__glow {
    position: absolute; z-index: -1; right: -12vw; bottom: -30vh; width: 70vw; height: 70vw; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, hsl(42 95% 62% / 0.26), hsl(42 95% 62% / 0.08) 38%, transparent 64%);
    transform: translate3d(calc(var(--fp, 0) * -18vw), calc(var(--fp, 0) * -8vh), 0);
    pointer-events: none;
}
.flow__track {
    display: flex; align-items: center; gap: 5vw;
    width: max-content; height: min(30vw, 460px); padding: 0 5vw;
    will-change: transform;
}

/* karta s logem */
.flow__card {
    position: relative; flex: none; width: min(30vw, 460px); height: 100%;
    border-radius: 18px; overflow: hidden;
    background: radial-gradient(70% 60% at 50% 34%, #2A2217 0%, #15120E 55%, #0E0C09 100%);
    color: #FAF6EE;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(1.25rem, 1.9vw, 1.75rem);
    box-shadow: 0 2px 4px hsl(30 30% 10% / 0.12), 0 24px 50px -24px hsl(30 40% 10% / 0.55);
}
.flow__orb { position: absolute; left: 50%; top: 9%; width: 62%; aspect-ratio: 1; translate: -50% 0; display: grid; place-items: center; }
.flow__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid hsl(44 100% 60% / 0.14); animation: ring 6s ease-in-out infinite; }
.flow__ring:nth-child(2) { inset: 14%; border-color: hsl(44 100% 60% / 0.2); animation-delay: -2s; }
.flow__ring:nth-child(3) { inset: 28%; border-color: hsl(44 100% 60% / 0.28); animation-delay: -4s; background: radial-gradient(circle, hsl(44 100% 55% / 0.16), transparent 70%); }
@keyframes ring { 0%, 100% { transform: scale(1); opacity: 0.75; } 50% { transform: scale(1.04); opacity: 1; } }
.flow__orb img {
    position: relative; width: 34%; height: auto; border-radius: 22%;
    animation: orb 6s ease-in-out infinite;
}
@keyframes orb { 0%, 100% { transform: translate3d(0, -4px, 0); } 50% { transform: translate3d(0, 5px, 0); } }
.flow__card-txt { position: relative; }
.flow__card-title { font-size: clamp(1.1rem, 1.35vw, 1.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.flow__card-txt p + p { margin-top: 8px; font-size: 0.94rem; line-height: 1.45; color: hsl(40 30% 92% / 0.62); max-width: 34ch; }

/* mapa kroků */
.flow__map {
    --liw: 26vw; --pad: 3vw; --dot: max(0.8vw, 10px);
    position: relative; flex: none; height: 100%; width: 132vw;
}
.flow__axis { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.flow__line { position: absolute; left: 0; top: -0.5px; width: 100%; height: 1px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.flow__dot { position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot); margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2); border-radius: 50%; background: var(--gold); }
.flow__title {
    position: absolute; left: 0; top: 2vw; width: 21vw; margin: 0;
    font-size: clamp(1.875rem, 3vw, 3rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.flow__note { position: absolute; left: 0; top: calc(50% + 1.6vw); width: 22vw; font-size: 0.94rem; line-height: 1.45; color: var(--flow-soft); }
.flow__steps { list-style: none; margin: 0; padding: 0; }

.fstep {
    --a: 0;
    --s: clamp(0, var(--a) / 0.4, 1);
    --d: clamp(0, (var(--a) - 0.28) / 0.16, 1);
    --t: clamp(0, (var(--a) - 0.3) / 0.3, 1);
    position: absolute; width: var(--liw); padding-left: var(--pad);
}
.fstep--top { top: 0; bottom: 50%; }
.fstep--bottom { top: 50%; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.fstep:nth-child(1) { left: 24vw; }
.fstep:nth-child(2) { left: 48vw; }
.fstep:nth-child(3) { left: 65vw; }
.fstep:nth-child(4) { left: 89vw; }
.fstep:nth-child(5) { left: 106vw; }
.fstep__stem { position: absolute; left: 0; width: 1px; background: var(--gold); transform: scaleY(var(--s)); }
.fstep--top .fstep__stem { top: var(--dot); bottom: 0; transform-origin: 50% 100%; }
.fstep--bottom .fstep__stem { top: 0; bottom: var(--dot); transform-origin: 50% 0; }
.fstep__dot { position: absolute; left: 0; width: var(--dot); height: var(--dot); margin-left: calc(var(--dot) / -2); border-radius: 50%; background: var(--gold); transform: scale(var(--d)); }
.fstep--top .fstep__dot { top: 0; }
.fstep--bottom .fstep__dot { bottom: 0; }
.fstep--top .fstep__txt { margin-top: -0.3em; }
.fstep--bottom .fstep__txt { margin-bottom: -0.25em; }
.fstep__title { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.fstep__title b { margin-right: 0.3em; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.fstep__mask, .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.fstep__mask > span, .ln > span { display: block; transform: translateY(calc((1 - var(--t)) * 110%)); }
.fstep__desc { margin-top: 10px; width: 90%; max-width: 24rem; font-size: 0.94rem; line-height: 1.6; color: var(--flow-soft); }
.ln { --l: clamp(0, (var(--a) - 0.4 - var(--i, 0) * 0.08) / 0.28, 1); }
.ln > span { transform: translateY(calc((1 - var(--l)) * 110%)); }

/* tablet */
@media (max-width: 1024px) and (min-width: 761px) {
    .flow__track { height: min(60svh, 520px); }
    .flow__card { width: 36vw; }
    .flow__map { --liw: 40vw; --pad: 3.4vw; width: 196vw; }
    .flow__title { width: 32vw; }
    .flow__note { width: 32vw; }
    .fstep:nth-child(1) { left: 36vw; }
    .fstep:nth-child(2) { left: 66vw; }
    .fstep:nth-child(3) { left: 96vw; }
    .fstep:nth-child(4) { left: 126vw; }
    .fstep:nth-child(5) { left: 156vw; }
}

/* mobil: jeden krok na obrazovku, text nahoře nebo dole, dlouhé nožky k čáře uprostřed */
@media (max-width: 760px) {
    .flow__stage { padding: 100px 0 108px; }
    .flow__track { height: calc(100svh - 208px); gap: 7vw; padding: 0 7vw; }
    .flow__card { width: 85vw; height: min(65vw, 100%); }
    .flow__map { --liw: 70vw; --pad: 7vw; --dot: 2.4vw; width: 376vw; }
    .flow__title { top: 0; width: 70vw; font-size: 2.1rem; }
    .flow__note { top: calc(50% + 5vw); width: 64vw; }
    .fstep:nth-child(1) { left: 86vw; }
    .fstep:nth-child(2) { left: 142vw; }
    .fstep:nth-child(3) { left: 198vw; }
    .fstep:nth-child(4) { left: 254vw; }
    .fstep:nth-child(5) { left: 306vw; }
    .fstep__title { font-size: 1.2rem; }
    .fstep__desc { width: 100%; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
    .flow__stage { overflow-x: auto; }
    .flow__track, .flow__glow { transform: none !important; }
    .fstep { --a: 1 !important; }
    .flow__line { transform: none !important; }
    .flow__dot--tip { display: none; }
    .flow__ring, .flow__orb img { animation: none; }
}

/* =============================================================== RÁNO == */
.morning {
    position: relative; min-height: 100svh;
    background: #F2EBDF; color: var(--paper-ink);
    --sc-ink: var(--paper-ink); --sc-ink-soft: var(--paper-soft); --sc-hairline: var(--paper-line);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); align-items: center;
    overflow: hidden;
}
.morning__img { position: absolute; inset: 0; margin: 0; }
.morning__img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.morning__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, hsl(38 40% 93% / 0.55) 62%, hsl(38 40% 93% / 0.86) 80%); }
.morning__panel { position: relative; grid-column: 2; padding: calc(var(--bar-h) + 4rem) var(--sc-gutter) 4rem 0; max-width: 40rem; }
.morning .h2 em { color: var(--accent-deep); }
.contact { margin-top: 26px; padding: clamp(1.25rem, 2.6vw, 2rem); border-radius: 20px; background: hsl(40 50% 98% / 0.92); box-shadow: var(--sc-e2); }
.contact__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact__q { padding: 0; margin-bottom: 14px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--paper-line); background: #FFFDF8; font-weight: 600; transition: background-color 140ms, color 140ms, border-color 140ms; }
.pills input:checked + span { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.pills input:focus-visible + span { outline: 2px solid var(--paper-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .pills span:hover { border-color: var(--paper-ink); } }
.contact__from { margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: #FFF6D8; font-size: 0.92rem; line-height: 1.4; }
.fields--contact .field--full { grid-column: 1 / -1; }
.fields--contact { margin-bottom: 14px; }
.contact__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.morning__direct { margin-top: 18px; font-size: 0.95rem; color: var(--paper-soft); }
.morning__direct a { color: var(--paper-ink); font-weight: 700; }
@media (max-width: 900px) {
    .morning { display: block; min-height: 0; }
    .morning__img { position: relative; height: 56svh; }
    .morning__img img { object-position: 22% 60%; }
    .morning__img::after { background: linear-gradient(180deg, transparent 60%, #F2EBDF 100%); }
    .morning__panel { padding: 0 var(--sc-gutter) 4.5rem; margin-top: -4rem; max-width: none; }
}

/* ======================================================= MOBILNÍ LIŠTA == */
/* Stejná jako .mobile-cta na podstránkách: fixovaný je průhledný obal a tmavé je až tlačítko uvnitř.
   Safari na iOS barví svou spodní lištu podle pozadí fixovaného prvku u okraje; s průhledným obalem
   zůstane jeho lišta průhledná. Skrytá lišta má visibility: hidden, aby pod okrajem nic nezůstalo. */
.mbar { display: none; }
@media (max-width: 760px) {
    .mbar {
        display: grid;
        position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 800;
        visibility: hidden; opacity: 0; transform: translate3d(0, 12px, 0);
        transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out), visibility 0s linear 240ms;
    }
    .mbar__link {
        display: flex; align-items: center; justify-content: space-between;
        min-height: 58px; padding: 0 8px 0 24px; border-radius: 999px;
        background: linear-gradient(180deg, #312B23 0%, #1B1813 58%, #13110D 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #FAF9F5; font-weight: 700; font-size: 1.02rem; text-decoration: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(22, 19, 15, 0.18), 0 8px 18px -8px rgba(22, 19, 15, 0.38);
    }
    .mbar__link:active { transform: scale(0.985); }
    .mbar__link::after {
        content: ""; flex: none; width: 42px; height: 42px; border-radius: 50%;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316130F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") 50% 50% / 17px 17px no-repeat,
            linear-gradient(180deg, #FFDA6A 0%, #FFC72C 55%, #F2B21A 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 3px rgba(22, 19, 15, 0.3);
    }
    .mbar.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out), visibility 0s; }
}

/* ============================================================ COOKIES == */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1100; max-width: 720px; margin: 0 auto;
    background: #1B1713; color: var(--sc-ink); border: 1px solid var(--sc-hairline-strong); border-radius: 20px; box-shadow: var(--sc-e3);
    opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 260ms var(--sc-ease-out), transform 260ms var(--sc-ease-out);
}
.cookie-banner.show { opacity: 1; transform: none; pointer-events: auto; }
.cookie-content { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.cookie-text p:not(.cookie-title) { font-size: 0.88rem; line-height: 1.5; color: var(--sc-ink-soft); max-width: 420px; }
.cookie-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn { min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: 0.92rem; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.cookie-accept { background: var(--sc-accent); color: var(--sc-accent-ink); }
.cookie-reject, .cookie-settings { background: transparent; color: var(--sc-ink); border-color: var(--sc-hairline-strong); }
.cookie-reject:hover, .cookie-settings:hover { border-color: var(--sc-accent); color: var(--sc-accent); }
.cookie-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; background: hsl(30 20% 4% / 0.6); opacity: 0; pointer-events: none; transition: opacity 220ms; }
.cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-modal-content { width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; background: var(--paper); color: var(--paper-ink); border-radius: 22px; box-shadow: var(--sc-e3); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 16px; border-bottom: 1px solid var(--paper-line); }
.cookie-modal-title { font-weight: 800; font-size: 1.3rem; }
.cookie-modal-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--paper-line); background: transparent; color: var(--paper-ink); font-size: 22px; cursor: pointer; }
.cookie-modal-body { padding: 8px 26px; }
.cookie-category { padding: 16px 0; border-bottom: 1px solid var(--paper-line); }
.cookie-category:last-child { border-bottom: 0; }
.cookie-category-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-category-title { font-weight: 700; }
.cookie-category p:not(.cookie-category-title) { margin-top: 6px; font-size: 0.88rem; color: var(--paper-soft); }
.cookie-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex: none; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider { position: absolute; inset: 0; background: var(--paper-line); border-radius: 999px; cursor: pointer; transition: background-color 200ms; }
.cookie-slider::before { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px hsl(30 30% 10% / 0.25); transition: transform 200ms var(--sc-ease-out); }
.cookie-switch input:checked + .cookie-slider { background: var(--sc-accent); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(22px); }
.cookie-switch input:disabled + .cookie-slider { opacity: 0.6; cursor: not-allowed; }
.cookie-modal-footer { padding: 16px 26px 22px; border-top: 1px solid var(--paper-line); display: flex; justify-content: flex-end; }

/* =============================================================== VÝKON ==
   Na mobilu (hlavně iPhone) dělají trhaný scroll GPU efekty, ne JavaScript:
   rozmazání pod průhlednými prvky, celoplošná zrnitost a hodně vrstev. */
.hero .btn-outline-white { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(18, 15, 12, 0.6); }
@media (max-width: 900px) {
    .sc-grain { display: none; }
    .navbar, .navbar.scrolled { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(14, 13, 12, 0.94) !important; }
    .navbar .nav-wrapper, .navbar.scrolled .nav-wrapper { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* Hero přes CSS scroll-driven animace (Chrome, Safari 26+): pohyb kamery, listů a textu běží
   mimo hlavní vlákno, takže se při scrollu netrhá. Jinde zůstává výpočet z --sc-p výše. */
@supports (animation-timeline: view()) {
    .hero { view-timeline: --hero block; view-timeline-inset: 0px; }
    .hero__plate, .hero__lamp, .hero__dust, .hero__leaves, .hero__copy--a, .hero__shade, .hero__scrim-b, .hero__copy--b {
        animation-timeline: --hero; animation-fill-mode: both; animation-timing-function: linear; animation-duration: auto;
    }
    .hero__plate { transform: scale(1.02); animation-name: hCam; animation-range: contain 0% contain 100%; }
    .hero__lamp { transform: scale(1.02); animation: lamp 7s ease-in-out infinite alternate, hCam linear both; animation-timeline: auto, --hero; animation-range: normal, contain 0% contain 100%; }
    .hero__dust { transform: none; animation-name: hDust; animation-range: contain 0% contain 100%; }
    .hero__leaves { transform: none; animation-name: hLeaves; animation-range: contain 0% contain 100%; }
    .hero__copy--a { opacity: 1; transform: none; animation-name: hOut; animation-range: contain 0% contain 30%; }
    .hero__shade { opacity: 1; animation-name: hFade; animation-range: contain 0% contain 45%; }
    .hero__scrim-b { opacity: 0; animation-name: hFadeIn; animation-range: contain 30% contain 63%; }
    .hero__copy--b { animation-name: hIn; animation-range: contain 42% contain 60%; }
}
.hero__copy--b { opacity: clamp(0, (var(--sc-p, 0) - 0.42) * 5.5, 1); }
/* druhý text je jen k přečtení; i neviditelný ležel přes tlačítka a bral jim kliknutí */
.hero__copy--b { pointer-events: none; }
@keyframes hCam { from { transform: scale(1.02); } to { transform: scale(1.64); } }
@keyframes hDust { to { transform: translate3d(0, -10vh, 0) scale(1.25); } }
@keyframes hLeaves { to { transform: translate3d(-26vw, 34vh, 0) scale(1.5); } }
@keyframes hOut { to { opacity: 0; transform: translate3d(0, -28px, 0); } }
@keyframes hFade { to { opacity: 0; } }
@keyframes hFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hIn { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .hero__plate, .hero__lamp, .hero__dust, .hero__leaves { animation: none !important; }
    .hero__copy--b { animation-name: hFadeIn; }
}

/* Pás služeb a „Jak to probíhá“ přes CSS scroll-driven animace (Chrome, Safari 26+). Posun pásu,
   čára, tečka i odkrývání kroků běží mimo hlavní vlákno, takže se na mobilu netrhají.
   Rozsahy jednotlivých kroků (animation-range) a vzdálenosti (--travel, --l0, --t0, --mapw)
   dopočítává JS při změně velikosti. Bez podpory zůstává JS verze (new.js).
   view-timeline-inset: 0, jinak by časová osa odečítala scroll-padding pod lištou a začínala o 72 px dřív. */
@supports (animation-timeline: view()) {
    .range { view-timeline: --range block; view-timeline-inset: 0px; }
    .range__rail { animation: rTrack linear both; animation-timeline: --range; animation-duration: auto; animation-range: contain 0% contain 100%; }

    .flow { view-timeline: --flow block; view-timeline-inset: 0px; }
    .flow__track { animation: fTrack linear both; animation-timeline: --flow; animation-duration: auto; animation-range: contain 0% contain 100%; }
    .flow__glow { animation: fGlow linear both; animation-timeline: --flow; animation-duration: auto; animation-range: contain 0% contain 100%; }
    .flow__line { animation: fLine linear both; animation-timeline: --flow; animation-duration: auto; }
    .flow__dot--tip { animation: fTip linear both; animation-timeline: --flow; animation-duration: auto; }
    .fstep__stem { animation: fScaleY linear both; animation-timeline: --flow; animation-duration: auto; }
    .fstep__dot { animation: fScale linear both; animation-timeline: --flow; animation-duration: auto; }
    .fstep__mask > span, .ln > span { animation: fUp linear both; animation-timeline: --flow; animation-duration: auto; }
}
@keyframes rTrack { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--rtravel, 0px) * -1), 0, 0); } }
@keyframes fTrack { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--travel, 0px) * -1), 0, 0); } }
@keyframes fGlow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-18vw, -8vh, 0); } }
@keyframes fLine { from { transform: scaleX(var(--l0, 0)); } to { transform: scaleX(1); } }
@keyframes fTip { from { transform: translate3d(var(--t0, 0px), 0, 0); } to { transform: translate3d(var(--mapw, 0px), 0, 0); } }
@keyframes fScaleY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fScale { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .range__rail, .flow__track, .flow__glow, .flow__line, .flow__dot--tip, .fstep__stem, .fstep__dot, .fstep__mask > span, .ln > span { animation: none !important; }
}

/* Otevřené mobilní menu: plovoucí lišta „Napište nám“ se schová (scroll zamyká main.js). */
.mobile-nav { overscroll-behavior: contain; }
body.nav-open .mbar { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
