/* Barvy a písma na jednom místě. Tlumená ocelová modrá jako akcent, žádná zelená ani červená,
   žádná sytá tmavě modrá plocha přes celou šířku. */
:root {
  --bg: #ffffff;
  --text: #1a1f26;          /* grafitová, ne námořnická */
  --ink: var(--text);
  --muted: #5c5955;         /* vedlejší text: teplá šedá, dost tmavá i na malé písmo */
  --muted-line: #8a8580;    /* čára „Teď“ v grafu (přerušovaná), okraje ovládacích prvků */
  --line: #e3e1dd;          /* tenké linky */
  --line-silna: var(--muted-line);
  --accent: #386694;        /* tlačítka, postup, vybraná volba, čára „V našem týmu“ */
  --accent-hover: #2c5277;
  --accent-tmava: var(--accent-hover);
  --accent-tint: #eaf1f8;   /* podklad vybrané volby, páska „V našem týmu“, zvýrazněné číslo */
  --accent-ink: #ffffff;
  --highlight: #c77d0a;     /* jen bod, kde se křivky protnou */
  --papir: #f4f3f0;         /* páska „Teď“ */
  --chyba: #8a4b00;         /* chybové hlášky: tmavá jantarová, žádná červená */
  --chyba-tint: #fbf1df;
  --hrana: 6px;

  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --plynule: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--consent-h, 0px) + 24px); }
