/* FORMA Automatizace. Tři barvy: inkoust, papír a limetka jen pro živé věci. */
:root {
  --papir: #f4f1ea; --papir-2: #eae6db; --papir-3: #ded9cb; --pole: #fbfaf6;
  --inkoust: #141516; --inkoust-2: #26282b; --inkoust-60: #55585d;
  --tma-60: #b9b6ac; --limetka: #bcd645; --limetka-2: #cfe56a; --limetka-text: #526a0a;
  --nadpis: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --okraj: max(1.5rem, env(safe-area-inset-left, 0px));
  --sirka: calc(clamp(1640px, 82vw, 2000px) + 2 * var(--okraj));
  --sekce: clamp(64px, 9vw, 128px);
  --lista: 64px;
  --sluzby: 44px;
  --krivka: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { background: var(--papir); scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--papir-3) var(--papir); }
body { margin: 0; background: var(--papir); color: var(--inkoust); font: 400 1.0625rem/1.6 var(--text); overflow-x: clip; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2 { font-family: var(--nadpis); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-family: var(--nadpis); font-weight: 700; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--limetka-text); outline-offset: 2px; border-radius: 3px; }
.tma :focus-visible { outline-color: var(--limetka); }
::selection { background: var(--limetka); color: var(--inkoust); }
.skryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sirka { max-width: var(--sirka); margin-inline: auto; padding-inline: var(--okraj); }
.sluzby .sirka, .lista .sirka { max-width: none; }
.tma { background: var(--inkoust); color: var(--papir); }
.papir { background: var(--papir); color: var(--inkoust); }
.uvod { max-width: 58ch; margin-top: 18px; font-size: 1.125rem; color: var(--inkoust-60); }
.tma .uvod { color: var(--tma-60); }

.tlacitko { display: inline-block; border: 0; border-radius: 6px; min-height: 52px; padding: .8rem 1.4rem; font-size: 1rem; line-height: 1.2; background: var(--inkoust); color: var(--papir); font-weight: 600; text-align: center; text-decoration: none; transition: background-color .16s, transform .14s; }
.tlacitko:hover { background: var(--inkoust-2); }
.tlacitko:active { transform: scale(.98); }
.tlacitko:disabled { opacity: .55; cursor: wait; }
.tlacitko.limetka { background: var(--limetka); color: var(--inkoust); }
.tlacitko.limetka:hover { background: var(--limetka-2); }

/* Přepínač služeb */
.sluzby { background: var(--inkoust); color: var(--tma-60); font-size: .9rem; }
.sluzby-radek { display: flex; gap: 24px; }
.sluzby a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.sluzby a:hover { color: var(--papir); }
.sluzby a:focus-visible { outline-color: var(--limetka); }
.sluzby a[aria-current="page"] { color: var(--papir); font-weight: 600; box-shadow: inset 0 -2px 0 var(--limetka); }

/* Lišta */
.lista { position: sticky; top: 0; z-index: 20; background: var(--papir); color: var(--inkoust); box-shadow: 0 1px 0 var(--papir-3); padding-top: env(safe-area-inset-top, 0px); }
.lista-radek { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: var(--lista); }
.znacka { display: inline-flex; align-items: center; min-height: 44px; margin-left: -2px; transform: translateY(1px); font: 800 1.45rem/1 var(--text); font-stretch: 125%; letter-spacing: -.04em; text-decoration: none; }
.menu { display: flex; align-items: center; gap: 1.75rem; }
.menu a { text-decoration: none; }
.menu a:not(.zavolat) { color: var(--inkoust-60); }
.menu a:not(.zavolat):hover { color: var(--inkoust); text-decoration: underline; text-underline-offset: 6px; }
.zavolat { display: inline-flex; align-items: center; min-height: 44px; background: var(--inkoust); color: var(--papir); padding: 0 1rem; border-radius: 6px; font-size: .95rem; font-weight: 600; }

