/* Baltimore Hermann – směr A „Editoriál“
   + z varianty B stavové štítky v maketě systému, + z varianty C navy pás se zlatým akcentem (kontakt). */

/* ---------- Tokeny ---------- */
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #1C2230;
  --muted: #5A6070;
  --navy: #1B3A5C;
  --navy-hover: #142D48;
  --on-navy: #FFFFFF;
  --gold-line: #C9A24A;   /* jen linky a ornamenty */
  --gold-text: #7D5F17;   /* zlatá pro text (kontrast AA) */
  --rule: #DDD8CC;
  --danger: #A23B2A;
  --warn: #8A5A00;
  --focus: #1B3A5C;
  --band: #1B3A5C;
  --band-ink: #F3F1EA;
  --band-muted: #C3CCDB;
  --band-line: #3A5677;
  --band-field: #7F93AE;  /* ohraničení polí na navy pásu (3:1) */
  --band-danger: #F6B7A8; /* chyba na navy pásu */
  --gold-bright: #EDBF4A;
  --shadow: rgba(28, 34, 48, .35);

  --serif: "Newsreader", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
  --section-y: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
/* Tmavý režim jen na vyžádání (<html data-theme="dark">), výchozí je vždy světlý. */
:root[data-theme="dark"] {
  --bg: #15181E; --surface: #1C2028; --ink: #ECE8DF; --muted: #A9ADB8;
  --navy: #A9C2E0; --navy-hover: #C3D5EB; --on-navy: #15181E;
  --gold-line: #B8954A; --gold-text: #D9B970; --rule: #343844;
  --danger: #F0937F; --warn: #E8B85C; --focus: #A9C2E0;
  --band: #1A2C46; --band-ink: #F3F1EA; --band-muted: #B6C0D6; --band-line: #34477A; --band-field: #7D8BAE; --band-danger: #F6B7A8;
  --gold-bright: #EDBF4A; --shadow: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-wrap: break-word; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--surface); color: var(--ink); padding: 12px 16px; border: 1px solid var(--rule); }
.skip:focus { top: 12px; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 2px; border: 1px solid var(--navy);
  font: 500 15px/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: background-color .15s ease-out, color .15s ease-out, transform .1s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }

/* ---------- Hlavička ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.mark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; padding: 6px 0; }
.mark-main { font: italic 400 30px/1 var(--serif); letter-spacing: -0.01em; }
.mark-sub { font: 600 9.5px/1 var(--sans); letter-spacing: 0.5em; padding-left: 0.5em; margin-top: 6px; color: var(--gold-text); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .15s ease-out; }
.nav-list a:hover { color: var(--ink); }
.nav-cta { min-height: 44px; }
.menu-toggle { display: none; }

/* ---------- Sekce: společné ---------- */
.section { padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.01em; }
.split, .faq-grid, .contact-in { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
/* Pravý sloupec dvousloupcových sekcí začíná vždy zlatou linkou (jako .lede a .ticks-lg). */
.prose { display: grid; gap: 20px; max-width: 62ch; padding-top: 24px; border-top: 1px solid var(--gold-line); }
.section-head { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--muted); max-width: 52ch; }
.section-head:not(:has(> p)) > h2 { grid-column: 1 / -1; }
/* Nad .pairs sdílí hlavička mřížku tabulky, aby úvodní věta začínala na ose sloupce řešení. */
@media (min-width: 961px) {
  .section-head:has(+ .pairs) { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .section-head:has(+ .pairs) > h2 { grid-column: 1 / 3; }
  .section-head:has(+ .pairs) > p { grid-column: 3; padding-left: 36px; }
}
.kicker { font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 20px; }

/* ---------- 1 · Hero ---------- */
.hero { padding: 104px 0 96px; }
.hero h1 { font-size: clamp(46px, 7vw, 88px); line-height: 1.04; letter-spacing: -0.02em; }
.h1-accent { display: block; font-style: italic; color: var(--navy); }
.hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 48px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--gold-line); }
.hero-foot p { font-size: 19px; color: var(--muted); max-width: 52ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-self: start; }
.hero-sub { padding: 88px 0 72px; }
.hero-sub h1 { font-size: clamp(44px, 6vw, 76px); }
.ticks.ticks-lg { margin: 0; gap: 0; border-top: 1px solid var(--gold-line); }
.ticks.ticks-lg li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--rule); font-size: 18px; }
.ticks.ticks-lg li::before { top: 30px; }
.hero-act { display: grid; gap: 16px; align-content: start; }
.hero-link { font-size: 15px; }
.end-cta { margin-top: 32px; }
.hero-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.hero-link a:hover { color: var(--ink); }

