/* Úvěrář — mujspis.cz
   Směr (refero-design): primární Refero styl „Era“ (era.app);
   z Refero stylu „Qonto“ převzaty jen dva detaily: pás tří tvrzení a svislý výběr s 2px kolejnicí.
   Písmo: Saans VF → Inter (náhrada uvedená v referenci). */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-opsz-normal.woff2") format("woff2-variations");
  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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2-variations");
  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; }

/* ============ Tokeny ============ */
:root {
  /* Era – akcenty (jen štítky, značky, barevný pruh, vlna) */
  --lime: #d9eb68; --pink: #f785c9; --peach: #ffb28d; --blue: #8fc9ff; --mint: #77dac1; --lavender: #bbaaf9;
  /* Era – neutrály */
  --ink: #241e2b; --plum: #302036; --muted: #625a69; --rule: #cec8d0;
  --band: #eeebe8; --canvas: #f7f5f2; --paper: #fffdfb; --white: #ffffff;
  /* odvozené neutrály (okna aplikace, formulář) */
  --win-chrome: #eae7e4; --win-chrome-ink: #8a828f; --win-rule: #e6e2e7; --win-fill: #ebe7ea;
  --field-edge: #857d8b; --placeholder: #7a7280;
  --err-ink: #8a2a17; --err-edge: #b4321f; --err-bg: #fde9df;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sheet-shadow: rgba(40, 18, 55, 0.19) 0px 28px 65px -18px;

  --rail-max: 1360px; --rail-pad: 60px; --label-col: 144px; --gutter: 24px;
  --section-y: 56px; --id-row-h: 80px; --routes-h: 44px;
  --radius-btn: 6px;
}