/* Úvodní film: bez skriptu je to první obraz a pod ním čtyři věty. Třída .zive přidá titulky přes film. */
.prolet { position: relative; }
.jeviste { position: relative; overflow: hidden; background: var(--pole); }
.film-obal { position: relative; height: calc(100svh - var(--lista) - var(--sluzby)); min-height: 480px; overflow: hidden; }
.film-obal picture { display: contents; }
.snimek { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; }
#film { opacity: 0; transition: opacity .3s; }
#film.bezi { opacity: 1; }
.prolet-zavoj { position: absolute; z-index: 2; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none; background: linear-gradient(90deg, rgb(244 241 234 / .92) 0%, rgb(244 241 234 / .66) 26%, rgb(244 241 234 / 0) 47%); }
.prolet-zavoj.videt { opacity: 1; }
.prolet-uvod { position: absolute; z-index: 3; inset: clamp(24px, 8vh, 96px) 0 auto; pointer-events: none; transition: opacity .35s; }
.prolet-uvod.schovat { opacity: 0; }
.prolet-uvod h1 { max-width: 6.6em; }
.prolet-uvod p { max-width: 24em; margin-top: 18px; font-size: 1.125rem; }
.vety { display: grid; gap: 18px; padding-block: 28px 8px; font-size: clamp(1.16rem, 1.8vw, 1.5rem); line-height: 1.3; }
.vety li { max-width: 13em; text-wrap: balance; }
.vety b { display: block; font: 800 clamp(2.2rem, 4.4vw, 3.8rem)/1.02 var(--nadpis); letter-spacing: -.02em; word-spacing: .05em; }
.prolet.zive .vety { position: absolute; z-index: 3; inset: 0; display: block; max-width: none; padding: 0; pointer-events: none; }
.prolet.zive .vety li { position: absolute; left: max(var(--okraj), calc((100% - var(--sirka)) / 2 + var(--okraj))); top: clamp(24px, 8vh, 96px); opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .5s var(--krivka); }
.prolet.zive .vety li.videt { opacity: 1; transform: none; }
.prolet-dole { position: absolute; z-index: 4; left: 0; right: 0; bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prolet:not(.zive) .prolet-dole { position: static; padding-block: 8px 56px; }
.film-ovladac { display: inline-flex; align-items: center; gap: 9px; min-height: 52px; border: 0; border-radius: 6px; padding: 0 16px; background: rgb(244 241 234 / .92); font-weight: 600; box-shadow: 0 6px 18px rgb(20 21 22 / .14); }
.film-ovladac:hover { background: var(--pole); }
.film-ovladac[hidden] { display: none; }
.film-ovladac i { flex: none; width: 12px; height: 14px; background: var(--inkoust); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* Agenti: papírový list najede přes dojetý film */
.agenti { position: relative; z-index: 2; padding-block: clamp(48px, 7vw, 96px) var(--sekce); border-radius: 28px 28px 0 0; }
.prolet + .agenti { margin-top: -28px; box-shadow: 0 -18px 40px rgb(20 21 22 / .1); }
.obory-pas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 34px; }
.obory-pas p { font-weight: 600; }
.obory { display: flex; flex-wrap: wrap; gap: 8px; }
.obor { min-height: 44px; border: 1.5px solid var(--inkoust); border-radius: 999px; padding: 8px 15px; background: transparent; font-weight: 600; font-size: .96rem; transition: background-color .16s, color .16s; }
.obor:hover { background: var(--papir-2); }
.obor[aria-pressed="true"] { background: var(--inkoust); color: var(--papir); }
.vybrana-veta { margin-top: 14px; color: var(--inkoust-60); }
.role-nadpis { margin-top: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.prohlidka { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.promitani { position: sticky; top: calc(var(--lista) + 20px); z-index: 3; }
.promitani-okno { position: relative; height: min(calc(100svh - var(--lista) - 48px), 680px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: var(--papir-2); box-shadow: 0 18px 44px rgb(20 21 22 / .14); }
.promitani video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .3s; }
.promitani video.vybrane { opacity: 1; pointer-events: auto; }
.radek-role { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 62svh; padding-block: 24px; box-shadow: 0 -1px 0 var(--papir-3); opacity: .5; transition: opacity .3s; }
.radek-role.vybrany { opacity: 1; }
.radek-role > a { align-self: flex-start; margin-top: 6px; font-weight: 600; }
.radek-role h3 { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; line-height: 1.2; }
.radek-role .radek-veta { font: 800 clamp(2.2rem, 4.4vw, 4.4rem)/1.04 var(--nadpis); letter-spacing: -.02em; text-wrap: balance; }
.radek-sloupce { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(20px, 3vw, 44px); margin-top: 8px; }
.radek-role svg { flex: none; width: 26px; height: 29px; }
.radek-role p { font-size: 1.0625rem; }
.radek-role b { display: block; font-weight: 600; }
.radek-role .sekundarni { color: var(--inkoust-60); }

/* Ukázky: kapitoly s místnostmi z filmu */
.ukazky { padding-block: 0 var(--sekce); }
.kapitola + .kapitola { margin-top: var(--sekce); }
.kapitola-obraz { position: relative; overflow: hidden; border-radius: 20px; background: var(--papir-2); }
.kapitola-obraz img { width: 100%; height: clamp(300px, 36vw, 520px); object-fit: cover; object-position: 50% 42%; }
.kapitola-obraz figcaption { position: absolute; z-index: 1; left: clamp(16px, 3vw, 36px); top: clamp(16px, 3vw, 36px); width: 31%; }
.kapitola-hlava { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 56px); align-items: end; }
.kapitola-hlava figure { overflow: hidden; border-radius: 20px; background: var(--papir-2); }
.kapitola-hlava img { width: 100%; height: clamp(220px, 24vw, 340px); object-fit: cover; object-position: 70% 60%; }
.poptavka-mrizka > *, .stul > *, .chat-mrizka > *, .uspora-mrizka > *, .otazky-mrizka > * { min-width: 0; }
.poptavka-mrizka { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 56px); margin-top: 30px; align-items: start; }
.vzorky { display: flex; flex-wrap: wrap; gap: 8px; }
.vzorek { min-height: 44px; border: 1.5px solid var(--inkoust); border-radius: 999px; padding: 7px 13px; background: transparent; font-size: .93rem; font-weight: 600; transition: background-color .16s, color .16s; }
.vzorek:hover { background: var(--papir-2); }
.vzorek[aria-pressed="true"] { background: var(--inkoust); color: var(--papir); }
.email { margin-block: 16px; padding: 18px; background: var(--pole); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .98rem; max-height: 300px; overflow-y: auto; box-shadow: 0 14px 34px rgb(20 21 22 / .1); scrollbar-color: var(--papir-3) transparent; scrollbar-width: thin; }
.vystup { padding: clamp(18px, 3vw, 30px); background: var(--pole); border-radius: 8px; min-height: 340px; box-shadow: 0 14px 34px rgb(20 21 22 / .1); }
.kroky { display: grid; gap: 6px; margin-bottom: 18px; }
.kroky li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: center; color: var(--inkoust-60); font-size: .96rem; }
.kroky li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--inkoust-60); }
.kroky li.hotovo-krok { color: var(--inkoust); }
.kroky li.hotovo-krok::before { background: var(--inkoust); border-color: var(--inkoust); }
.kroky li.preskok { text-decoration: line-through; }
.hlava-vystupu { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.stav { padding: 2px 9px; border-radius: 4px; font-size: .84rem; font-weight: 600; background: var(--inkoust); color: var(--papir); }
.stav.ok { background: var(--limetka); color: var(--inkoust); }
.stav.pozor { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--inkoust); box-shadow: inset 0 0 0 1.5px var(--inkoust); }
.stav.pozor::before, .spatne::before { content: ""; display: inline-block; width: .82em; height: .72em; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.data { width: 100%; border-collapse: collapse; font-size: .96rem; }
.data th { width: 36%; padding: 7px 12px 7px 0; color: var(--inkoust-60); font-weight: 400; text-align: left; vertical-align: top; }
.data td { padding: 7px 0; overflow-wrap: anywhere; }
.data tr + tr > * { box-shadow: 0 -1px 0 var(--papir-3); }
.cislo { font-variant-numeric: tabular-nums; }
.koncept { margin-top: 8px; padding: 14px 16px; background: var(--papir); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .97rem; }
.mezera { margin-top: 18px; }
.poznamka { margin-top: 12px; font-size: .9rem; color: var(--inkoust-60); }
.kod { display: block; margin-top: 8px; padding: 10px 12px; background: var(--papir); border-radius: 6px; font: 500 .78rem/1.6 var(--mono); overflow-x: auto; white-space: pre; scrollbar-color: var(--papir-3) transparent; scrollbar-width: thin; }

/* Hromádka faktur na stole */
.stul { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 4vw, 56px); margin-top: 28px; padding: clamp(18px, 4vw, 52px); border-radius: 20px; background: var(--papir-3) url(img/stul.webp) center / cover no-repeat; align-items: start; }
.stoh-obal { position: relative; }
.stoh { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.list-faktury { grid-area: 1 / 1; display: flex; flex-direction: column; aspect-ratio: 5 / 4; background: var(--pole); color: var(--inkoust); padding: clamp(16px, 3vw, 34px); box-shadow: 0 14px 30px rgb(20 21 22 / .22); font-size: clamp(.74rem, 1.15vw, .94rem); line-height: 1.5; will-change: transform; }
.list-faktury:nth-child(1) { rotate: 1.6deg; }
.list-faktury:nth-child(2) { rotate: -1.3deg; }
.list-faktury:nth-child(3) { rotate: .9deg; }
.list-faktury h3 { font-family: var(--text); font-weight: 600; font-size: 1.5em; margin-bottom: .3em; }
.list-faktury .strany { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em; margin-block: 1.1em; }
.list-faktury b { font-weight: 600; }
.list-faktury table { width: 100%; border-collapse: collapse; margin-top: .6em; }
.list-faktury td { padding: .35em 0; box-shadow: 0 1px 0 var(--papir-3); }
.list-faktury td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.list-faktury .souhrn { display: grid; justify-items: end; gap: .2em; margin-top: auto; padding-top: 1em; }
.list-faktury .celkem { font-size: 1.3em; font-weight: 600; }
.list-faktury [data-pole] { border-radius: 3px; transition: background-color .2s; }
.list-faktury [data-pole].precteno { background: rgb(188 214 69 / .55); }
.list-faktury.sken > * { filter: blur(1.6px) contrast(.8); }
.linka { position: absolute; left: -6px; right: -6px; top: 0; height: 3px; border-radius: 2px; background: var(--limetka-text); box-shadow: 0 6px 22px 6px rgb(188 214 69 / .6); opacity: 0; pointer-events: none; }
.stoh-konec { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font: 700 1.3rem/1.2 var(--nadpis); }
.stoh-konec[hidden] { display: none; }
.stul-pravo { display: grid; gap: 14px; }
.platby-uvod { max-width: 44rem; }
.vypis { align-self: start; padding: clamp(14px, 2.4vw, 26px); border-radius: 8px; background: var(--pole); box-shadow: 0 10px 24px rgb(20 21 22 / .12); }
.vypis h3 { margin-bottom: 8px; }
.vypis li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 9px 8px; border-radius: 4px; box-shadow: 0 -1px 0 var(--papir-3); transition: background-color .2s; }
.vypis li b { display: block; font-weight: 600; font-size: .96rem; line-height: 1.3; overflow-wrap: anywhere; }
.vypis li div span { color: var(--inkoust-60); font-size: .86rem; }
.vypis .castka { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.vypis .castka.odchozi, .vypis li.preskoceno b { color: var(--inkoust-60); font-weight: 400; }
.vypis .vysledek-radku { grid-column: 1 / -1; font-size: .86rem; font-weight: 600; }
.vypis .vysledek-radku:empty { display: none; }
.vypis li.cte, .vypis li.sparovano { background: rgb(188 214 69 / .35); }
.vypis li.nejiste .vysledek-radku::before { content: ""; display: inline-block; width: .82em; height: .72em; margin-right: 6px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.vypis li.preskoceno .vysledek-radku { color: var(--inkoust-60); font-weight: 400; }
.vydane li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 7px; }
.vydane li.aktivni { background: rgb(188 214 69 / .35); }
.vydane li div { min-width: 0; }
.vydane .stav { flex: none; }
.stav.ceka { background: var(--papir-2); color: var(--inkoust); }
.upominka-pro { margin-top: 14px; font-size: 1rem; font-weight: 600; }
.prihradky { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.prihradka { min-height: 132px; padding: 12px; border-radius: 8px; background: var(--pole); box-shadow: 0 10px 24px rgb(20 21 22 / .12); }
.prihradka h3 { font-size: 1.02rem; margin-bottom: 8px; }
.prihradka li { padding-block: 5px; box-shadow: 0 -1px 0 var(--papir-3); font-size: .86rem; line-height: 1.3; overflow-wrap: anywhere; }
.prihradka li b { display: block; font-weight: 600; }
.prihradka li span { color: var(--inkoust-60); }
.stul-pravo .data { background: var(--pole); border-radius: 8px; box-shadow: 0 10px 24px rgb(20 21 22 / .12); }
.stul-pravo .data th { padding-left: 12px; }
.stul-pravo .data td { padding-right: 12px; }
.spatne { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.dobre { color: var(--limetka-text); font-weight: 600; }
td.prazdne { color: var(--inkoust-60); }
#vysledek-faktury:not(:empty), #vysledek-platby:not(:empty) { margin-top: 18px; padding: 16px 18px; border-radius: 8px; background: var(--pole); box-shadow: 0 14px 34px rgb(20 21 22 / .1); }

/* Chat */
.chat-mrizka { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: stretch; }
.chat-obraz { position: relative; overflow: hidden; border-radius: 20px; background: var(--papir-2); }
.chat-obraz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 88% 50%; }
.chat { display: flex; flex-direction: column; height: 520px; max-height: 78svh; margin-top: 22px; overflow: hidden; border-radius: 20px; background: var(--pole); box-shadow: 0 14px 34px rgb(20 21 22 / .1); }
.chat-hlava { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; box-shadow: 0 1px 0 var(--papir-3); }
.chat-hlava svg { flex: none; width: 22px; height: 24px; color: var(--inkoust); }
.zpravy { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 9px; padding: 18px 14px; overflow-y: auto; scrollbar-color: var(--papir-3) transparent; scrollbar-width: thin; }
.zpravy > :first-child { margin-top: auto; }
.zprava { max-width: 86%; padding: 9px 13px; border-radius: 12px; background: var(--papir-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .98rem; }
.zprava.ja { align-self: flex-end; background: var(--limetka); }
.navrhy { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.navrh { min-height: 44px; border: 1.5px solid var(--inkoust); border-radius: 999px; padding: 6px 12px; background: transparent; font-size: .92rem; text-align: left; transition: background-color .16s; }
.navrh:hover { background: var(--papir-2); }
.zapis { margin-top: 18px; }
.zapis:empty { display: none; }
#chat-form { display: flex; gap: 8px; padding: 12px 14px; box-shadow: 0 -1px 0 var(--papir-3); }
#chat-form input { flex: 1; min-width: 0; border: 1.5px solid var(--inkoust-60); border-radius: 6px; padding: 10px 12px; background: var(--papir); }
#chat-form input::placeholder { color: var(--inkoust-60); opacity: 1; }
.veta input::placeholder { color: var(--tma-60); opacity: 1; }

/* Váš stůl */
.vas-stul { position: relative; overflow: hidden; background: var(--papir); }
.stul-obraz { width: 100%; height: clamp(560px, 56vw, 860px); object-fit: cover; object-position: 50% 60%; }
.stul-obsah { position: absolute; inset: clamp(28px, 5vw, 72px) 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 24px clamp(24px, 4vw, 56px); align-items: start; }
.na-stole { position: relative; padding: clamp(18px, 2.4vw, 28px) clamp(16px, 2.4vw, 26px) clamp(16px, 2.4vw, 26px); border-radius: 8px; background: var(--pole); box-shadow: 0 18px 36px rgb(20 21 22 / .16); }
.na-stole-popis { font-weight: 600; }
.ukol { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding-block: 12px; box-shadow: 0 1px 0 var(--papir-3); }
.ukol b { font-weight: 600; }
.ukol p { grid-column: 1; color: var(--inkoust-60); font-size: .94rem; }
.ukol button { grid-column: 2; grid-row: 1 / span 2; min-width: 92px; border: 1.5px solid var(--inkoust); border-radius: 6px; padding: 8px 12px; background: transparent; font-weight: 600; font-size: .94rem; transition: background-color .16s, border-color .16s; }
.ukol button:hover { background: var(--papir-2); }
.ukol button[aria-pressed="true"] { background: var(--limetka); border-color: var(--limetka); }
.ukol.hotove b, .ukol.hotove p { color: var(--inkoust-60); text-decoration: line-through; }

/* Další příklady: věty majitelů, po rozbalení co udělá agent a příklad výstupu */
.dalsi { padding-block: var(--sekce) 0; }
.dalsi-hlava { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px clamp(22px, 4vw, 56px); align-items: end; }
.dalsi-hlava > * { min-width: 0; }
.dalsi-hlava .uvod { margin-top: 0; }
.prace { margin-top: clamp(24px, 3vw, 36px); box-shadow: 0 1px 0 var(--papir-3); }
.prace-radek { box-shadow: 0 -1px 0 var(--papir-3); }
.prace-radek summary { display: grid; grid-template-columns: minmax(0, 1fr) auto .9rem; align-items: center; gap: 4px clamp(14px, 3vw, 32px); padding-block: clamp(16px, 2.2vw, 26px); cursor: pointer; list-style: none; transition: background-color .18s; }
.prace-radek summary::-webkit-details-marker { display: none; }
.prace-radek summary:hover { background: var(--papir-2); }
.prace-radek summary::after { content: ""; width: .6rem; height: .6rem; border: solid var(--inkoust); border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); transition: transform .25s ease-out; }
.prace-radek[open] summary::after { transform: translateY(20%) rotate(-135deg); }
.prace-radek h3 { font-weight: 800; font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.prace-nazev { color: var(--inkoust-60); font-size: .96rem; white-space: nowrap; }
.prace-telo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 56px); align-items: start; padding-block: 4px clamp(30px, 4vw, 46px); }
.prace-telo > * { min-width: 0; }
.prace-text h4, .prace-vzor h4 { margin: 0; font-size: 1rem; font-weight: 600; }
.prace-text p { max-width: 52ch; margin-top: 2px; color: var(--inkoust-60); }
.prace-text p + h4 { margin-top: 16px; }
.prace-text .tlacitko { margin-top: 22px; }
.prace-vzor { padding: clamp(16px, 2.4vw, 26px); background: var(--pole); border-radius: 8px; box-shadow: 0 14px 34px rgb(20 21 22 / .1); }
.prace-vzor h4 { margin-bottom: 8px; color: var(--inkoust-60); font-weight: 400; font-size: .92rem; }
.prace-konec { max-width: 58ch; margin-top: 20px; color: var(--inkoust-60); }
.prace-konec a { color: var(--inkoust); font-weight: 600; }

/* Programy, které majitel zná */
.nastroje { padding-block: var(--sekce) 0; }
.nastroje-seznam { margin: clamp(24px, 3vw, 36px) 0 0; box-shadow: 0 1px 0 var(--papir-3); }
.nastroje-seznam > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 4px clamp(18px, 3vw, 40px); align-items: baseline; padding-block: clamp(14px, 1.8vw, 20px); box-shadow: 0 -1px 0 var(--papir-3); }
.nastroje-seznam dt { color: var(--inkoust-60); }
.nastroje-seznam dd { min-width: 0; margin: 0; }
.nastroje-seznam b { display: block; font: 700 clamp(1.25rem, 2.5vw, 1.95rem)/1.18 var(--nadpis); letter-spacing: -.01em; word-spacing: .05em; text-wrap: pretty; }
.nastroje-seznam span { display: block; margin-top: 4px; color: var(--inkoust-60); font-size: .94rem; }

/* Čas */
.uspora, .postup, .otazky { padding-block: var(--sekce); }
.uspora-mrizka { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.pole { display: grid; gap: 4px; margin-top: 22px; }
.pole label { font-weight: 600; }
.pole div { display: flex; align-items: center; gap: 14px; }
.pole input { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.pole input::-webkit-slider-runnable-track { height: 14px; background: repeating-linear-gradient(90deg, var(--inkoust-60) 0 1px, transparent 1px 5%) 0 100% / 100% 7px no-repeat, linear-gradient(var(--inkoust-60), var(--inkoust-60)) 0 100% / 100% 1.5px no-repeat; }
.pole input::-moz-range-track { height: 14px; background: repeating-linear-gradient(90deg, var(--inkoust-60) 0 1px, transparent 1px 5%) 0 100% / 100% 7px no-repeat, linear-gradient(var(--inkoust-60), var(--inkoust-60)) 0 100% / 100% 1.5px no-repeat; }
.pole input::-webkit-slider-thumb { width: 8px; height: 26px; margin-top: -11px; border: 0; border-radius: 4px; background: var(--inkoust); -webkit-appearance: none; appearance: none; }
.pole input::-moz-range-thumb { width: 8px; height: 26px; border: 0; border-radius: 4px; background: var(--inkoust); }
.pole output { min-width: 80px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.vysledek { padding: clamp(24px, 4vw, 44px); border-radius: 20px; background: var(--limetka); }
.velke { margin-block: 8px 10px; font: 800 clamp(2.9rem, 7.4vw, 5.6rem)/1 var(--nadpis); letter-spacing: -.02em; word-spacing: .05em; font-variant-numeric: tabular-nums; }
.vysledek .tlacitko { margin-top: 18px; }

/* Postup a otázky */
.postup, .otazky { padding-top: 0; }
.kroky-postup { counter-reset: krok; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 34px; }
.kroky-postup li { counter-increment: krok; }
.kroky-postup li::before { content: counter(krok); display: block; margin-bottom: 8px; font: 800 clamp(2.4rem, 5vw, 4rem)/1 var(--nadpis); }
.kroky-postup p { margin-top: 8px; color: var(--inkoust-60); }
.otazky-mrizka { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 5vw, 72px); }
.otazky details { padding-block: 15px; box-shadow: 0 1px 0 var(--papir-3); }
.otazky summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem; }
.otazky summary::-webkit-details-marker { display: none; }
.otazky summary::after { content: ""; flex: none; width: .6rem; height: .6rem; margin-right: .3rem; border: solid var(--inkoust); border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); transition: transform .25s ease-out; }
.otazky details[open] summary::after { transform: translateY(20%) rotate(-135deg); }
.otazky details p { max-width: 66ch; margin-top: 8px; color: var(--inkoust-60); }

/* Kontakt: tmavý list najede přes předchozí papír */
.kontakt { position: relative; margin-top: -28px; padding-block: clamp(24px, 4vw, 56px) var(--sekce); border-radius: 28px 28px 0 0; }
.kontakt figcaption { color: var(--inkoust); }
.veta-form { margin-top: 26px; }
.past { position: absolute; left: -9999px; }
.veta { font: 700 clamp(1.5rem, 3.5vw, 2.8rem)/1.5 var(--nadpis); letter-spacing: -.01em; }
.veta input { width: min(100%, 11em); caret-color: var(--limetka); border: 0; border-bottom: 3px solid var(--tma-60); background: transparent; color: var(--limetka); font: inherit; padding: 0 .1em; border-radius: 0; }
.veta input:focus { border-bottom-color: var(--limetka); outline: 0; }
#f-prace { width: min(100%, 17em); }
.kontakt-radek { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-top: 26px; }
.kontakt-radek > div { display: grid; gap: 4px; flex: 1 1 260px; max-width: 420px; }
.kontakt-radek input { border: 1.5px solid var(--tma-60); border-radius: 6px; padding: 13px; background: transparent; color: var(--papir); }
.soukromi { max-width: 66ch; margin-top: 16px; font-size: .92rem; color: var(--tma-60); }
.kdo { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start; max-width: 74ch; margin-top: clamp(34px, 5vw, 52px); padding-top: 24px; box-shadow: 0 -1px 0 rgb(244 241 234 / .14); color: var(--tma-60); font-size: .98rem; }
.kdo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.kdo b { display: block; margin-bottom: 2px; color: var(--papir); font-weight: 600; }
.paticka { padding-block: 26px 34px; box-shadow: 0 -1px 0 rgb(244 241 234 / .14); font-size: .92rem; color: var(--tma-60); }
.paticka .sirka { display: grid; grid-template-columns: auto minmax(0, 68ch); gap: 10px 32px; }
.paticka-text { display: grid; gap: 10px; }
.paticka-odkazy { display: flex; flex-wrap: wrap; gap: 0 20px; }
.paticka-odkazy a { display: inline-flex; align-items: center; min-height: 44px; }
.paticka-znacka { color: var(--papir); font: 800 1.3rem/1.3 var(--text); font-stretch: 125%; letter-spacing: -.04em; }

@media (min-width: 901px) {
  .prolet:not(.zive) .vety { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .stul-obsah { position: static; grid-template-columns: minmax(0, 1fr); padding-block: 26px var(--sekce); }
  .stul-obraz { height: 420px; }
}
@media (max-width: 900px) {
  .poptavka-mrizka, .stul, .uspora-mrizka, .otazky-mrizka, .chat-mrizka, .kapitola-hlava, .dalsi-hlava, .prace-telo, .nastroje-seznam > div { grid-template-columns: minmax(0, 1fr); }
  .kapitola-obraz { display: flex; flex-direction: column-reverse; background: none; border-radius: 0; }
  .kapitola-obraz img { border-radius: 12px; }
  .kapitola-obraz figcaption { position: static; width: auto; margin-bottom: 16px; color: inherit; }
  .chat-obraz { aspect-ratio: 16 / 9; }
  .kroky-postup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .menu a:not(.zavolat) { display: none; }
  .prolet-zavoj { background: linear-gradient(180deg, rgb(244 241 234 / .94) 0%, rgb(244 241 234 / .8) 26%, rgb(244 241 234 / 0) 46%); }
  .prolet-zavoj.kratky { background: linear-gradient(180deg, rgb(244 241 234 / .94) 0%, rgb(244 241 234 / .7) 16%, rgb(244 241 234 / 0) 28%); }
  .prolet-uvod { top: 18px; }
  .prolet-uvod h1 { max-width: none; }
  .prolet-uvod p { margin-top: 12px; font-size: 1rem; }
  .prolet-dole { flex-wrap: nowrap; bottom: 44px; }
  .prolet-dole .tlacitko { flex: 1; width: auto; }
  .film-ovladac span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .film-ovladac { justify-content: center; width: 52px; padding: 0; }
  .prolet.zive .vety li { top: 18px; }
  .vety b { font-size: 2.3rem; }
  .prace-radek summary { grid-template-columns: minmax(0, 1fr) .9rem; }
  .prace-radek summary::after { grid-area: 1 / 2; }
  .prace-nazev { grid-column: 1; white-space: normal; }
  .obory { display: grid; flex: 1 1 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .obor { padding: 7px 4px; }
  .kapitola-obraz img { height: 240px; object-position: 70% 40%; }
  .stul { padding: 14px; }
  .kapitola-hlava figure, .stul, .chat, .chat-obraz, .vysledek { border-radius: 12px; }
  .paticka .sirka { grid-template-columns: minmax(0, 1fr); }
  .kroky-postup { grid-template-columns: minmax(0, 1fr); }
  .tlacitko { width: 100%; }
  #chat-form .tlacitko { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Na telefonu video zůstává nahoře a řádky jedou pod ním */
@media (max-width: 899px) {
  .prohlidka { display: block; }
  .promitani { top: var(--lista); display: flex; justify-content: center; margin-inline: calc(var(--okraj) * -1); padding-block: 8px 12px; background: var(--papir); box-shadow: 0 10px 14px -10px rgb(20 21 22 / .18); }
  .promitani-okno { height: min(46svh, 420px); border-radius: 12px; box-shadow: 0 0 0 1px var(--papir-3); }
  .radek-role { min-height: 58svh; justify-content: flex-start; }
  .radek-role .radek-veta { font-size: clamp(1.7rem, 7.4vw, 2.6rem); }
  .radek-sloupce { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
}

/* Stejná mřížka a písmo jako na hlavní stránce */
@media (min-width: 760px) {
  :root { --okraj: max(3rem, env(safe-area-inset-left, 0px)); --lista: 68px; }
  body { font-size: 1.1rem; }
}
@media (max-width: 759px) {
  .menu a:not(.zavolat) { display: none; }
}
@media (min-width: 1500px) {
  h1 { font-size: clamp(5.2rem, 4.7vw, 7.6rem); }
}
