/* CLeo – účetní kancelář · design tokens v2.2 (29. 10. 2026). Stejné hodnoty jako cleo.tokens.json. */
:root {
  --color-ink: #0B241C;
  --color-primary: #0E4D3A;
  --color-mint: #CFEBDD;
  --color-paper: #FFFFFF;
  --color-mist: #F2F8F5;
  --color-fresh: #3DBE8B;
  --color-action: #FF6A2B;
  --color-action-hover: #E8551A;
  --color-on-action: #FFFFFF;
  --color-neutral: #56695F;
  --color-line: #DCE8E1;
  --color-ok: #1D7A4F;
  --color-bad: #A12A2A;
  --color-dark-bg: #0A1C16;
  --color-dark-surface: #123128;
  --color-dark-text: #EAF5EF;
  --color-dark-primary: #7FD8AE;
  --color-dark-neutral: #9DB3AA;
  --color-dark-line: #21433A;
  --font-heading: Onest, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: Figtree, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --size-display: 64px;
  --size-h1: 48px;
  --size-h1-mobile: 36px;
  --size-h2: 34px;
  --size-h3: 24px;
  --size-text-lg: 20px;
  --size-text: 18px;
  --size-text-sm: 15px;
  --size-button: 17px;
  --size-label: 13px;
  --lh-display: 1.15;
  --lh-h1: 1.15;
  --lh-h2: 1.2;
  --lh-h3: 1.3;
  --lh-text-lg: 1.5;
  --lh-text: 1.55;
  --lh-text-sm: 1.5;
  --lh-button: 1.3;
  --lh-label: 1.3;
  --letter-spacing-heading: -0.03em;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --button-height: 48px;
  --touch-target: 44px;
  --content-max: 1200px;
  --text-max: 680px;
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-max: 600ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Sémantické role (světlý režim) */
  --bg: var(--color-paper);
  --bg-section: var(--color-mist);
  --surface: var(--color-paper);
  --surface-accent: var(--color-mint);
  --text: var(--color-ink);
  --text-muted: var(--color-neutral);
  --heading: var(--color-primary);
  --border: var(--color-line);
}

/* Tmavý režim: oranžová zůstává stejná */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--color-dark-bg);
    --bg-section: var(--color-dark-bg);
    --surface: var(--color-dark-surface);
    --surface-accent: var(--color-dark-surface);
    --text: var(--color-dark-text);
    --text-muted: var(--color-dark-neutral);
    --heading: var(--color-dark-primary);
    --border: var(--color-dark-line);
  }
}

