/* ==========================================================================
   koncepce.romanhoracek.cz – veřejná část
   Vizuální jazyk navazuje na romanhoracek.cz: světle šedé plochy, téměř černé
   tmavé sekce s mřížkou a modrou září, královská modř, patkové nadpisy.
   ========================================================================== */

@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-baskerville-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: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-baskerville-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: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/libre-baskerville-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: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/libre-baskerville-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-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; }

:root {
  --night: #080d1a;
  --night-2: #0f172a;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --bg: #f3f4f6;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-3: #1e3a8a;
  --blue-lt: #60a5fa;
  --blue-bg: #eef2ff;
  --line: #e2e8f0;
  --radius: 24px;
  --shadow: 0 10px 40px -18px rgba(15, 23, 42, .28);
  --shadow-lg: 0 30px 70px -30px rgba(15, 23, 42, .45);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-2); }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-lt); outline-offset: 3px; border-radius: 4px; }
.ico { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Horní lišta ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(226,232,240,.8); transition: box-shadow .3s; }
.topbar.scrolled { box-shadow: 0 8px 30px -18px rgba(15,23,42,.35); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 2px 8px -3px rgba(15,23,42,.2); flex: none; }
.brand-mark .ico { width: 22px; height: 22px; stroke-width: 1.5; }
.brand-mark-lg { width: 52px; height: 52px; border-radius: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 16px; font-weight: 700; white-space: nowrap; }
.brand-text small { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.nav-wrap { display: flex; align-items: center; gap: 14px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a { white-space: nowrap; color: #475569; text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 11px; border-radius: 8px; transition: background .2s, color .2s; }
.mainnav a:hover { color: var(--ink); background: #f1f5f9; }
.mainnav a.active { color: var(--ink); background: #eef2f7; font-weight: 600; }
.top-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--night-2); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 10px; white-space: nowrap; transition: background .2s; }
.top-cta:hover { background: var(--blue-2); color: #fff; }
.nav-toggle { display: none; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue-2), var(--blue-lt)); }

/* ---------- Hero ---------- */
.hero { --ticker-h: 56px; position: relative; overflow: hidden; background: linear-gradient(100deg, #f8fafc 0%, #eef1f5 45%, #dfe4eb 100%); padding-top: 68px; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; min-height: min(800px, calc(100vh - 68px)); padding: 56px 0 72px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: #475569; margin: 0 0 30px; box-shadow: 0 4px 14px -8px rgba(15,23,42,.3); }
.hero-badge .ico { color: var(--blue); }
.hero-title { font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; font-size: clamp(40px, 5.6vw, 74px); margin: 0 0 30px; color: var(--ink); }
.hero-title .hl { display: block; }
.hero-title .hl-0 { color: var(--ink); }
.hero-title .hl-1, .hero-title .hl-2 { background: linear-gradient(90deg, var(--blue-3) 0%, var(--blue-2) 40%, #3b82f6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.hero-lead { font-size: clamp(16.5px, 1.4vw, 19px); max-width: 600px; color: #334155; }
.hero-lead > p:not(.btn-row) { margin: 0 0 18px; padding-left: 22px; border-left: 4px solid var(--blue-2); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 36px 0 0 !important; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn-primary { background: var(--night-2); color: #fff; padding: 15px 26px; border-radius: 10px; box-shadow: 0 12px 30px -14px rgba(15,23,42,.8); }
.btn-primary::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("../img/i-doc.svg") center / contain no-repeat; mask: url("../img/i-doc.svg") center / contain no-repeat; }
.btn-primary:hover { color: #fff; background: var(--blue-2); transform: translateY(-2px); }
.btn-ghost { color: #334155; padding: 10px 0; }
.btn-ghost::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("../img/i-arrow.svg") center / contain no-repeat; mask: url("../img/i-arrow.svg") center / contain no-repeat; }
.btn-ghost:hover { color: var(--blue-2); }

/* Na počítači se celý úvod včetně pruhu s hesly vejde na první obrazovku:
   výška = výška okna − horní lišta − pruh; velikosti textu se řídí i výškou okna. */
@media (min-width: 961px) {
  .hero-inner { min-height: calc(100vh - 68px - var(--ticker-h)); min-height: calc(100svh - 68px - var(--ticker-h));
    padding: clamp(16px, 3.5vh, 48px) 0 clamp(16px, 4vh, 56px); }
  .hero-badge { margin-bottom: clamp(12px, 3vh, 30px); }
  .hero-title { font-size: clamp(32px, min(5.4vw, 8.2vh), 74px); margin-bottom: clamp(14px, 3vh, 30px); }
  .hero-lead { font-size: clamp(15px, min(1.35vw, 2.3vh), 19px); }
  .hero-lead > p:not(.btn-row) { margin-bottom: clamp(8px, 1.6vh, 18px); }
  .btn-row { margin-top: clamp(14px, 3.4vh, 36px) !important; }
  .btn-primary { padding: clamp(10px, 1.6vh, 15px) 26px; }
}

/* portrét: splývá do světlého pozadí jako na romanhoracek.cz */
.hero-portrait { position: absolute; inset: 0 0 var(--ticker-h, 0px) auto; width: 52%; margin: 0; z-index: 1; background: #05070d; overflow: hidden; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
/* umístění portrétu (volí se v administraci) */
/* výchozí: postava posunutá níž, horní mezera splývá s tmavým pozadím fotografie */
.hero-portrait img { transform: translateY(10%); }
.hero-portrait.pos-top0 img { transform: none; }
.hero-portrait.pos-down18 img { transform: translateY(18%); }
.hero-portrait.pos-down26 img { transform: translateY(26%); }
.hero-portrait.pos-10 img, .hero-portrait.pos-20 img, .hero-portrait.pos-30 img, .hero-portrait.pos-whole img { transform: none; }
.hero-portrait.pos-10 img { object-position: 50% 10%; }
.hero-portrait.pos-20 img { object-position: 50% 20%; }
.hero-portrait.pos-30 img { object-position: 50% 30%; }
.hero-portrait.pos-whole img { object-fit: contain; object-position: 50% 100%; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #eef1f5 0%, rgba(238,241,245,.85) 12%, rgba(238,241,245,0) 42%), linear-gradient(0deg, rgba(5,7,13,.55), transparent 30%); }
.hero-portrait figcaption { position: absolute; right: 28px; bottom: 28px; z-index: 2; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); color: var(--ink); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.3; }
.hero-portrait figcaption strong { font-family: var(--serif); font-size: 15px; }
.hero-portrait figcaption span { font-size: 12.5px; color: var(--muted); }
.hero-portrait.is-empty { background: transparent; }
.hero-portrait.is-empty::after { display: none; }
.portrait-placeholder { position: absolute; inset: 48px 40px 48px 14%; border-radius: 32px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(500px 300px at 70% 10%, rgba(37,99,235,.45), transparent 70%), var(--night); }
.portrait-placeholder::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; }
.portrait-placeholder .ico { position: relative; width: 38%; height: 38%; color: var(--blue-lt); stroke-width: .9; opacity: .9; }

.hero-ticker { position: relative; z-index: 2; height: var(--ticker-h); display: flex; align-items: center; background: var(--night); color: #e2e8f0; overflow: hidden; }
.ticker-track { display: flex; gap: 30px; width: max-content; animation: ticker 50s linear infinite; }
.ticker-track span { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--blue-lt); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Obecné sekce ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.theme-light { background: var(--bg); }
.theme-paper { background: var(--white); }
.theme-dark { background: radial-gradient(900px 500px at 20% 0%, rgba(30,64,175,.35), transparent 65%), var(--night); color: #cbd5e1; }
.theme-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }
.theme-dark > .container { position: relative; }
.theme-dark a { color: var(--blue-lt); }
.theme-accent { background: linear-gradient(115deg, var(--blue-3) 0%, var(--blue-2) 50%, #3b82f6 100%); color: #e0e7ff; }
.theme-accent a:not(.btn) { color: #fff; }
.rounded-top { border-radius: 40px 40px 0 0; margin-top: -40px; }
.kicker { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.theme-dark .kicker { color: var(--blue-lt); }
.theme-accent .kicker { color: #bfdbfe; }
.section-head { max-width: 860px; margin-bottom: 44px; }
.section-title { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.18; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.theme-dark .section-title, .theme-accent .section-title { color: #fff; }
.lead-text { font-size: 18.5px; max-width: 820px; margin: -14px 0 44px; color: var(--muted); }
.theme-dark .lead-text { color: #94a3b8; }
.lead-text p { margin: 0 0 14px; }
.lead-text strong { color: var(--ink); }
.theme-dark .lead-text strong { color: #fff; }
.prose { max-width: 820px; font-size: 18px; }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--ink); }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; margin-top: 1.6em; }
.theme-dark .prose h2, .theme-dark .prose h3, .theme-accent .prose h2, .theme-accent .prose h3 { color: #fff; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--blue-2); font-family: var(--serif); font-size: 21px; }
.theme-accent .btn-primary { background: #fff; color: var(--ink); }
.theme-accent .btn-primary:hover { background: var(--night-2); color: #fff; }
.theme-accent .btn-ghost { color: #e0e7ff; }
.theme-accent .btn-ghost:hover { color: #fff; }

/* ---------- Pilíře ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { position: relative; padding: 34px 32px 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, #3b82f6, var(--blue-2)); color: #fff; box-shadow: 0 10px 20px -10px rgba(37,99,235,.8); margin-bottom: 24px; }
.pillar-icon .ico { width: 26px; height: 26px; }
.pillar-num { position: absolute; top: 26px; right: 30px; font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1; color: #e9edf3; }
.pillar h3 { font-family: var(--serif); font-size: 23px; line-height: 1.28; margin: 0 0 12px; color: var(--ink); }
.pillar-body p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.pillar-body strong { color: var(--ink); }
.theme-dark .pillar { background: rgba(17,24,39,.75); border-color: rgba(148,163,184,.14); box-shadow: none; }
.theme-dark .pillar h3 { color: #fff; }
.theme-dark .pillar-num { color: rgba(255,255,255,.06); }
.theme-dark .pillar-body p { color: #94a3b8; }
.theme-dark .pillar-body strong { color: #fff; }

/* ---------- Čísla ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 28px 26px; border-radius: 20px; background: rgba(17,24,39,.75); border: 1px solid rgba(148,163,184,.14); }
.stat-num { font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin-bottom: 14px; white-space: nowrap; background: linear-gradient(90deg, #bfdbfe, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-text p { margin: 0; color: #94a3b8; font-size: 15.5px; }
.theme-light .stat, .theme-paper .stat { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.theme-light .stat-num, .theme-paper .stat-num { background-image: linear-gradient(90deg, var(--blue-3), var(--blue)); }
.theme-light .stat-text p, .theme-paper .stat-text p { color: var(--muted); }

/* ---------- Srovnání ---------- */
.contrast-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 24px; align-items: stretch; }
.contrast-col { border-radius: var(--radius); padding: 40px 38px; position: relative; }
.contrast-col h3 { font-family: var(--serif); font-size: 24px; line-height: 1.3; margin: 16px 0 22px; }
.contrast-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contrast-col li { position: relative; padding-left: 36px; font-size: 16px; }
.contrast-col li p { margin: 0; }
.contrast-us { background: radial-gradient(600px 300px at 100% 0%, rgba(37,99,235,.45), transparent 70%), var(--night-2); color: #cbd5e1; box-shadow: var(--shadow-lg); }
.contrast-us h3 { color: #fff; }
.contrast-us strong { color: #fff; }
.contrast-us a { color: var(--blue-lt); }
.contrast-us li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--blue) url("../img/i-check.svg") center / 14px no-repeat; }
.contrast-them { background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.contrast-them h3 { color: #475569; }
.contrast-them li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: #f1f5f9 url("../img/i-minus.svg") center / 12px no-repeat; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.badge-yes { background: rgba(96,165,250,.16); color: #93c5fd; }
.badge-no { background: #f1f5f9; color: #64748b; }
.contrast-note { margin-top: 32px; padding: 24px 28px; border-radius: 18px; background: var(--blue-bg); border: 1px solid #dbe4ff; max-width: 900px; display: grid; gap: 4px; }
.contrast-note h3 { font-family: var(--serif); margin: 0; font-size: 19px; color: var(--ink); }
.contrast-note p { margin: 0; color: #475569; }

/* ---------- Karty ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 30px; box-shadow: 0 4px 18px -12px rgba(15,23,42,.25); transition: transform .3s, box-shadow .3s; }
.theme-paper .card { background: #f8fafc; box-shadow: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-num { position: absolute; top: 24px; right: 26px; font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1; color: #e9edf3; }
.theme-paper .card-num { color: #e3e8ef; }
.card h3 { font-family: var(--serif); font-size: 20px; line-height: 1.35; margin: 0 0 12px; padding-right: 48px; color: var(--ink); }
.card h3::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 3px; background: var(--blue); margin-bottom: 18px; transition: width .3s; }
.card:hover h3::before { width: 56px; }
.card-body p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
.card-body p:last-child { margin-bottom: 0; }
.card-body strong { color: var(--ink); }
.theme-dark .card { background: rgba(17,24,39,.75); border-color: rgba(148,163,184,.14); box-shadow: none; }
.theme-dark .card h3 { color: #fff; }
.theme-dark .card-num { color: rgba(255,255,255,.06); }
.theme-dark .card-body p { color: #94a3b8; }

/* ---------- Seznamy s odškrtnutím ---------- */
.checklist { max-width: 920px; }
.checklist > p { margin: 0 0 16px; }
.checklist strong { color: var(--ink); }
.checklist ul, .checklist ol { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding: 15px 20px 15px 60px; background: var(--white); border-radius: 14px; border: 1px solid var(--line); color: #1e293b; }
.theme-paper .checklist li { background: #f8fafc; }
.checklist ul li::before { content: ""; position: absolute; left: 18px; top: 15px; width: 26px; height: 26px; border-radius: 8px; background: var(--blue) url("../img/i-check.svg") center / 15px no-repeat; }
.checklist ol { counter-reset: n; }
.checklist ol li { counter-increment: n; }
.checklist ol li::before { content: counter(n); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--night-2); color: #fff; font-weight: 700; font-size: 14px; }
.theme-dark .checklist li { background: rgba(17,24,39,.75); border-color: rgba(148,163,184,.14); color: #e2e8f0; }
.theme-dark .checklist ol li::before { background: linear-gradient(160deg, #3b82f6, var(--blue-2)); }
.theme-dark .checklist strong { color: #fff; }
@media (min-width: 900px) {
  .theme-dark .checklist { max-width: none; }
  .theme-dark .checklist > p { max-width: 860px; }
  .theme-dark .checklist ol { grid-template-columns: 1fr 1fr; }
}

/* ---------- Citát ---------- */
.layout-quote { padding: clamp(80px, 9vw, 120px) 0; }
.big-quote { text-align: center; }
.big-quote::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 26px; background: url("../img/i-quote.svg") center / contain no-repeat; opacity: .85; }
.big-quote blockquote, .big-quote p { margin: 0 auto; max-width: 960px; font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 3.4vw, 40px); line-height: 1.38; color: #fff; }
.big-quote blockquote::before { content: "„"; }
.big-quote blockquote::after { content: "“"; }

/* ---------- Kroky ---------- */
.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.timeline-grid::before { content: ""; position: absolute; left: 30px; right: 30px; top: 29px; height: 2px; background: linear-gradient(90deg, var(--blue-2), #93c5fd); opacity: .5; }
.step { position: relative; }
.step-num { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--night-2); color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 700; margin-bottom: 22px; box-shadow: 0 0 0 8px var(--bg), 0 14px 26px -14px rgba(15,23,42,.8); }
.step:nth-child(2) .step-num { background: var(--blue-3); }
.step:nth-child(3) .step-num { background: var(--blue-2); }
.theme-paper .step-num { box-shadow: 0 0 0 8px var(--white); }
.step-body { background: var(--white); border-radius: var(--radius); padding: 28px 28px 20px; border: 1px solid var(--line); box-shadow: 0 4px 18px -12px rgba(15,23,42,.25); height: calc(100% - 82px); }
.theme-paper .step-body { background: #f8fafc; box-shadow: none; }
.step-body h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 12px; color: var(--ink); }
.step-body p { margin: 0 0 12px; font-size: 15.5px; color: var(--muted); }
.step-body p strong { color: var(--ink); }

/* ---------- Životopis ---------- */
.cv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; align-items: start; }
.cv-wrap.no-photo { grid-template-columns: 1fr; }
.cv-photo { position: sticky; top: 100px; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cv-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; }
.cv-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px; color: #fff; background: linear-gradient(0deg, rgba(5,7,13,.92) 0%, rgba(5,7,13,.7) 55%, transparent 100%); font-family: var(--serif); font-size: 17px; text-shadow: 0 1px 8px rgba(0,0,0,.5); line-height: 1.45; }
.cv-grid { display: grid; position: relative; }
.cv-grid::before { content: ""; position: absolute; left: 21px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.cv-item { display: grid; grid-template-columns: 44px 130px 1fr; gap: 0 20px; padding: 12px 0; position: relative; align-items: start; }
.cv-item::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--white) url("../img/i-dot.svg") center / 14px no-repeat; border: 1px solid var(--line); box-shadow: 0 2px 8px -4px rgba(15,23,42,.3); position: relative; }
.cv-when { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; font-size: 13.5px; color: var(--blue); padding-top: 12px; }
.cv-what { padding-top: 9px; }
.cv-what p { margin: 0; color: var(--muted); font-size: 15.5px; }
.cv-what strong { display: block; color: var(--ink); font-size: 17px; font-weight: 650; margin-bottom: 2px; }
.theme-dark .cv-grid::before { background: rgba(148,163,184,.2); }
.theme-dark .cv-item::before { background-color: var(--night-2); border-color: rgba(148,163,184,.25); }
.theme-dark .cv-what strong { color: #fff; }
.theme-dark .cv-what p { color: #94a3b8; }
.theme-dark .cv-when { color: var(--blue-lt); }

/* ---------- Patička ---------- */
.footer { background: #050816; color: #94a3b8; padding: 72px 0 30px; font-size: 15px; }
.footer a { color: #e2e8f0; text-decoration: none; }
.footer a:hover { color: var(--blue-lt); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.footer-brand { display: flex; gap: 18px; }
.footer-brand .brand-mark { background: #0f172a; border-color: #1e293b; color: #e2e8f0; box-shadow: none; }
.footer-text p { margin: 0 0 10px; }
.footer-text strong { color: #fff; font-family: var(--serif); font-size: 18px; }
.privacy summary { cursor: pointer; color: #fff; font-weight: 600; list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after { content: "+"; color: var(--blue-lt); }
.privacy[open] summary::after { content: "–"; }
.privacy-body { font-size: 14px; margin-top: 12px; }
.privacy-body p { margin: 0 0 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(148,163,184,.12); font-size: 13.5px; }
.motto { color: #cbd5e1; }

/* ---------- Animace při posunu ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards-grid .reveal:nth-child(2), .js .pillars-grid .reveal:nth-child(2), .js .stats-grid .reveal:nth-child(2), .js .timeline-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .cards-grid .reveal:nth-child(3), .js .pillars-grid .reveal:nth-child(3), .js .stats-grid .reveal:nth-child(3), .js .timeline-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .cards-grid .reveal:nth-child(4), .js .stats-grid .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 1400px) {
  .top-cta { display: none; }
  .mainnav a { padding: 8px 9px; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: grid; gap: 5px; background: transparent; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
  .nav-toggle span:not(.sr) { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mainnav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: #fff; padding: 10px 20px 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s; box-shadow: 0 20px 40px -24px rgba(15,23,42,.5); z-index: -1; }
  .mainnav a { font-size: 17px; padding: 12px 10px; }
  .nav-open .mainnav { transform: none; }
}
@media (max-width: 1100px) {
  .cv-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 36px; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 36px 0 56px; }
  .hero-portrait { position: relative; inset: auto; width: 100%; height: 480px; }
  .hero-portrait::after { background: linear-gradient(0deg, #eef1f5 0%, rgba(238,241,245,0) 35%); }
  .hero-portrait figcaption { right: 20px; bottom: 70px; }
  .hero-portrait.is-empty { display: none; }
  .pillars-grid, .timeline-grid { grid-template-columns: 1fr; }
  .timeline-grid::before { left: 29px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue-2), #93c5fd); }
  .step { display: grid; grid-template-columns: 60px 1fr; gap: 18px; }
  .step-body { height: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contrast-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cv-wrap { grid-template-columns: 1fr; }
  .cv-photo { position: relative; top: 0; max-width: 420px; order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 14px; }
  .hero-portrait { height: 400px; }
  .stats-grid { grid-template-columns: 1fr; }
  .cv-item { grid-template-columns: 44px 1fr; }
  .cv-when { grid-column: 2; grid-row: 1; padding-top: 2px; }
  .cv-what { grid-column: 2; padding-top: 0; }
  .cv-item::before { grid-row: 1 / span 2; }
  .contrast-col { padding: 30px 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .checklist li { padding-left: 56px; }
  .rounded-top { border-radius: 28px 28px 0 0; margin-top: -28px; }
}

@media print {
  .topbar, .hero-ticker, .nav-toggle { display: none !important; }
  .theme-dark, .theme-accent { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