/* ---------- Společné: drobné poznámky se zdroji ---------- */
.ref { font: 600 11px/0 var(--sans); margin-left: 1px; }
.ref a { position: relative; color: var(--gold-text); text-decoration: none; padding: 0 1px; }
.ref a::after { content: ""; position: absolute; inset: -15px -10px; } /* dotyková plocha ~44 px na výšku, glyf zůstává 11 px */
.ref a:has(+ a)::after { right: -3px; } .ref a + a::after { left: -3px; } /* sousední odkazy „1,3“ se nepřekrývají */
.ref a:hover { text-decoration: underline; }
.notes { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pairs + .notes, .groups + .notes { border-top: 0; padding-top: 0; }
.sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
/* Číslo začíná na hraně obsahu, zalomený řádek visí pod textem. */
.sources li { position: relative; padding-left: 1.6em; }
.sources li::before { content: counter(list-item) "."; position: absolute; left: 0; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.sources a { padding-block: 4px; }
.sources a::after { content: ""; position: absolute; inset: 0; } /* klikací je celý řádek zdroje (li je position: relative) */
.sources li:target { color: var(--ink); }
.notes a { color: inherit; }

/* ---------- 2 · Pro koho ---------- */
.audience { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.audience li { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--gold-line); }
.audience h3 { font-size: 26px; line-height: 1.2; }
.audience p { color: var(--muted); max-width: 40ch; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; align-self: flex-start; color: var(--navy); font-weight: 500; font-size: 15px; }

/* ---------- 3 · Co řešíme: dvojice problém → řešení (i rizika na investori.html) ---------- */
.pairs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: pair; }
.pairs > li { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); counter-increment: pair; }
.pairs > li::before { content: counter(pair, decimal-leading-zero); font: 400 15px/1.75 var(--serif); color: var(--gold-text); font-variant-numeric: tabular-nums; }
.pair-q h3 { font: 500 21px/1.3 var(--serif); }
.pair-q p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.pair-a { position: relative; padding-left: 36px; padding-top: 2px; }
.pair-a::before { content: "→" / ""; position: absolute; left: 0; top: 0; font: 400 21px/1.3 var(--serif); color: var(--gold-text); }

/* ---------- Zvýrazněný odstavec (Co zůstává na vás, přirovnání) ---------- */
/* Jen krátká prohlášení; vícevětý výklad patří do .prose. */
.lede { padding-top: 24px; border-top: 1px solid var(--gold-line); font: 400 clamp(20px, 2vw, 23px)/1.5 var(--serif); color: var(--ink); max-width: 60ch; }