/* Self-hosted Onest + Figtree (SIL OFL). latin-ext covers Czech diacritics. */
@font-face{font-family:"Onest";font-weight:700;font-style:normal;font-display:swap;src:url("/fonts/onest-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest";font-weight:700;font-style:normal;font-display:swap;src:url("/fonts/onest-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Figtree";font-weight:400;font-style:normal;font-display:swap;src:url("/fonts/figtree-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-weight:400;font-style:normal;font-display:swap;src:url("/fonts/figtree-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Figtree";font-weight:600;font-style:normal;font-display:swap;src:url("/fonts/figtree-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-weight:600;font-style:normal;font-display:swap;src:url("/fonts/figtree-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* tastemaker · macrostructure: Panel Stack (brief-fixed order) + full-bleed future band · nav: floating pill bar (brand manual mock) · hero: split text card + photo card · footer: brand panel with legal ledger · mood: warm/approachable (brand-locked, no generated palette) · contrast: brand matrix, orange button 2.86:1 accepted by manual · arc: hook > how it works > solution (připravujeme) > offer > proof (1994, dva Leové) > close · critique: ShowTell 3 · Phil 4 · Hier 4 · Spec 4 · Restr 5 · Var 4 · ColorHarm 5 · MoodTone 4 · Type 4 · Spatial 4 · Pref 4 */
/* CLeo, web. Hodnoty jen z tokens.css (vloženo nad tímto souborem). Mobile first. */

:root {
  --gutter: var(--space-12);
  --pad: var(--space-24);
  --panel-max: calc(var(--content-max) + 2 * var(--space-64));
  --head-h: 64px;
  --h2: calc(var(--size-h2) * .85);
  --focus: var(--heading);
  --card: var(--surface-accent);       /* karta na bílém panelu */
  --chip: var(--surface);              /* štítek na mátě */
}
@media (prefers-color-scheme: dark) {
  :root {
    --card: color-mix(in srgb, var(--color-dark-surface), var(--color-dark-primary) 10%);
    --chip: color-mix(in srgb, var(--color-dark-surface), var(--color-dark-primary) 18%);
  }
}
@media (min-width: 640px) { :root { --gutter: var(--space-16); --pad: var(--space-48); --h2: var(--size-h2); } }
@media (min-width: 1024px) { :root { --gutter: var(--space-24); --pad: var(--space-64); } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--space-32)); }
body {
  margin: 0; background: var(--bg-section); color: var(--text);
  font: var(--font-weight-regular) var(--size-text)/var(--lh-text) var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  margin: 0; font-family: var(--font-heading); font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-heading); color: var(--heading); text-wrap: balance;
}
h2 { font-size: var(--h2); line-height: var(--lh-h2); }
h3 { font-size: var(--size-text-lg); line-height: var(--lh-h3); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }
.skip {
  position: absolute; left: var(--space-16); top: -100px; z-index: 100; padding: var(--space-12) var(--space-16);
  background: var(--surface); color: var(--heading); border-radius: var(--radius-pill); font-weight: var(--font-weight-semibold);
}
.skip:focus { top: var(--space-16); }

/* dvojité podtržení: jen pod klíčovým slovem nadpisu */
.u {
  text-decoration: underline double var(--color-fresh);
  text-decoration-thickness: .07em; text-underline-offset: .14em; text-decoration-skip-ink: none;
}

/* štítek (pilulka) */
.tag {
  display: inline-flex; align-self: flex-start; justify-self: start; width: fit-content; align-items: center; min-height: 28px; padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-pill); background: var(--card); color: var(--heading);
  font-size: var(--size-label); line-height: var(--lh-label); font-weight: var(--font-weight-semibold);
}

/* tlačítka: oranžová pilulka = hlavní akce, obrys = vedlejší */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: var(--button-height); padding: 0 var(--space-24); border-radius: var(--radius-pill);
  font: var(--font-weight-semibold) var(--size-button)/var(--lh-button) var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}
.btn .ic { width: 20px; height: 20px; flex: none; }
.btn-action { background: var(--color-action); color: var(--color-on-action); border: 2px solid var(--color-action); }
@media (hover: hover) { .btn-action:hover { background: var(--color-action-hover); border-color: var(--color-action-hover); } }
.btn-ghost { background: transparent; color: var(--heading); border: 2px solid var(--heading); }
@media (hover: hover) { .btn-ghost:hover { background: var(--card); } }
.btn:active { scale: .96; }
.btn { transition-property: background-color, color, border-color, scale; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-12); }