/* na telefonu je dole přilepený panel s tlačítky, fokus pod něj nesmí zajet */
@media (max-width: 959px) { html:has(#app[data-druh='q']) { scroll-padding-bottom: calc(var(--consent-h, 0px) + 180px); } }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-tint); color: var(--text); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skok { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 16px; }
.skok:focus { top: 12px; }

/* ---------- hlavička a patička ---------- */
.hlava { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.znacka { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; display: inline-flex; align-items: center; min-height: 28px; }
.znacka span { font-weight: 400; color: var(--muted); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-silna); }
.hlava__pozn { display: none; font-size: 14px; color: var(--muted); }
.pata { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: space-between; align-items: center; padding: 14px 20px calc(18px + var(--consent-h, 0px)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.pata a { color: var(--ink); display: inline-block; padding: 12px 0; }
.pata__tl { background: none; border: 0; padding: 12px 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ---------- rozvržení (nejdřív telefon) ---------- */
.app { width: 100%; padding: 22px 20px 56px; }
.app[data-druh='q'] { padding-bottom: calc(190px + var(--consent-h, 0px)); }
.sloupec { min-width: 0; }
.vedle { display: none; }

.postup { margin-bottom: 22px; }
.postup__text { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.postup__lista { height: 3px; background: var(--line); margin-bottom: 10px; }
.postup__plna { height: 100%; width: 4%; background: var(--accent); transition: width 0.4s var(--plynule); }

.nadtitul { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.krok__nadpis { font-weight: 700; font-stretch: 82%; font-size: clamp(2rem, 1.4rem + 3vw, 2.9rem); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; outline: none; }
.krok__pod { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.pole-seznam { display: grid; gap: 34px; margin-top: 30px; }

@keyframes nahoru { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.krok--prichod { animation: nahoru 0.24s var(--plynule) both; }

/* ---------- pole ---------- */
.pole { display: grid; gap: 12px; min-width: 0; }
.pole__label { font-weight: 600; font-size: 1.06rem; line-height: 1.3; }
.pole__hint { margin-top: -6px; font-size: 15px; color: var(--muted); }
.nepovinne { margin-left: 8px; font-weight: 400; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.chyba { font-size: 15px; font-weight: 600; color: var(--chyba); }
.chyba:empty { display: none; }
.blok { display: grid; gap: 26px; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.blok__nadpis { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.proc { font-size: 15px; color: var(--muted); }
.proc summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.proc summary::-webkit-details-marker { display: none; }
.proc p { padding: 2px 0 6px; max-width: 48ch; }

.odkaz { display: inline-flex; align-items: center; min-height: 48px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 15.5px; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.odkaz:hover { color: var(--accent-tmava); }

/* volby (velká tlačítka) */
.volby { display: grid; gap: 8px; }
.volba { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; text-align: left; background: var(--bg); border: 1.5px solid var(--line-silna); border-radius: var(--hrana); cursor: pointer; font-weight: 600; font-size: 1.02rem; line-height: 1.3; transition: background-color 0.12s, border-color 0.12s, color 0.12s; }
.volba:hover { border-color: var(--ink); }
.volba__text { display: grid; gap: 2px; min-width: 0; }
.volba__pod { font-weight: 400; font-size: 15px; color: var(--muted); }
.volba__znak { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-silna); border-radius: 50%; display: grid; place-items: center; }
.volba--vice .volba__znak { border-radius: 4px; }
.volba[aria-checked='true'] { background: var(--accent-tint); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.volba[aria-checked='true'] .volba__pod { color: var(--muted); }
.volba[aria-checked='true'] .volba__znak { border-color: var(--accent); background: var(--accent); }
.volba[aria-checked='true'] .volba__znak::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.volba--vice[aria-checked='true'] .volba__znak::after { width: 11px; height: 6px; border-radius: 0; background: none; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.volby--dve { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.volby--dve .volba { justify-content: center; text-align: center; }
.volby--dve .volba__znak { display: none; }
.volby--dlazdice { grid-template-columns: 1fr 1fr; }
.volby--dlazdice .volba { min-height: 112px; flex-direction: column-reverse; align-items: stretch; justify-content: space-between; }
.volby--dlazdice .volba__znak { align-self: flex-end; }
.volby--stitky { display: flex; flex-wrap: wrap; }
.volby--stitky .volba { width: auto; min-height: 52px; }
.volby--stitky .volba__znak { display: none; }

/* štítky (rychlé volby) */
.stitky { display: flex; flex-wrap: wrap; gap: 8px; }
.stitek { min-height: 48px; min-width: 56px; padding: 0 16px; background: var(--bg); border: 1.5px solid var(--line-silna); border-radius: var(--hrana); cursor: pointer; font-weight: 600; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color 0.12s, border-color 0.12s, color 0.12s; }
.stitek:hover:not(:disabled) { border-color: var(--ink); }
.stitek[aria-pressed='true'], .stitek[aria-checked='true'] { background: var(--accent-tint); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.stitek:disabled { opacity: 0.35; cursor: not-allowed; }
.stitky--velke .stitek { min-height: 52px; }

/* krokovač */
.pocet { display: grid; gap: 12px; }
.pocet__rada { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; max-width: 340px; }
.pocet__btn { width: 60px; height: 60px; background: var(--bg); border: 1.5px solid var(--ink); border-radius: var(--hrana); cursor: pointer; font-size: 30px; font-weight: 400; line-height: 1; display: grid; place-items: center; transition: background-color 0.12s, color 0.12s; }
.pocet__btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.pocet__btn:active:not(:disabled) { transform: scale(0.96); }
.pocet__btn:disabled { border-color: var(--line); color: var(--line-silna); cursor: not-allowed; }
.pocet__hodnota { text-align: center; white-space: nowrap; }
.pocet__cislo, .castka__hodnota { font-weight: 700; font-stretch: 80%; font-size: 2.9rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pocet__jednotka { font-size: 15px; color: var(--muted); }

/* posuvník */
.castka { display: grid; gap: 4px; }
.castka__hodnota { margin-bottom: 2px; }
.castka__posuvnik { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.castka__posuvnik::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--line) var(--p, 0%)); }
.castka__posuvnik::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -13px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--accent); }
.castka__posuvnik::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.castka__posuvnik::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.castka__posuvnik::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--accent); }
.castka__posuvnik:focus-visible { outline: none; }
.castka__posuvnik:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-tint), 0 0 0 6.5px var(--accent); }
.castka__posuvnik:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-tint), 0 0 0 6.5px var(--accent); }
.castka__meze { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -6px; }

/* textová pole */
.presne { display: grid; gap: 8px; margin-top: 4px; }
.vstup { position: relative; display: flex; align-items: center; max-width: 340px; }
.vstup--text { max-width: none; }
.vstup__pole { width: 100%; min-height: 56px; padding: 0 64px 0 14px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--line-silna); border-radius: var(--hrana); font: 600 1.25rem/1 var(--font); font-variant-numeric: tabular-nums; appearance: none; -webkit-appearance: none; }
.vstup--text .vstup__pole { padding-right: 14px; font-size: 1.1rem; font-weight: 500; }
.vstup__pole::placeholder { color: #77736e; font-weight: 400; }
.vstup__pole:hover { border-color: var(--ink); }
.vstup__pole:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.vstup__pole[aria-invalid='true'] { border-color: var(--chyba); }
.vstup__jednotka { position: absolute; right: 14px; color: var(--muted); pointer-events: none; }
.rychle { display: grid; gap: 10px; }

/* ---------- tlačítka a spodní panel ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border-radius: var(--hrana); border: 1.5px solid transparent; cursor: pointer; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: background-color 0.12s, border-color 0.12s; }
.btn--hlavni { background: var(--accent); color: var(--accent-ink); }
.btn--hlavni:hover:not(:disabled) { background: var(--accent-tmava); }
.btn--hlavni:disabled { opacity: 0.6; cursor: progress; }
.btn--zpet { background: var(--bg); color: var(--ink); border-color: var(--line-silna); font-weight: 600; }
.btn--zpet:hover { border-color: var(--ink); }
.btn--velke { min-height: 64px; padding: 0 34px; font-size: 1.15rem; }
.btn--male { min-height: 48px; padding: 0 16px; font-size: 0.98rem; }

.dok { position: fixed; z-index: 20; left: 0; right: 0; bottom: var(--consent-h, 0px); background: var(--bg); border-top: 1.5px solid var(--ink); padding: 0 16px calc(12px + env(safe-area-inset-bottom)); }
.dok__paska { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0; background: none; border: 0; border-bottom: 1px dashed var(--line-silna); cursor: pointer; font: 500 13px/1 var(--mono); text-align: left; }
.dok__paska-nazev { color: var(--muted); white-space: nowrap; }
.dok__paska-castka { margin-left: auto; font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dok__paska-akce { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-family: var(--font); font-weight: 600; font-size: 14px; }
.dok__pozn { font-size: 13.5px; line-height: 1.4; color: var(--muted); padding-top: 10px; }
.dok__chyba { padding-top: 8px; }
.dok__tlacitka { display: flex; gap: 10px; padding-top: 10px; }
.dok__tlacitka .btn--hlavni { flex: 1; }
.dok--formular { position: static; border-top: 1px solid var(--line); padding: 14px 0 0; }

/* ---------- výplatní páska ---------- */
.paska { --pb: var(--papir); --pl: rgba(26, 31, 38, 0.3); --pm: var(--muted); position: relative; background: var(--pb); color: var(--ink); padding: 18px 18px 16px; margin-bottom: 8px; font: 400 13.5px/1.45 var(--mono); }
.paska::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; background: linear-gradient(135deg, var(--pb) 25%, transparent 25%) 0 0 / 8px 8px repeat-x, linear-gradient(225deg, var(--pb) 25%, transparent 25%) 0 0 / 8px 8px repeat-x; }
.paska__hlava { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paska__titul { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.paska__stitek { background: var(--ink); color: #fff; padding: 2px 8px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; }
.paska__obdobi { color: var(--pm); font-size: 12px; padding: 4px 0 12px; border-bottom: 1px dashed var(--pl); }
.paska__radek { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dotted var(--pl); }
.paska__nazev { min-width: 0; }
.paska__popisek { display: block; font-size: 12px; color: var(--pm); }
.paska__castka { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.paska__radek--duch { color: var(--pm); opacity: 0.6; }
@keyframes novy-radek { from { background: rgba(56, 102, 148, 0.2); } to { background: transparent; } }
.paska__radek--novy { animation: novy-radek 1.1s ease-out both; }
.paska__celkem { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: -1px; padding-top: 12px; border-top: 2px solid currentColor; }
.paska__celkem-text { font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.paska__celkem-castka { font: 700 1.9rem/1 var(--font); font-stretch: 80%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paska__rozdil { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 8px 10px; background: var(--bg); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.paska__rozdil-cislo { font: 700 1.25rem/1.25 var(--font); font-stretch: 80%; letter-spacing: -0.01em; text-transform: none; white-space: nowrap; color: var(--accent); }

.paska__mimo { margin-top: 18px; padding-top: 10px; border-top: 1px dashed var(--pl); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pm); }
.paska__radky--dalsi .paska__radek { padding: 8px 0; }
.paska__konecne { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; font-weight: 600; }
.paska__pata { margin-top: 12px; font-size: 11.5px; color: var(--pm); }
.paska--unas { --pb: var(--accent-tint); --pl: rgba(26, 31, 38, 0.3); --pm: var(--muted); border-top: 3px solid var(--accent); }
.paska--unas .paska__stitek { background: var(--accent); color: #fff; font-weight: 600; }

.zvyrazneni { background: var(--accent-tint); color: var(--accent); padding: 0 0.14em; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.list { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgba(26, 31, 38, 0.45); }
.list__panel { width: 100%; max-height: 82dvh; overflow-y: auto; background: var(--bg); padding: 12px 16px calc(28px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(26, 31, 38, 0.25); animation: nahoru 0.22s var(--plynule) both; }
.list__hlava { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.list__titul { font-weight: 700; }

/* ---------- úvod ---------- */
.uvod__nadpis { font-size: clamp(2.6rem, 1.5rem + 5.6vw, 4.6rem); font-stretch: 78%; line-height: 0.98; letter-spacing: -0.035em; }
.uvod__text { margin-top: 20px; font-size: 1.12rem; max-width: 50ch; }
.uvod__akce { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.uvod__pro { font-size: 15px; color: var(--muted); }
.soukromi { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); max-width: 56ch; }
.uvod__paska { margin-top: 32px; }
@media (max-width: 520px) { .uvod__akce .btn { width: 100%; } }

/* ---------- výsledek ---------- */
.vysledek__nadpis { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.3rem); line-height: 1.08; }
.vysledek__pozn { margin-top: 28px; font-size: 15px; color: var(--muted); }
.vysledek__cisla { margin-top: 14px; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vysledek__proc { margin-top: 16px; }
.vysledek__obrat { margin-top: 20px; }
.druhe { margin-top: 26px; padding: 18px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 1.12rem; line-height: 1.4; max-width: 58ch; }
.druhe__nadpis { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* když součet nevyjde vyšší, je tohle hlavní sdělení výsledku */
.druhe--duraz { padding: 20px; border: 0; border-left: 4px solid var(--accent); background: var(--accent-tint); max-width: none; }
.druhe--duraz .druhe__nadpis { color: var(--accent); }
.druhe__cislo { display: inline-block; margin: 2px 0; vertical-align: baseline; font-weight: 700; font-stretch: 80%; font-size: clamp(2rem, 1.3rem + 3vw, 2.9rem); line-height: 1.05; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
/* když ze starých smluv chodí teď víc, číslo není výhoda: bez zvýraznění a s důvodem */
.druhe--mene .druhe__cislo { display: inline; margin: 0; font-size: inherit; font-stretch: normal; line-height: inherit; letter-spacing: 0; color: var(--text); }
.druhe__proc { margin-top: 10px; font-size: 1rem; color: var(--muted); }
/* tým: s kým se počítá a co je navíc */
.duraz { margin-top: 14px; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--accent-tint); font-weight: 600; max-width: 58ch; }
.duraz + .fakta { margin-top: 14px; }
.navic { margin-top: 22px; padding: 18px 16px; border-left: 4px solid var(--accent); background: var(--accent-tint); max-width: 58ch; }
.navic__nadpis { margin: 0 0 6px; font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.navic p + p { margin-top: 8px; }
.vysledek__bez { margin-top: 8px; max-width: 58ch; font-size: 15px; font-weight: 600; color: var(--text); }

/* graf po letech */
.graf { margin-top: 34px; }
.graf__hlava { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.graf__titul { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.graf__legenda { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.graf__klic { display: inline-flex; align-items: center; gap: 8px; }
.graf__klic::before { content: ''; width: 26px; height: 0; border-top: 2.5px dashed var(--muted-line); }
.graf__klic--unas::before { border-top: 3px solid var(--accent); }
.graf__plocha { position: relative; height: 180px; border-bottom: 1.5px solid var(--ink); }
.graf__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.graf__cara { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.graf__cara--ted { stroke: var(--muted-line); stroke-width: 2.5; stroke-dasharray: 7 6; }
.graf__cara--unas { stroke: var(--accent); stroke-width: 3.5; }
.graf__znacka { position: absolute; width: 0; height: 0; pointer-events: none; }
.graf__bod { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--highlight); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--highlight); }
.graf__popisek { position: absolute; left: 14px; bottom: 12px; white-space: nowrap; font-size: 13.5px; font-weight: 700; background: var(--bg); padding: 1px 6px; }
.graf__znacka--vlevo .graf__popisek { left: auto; right: 14px; }
.graf__znacka--bezbodu { left: 3%; top: 0; }
.graf__znacka--bezbodu .graf__popisek { left: 0; bottom: auto; top: -24px; }
.graf__roky { position: relative; height: 20px; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.graf__roky li { position: absolute; top: 0; transform: translateX(-50%); }
.graf__osa { margin-top: 4px; font-size: 13px; color: var(--muted); }
.cisla, .jak { margin-top: 12px; }
.cisla summary, .jak summary { display: inline-flex; align-items: center; min-height: 48px; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 15.5px; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.cisla summary::-webkit-details-marker, .jak summary::-webkit-details-marker { display: none; }
.cisla__obal { overflow-x: auto; }
.cisla__tabulka { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.cisla__tabulka th, .cisla__tabulka td { padding: 8px 0 8px 12px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; font-weight: 400; }
.cisla__tabulka th:first-child { text-align: left; padding-left: 0; }
.cisla__tabulka thead th { border-top: 0; font-size: 13px; color: var(--muted); }
.cisla__tabulka .plus { font-weight: 700; }
.jak { margin-top: 28px; }
.jak .seznam { padding: 6px 0 4px; font-size: 15.5px; }
.obdobi { display: grid; gap: 4px; }
.pasky { display: grid; gap: 30px; margin-top: 18px; align-items: start; }
/* na telefonu jde odměna (páska „V našem týmu“) nahoru, ať je vidět hned */
@media (max-width: 719px) { .pasky__druha { order: -1; } }
@keyframes vysun { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.pasky__druha--vysun { animation: vysun 0.55s 0.25s var(--plynule) both; }
.fakta { margin-top: 40px; border-bottom: 1px solid var(--line); }
.fakt { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.fakt dt { color: var(--muted); }
.fakt dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.oddil { margin: 38px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.zazemi { width: 100%; border-collapse: collapse; }
.zazemi th, .zazemi td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.zazemi thead th { border-top: 0; padding-top: 0; font-size: 13px; color: var(--muted); }
.zazemi td, .zazemi thead th:not(:first-child) { width: 72px; }
.anone--ano { font-weight: 700; }
.anone--ne { color: var(--muted); }
.odstavec { max-width: 56ch; }
.odstavec + .odstavec { margin-top: 10px; }
.fakta + .odstavec { margin-top: 16px; }
.oddil + .fakta { margin-top: 0; }
.seznam { display: grid; gap: 10px; max-width: 60ch; }
.seznam li { position: relative; padding-left: 20px; }
.seznam li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--accent); }
.poznamka { margin-top: 28px; padding: 14px 16px; background: var(--papir); }
.vysledek__akce { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 40px; padding-top: 28px; border-top: 1.5px solid var(--ink); }
@media (max-width: 520px) { .vysledek__akce .btn { width: 100%; margin-bottom: 8px; } }

/* ---------- kontakt a poděkování ---------- */
.osoba { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.osoba__foto { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--accent); color: #fff; display: grid; place-items: center; }
.osoba__iniciala { font-weight: 700; font-size: 1.6rem; font-stretch: 80%; }
.osoba__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.osoba__text { display: grid; }
.osoba__text span { font-size: 15px; color: var(--muted); }
/* ve formuláři má chybová hláška vyhrazený řádek, aby po opuštění pole nic neposkočilo pod prstem */
.kontakt .chyba, .kontakt .chyba:empty { display: block; min-height: 1.5em; }
.kontakt .pole-seznam { gap: 12px; margin-top: 24px; }
.kontakt .pole { gap: 8px; }
.souhlas { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 15.5px; line-height: 1.45; min-height: 48px; }
.souhlas input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.past { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.upozorneni { padding: 14px 16px; background: var(--chyba-tint); color: var(--chyba); font-weight: 600; }
.diky .osoba { margin-top: 26px; }

/* ---------- cookies ---------- */
.consent { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; font-size: 14.5px; }
.consent p { flex: 1 1 200px; }
.consent a { color: #fff; }
.consent__tlacitka { display: flex; gap: 8px; flex: 1 1 auto; }
.consent .btn { flex: 1 1 0; min-height: 48px; padding: 0 14px; font-size: 14.5px; }
/* Přijmout je širší a plné. Jen nezbytné zůstává vedle něj, na jedno klepnutí, a nikdy se nezmenší pod svůj text. */
.consent .btn--svetle { flex: 1 1 0; background: #fff; color: var(--ink); font-weight: 700; }
.consent .btn--obrys { flex: 0 0 auto; background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); font-weight: 600; }

/* ---------- náhled pro manažerku ---------- */
.nahled-lista { background: #ffd84a; color: #2c2300; text-align: center; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.nahled-tlacitko { position: fixed; z-index: 45; right: 12px; top: 64px; min-height: 48px; padding: 0 18px; border: 1.5px solid #2c2300; border-radius: var(--hrana); background: #ffd84a; color: #2c2300; font-weight: 700; cursor: pointer; }
dialog { color: var(--ink); font: inherit; border: 0; padding: 0; background: var(--bg); }
dialog::backdrop { background: rgba(26, 31, 38, 0.45); }
.nahled-panel { margin: 0 0 0 auto; width: min(480px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; }
.nahled-panel[open], .nahled-okno[open] { display: flex; flex-direction: column; }
.nahled-okno { width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.nahled__hlava { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1.5px solid var(--ink); }
.nahled__hlava h2 { font-weight: 700; font-stretch: 82%; font-size: 1.5rem; letter-spacing: -0.02em; }
.nahled__telo { flex: 1; overflow-y: auto; padding: 16px 20px 28px; }
.nahled__uvod { font-size: 15px; color: var(--muted); }
.nahled__skupina { padding: 18px 0 6px; margin-top: 10px; border-top: 1px solid var(--line); }
.nahled__skupina h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.nahled__pozn { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.nahled__radek { display: grid; grid-template-columns: 1fr 130px; align-items: center; gap: 12px; padding: 6px 0; }
.nahled__radek--text { grid-template-columns: 1fr; gap: 6px; }
.nahled__popis { font-size: 15px; line-height: 1.3; display: grid; }
.nahled__popis small { font-size: 12.5px; color: var(--muted); }
.nahled__radek input { width: 100%; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line-silna); border-radius: var(--hrana); font: 600 16px/1 var(--font); font-variant-numeric: tabular-nums; background: var(--bg); color: var(--ink); }
.nahled__radek input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.nahled__radek.je-zmena input { border-color: var(--accent); background: var(--accent-tint); }
.nahled__radek.je-zmena .nahled__popis { font-weight: 700; }
.nahled__radek.je-chyba input { border-color: var(--chyba); }
.nahled__zaskrt { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.nahled__zaskrt input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.nahled__pata { border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.nahled__tlacitka { display: flex; gap: 8px; }
.nahled__tlacitka .btn { flex: 1; }
.nahled__stav { font-size: 14px; font-weight: 600; color: var(--accent); }
.nahled__stav:empty { display: none; }
.nahled__kopie { width: 100%; min-height: 160px; margin-top: 16px; font: 12px/1.4 var(--mono); }
.mapa { margin-top: 18px; display: grid; gap: 16px; }
.mapa__uzel { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.mapa__uzel--m, .mapa__uzel--o, .mapa__uzel--prod { margin-left: 22px; }
.mapa__cislo { width: 32px; height: 32px; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 13px/1 var(--mono); }
.mapa__nazev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mapa__pruh { font-size: 12px; font-weight: 600; padding: 2px 8px; background: var(--papir); }
.mapa__pruh--m { background: var(--accent); color: #fff; }
.mapa__pruh--o { background: var(--ink); color: #fff; }
.mapa__pruh--prod { background: var(--accent-tint); }
.mapa__kdy { font-size: 13.5px; color: var(--muted); margin: 2px 0 6px; }
.mapa__pole { display: grid; gap: 4px; font-size: 14px; }
.mapa__pole code { font: 600 12px/1 var(--mono); background: var(--papir); padding: 3px 6px; }
.mapa__typ { color: var(--muted); }

/* ---------- zásady ---------- */
.dokument { max-width: 720px; margin: 0 auto; padding: 32px 20px 72px; }
.dokument h1 { font-weight: 700; font-stretch: 80%; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 16px; }
.dokument h2 { font-weight: 700; font-size: 1.2rem; margin: 34px 0 8px; }
.dokument p + p { margin-top: 10px; }
.dokument .uvodni { color: var(--muted); font-size: 1.1rem; }
.dokument dl { display: grid; gap: 4px 20px; }
.dokument ul { margin: 10px 0; padding-left: 22px; list-style: disc; }
.dokument li + li { margin-top: 6px; }
.dokument code { font-family: 'IBM Plex Mono', monospace; font-size: 0.95em; }
.dokument .plati { margin-top: 28px; color: var(--muted); font-size: 15px; }
.dokument dt { color: var(--muted); font-size: 15px; margin-top: 8px; }
.doplnit { background: #fff1a8; padding: 1px 6px; font-weight: 600; }

/* ---------- větší obrazovky ---------- */
@media (min-width: 720px) {
  .hlava { padding: 16px 32px; }
  .hlava__pozn { display: block; }
  .pata { padding: 16px 32px calc(20px + var(--consent-h, 0px)); }
  .pasky { grid-template-columns: 1fr 1fr; gap: 24px; }
  @keyframes vysun { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
  .consent { left: auto; right: 24px; bottom: 24px; max-width: 380px; padding: 16px 18px; }
  .nahled-tlacitko { top: 76px; bottom: auto; right: 24px; }
}
@media (min-width: 960px) {
  .app, .app[data-druh='q'] { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(40px, 7vw, 104px); align-items: start; max-width: 1180px; margin: 0 auto; padding: 56px 40px 96px; }
  .sloupec { max-width: 600px; }
  .vedle { display: block; position: sticky; top: 32px; }
  .app[data-druh='result'], .app[data-druh='contact'], .app[data-druh='thanks'] { grid-template-columns: minmax(0, 1fr); }
  .app[data-druh='result'] .vedle, .app[data-druh='contact'] .vedle, .app[data-druh='thanks'] .vedle { display: none; }
  .app[data-druh='result'] .sloupec { max-width: 860px; margin: 0 auto; width: 100%; }
  .app[data-druh='contact'] .sloupec, .app[data-druh='thanks'] .sloupec { margin: 0 auto; width: 100%; }
  .uvod__paska { display: none; }
  .dok { position: static; margin-top: 44px; padding: 0; border-top: 1px solid var(--line); }
  .dok__paska { display: none; }
  .dok__tlacitka { padding-top: 22px; justify-content: space-between; }
  .dok__tlacitka .btn--hlavni { flex: none; min-width: 240px; }
  .dok__pozn { padding-top: 16px; max-width: 52ch; }
  .list { display: none !important; }
  .consent { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
.consent :focus-visible { outline-color: #fff; }