/* ---------- Fakta / dlaždice (Nic z toho není jen nápad, investoři) ---------- */
.facts { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts li { padding: 4px 32px; border-left: 1px solid var(--gold-line); display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts strong { display: block; align-self: end; font: 400 clamp(44px, 5vw, 64px)/1 var(--serif); color: var(--navy); }
.facts .fact-text strong { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; text-wrap: balance; }
.facts small { display: block; font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.facts > li > span { color: var(--muted); font-size: 15px; }
.facts .fact-meta { margin: 0; font: 400 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.facts-md strong { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; text-wrap: balance; }
.schools, .team { margin-top: 8px; }
.schools ul, .team ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.schools li, .team li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.schools li span, .team li span { color: var(--muted); font-size: 15px; text-align: right; }
.team strong { font-weight: inherit; }
.prose > .facts { margin: 24px 0 0; }
/* Dlaždice v textovém sloupci jsou podřízené seznamům kolem, proto menší číslo. */
.prose > .facts strong { font-size: clamp(36px, 3.6vw, 44px); }
/* Jediná viditelná dlaždice (ostatní čekají na doplnění) se vykreslí jako řádek seznamu jako .schools, ne jako osamělé velké číslo.
   (:has nejde vnořit, proto „první a zároveň poslední viditelná“ přes nth-child/nth-last-child of S.) */
.prose > .facts > li:nth-child(1 of :not(:has(> strong .todo))):nth-last-child(1 of :not(:has(> strong .todo))) { grid-column: 1 / -1; grid-row: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border: 0; border-block: 1px solid var(--rule); }
.prose > .facts > li:nth-child(1 of :not(:has(> strong .todo))):nth-last-child(1 of :not(:has(> strong .todo))) > strong { font: 500 24px/1.2 var(--serif); }
.prose > .facts > li:nth-child(1 of :not(:has(> strong .todo))):nth-last-child(1 of :not(:has(> strong .todo))) > span { color: var(--ink); font-size: inherit; }
.prose > .facts > li:nth-child(1 of :not(:has(> strong .todo))):nth-last-child(1 of :not(:has(> strong .todo))) > .fact-meta { margin-left: auto; text-align: right; }
.story { margin: 56px 0 0; max-width: 62ch; }
.story blockquote { margin: 0; font: italic 400 clamp(20px, 2.2vw, 24px)/1.45 var(--serif); color: var(--ink); }

/* ---------- 4 · Služby ---------- */
.groups { display: grid; gap: 64px; counter-reset: sluzba; }
.group { display: grid; grid-template-columns: 220px 1fr; gap: 32px; border-top: 1px solid var(--ink); padding-top: 24px; }
.group h3 { font-size: 26px; line-height: 1.2; }
.roman { display: block; font: 600 12px/1 var(--sans); letter-spacing: 0.16em; color: var(--gold-text); margin-bottom: 12px; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); counter-increment: sluzba; }
.items li:first-child { padding-top: 2px; }
.items li::before { content: counter(sluzba, decimal-leading-zero); font: 400 15px/1.75 var(--serif); color: var(--gold-text); font-variant-numeric: tabular-nums; }
.items h4 { font: 500 21px/1.3 var(--serif); }
.items p { color: var(--muted); font-size: 16px; max-width: 52ch; }

/* ---------- 6 · Provozní aplikace ---------- */
.system-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: center; }
.system-text > p:not(.kicker) { color: var(--muted); margin: 20px 0 0; max-width: 46ch; }
.system-text > .btn { margin-top: 32px; }
.feat-h { margin-top: 72px; font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.feat { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.feat li { padding: 16px 0 20px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
@media (min-width: 961px) { .feat li:last-child:nth-child(3n+2) { grid-column: span 2; } }
@media (min-width: 641px) and (max-width: 960px) { .feat li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.feat strong { display: block; margin-bottom: 4px; font: 500 20px/1.3 var(--serif); color: var(--ink); }
.secure { margin-top: 40px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.secure .label { margin: 4px 0 0; }
.secure p { max-width: 62ch; }

/* Maketa systému */
.app { margin: 0; min-width: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px var(--shadow); font-size: 14px; overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 24px; padding: 0 20px; border-bottom: 1px solid var(--rule); min-height: 52px; }
.app-mark { font: italic 400 18px/1 var(--serif); }
.app-tabs { display: flex; gap: 20px; white-space: nowrap; }
.app-tabs span { padding: 17px 0 15px; color: var(--muted); border-bottom: 2px solid transparent; }
.app-tabs .on { color: var(--ink); font-weight: 600; border-color: var(--gold-line); }
.app-user { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.app-body { padding: 20px; }
.app-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.app-h { font: 400 22px/1.2 var(--serif); }
.app-count { color: var(--muted); font-size: 13px; }
.app table { width: 100%; border-collapse: collapse; }
.app th { text-align: left; font: 600 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.app td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; }
.app tr:last-child td { border-bottom: 0; }
.app td:first-child { white-space: normal; font-weight: 500; min-width: 170px; }
.app th:last-child, .app td:last-child { padding-right: 0; }
/* Stavové štítky (z varianty B) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid var(--rule); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.pill.prob { color: var(--navy); border-color: color-mix(in srgb, var(--navy) 35%, transparent); }
.pill.prob::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.pill.check { color: var(--gold-text); border-color: color-mix(in srgb, var(--gold-line) 60%, transparent); }
.pill.check::before { background: currentColor; }
.ur { font-weight: 600; }
.ur.hot { color: var(--warn); }
.ur.crit { color: var(--danger); }
.ur.low { color: var(--muted); font-weight: 400; }

/* ---------- 4b · Dvě cesty ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--gold-line); border-radius: 4px; padding: 28px 32px 32px; }
.path h3 { font-size: 26px; line-height: 1.15; }
.path-for { margin-top: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); color: var(--muted); }
.label { display: block; margin-bottom: 8px; font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 1px; background: var(--gold-line); }

/* ---------- 5 · Postup ---------- */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step-n { display: block; padding-bottom: 14px; border-bottom: 1px solid var(--gold-line); font: 400 15px/1 var(--serif); color: var(--gold-text); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 24px 0 8px; font-size: 26px; line-height: 1.2; }
.steps p { color: var(--muted); font-size: 16px; }
.timeline { margin-top: 64px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; }
.timeline .label { margin-bottom: 20px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 15px; color: var(--muted); }
.tl li { padding-left: 16px; border-left: 1px solid var(--gold-line); }
.tl strong { display: block; margin-bottom: 2px; font: 500 18px/1.3 var(--serif); color: var(--ink); }
.tl-note { margin-top: 24px; max-width: 70ch; font-size: 15px; color: var(--muted); }
.timeline .notes { margin-top: 20px; }

/* ---------- 8 · Otázky ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font: 500 20px/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--gold-text), var(--gold-text)) center / 14px 1.5px no-repeat,
              linear-gradient(var(--gold-text), var(--gold-text)) center / 1.5px 14px no-repeat;
  transition: transform .2s ease-out;
}
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--navy); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 62ch; }
.faq details p.faq-src { margin-top: -12px; font-size: 13px; }


/* ---------- 10 · Kontakt: navy pás (z varianty C) s formulářem ---------- */
.band { --focus: var(--gold-bright); background: var(--band); color: var(--band-ink); color-scheme: dark; }
.contact { padding: 104px 0; }
.orn { display: flex; align-items: center; gap: 14px; width: 160px; margin-bottom: 28px; color: var(--gold-bright); }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.orn i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }
.contact h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -0.01em; }
.contact-intro > p { margin-top: 20px; max-width: 40ch; color: var(--band-muted); font-size: 18px; }
.contact-lines { margin: 48px 0 0; border-top: 1px solid var(--band-line); }
.contact-lines div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--band-line); }
.contact-lines dt { font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); }
.contact-lines dd { margin: 0; }

/* Formulář */
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field > label, .field > legend { padding: 0; font: 500 15px/1.3 var(--sans); color: var(--band-ink); }
.field > legend { margin-bottom: 8px; }
.req, .opt { font-weight: 400; color: var(--band-muted); }
.form input:not([type="radio"]), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--band-field); border-radius: 2px;
  background: color-mix(in srgb, var(--band-ink) 6%, transparent); color: var(--band-ink);
  font: 400 16px/1.4 var(--sans); transition: border-color .15s ease-out;
}
.form textarea { min-height: 112px; resize: vertical; }
.form select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C3CCDB' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form select option { background: var(--band); color: var(--band-ink); }
.form ::placeholder { color: var(--band-muted); opacity: .8; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--band-muted); }
.form :focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.form [aria-invalid="true"] { border-color: var(--band-danger); box-shadow: inset 0 0 0 1px var(--band-danger); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--band-field); border-radius: 999px; cursor: pointer; font-size: 15px; transition: border-color .15s ease-out, background-color .15s ease-out; }
.choice:hover { border-color: var(--band-muted); }
.choice:has(:checked) { border-color: var(--gold-bright); background: color-mix(in srgb, var(--gold-bright) 12%, transparent); }
.choice input { appearance: none; flex: none; margin: 0; width: 16px; height: 16px; border: 1px solid var(--band-muted); border-radius: 50%; background: transparent; }
.choice input:checked { border-color: var(--gold-bright); background: radial-gradient(circle, var(--gold-bright) 0 3.5px, transparent 4px); }
.choice:has(:focus-visible) { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.field-err { display: flex; gap: 8px; align-items: baseline; color: var(--band-danger); font-size: 15px; }
.field-err::before { content: "!" / ""; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font: 600 11px/1 var(--sans); transform: translateY(2px); }
.field-err[hidden] { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-note { font-size: 14px; color: var(--band-muted); }
.btn-gold-solid { background: var(--gold-bright); border-color: var(--gold-bright); color: #14243A; }
.btn-gold-solid:hover { background: color-mix(in srgb, var(--gold-bright) 85%, #fff); }
.btn-gold-solid[aria-busy="true"] { opacity: .7; cursor: progress; }
.form-status:empty { padding: 0; border: 0; background: none; } /* region zůstává ve stromu přístupnosti */
.form-status { padding: 14px 16px; border-left: 2px solid var(--gold-bright); background: color-mix(in srgb, var(--band-ink) 6%, transparent); }
.form-status a { color: var(--gold-bright); }

/* ---------- Patička ---------- */
.foot { padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.foot-id { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.mark-sm .mark-main { font-size: 24px; color: var(--ink); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot-copy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---------- Responzivita ---------- */
@media (max-width: 1020px) {
  .nav-list { gap: 20px; }
  .site-nav { gap: 20px; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; --section-y: 80px; }
  .top-in { flex-wrap: wrap; gap: 0 16px; }

  /* Bez JS: navigace pod logem jako řádek odkazů, hlavička nelepí. */
  html:not(.js) .top { position: static; }
  html:not(.js) .site-nav { width: 100%; margin: 0 0 12px; flex-wrap: wrap; gap: 4px 20px; }
  html:not(.js) .nav-list { flex-wrap: wrap; gap: 0 20px; }

  /* S JS: tlačítko Menu a rozbalovací panel. */
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 12px; margin-left: auto;
    min-height: 44px; min-width: 44px; padding: 0 4px 0 12px;
    background: none; border: 0; color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer;
  }
  .menu-toggle i, .menu-toggle i::before, .menu-toggle i::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s ease-out, opacity .15s ease-out; }
  .menu-toggle i { position: relative; }
  .menu-toggle i::before, .menu-toggle i::after { content: ""; position: absolute; left: 0; }
  .menu-toggle i::before { top: -6px; }
  .menu-toggle i::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] i { background: transparent; }
  .menu-toggle[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 4px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 32px -24px var(--shadow);
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a { width: 100%; min-height: 52px; border-bottom: 1px solid var(--rule); font-size: 17px; color: var(--ink); }

  .split, .section-head, .system-grid, .faq-grid, .contact-in { grid-template-columns: 1fr; gap: 24px; }
  .contact-in { gap: 48px; }
  .audience { grid-template-columns: 1fr; gap: 32px; }
  .pairs > li { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; }
  .pair-a { grid-column: 2; }
  .tl { grid-template-columns: 1fr; gap: 16px; }
  .secure { grid-template-columns: 1fr; gap: 8px; }
  .section-head { margin-bottom: 40px; }
  .group { grid-template-columns: 1fr; gap: 20px; }
  .feat { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .system-grid { gap: 40px; }
}
/* Sloupec Oddělení se do makety vejde až od ~1100 px (.app má overflow: hidden). */
@media (max-width: 1100px) { .hide-md { display: none; } }
@media (max-width: 640px) {
  :root { --section-y: 64px; }
  body { font-size: 16px; }
  .mark-main { font-size: 26px; }
  .hero { padding: 56px 0 64px; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; padding-top: 24px; }
  .hero-foot p { font-size: 17px; }
  .btn { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .pairs > li { grid-template-columns: 32px minmax(0, 1fr); gap: 8px 12px; padding: 18px 0 20px; }
  .pair-q h3 { font-size: 20px; }
  .pair-a { padding-left: 28px; }
  .timeline { padding: 24px 20px; margin-top: 48px; }
  .field-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; margin-top: 40px; }
  .facts li, .facts li:first-child { padding: 20px 0; border-left: 0; border-top: 1px solid var(--gold-line); }
  /* V .prose navazuje první dlaždice na linku seznamu nad ní. */
  .prose > .facts li:nth-child(1 of :not(:has(> strong .todo))) { padding-top: 0; border-top: 0; }
  .groups { gap: 48px; }
  .items li { grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0 18px; }
  .items li p { grid-column: 2; }
  .items h4 { font-size: 20px; }
  .feat-h { margin-top: 48px; }
  .feat { grid-template-columns: 1fr; }
  .sources { gap: 0; }
  .sources li { padding-block: 12px; } /* dotyková plocha zdroje ≥ 44 px */
  .app-bar { gap: 16px; padding: 0 14px; }
  .app-mark { display: none; }
  .app-tabs { gap: 16px; }
  .app-body { padding: 14px; }
  .app { font-size: 13px; }
  .app td { padding-right: 10px; }
  .app td:first-child { min-width: 0; }
  .pill { padding: 2px 8px; font-size: 12px; }
  .hide-sm { display: none; }
  .paths { grid-template-columns: 1fr; gap: 16px; }
  .path { padding: 28px 20px 32px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps h3 { margin-top: 16px; }
  .faq summary { font-size: 19px; }
  .faq details p { padding-right: 0; }
  .contact { padding: 72px 0; }
  .contact-intro > p { font-size: 17px; }
  .contact-lines { margin-top: 32px; }
  .foot-in { grid-template-columns: 1fr; }
}

/* ---------- Vynucené barvy (Windows vysoký kontrast): ikony a stav přepínače kreslené pozadím ---------- */
@media (forced-colors: active) {
  .choice input { forced-color-adjust: none; border-color: CanvasText; }
  .choice input:checked { border-color: Highlight; background: radial-gradient(circle, Highlight 0 3.5px, transparent 4px); }
  .menu-toggle i, .menu-toggle i::before, .menu-toggle i::after { forced-color-adjust: none; background: ButtonText; }
  .menu-toggle[aria-expanded="true"] i { background: transparent; }
  .faq summary::after { forced-color-adjust: none; --gold-text: CanvasText; }
}

/* ---------- Omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tisk (pro investory): bez navigace, černá na bílé ---------- */
@media print {
  :root { --header-h: 0px; }
  *, *::before, *::after { color: #000 !important; background: #fff !important; box-shadow: none !important; }
  body { font-size: 11pt; }
  .top { position: static; border: 0; }
  .site-nav, .menu-toggle, .skip, .actions, .btn { display: none !important; }
  .hero { padding: 24pt 0; }
  .hero h1 { font-size: 32pt; }
  .section h2 { font-size: 22pt; }
  /* Mřížky v tisku jako bloky: Chromium v gridu nedodrží break-after u nadpisů. */
  .split, .section-head, .system-grid, .faq-grid, .contact-in, .groups, .group { display: block; }
  .group + .group { margin-top: 18pt; }
  .section-head, .split > h2, .faq-grid > h2, .group > h3 { margin-bottom: 12pt; }
  .hero-foot { margin-top: 16pt; }
  .section, .contact { padding: 18pt 0; }
  .band { border-top: 1pt solid #000; }
  .orn { display: none; }
  /* .items li záměrně bez avoid: v Chromiu odsune celou skupinu služeb na další stranu. */
  .feat li, .path, .steps li, .faq details, .facts li, .app, .pairs > li, .audience li, .tl li, .secure, .schools, .team li { break-inside: avoid; }
  .form, .orn { display: none !important; }
  h2, h3, h4 { break-after: avoid; break-inside: avoid; }
  .faq summary::after { display: none; }
  details::details-content { content-visibility: visible; display: block; }
  .pill.prob::before, .pill.check::before { background: #000 !important; }
}

/* ---------- Zástupné hodnoty [DOPLNIT] – pravidlo smažte, až bude vše doplněno ---------- */
.todo:not(.btn) { text-decoration: underline dotted var(--gold-line) 1.5px; text-underline-offset: 4px; }
.todo:not(.btn)::before { content: "["; } .todo:not(.btn)::after { content: "]"; }
/* Dlaždice bez čísla a tlačítko bez URL se nezobrazují, dokud nejsou doplněné. */
.facts li:has(> strong .todo), .btn.todo:not([href]) { display: none; }
.facts li:nth-child(1 of :not(:has(> strong .todo))) { padding-left: 0; border-left: 0; }