/* ------------------------------------------------------------------ hlavička */
.head { position: sticky; top: var(--space-12); z-index: 50; margin: var(--space-12) var(--gutter) 0; }
.head-bar {
  position: relative; display: flex; align-items: center; gap: var(--space-8);
  max-width: var(--panel-max); height: var(--head-h); margin: 0 auto; padding: 0 var(--space-8) 0 var(--space-24);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.brand { display: flex; align-items: center; color: var(--heading); margin-right: auto; padding: var(--space-8) 0; border-radius: var(--radius-sm); }
.brand .wm { height: 30px; width: auto; }
.brand .lu { fill: var(--color-fresh); }
.nav { display: none; }
.nav ul { display: flex; gap: var(--space-4); }
.nav a {
  display: block; padding: var(--space-8) var(--space-16); border-radius: var(--radius-pill);
  color: var(--heading); font-weight: var(--font-weight-semibold); font-size: var(--size-text-sm);
  text-decoration: none; white-space: nowrap; transition: background-color var(--duration-fast) var(--ease-standard);
}
@media (hover: hover) { .nav a:hover { background: var(--bg-section); } }
.head-call { min-height: var(--touch-target); padding: 0 var(--space-16); }
.head-call:not(.is-action) { background: transparent; color: var(--heading); border: 2px solid var(--heading); }
@media (hover: hover) { .head-call:not(.is-action):hover { background: var(--card); } }
.head-call.is-action { background: var(--color-action); color: var(--color-on-action); border: 2px solid var(--color-action); }
@media (hover: hover) { .head-call.is-action:hover { background: var(--color-action-hover); border-color: var(--color-action-hover); } }
.head-call-num { display: none; }
.burger {
  display: grid; place-items: center; width: var(--touch-target); height: var(--touch-target);
  border: 0; border-radius: var(--radius-pill); background: var(--bg-section); color: var(--heading); cursor: pointer;
}
.burger .ic { width: 22px; height: 22px; grid-area: 1 / 1; }
.burger .i-close, .burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }
.drawer {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--space-8));
  padding: var(--space-16) var(--space-24) var(--space-24); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
}
.drawer[hidden] { display: none; }
.drawer-nav a {
  display: block; padding: var(--space-12) 0; color: var(--heading); text-decoration: none;
  font: var(--font-weight-bold) var(--size-h3)/var(--lh-h3) var(--font-heading); letter-spacing: var(--letter-spacing-heading);
}
.drawer-contact { display: grid; gap: var(--space-8); margin-top: var(--space-16); padding-top: var(--space-16); border-top: 1px solid var(--border); }
.drawer-contact a { display: flex; align-items: center; gap: var(--space-12); min-height: var(--touch-target); color: var(--heading); font-weight: var(--font-weight-semibold); text-decoration: none; }
.drawer-contact .ic { width: 20px; height: 20px; }
@media (min-width: 960px) {
  .nav { display: block; }
  .burger, .drawer { display: none !important; }
  .head-call-num { display: inline; }
  .head-call-short { display: none; }
  .head-call { padding: 0 var(--space-24) 0 var(--space-16); }
}

/* ------------------------------------------------------------------ panely sekcí */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); padding: var(--gutter) var(--gutter) 0; }
.sec {
  width: 100%; max-width: var(--panel-max); margin: 0 auto; padding: var(--pad);
  background: var(--surface); border-radius: var(--radius-xl);
}
.sec-head { max-width: var(--text-max); margin-bottom: var(--space-32); }
@media (min-width: 1024px) { .sec-head { margin-bottom: var(--space-48); } }

/* ------------------------------------------------------------------ hero */
.hero { width: 100%; max-width: var(--panel-max); margin: 0 auto; }
.hero-card { padding: var(--pad); background: var(--surface); border-radius: var(--radius-xl); }
/* Maskot Saldo (zadání 9. 11. 2026): na mobilu pod fajfkami (~180 px), od 768 px vpravo vedle textu (~340 px).
   Vždy celý, nikdy přes text, kolem aspoň 40 px volného místa. */
.hero-saldo { display: block; width: auto; height: 180px; margin: var(--space-48) auto 0; }
@media (min-width: 768px) {
  .hero-card.has-saldo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--space-48); align-items: center; }
  .hero-saldo { height: 340px; margin: 0 auto; }
}
/* H1 je jedna věta, na desktopu na jeden řádek (velikost drží v mezích tokenů h1 mobil až display) */
.hero-h {
  margin-top: var(--space-24); font-size: clamp(var(--size-h1-mobile), calc(3.6vw + .5rem), var(--size-display));
  line-height: var(--lh-display);
}
.hero-lead { max-width: 60ch; margin-top: var(--space-24); font-size: var(--size-text-lg); line-height: var(--lh-text-lg); }
.hero .actions { margin-top: var(--space-32); }
.hero-tel { margin-top: var(--space-12); color: var(--text-muted); font-size: var(--size-text-sm); line-height: var(--lh-text-sm); }
.ticks { display: flex; flex-wrap: wrap; gap: var(--space-12) var(--space-24); margin-top: var(--space-32); }
.ticks li { display: flex; align-items: center; gap: var(--space-8); color: var(--heading); font-weight: var(--font-weight-semibold); font-size: var(--size-text-sm); }
.tick { width: 18px; height: 17px; flex: none; color: var(--color-action); overflow: visible; }
.tick-green { color: var(--color-fresh); }
@media (min-width: 1024px) { .hero-card { padding-block: var(--space-96); } }