/* ============ Základ ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; overflow-x: clip; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 8px 14px; border-radius: var(--radius-btn); font-size: 14px; }
.skip:focus { top: 8px; }
.nw { white-space: nowrap; }

/* Typografie */
h1, h2, h3, .display, .heading-lg, .heading, .faq summary { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
.display { font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.heading-lg { font-size: 48px; line-height: 1.06; letter-spacing: -0.025em; }
.heading { font-size: 32px; line-height: 1.12; letter-spacing: -0.025em; }
.outcome { font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.intro { font-size: 21px; line-height: 1.4; letter-spacing: -0.015em; color: var(--muted); }
.body { font-size: 16px; line-height: 1.55; }
.availability { font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }

/* ============ Rozvržení (Era editorial rail) ============ */
.rail { max-width: var(--rail-max); margin: 0 auto; padding: 0 var(--rail-pad); }
.chapter-grid { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); column-gap: var(--gutter); align-items: first baseline; }
.chapter-grid > .content { grid-column: 2; min-width: 0; }
.chapter, .area { padding: var(--section-y) 0; }
.chapter:not(.band) + .chapter:not(.band) { padding-top: 0; }
.band { background: var(--band); }
.measure { max-width: 529px; }
.after-list { margin-top: 24px; }

/* Zvýrazňovač (štítek kapitoly) */
.hl { display: inline; color: var(--plum); padding: 0 4px 0 0; font-size: 14px; line-height: 1.55; font-weight: 500; background: var(--hl); box-shadow: var(--hl) 0 3.8px 0 0, var(--hl) 0 -3.8px 0 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--mint, .idx--mint, .tag--mint { --hl: var(--mint); }
.hl--lavender, .idx--lavender, .tag--lav { --hl: var(--lavender); }
.hl--peach, .idx--peach, .tag--peach { --hl: var(--peach); }
.hl--lime, .idx--lime, .tag--lime { --hl: var(--lime); }
.hl--blue, .idx--blue { --hl: var(--blue); }
.plain-label { font-size: 14px; line-height: 1.55; font-weight: 500; }
.label-note { display: block; margin-top: 14px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Barevný pruh 4 : 2 : 2 */
.sig-rule { display: grid; grid-template-columns: 4fr 2fr 2fr; height: 8px; }
.sig-rule span:nth-child(1) { background: var(--lavender); }
.sig-rule span:nth-child(2) { background: var(--pink); }
.sig-rule span:nth-child(3) { background: var(--blue); }
.sig-rule--inline { margin-top: 24px; }

/* ============ Akce ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 20px; border-radius: var(--radius-btn); border: 1px solid transparent; font: 550 14px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: opacity .15s var(--ease), background-color .15s var(--ease); }
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { opacity: .88; }
.btn-primary:active { opacity: .75; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover, .btn-outline:active { background: var(--canvas); }
.btn-sm { height: 38px; padding: 0 12px; font: 500 13px/1.55 var(--font); }
.btn-xs { height: 32px; padding: 0 12px; font: 500 13px/1 var(--font); }
.text-action { display: inline-flex; align-items: center; gap: 4px; padding-block: 4px; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font: 380 14px/1.2 var(--font); }
.text-action svg { width: 14px; height: 14px; }
.text-action:focus-visible { outline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ============ Hlavička (Era layered navigation) ============ */
.site-header { position: sticky; top: calc(-1 * var(--id-row-h) - 1px); z-index: 30; background: var(--band); border-bottom: 1px solid var(--rule); color: var(--muted); }
.id-row { height: var(--id-row-h); max-width: var(--rail-max); margin: 0 auto; padding: 0 var(--rail-pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-word { font-size: 28px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.brand-tag { font-size: 20px; font-weight: 300; letter-spacing: -0.02em; color: var(--muted); }
.id-actions { display: flex; gap: 8px; align-items: center; }
.m-cta, .nav-toggle { display: none; }
.nav-toggle { height: 38px; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--radius-btn); background: transparent; color: var(--ink); font: 500 13px/1 var(--font); cursor: pointer; }
.routes { height: var(--routes-h); display: flex; align-items: center; justify-content: space-between; padding: 0 max(var(--rail-pad), calc((100% - var(--rail-max)) / 2 + var(--rail-pad))); border-top: 1px solid var(--rule); }
.routes nav { display: flex; gap: 24px; align-self: stretch; }
.routes nav a { display: flex; align-items: center; font: 500 13px/1.4 var(--font); color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s var(--ease); }
.routes nav a:hover { color: var(--ink); }
.routes nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.routes .btn-xs { visibility: hidden; opacity: 0; transition: opacity .15s var(--ease); }
.is-stuck .routes .btn-xs { visibility: visible; opacity: 1; }
.mobile-nav { border-top: 1px solid var(--rule); padding: 8px var(--rail-pad) 20px; }
.mobile-nav a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 500; }
.mobile-nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--ink); padding-left: 12px; }
.mobile-nav a.btn { display: flex; width: 100%; margin-top: 16px; font: 550 15px/1.2 var(--font); }

/* ============ Úvod ============ */
.opening { padding: 40px 0 48px; }
.opening-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
.opening h1 { margin-top: 16px; }
.opening .intro { margin-top: 24px; max-width: 560px; }
.opening .actions { margin-top: 28px; }
.opening-scene { display: flex; justify-content: flex-end; padding-top: 8px; }
.opening-scene .window { width: 576px; max-width: 100%; }
.entry { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.entry .availability { color: var(--ink); }
.entry .item { display: inline-flex; align-items: center; gap: 8px; font: 380 14px/1.2 var(--font); color: var(--muted); }
.entry .item svg { width: 16px; height: 16px; color: var(--ink); flex: none; }

/* Pás tří tvrzení (Qonto „Proof strip“) */
.proof-strip { padding: 0 0 var(--section-y); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.proof-grid > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.proof-claim { font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.proof-sub { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 36ch; }

/* ============ Kapitoly ============ */
.chapter-intro .body { margin-top: 24px; color: var(--muted); }
.content > .heading + .body, .content > .heading-lg + .body { margin-top: 12px; color: var(--muted); max-width: 40em; }

/* Výběr ukázky: kolejnice vlevo + jedno okno (Qonto „Task-selector split“) */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; margin-top: 28px; align-items: start; }
.flow-side .body { color: var(--muted); }
.flow-steps { display: grid; gap: 4px; margin-top: 24px; }
.flow-step { width: 100%; display: block; text-align: left; padding: 10px 0 10px 18px; background: none; border: 0; border-left: 2px solid var(--rule); border-radius: 0; color: var(--muted); font: 400 15px/1.45 var(--font); cursor: pointer; transition: color .15s var(--ease), border-color .15s var(--ease); }
.flow-step:hover { color: var(--ink); border-left-color: var(--muted); }
.flow-step[aria-pressed="true"] { color: var(--ink); border-left-color: var(--ink); }
.flow-n { display: none; }
.flow-caption { display: none; }
.flow-stage { display: grid; min-width: 0; }
.flow-panel { grid-area: 1 / 1; transition: opacity .2s var(--ease); }
.flow-panel[hidden] { display: block; visibility: hidden; opacity: 0; }
.flow-panel .window { width: 100%; }

/* Úzký text + velká ukázka */
.compact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
.compact--below { margin-top: 28px; }
.compact .body { color: var(--muted); }
.compact > div > .heading + .body { margin-top: 24px; }
.compact > .facts { margin-top: 0; }
ul.ruled { border-top: 1px solid var(--rule); }
.compact > div > ul.ruled { margin-top: 20px; }
.compact--below > div > ul.ruled:first-child { margin-top: 0; }
ul.ruled li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; color: var(--muted); }
ul.ruled li b { color: var(--ink); font-weight: 500; }

/* Otevřené sloupce (bez karet) */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 24px; }
.col { border-top: 1px solid var(--ink); padding-top: 16px; }
.col .tag { background: none; padding: 0; color: var(--muted); }
.col .heading { font-size: 22px; line-height: 1.2; margin-top: 6px; }
.col .body { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 60ch; }
.tag { display: inline-block; font: 500 13px/20px var(--font); padding: 0 6px; color: var(--plum); background: var(--hl); }

/* Seznam faktů */
.facts { border-top: 1px solid var(--rule); margin-top: 32px; }
.facts li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.facts .k { color: var(--muted); font-size: 14px; }
.facts .v { font-size: 16px; }
.facts a { color: var(--ink); }
.facts--grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin-top: 24px; }
.facts--grid li { grid-template-columns: 110px 1fr; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 18px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 2px; }
.faq summary svg { width: 16px; height: 16px; flex: none; transition: transform .15s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { max-width: 600px; padding: 0 0 18px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* Závěrečná výzva + čtverečková vlna */
.closing { background: var(--band); padding: var(--section-y) 0; }
.band + .closing { border-top: 1px solid var(--rule); }
.closing-split { display: grid; grid-template-columns: 1fr 564px; gap: var(--gutter); align-items: center; grid-column: 1 / -1; }
.closing .body { margin-top: 24px; color: var(--muted); max-width: 529px; }
.closing .actions { margin-top: 32px; }
.pixel-wave { width: 100%; max-width: 564px; height: auto; }

/* Patička */
.site-footer { background: var(--canvas); padding-bottom: 48px; }
.legal { padding: 32px 0; font-size: 13px; color: var(--muted); max-width: 720px; }
.legal p + p { margin-top: 8px; }
.footer-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 32px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fgroup { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font: 400 15px/1.2 var(--font); }
.fgroup .fhead { color: var(--ink); font-weight: 500; margin-bottom: 8px; }
.fgroup a { color: var(--muted); text-decoration: none; padding: 4px 0; transition: color .15s var(--ease); }
.fgroup a:hover { color: var(--ink); text-decoration: underline; }
.fgroup span { padding: 4px 0; }
.utility { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: var(--muted); }

/* ============ Okno aplikace (Era product window) ============ */
.window { position: relative; background: var(--paper); border-radius: 0; box-shadow: var(--sheet-shadow); font-size: 12.5px; line-height: 1.4; color: var(--ink); text-align: left; }
.window-chrome { height: 22px; display: flex; align-items: center; padding: 0 10px; background: var(--win-chrome); color: var(--win-chrome-ink); font-size: 14px; letter-spacing: 2px; line-height: 1; }
.window-brand { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 6px; }
.window-brand b { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.window-brand span { color: var(--muted); font-size: 12px; }
.window-tabs { display: flex; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--rule); font-size: 11.5px; color: var(--muted); overflow: hidden; }
.window-tabs span { padding: 6px 0 6px; white-space: nowrap; }
.window-tabs span.on { color: var(--ink); border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
.window-body { padding: 14px 16px 18px; }
.study .window-body { padding: 20px 16px 24px; }
.wtitle { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.wtitle--gap { margin-top: 8px; }
.wsub { color: var(--muted); font-size: 11.5px; }
.wrow { display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; padding: 8px 0; border-top: 1px solid var(--win-rule); align-items: baseline; }
.wrow:first-of-type { border-top: 0; }
.wrow--gap { margin-top: 10px; }
.wrow .s { grid-column: 1; color: var(--muted); font-size: 11px; }
.wrow .r { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrow .t { grid-column: 2; justify-self: end; }
.wrow--total { border-top: 1px solid var(--ink); margin-top: 2px; padding-top: 10px; }
.wrow--total > * { font-weight: 600; font-size: 13.5px; }
.mark { display: inline-block; padding: 0 4px; font-size: 11px; font-weight: 500; color: var(--plum); line-height: 1.6; }
.mark--mint { background: var(--mint); }
.mark--lav { background: var(--lavender); }
.mark--peach { background: var(--peach); }
.mark--line { box-shadow: inset 0 0 0 1px var(--rule); color: var(--muted); }
.wgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.wstat { padding: 8px 10px; border: 1px solid var(--win-rule); }
.wstat .l { font-size: 10.5px; color: var(--muted); }
.wstat .n { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.bars { display: flex; gap: 2px; margin-top: 6px; }
.bars i { flex: 1; height: 10px; background: var(--mint); }
.bars i.x { background: var(--peach); }
.bars i.e { background: var(--win-fill); }
.wnote { margin-top: 10px; padding: 8px 10px; background: var(--band); font-size: 11.5px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wbtn { background: var(--ink); color: var(--canvas); font-size: 11px; font-weight: 550; padding: 4px 9px; border-radius: 4px; white-space: nowrap; }
.wline { height: 6px; background: var(--win-fill); margin: 7px 0; }
.wline.w60 { width: 60%; } .wline.w80 { width: 80%; }
.split-win { display: grid; grid-template-columns: 1fr 1fr; }
.split-win > div + div { border-left: 1px solid var(--win-rule); padding-left: 14px; margin-left: 14px; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--win-rule); margin-bottom: 8px; }
.outcomes .lbl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.outcomes .outcome { margin-top: 6px; }
.sw { width: 10px; height: 10px; display: inline-block; }
.sw--lav { background: var(--lavender); } .sw--peach { background: var(--peach); } .sw--mint { background: var(--mint); }
.study-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.caveat { margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.chapter .study { margin-top: 40px; }
.compact .study, .flow .study { margin-top: 0; }

/* ============ Podstránky ============ */
.page-open { padding: 40px 0 48px; }
.page-open h1 { margin-top: 0; }
.page-open .intro { margin-top: 24px; max-width: 640px; }
.page-open .actions { margin-top: 32px; }
.area-index { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; max-width: 900px; }
.idx { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; font: 500 14px/1.4 var(--font); color: var(--ink); text-decoration: none; }
.idx::before { content: ""; width: 10px; height: 10px; background: var(--hl); flex: none; }
.idx:hover { text-decoration: underline; }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; line-height: 1.2; margin: 36px 0 10px; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--ink); }

/* Kontakt */
.contact-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-split > .form { margin-top: 16px; }
.contact-split .facts { margin-top: 28px; }
.contact-split .facts li { grid-template-columns: 130px 1fr; }
.next-steps { counter-reset: s; margin-top: 28px; display: grid; gap: 10px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 15px; color: var(--muted); }
.next-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 4px; background: var(--ink); color: var(--canvas); font: 550 12px/24px var(--font); text-align: center; }
.next-steps b { color: var(--ink); font-weight: 500; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; background: var(--paper); border: 1px solid var(--rule); padding: 32px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font: 500 14px/1.4 var(--font); color: var(--ink); }
.field .opt, .req { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--canvas); border: 1px solid var(--field-edge); border-radius: var(--radius-btn); padding: 11px 12px; transition: border-color .15s var(--ease); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field textarea::placeholder { color: var(--placeholder); }
.field [aria-invalid="true"] { border-color: var(--err-edge); }
.field-err { font-size: 13px; color: var(--err-ink); }
.form-info { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.form-info a { color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot small { font-size: 13px; color: var(--muted); }
.form button[aria-busy="true"] { opacity: .6; pointer-events: none; }
.notice { grid-column: 1 / -1; padding: 12px 14px; font-size: 15px; }
.notice-err { background: var(--err-bg); color: var(--ink); }
.form-done { display: block; }
.form-done:focus { outline: none; }
.form-done .heading { margin-top: 12px; font-size: 28px; }
.form-done .body { margin-top: 10px; color: var(--muted); }
.form-done p + p { margin-top: 16px; }

/* ============ Responzivita ============ */
@media (max-width: 1280px) {
  .opening-scene .window { width: 100%; }
}
@media (max-width: 1180px) {
  /* štítek kapitoly nad nadpisem, obsah přes celou šířku */
  .chapter-grid { grid-template-columns: 1fr; row-gap: 12px; }
  .chapter-grid > .content { grid-column: 1; }
  .footer-groups { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
@media (max-width: 1024px) {
  :root { --rail-pad: 24px; }
  .heading-lg { font-size: clamp(36px, 5.4vw, 48px); }
  .routes nav { gap: 18px; overflow-x: auto; }
}
@media (max-width: 860px) {
  .opening-split, .compact, .flow, .contact-split, .closing-split, .study-cols { grid-template-columns: 1fr; row-gap: 24px; }
  .opening-scene { justify-content: flex-start; padding-top: 16px; }
  .opening-scene .window { width: 100%; max-width: none; }
  .facts--grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-y: 40px; }
  html { scroll-padding-top: 96px; }
  .site-header { top: 0; }
  .routes { display: none; }
  .brand-tag, .id-actions .btn-outline, .id-cta { display: none; }
  .m-cta, .nav-toggle { display: inline-flex; align-items: center; }
  .display { font-size: clamp(42px, 11vw, 64px); }
  .heading-lg { font-size: clamp(32px, 8.4vw, 40px); }
  .heading { font-size: 26px; }
  .intro { font-size: 20px; }
  .page-open .label-cell { display: none; }
  .entry { display: grid; gap: 8px; }
  .proof-grid { grid-template-columns: 1fr; gap: 20px; }
  .wgrid { grid-template-columns: 1fr 1fr; }
  .wgrid .wstat:last-child { grid-column: 1 / -1; }
  .outcomes { grid-template-columns: 1fr; gap: 12px; }
  .split-win { grid-template-columns: 1fr; }
  .split-win > div + div { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--win-rule); margin-top: 10px; padding-top: 10px; }
  .cols, .form { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .facts li, .contact-split .facts li { grid-template-columns: 1fr; gap: 2px; }
  .footer-groups { grid-template-columns: 1fr 1fr; }
  /* výběr ukázky: řada čísel, popisek aktivního kroku nad oknem */
  .flow-steps { display: flex; gap: 8px; flex-wrap: wrap; }
  .flow-steps li { display: contents; }
  .flow-step { position: relative; width: auto; padding: 0; border: 0; }
  .flow-step:hover { border: 0; }
  .flow-n { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--radius-btn); border: 1px solid rgba(36,30,43,.094); font: 550 13px/1.2 var(--font); color: var(--ink); }
  .flow-step[aria-pressed="true"] .flow-n { background: var(--ink); color: var(--canvas); border-color: transparent; }
  .flow-step > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .flow-caption { display: block; font-size: 14px; color: var(--ink); margin: 12px 0 0; }
}
@media (max-width: 480px) {
  .window-brand, .window-tabs, .window-body, .study .window-body { padding-left: 12px; padding-right: 12px; }
  .window-tabs { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Členění textu: jedna myšlenka = jeden odstavec, výčty na samostatných řádcích */
.body + .body, .intro + .intro { margin-top: 10px; }
.col .body + .body { margin-top: 6px; }
.answer p + p, .answer-list + p { margin-top: 10px; }
.answer-list { display: grid; gap: 6px; margin-top: 10px; }
.answer-list li { position: relative; padding-left: 18px; }
.answer-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--ink); }
.answer-list b { color: var(--ink); font-weight: 500; }
.answer a { color: var(--ink); }
/* Výčet faktů pod úvodní větou (bezpečnost) */
.spec-list { display: grid; gap: 6px; margin-top: 12px; font-size: 15px; color: var(--muted); }
.spec-list li { position: relative; padding-left: 18px; line-height: 1.5; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--ink); }
.spec-list b { color: var(--ink); font-weight: 500; }
/* Patička – kontakt na firmu */
.fgroup .fstrong { color: var(--ink); font-weight: 500; }
/* Patička: čtyři přehledné sloupce, bez právního textu */
.site-footer .sig-rule { margin-bottom: 0; }
.footer-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 40px 0; border-top: 0; }
.utility a { color: var(--muted); }
.utility a:hover { color: var(--ink); }
@media (max-width: 1180px) { .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 480px) { .footer-groups { grid-template-columns: 1fr; } }