/* ------------------------------------------------------------------ jak to funguje */
.steps { display: grid; gap: var(--space-32); counter-reset: s; }
.step { position: relative; display: grid; align-content: start; grid-template-columns: 48px 1fr; column-gap: var(--space-16); row-gap: var(--space-8); }
.step-n {
  grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--color-primary); color: var(--color-paper);
  font: var(--font-weight-bold) var(--size-h3)/1 var(--font-heading);
}
.step h3 { padding-top: var(--space-8); }
.step p { color: var(--text-muted); }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 23px; top: 60px; bottom: calc(-1 * var(--space-24));
  border-left: 2px dashed var(--border);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-32); }
  .step { grid-template-columns: 1fr; row-gap: var(--space-12); }
  .step-n { grid-row: auto; margin-bottom: var(--space-12); }
  .step h3 { padding-top: 0; }
  .step:not(:last-child)::before { left: 64px; right: var(--space-16); top: 23px; bottom: auto; border-left: 0; border-top: 2px dashed var(--border); }
}

/* ------------------------------------------------------------------ připravujeme (tmavě zelená) */
/* Jediné vědomé vybočení ze systému panelů: pás „Připravujeme“ jde od kraje ke kraji.
   Je to jediná sekce o budoucnosti, tak se jako jediná vymyká rámečku. */
.soon {
  margin-inline: calc(-1 * var(--gutter)); padding: var(--space-64) var(--gutter);
  background: var(--color-primary); color: var(--color-paper);
}
.soon-in { display: grid; gap: var(--space-32); max-width: var(--panel-max); margin: 0 auto; padding-inline: var(--pad); }
.soon h2, .soon h3 { color: var(--color-paper); }
.tag-dark { background: var(--color-paper); color: var(--color-primary); }
.soon h2 { margin-top: var(--space-24); }
.soon-lead { margin-top: var(--space-16); font-size: var(--size-text-lg); line-height: var(--lh-text-lg); max-width: 34ch; }
.soon-note { margin-top: var(--space-24); color: var(--color-mint); font-size: var(--size-text-sm); line-height: var(--lh-text-sm); max-width: 44ch; }

/* účtenka v hledáčku: ukazuje „vyfotíte v mobilu“ bez předstírané aplikace */
.shot { display: grid; place-items: center; }
.vf { position: relative; padding: var(--space-24) clamp(var(--space-16), 6vw, var(--space-32)); }
.vf > i { position: absolute; width: var(--space-32); height: var(--space-32); border: 3px solid var(--color-mint); }
.vf > i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; border-top-left-radius: var(--radius-sm); --dx: calc(-1 * var(--space-8)); --dy: calc(-1 * var(--space-8)); }
.vf > i:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; border-top-right-radius: var(--radius-sm); --dx: var(--space-8); --dy: calc(-1 * var(--space-8)); }
.vf > i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-bottom-left-radius: var(--radius-sm); --dx: calc(-1 * var(--space-8)); --dy: var(--space-8); }
.vf > i:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-bottom-right-radius: var(--radius-sm); --dx: var(--space-8); --dy: var(--space-8); }
.rcpt {
  position: relative; display: grid; gap: var(--space-12); width: min(216px, 62vw);
  padding: var(--space-24) var(--space-24) var(--space-32); background: var(--color-paper);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x,
                linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x,
                linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat;
}
.rc-head { justify-self: center; width: 44%; height: 10px; margin-bottom: var(--space-8); border-radius: var(--radius-pill); background: var(--color-primary); }
.rc-row, .rc-sum { display: flex; justify-content: space-between; gap: var(--space-16); }
.rc-row b, .rc-sum b { display: block; height: 8px; border-radius: var(--radius-pill); background: var(--color-line); }
.rc-row b:first-child { width: var(--w); }
.rc-row b:last-child { width: 18%; }
.rc-sum { align-items: center; margin-top: var(--space-4); padding-top: var(--space-12); border-top: 2px dashed var(--color-line); }
.rc-sum b { height: 10px; background: var(--color-primary); }
.rc-sum b:first-child { width: 34%; }
.rc-sum b:last-child { width: 26%; }
.vf > .tick { position: absolute; right: calc(-1 * var(--space-4)); bottom: calc(var(--space-48) + var(--space-4)); width: 44px; height: 41px; }
@media (min-width: 1024px) { .rcpt { width: 256px; } }

.pcards { display: grid; gap: var(--space-12); }
.pcard {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--space-16); align-items: center;
  padding: var(--space-12) var(--space-24) var(--space-12) var(--space-12); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-paper) 7%, transparent);
}
.pcard-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--color-mint); color: var(--color-primary); }
.pcard-ic .ic { width: 28px; height: 28px; }
.pcard h3 { font-size: var(--size-text-lg); }
.pcard p { color: var(--color-mint); font-size: var(--size-text-sm); line-height: var(--lh-text-sm); margin-top: var(--space-4); }
@media (min-width: 1024px) {
  .soon { padding-block: var(--space-96); }
  .soon-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-64); row-gap: var(--space-64); align-items: center; }
  .pcards { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcard { align-items: start; }
}

/* ------------------------------------------------------------------ služby: živnostník, s.r.o., pro oba */
.scards { display: grid; gap: var(--space-12); }
.scard { display: flex; flex-direction: column; gap: var(--space-24); padding: var(--space-24); border-radius: var(--radius-lg); background: var(--card); }
.scard-top { display: flex; align-items: center; gap: var(--space-16); }
.scard-ic {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--chip); color: var(--heading);
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.scard-ic .ic { width: 28px; height: 28px; }
@media (hover: hover) { .scard:hover .scard-ic { background: var(--color-primary); color: var(--color-paper); } }
.scard h3 { font-size: var(--size-h3); }
.scard-list { display: grid; gap: var(--space-8); color: var(--heading); }
@media (min-width: 640px) { .scard-list { font-size: var(--size-text-lg); line-height: var(--lh-text-lg); } }
@media (min-width: 768px) {
  .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scard { padding: var(--space-32); }
  .scard-wide { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ pro koho */
.who { background: transparent; display: grid; gap: var(--space-24); padding-block: var(--space-48); }
.who-sub { margin-top: var(--space-12); color: var(--text-muted); font-size: var(--size-text-lg); line-height: var(--lh-text-lg); max-width: 40ch; }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.pills li {
  padding: var(--space-8) var(--space-16); border-radius: var(--radius-pill); background: var(--surface);
  border: 1px solid var(--border); color: var(--heading); font-weight: var(--font-weight-semibold); font-size: var(--size-text-sm);
}
@media (min-width: 1024px) {
  .who { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-64); align-items: center; padding-block: var(--space-64); }
}

/* ------------------------------------------------------------------ cena */
.price { display: grid; gap: var(--space-32); }
.price-lead { margin-top: var(--space-16); max-width: var(--text-max); }
.price-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-16) var(--space-24); margin-top: var(--space-32); }
.price-cta p { max-width: 32ch; color: var(--text-muted); font-size: var(--size-text-sm); line-height: var(--lh-text-sm); }
.slip { padding: var(--space-32); border-radius: var(--radius-xl); background: var(--card); }
.slip-h { font-size: var(--size-h3); }
.slip-list { display: grid; gap: var(--space-16); margin-top: var(--space-24); }
.slip-list li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-12); align-items: start; color: var(--heading); font-weight: var(--font-weight-semibold); }
.slip-list .tick { width: 22px; height: 20px; margin-top: 4px; }
@media (min-width: 1024px) {
  .price { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-64); align-items: center; }
}

/* ------------------------------------------------------------------ o nás */
.about { background: transparent; padding-inline: 0; }
.about .sec-head { padding-inline: var(--pad); }
.leos { display: grid; gap: var(--gutter); }
.about-sub { margin-top: var(--space-12); color: var(--text-muted); font-size: var(--size-text-lg); line-height: var(--lh-text-lg); }
.leo { padding: var(--pad); background: var(--surface); border-radius: var(--radius-xl); }
.leo-year {
  font: var(--font-weight-bold) var(--size-h1)/var(--lh-h1) var(--font-heading); letter-spacing: var(--letter-spacing-heading);
  color: var(--heading);
}
.leo-school { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--size-text-sm); line-height: var(--lh-text-sm); }
.leo h3 { margin-top: var(--space-24); }
.leo-txt { margin-top: var(--space-8); }
.about-foot { display: grid; gap: var(--space-32); margin-top: var(--space-48); padding-inline: var(--pad); }
.about-quote { max-width: none; font-size: var(--size-text-lg); line-height: var(--lh-text-lg); color: var(--heading); }
.since {
  font: var(--font-weight-bold) var(--h2)/var(--lh-h2) var(--font-heading); letter-spacing: var(--letter-spacing-heading); color: var(--heading);
}
.ringed { position: relative; display: inline-block; white-space: nowrap; padding-inline: .44em .34em; margin-inline-start: -.1em; margin-inline-end: .08em; }  /* kroužek nesmí zasáhnout do tečky */
@media (max-width: 767px) { .about-quote { text-wrap: balance; } }
.ring {
  position: absolute; left: 0; top: -.22em; width: 100%; height: calc(100% + .44em);
  max-width: none; color: var(--color-action); overflow: visible; pointer-events: none;
}
.ring path { stroke-width: 3px; }
@media (min-width: 768px) { .leos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .about-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* ------------------------------------------------------------------ kontakt */
.contact { background: var(--surface-accent); display: grid; gap: var(--space-32); }
.contact-copy p { margin-top: var(--space-16); max-width: 40ch; }
.addr {
  display: inline-flex; align-items: flex-start; gap: var(--space-8); margin-top: var(--space-24); padding-block: var(--space-4);
  color: var(--heading); font-weight: var(--font-weight-semibold); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px;
}
@media (hover: hover) { .addr:hover { text-decoration-thickness: 2px; } }
.addr .ic { width: 22px; height: 22px; flex: none; margin-top: 2px; }
/* Saldo telefonuje: jen desktop, na mobilu se obrázek nestahuje (<picture> s průhledným gifem) */
.contact-saldo { display: none; }
@media (min-width: 768px) {
  .contact-saldo { display: block; margin-top: var(--space-48); }
  .contact-saldo img { display: block; width: auto; height: 280px; }
}
.ccards { display: grid; gap: var(--space-12); }
.ccard { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-24); border-radius: var(--radius-lg); background: var(--chip); }
.ccard a { display: flex; align-items: center; gap: var(--space-12); min-height: var(--touch-target); color: var(--heading); text-decoration: none; }
@media (hover: hover) { .ccard a:hover span { text-decoration: underline; } }
.ccard .ic { width: 22px; height: 22px; flex: none; }
.ccard-tel { font: var(--font-weight-bold) var(--size-h3)/var(--lh-h3) var(--font-heading); letter-spacing: var(--letter-spacing-heading); }
.ccard-mail { font-weight: var(--font-weight-semibold); overflow-wrap: anywhere; }
.ccards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
@media (min-width: 1024px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-64); align-items: center; }
  .contact .ccards { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ patička */
.foot { padding: var(--gutter); }
.foot-in {
  max-width: var(--panel-max); margin: 0 auto; padding: var(--pad); border-radius: var(--radius-xl);
  background: var(--color-primary); color: var(--color-paper);
}
.foot-top { display: grid; gap: var(--space-16); padding-bottom: var(--space-32); }
.foot-logo { width: 196px; height: auto; }
.foot-claim { color: var(--color-mint); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); font-weight: var(--font-weight-semibold); }
.foot-links a { text-decoration: none; min-height: var(--touch-target); display: inline-flex; align-items: center; }
@media (hover: hover) { .foot-links a:hover { text-decoration: underline; } }
.foot-legal { display: grid; gap: var(--space-8); padding-top: var(--space-24); border-top: 1px solid color-mix(in srgb, var(--color-paper) 18%, transparent); color: var(--color-mint); font-size: var(--size-label); line-height: var(--lh-text-sm); }
.foot-legal strong { color: var(--color-paper); font-weight: var(--font-weight-semibold); }
.foot-meta { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); margin-top: var(--space-8); }
.foot-meta a { color: var(--color-paper); }
.foot-made a { font-weight: var(--font-weight-semibold); letter-spacing: .04em; text-decoration: none; }
@media (hover: hover) { .foot-made a:hover { text-decoration: underline; } }
@media (min-width: 768px) { .foot-made { margin-inline-start: auto; } }
.foot :focus-visible, .soon :focus-visible { outline-color: var(--color-mint); }
@media (min-width: 1024px) {
  .foot-top { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-32); }
}

/* ------------------------------------------------------------------ právní stránky, 404 */
.legal-page { max-width: calc(var(--text-max) + 2 * var(--pad)); }
.prose h1 { font-size: clamp(var(--size-h1-mobile), 4vw, var(--size-h1)); line-height: var(--lh-h1); }
.prose h2 { font-size: var(--size-h3); line-height: var(--lh-h3); margin-top: var(--space-48); }
.prose h3 { margin-top: var(--space-24); }
.prose p { margin-top: var(--space-16); }
.prose .lead { font-size: var(--size-text-lg); color: var(--text-muted); margin-top: var(--space-16); }
.prose .muted { color: var(--text-muted); font-size: var(--size-text-sm); margin-top: var(--space-48); }
.prose a { color: var(--heading); font-weight: var(--font-weight-semibold); }
.nf { display: grid; justify-items: start; gap: var(--space-24); padding-block: var(--space-96); }
.nf-h { font-size: clamp(var(--size-h1-mobile), 5vw, var(--size-display)); line-height: var(--lh-display); max-width: 14ch; }
.nf p { max-width: 44ch; }

/* ------------------------------------------------------------------ pohyb
   Křivka a délky jen z tokenů (--ease-standard, --duration-*). Pohyb je opt-in:
   bez JS nebo s prefers-reduced-motion je všechno vidět hned a tahy fixou jsou dokreslené. */
.tick path, .ring path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.drawer { transition-property: opacity, translate; transition-duration: var(--duration-fast); transition-timing-function: var(--ease-standard); }
.head-call { transition-duration: var(--duration-base); }

@media (prefers-reduced-motion: no-preference) {
  /* úvod: obsah naskočí po kouscích, jednou při načtení */
  .js [data-in] { animation: rise var(--duration-max) var(--ease-standard) both; animation-delay: calc(var(--i, 0) * 80ms); }
  /* sečteno: dvojité podtržení se objeví až po nadpisu */
  .js .hero-saldo[data-in] { animation-name: fade; }
  .js .hero-h .u { animation: sum var(--duration-max) var(--ease-standard) both; animation-delay: 520ms; }
  /* fajfky v úvodu: Leo odškrtává jednu po druhé */
  .js .ticks .tick path { animation: draw var(--duration-base) var(--ease-standard) both; animation-delay: calc(760ms + var(--t, 0) * 140ms); }

  /* sekce při posunu: jednou, jemně */
  .js [data-rv] {
    opacity: 0; translate: 0 var(--space-16);
    transition: opacity var(--duration-max) var(--ease-standard), translate var(--duration-max) var(--ease-standard);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-rv].is-in { opacity: 1; translate: 0 0; }

  /* tahy fixou mimo úvod: dokreslí se, když jsou vidět */
  .js [data-draw] .tick path, .js [data-draw] .ring path { stroke-dashoffset: 1; }
  .js [data-draw].is-in .tick path {
    stroke-dashoffset: 0; transition: stroke-dashoffset var(--duration-base) var(--ease-standard);
    transition-delay: calc(var(--duration-base) + var(--t, 0) * 140ms);
  }
  .js [data-draw].is-in .ring path {
    stroke-dashoffset: 0; transition: stroke-dashoffset var(--duration-max) var(--ease-standard) var(--duration-base);
  }

  /* hledáček se zaostří na účtenku */
  .js .shot .vf > i { translate: var(--dx) var(--dy); opacity: 0; transition: translate var(--duration-base) var(--ease-standard) var(--duration-base), opacity var(--duration-base) var(--ease-standard) var(--duration-base); }
  .js .shot.is-in .vf > i { translate: 0 0; opacity: 1; }
  .js .shot[data-draw].is-in .tick path { transition-delay: calc(2 * var(--duration-base)); }

  /* menu na mobilu: přijede shora */
  .drawer:not([hidden]) { @starting-style { opacity: 0; translate: 0 calc(-1 * var(--space-8)); } }
}
@keyframes rise { from { opacity: 0; translate: 0 var(--space-12); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sum { from { text-decoration-color: transparent; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { scale: none; }
}
@media print { [data-rv] { opacity: 1 !important; translate: none !important; } }

.price-cta p a, .nf .hero-tel a { color: var(--heading); font-weight: var(--font-weight-semibold); white-space: nowrap; }

/* ------------------------------------------------------------------ Lenis 1.3.27 (doporučené CSS, self-host) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }
.sec:focus, .sec:focus-visible { outline: none; }
.ccard h3 { margin-bottom: var(--space-8); }
