/* František Design — styly webu frantisekdesign.cz
   Hodnoty odpovídají design systému „František Design“ (tokens.json). */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-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; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-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: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-wght-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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-ext-wght-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: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/fonts/jetbrains-mono-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: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/fonts/jetbrains-mono-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: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/fonts/jetbrains-mono-latin-500-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: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/fonts/jetbrains-mono-latin-ext-500-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; }

/* ---------- Tokeny ---------- */
:root {
  color-scheme: light dark;
  --paper: #f4f1ea; --paper-raised: #ffffff; --paper-sunken: #eae5da;
  --ink: #1d2133; --ink-muted: #585d6e;
  --line: #d6cfc1; --line-strong: #8e8778;
  --band: #1d2133; --on-band: #f2eee5; --on-band-muted: #b4b8c6;
  --signal: #cc3f1c; --on-signal: #ffffff; --signal-ink: #b5361a; --signal-soft: #f8ded4;
  --teal: #1c6b66; --teal-soft: #d6eae6;
  --marker: #f5d547; --on-marker: #1d2133;
  --focus: var(--teal); --danger: #b5361a; --success: #1c6b66;
  --shadow-lift: 0 1px 0 #d6cfc1, 0 16px 32px -20px rgba(29, 33, 51, .35);
  --logo-filter: none;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;
  --radius-sm: 4px; --radius-md: 10px; --radius-lg: 20px; --radius-pill: 999px;
  --container: 1200px; --measure: 68ch; --header-height: 72px;
  --gutter: var(--space-8); --section: var(--space-24);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13151e; --paper-raised: #1b1e2a; --paper-sunken: #0d0f16;
    --ink: #f2eee5; --ink-muted: #a6aaba;
    --line: #2c3040; --line-strong: #6c7186;
    --band: #232738;
    --signal: #ff6b45; --on-signal: #13151e; --signal-ink: #ff8763; --signal-soft: #3a1f18;
    --teal: #5cc2b6; --teal-soft: #163331;
    --marker: #6e5a12; --on-marker: #f2eee5;
    --danger: #ff8763; --success: #5cc2b6;
    --shadow-lift: 0 1px 0 #2c3040, 0 16px 32px -20px rgba(0, 0, 0, .6);
    --logo-filter: invert(1) brightness(1.15);
  }
}
@media (max-width: 760px) { :root { --gutter: var(--space-4); --section: var(--space-16); } }

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + var(--space-4)); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-4); top: -60px; background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 100; text-decoration: none; }
.skip:focus { top: var(--space-2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--sunken { background: var(--paper-sunken); }
.section--rule { border-top: 1px solid var(--line); }
.section + .section--rule.section { margin-top: 0; }

/* ---------- Typografie ---------- */
.display-xl, .display, .h1, .h2, .h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
.display-xl { font-size: clamp(42px, 6vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.022em; font-variation-settings: "opsz" 64; }
.display { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -.018em; font-variation-settings: "opsz" 56; }
.h1 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.14; font-weight: 700; letter-spacing: -.012em; font-variation-settings: "opsz" 40; }
.h2 { font-size: 28px; line-height: 34px; font-weight: 650; letter-spacing: -.01em; }
.h3 { font-size: 20px; line-height: 26px; font-weight: 650; letter-spacing: -.005em; }
.dot { color: var(--signal); }
.lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); margin: 0; max-width: 36em; }
@media (max-width: 760px) { .lead { font-size: 18px; line-height: 28px; } }
.small, .meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); display: inline-flex; gap: var(--space-2); align-items: center; margin: 0; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.mark { background: linear-gradient(transparent 60%, var(--marker) 60%, var(--marker) 94%, transparent 94%); color: var(--on-marker); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.link { color: var(--signal-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Tlačítka ---------- */
.btn { font: 600 16px/20px var(--font-sans); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--signal); color: var(--on-signal); }
.btn--primary:hover { background: var(--signal-ink); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); padding-left: 0; padding-right: 0; }
.btn--ghost:hover { color: var(--signal-ink); }
.btn--on-band { background: var(--on-band); color: #1d2133; }
.btn--on-band:hover { background: #ffffff; }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: 15px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.textlink { font-weight: 600; text-decoration: none; color: var(--ink); display: inline-flex; gap: var(--space-2); align-items: center; }
.textlink:hover { color: var(--signal-ink); }
.textlink:hover .arrow { transform: translateX(3px); }
.textlink .arrow { transition: transform .15s ease; }

/* ---------- Štítky, klávesy ---------- */
.tag { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: var(--paper-sunken); color: var(--ink); text-decoration: none; white-space: nowrap; }
.card .tag, .section--sunken .tag { background: var(--paper); }
.tag--photoshop, .card .tag--photoshop { background: var(--signal-soft); color: var(--signal-ink); }
.tag--wordpress, .card .tag--wordpress { background: var(--teal-soft); color: var(--teal); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
kbd { font-family: var(--font-mono); font-size: .85em; display: inline-block; padding: 0 var(--space-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink); line-height: 1.5; }

/* ---------- Hlavička ---------- */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__in { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.logo { display: block; flex: none; }
.logo img { height: 28px; width: auto; filter: var(--logo-filter); }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__list { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav__list a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); padding: var(--space-1) 0; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.nav__list a:hover { border-color: var(--line-strong); }
.nav__list a[aria-current="page"] { color: var(--signal-ink); border-color: var(--signal); }
.nav-toggle { display: none; font: 600 15px/20px var(--font-sans); background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); padding: var(--space-2) var(--space-4); cursor: pointer; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-height) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: var(--space-6); padding: var(--space-6) var(--gutter) var(--space-8); display: none; max-height: calc(100vh - var(--header-height)); overflow: auto; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 650; letter-spacing: -.02em; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .nav__list a[aria-current="page"] { border-color: var(--line); }
  .nav .btn { align-self: flex-start; }
}
.no-js .nav-toggle { display: none; }
@media (max-width: 1180px) { .no-js .nav { position: static; display: flex; } }

/* ---------- Hero ---------- */
.hero { padding-top: var(--space-16); padding-bottom: var(--space-24); }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-16); align-items: center; }
.hero__text > * + * { margin-top: var(--space-6); }
.hero__text .btn-row { margin-top: var(--space-8); }
.hero__note { font-size: 15px; line-height: 22px; color: var(--ink-muted); max-width: 30em; }
.hero__photo { margin: 0; position: relative; }
.hero__photo img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 68% 0; width: 100%; background: var(--paper-sunken); }
@media (max-width: 900px) {
  .hero { padding-top: var(--space-8); padding-bottom: var(--space-16); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero__photo { order: -1; max-width: 420px; }
  .hero__photo img { aspect-ratio: 5 / 4; object-position: 70% 15%; }
}
.page-hero { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.page-hero > .wrap > * + * { margin-top: var(--space-6); }
.page-hero .btn-row { margin-top: var(--space-8); }
.page-hero .display { max-width: 18em; }
@media (max-width: 760px) { .page-hero { padding-top: var(--space-8); padding-bottom: var(--space-12); } }

/* Důvěryhodnostní řádek */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__item { padding: var(--space-6) var(--space-6) var(--space-6) 0; }
.trust__item + .trust__item { border-left: 1px solid var(--line); padding-left: var(--space-6); }
.trust__item strong { display: block; font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 650; letter-spacing: -.01em; margin-bottom: var(--space-1); }
.trust__item span { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr; }
  .trust__item, .trust__item + .trust__item { padding: var(--space-4) 0; border-left: 0; }
  .trust__item + .trust__item { border-top: 1px solid var(--line); }
}

/* ---------- Hlavička sekce ---------- */
.sec-head { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-12); max-width: 760px; }
.sec-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: var(--space-8); max-width: none; }
.sec-head--split > div { display: flex; flex-direction: column; gap: var(--space-4); max-width: 760px; }
.sec-head .lead { margin-top: var(--space-2); }
@media (max-width: 760px) { .sec-head--split { flex-direction: column; align-items: flex-start; } .sec-head { margin-bottom: var(--space-8); } }

/* ---------- Mřížky a karty ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: var(--space-3); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card p { margin: 0; color: var(--ink-muted); }
.card .textlink { margin-top: auto; padding-top: var(--space-3); }
.num { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .08em; color: var(--signal-ink); }

/* Návody */
.article-card { padding: 0; overflow: hidden; gap: 0; }
.article-card__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--paper-sunken); border-bottom: 1px solid var(--line); }
.article-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.article-card--text .article-card__body { justify-content: space-between; }

/* Projekty */
.project { padding: 0; overflow: hidden; gap: 0; }
.project__frame { background: var(--paper-sunken); padding: var(--space-6) var(--space-6) 0; border-bottom: 1px solid var(--line); }
.project__frame img { border-radius: var(--radius-sm) var(--radius-sm) 0 0; border: 1px solid var(--line); border-bottom: 0; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; width: 100%; }
.project__browser { border-radius: var(--radius-sm) var(--radius-sm) 0 0; border: 1px solid var(--line); border-bottom: 0; aspect-ratio: 4 / 3; background: var(--paper-raised); display: flex; flex-direction: column; overflow: hidden; }
.project__bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.project__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.project__bar span { margin-left: var(--space-2); font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); background: var(--paper-sunken); border-radius: var(--radius-pill); padding: 2px 10px; }
.project__type { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-6); gap: var(--space-2); color: var(--on-band); }
.project__type { background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(242,238,229,.07) 31px 32px), var(--band); }
.project__type b { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; color: var(--on-band); }
.project__type b em { font-style: normal; color: var(--signal); }
.project__type small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-band-muted); }
.project__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.project__body .textlink { margin-top: auto; padding-top: var(--space-2); }

/* Principy, kroky */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); margin-top: var(--space-12); counter-reset: p; }
.principle { border-top: 2px solid var(--ink); padding-top: var(--space-4); }
.principle h3 { margin-bottom: var(--space-2); }
.principle p { color: var(--ink-muted); margin: 0; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: var(--space-6); } }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: s; border-top: 2px solid var(--signal); padding-top: var(--space-4); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 13px; color: var(--signal-ink); margin-bottom: var(--space-3); }
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--ink-muted); margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .steps, .steps--3 { grid-template-columns: 1fr; } }

/* Seznam s fajfkami */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checklist li { padding: var(--space-4) 0 var(--space-4) var(--space-8); border-bottom: 1px solid var(--line); position: relative; }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 7px; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }
.checklist strong { font-weight: 600; }

/* Oblasti automatizace */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.area { padding: var(--space-6) var(--space-6) var(--space-6) 0; border-bottom: 1px solid var(--line); }
.areas:not(.areas--stack) .area:nth-child(even) { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.areas--stack { grid-template-columns: 1fr; }
.area h3 { margin-bottom: var(--space-2); }
.area p { color: var(--ink-muted); margin: 0; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } .area, .area:nth-child(even) { padding: var(--space-6) 0; border-left: 0; } }

/* Dvousloupec */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-16); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--center { align-items: center; }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: 1fr; gap: var(--space-8); } }
.stack > * + * { margin-top: var(--space-6); }

/* Zvýrazněný citát */
.callout { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; margin: 0; padding-left: var(--space-8); border-left: 3px solid var(--signal); max-width: 30em; text-wrap: balance; }

/* Pás */
.band { background: var(--band); color: var(--on-band); border-radius: var(--radius-lg); padding: var(--space-12); display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: end; }
.band .h1, .band .h2, .band .display { color: var(--on-band); }
.band p { color: var(--on-band-muted); margin: var(--space-3) 0 0; max-width: 40em; }
.band .eyebrow { color: var(--on-band-muted); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: var(--space-8) var(--space-6); } }

.course { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-raised); }
.course__main { padding: var(--space-12); }
.course__main > * + * { margin-top: var(--space-4); }
.course__main .btn-row { margin-top: var(--space-8); }
.course__side { background: var(--band); color: var(--on-band); padding: var(--space-12); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); }
.course__side .eyebrow { color: var(--on-band-muted); }
.course__title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.015em; }
.course__title em { font-style: normal; color: var(--marker); }
@media (prefers-color-scheme: dark) { .course__title em { color: #f5d547; } }
.course__side { gap: var(--space-6); justify-content: flex-start; }
.course__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.course__logo { align-self: flex-start; height: 30px; width: auto; max-width: 160px; margin-top: auto; filter: invert(1) grayscale(1) brightness(1.6); opacity: .9; }
@media (max-width: 900px) { .course { grid-template-columns: 1fr; } .course__main, .course__side { padding: var(--space-8) var(--space-6); } .course__side { order: -1; } }

/* O mně */
.about { display: grid; grid-template-columns: 380px 1fr; gap: var(--space-16); align-items: center; }
.about img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--paper-sunken); }
.about__text > * + * { margin-top: var(--space-4); }
.about__text .h1 { margin-top: var(--space-4); }
.about__text p { max-width: 36em; }
.about__text .btn-row { margin-top: var(--space-6); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--space-8); } .about img { max-width: 320px; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--space-6) var(--space-12) var(--space-6) 0; position: relative; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 650; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--signal-ink); }
.faq details > div { padding: 0 var(--space-12) var(--space-6) 0; color: var(--ink-muted); max-width: 44em; }

/* ---------- Blog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.filters a { font-size: 15px; font-weight: 500; text-decoration: none; padding: var(--space-2) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink); }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters a span { color: inherit; opacity: .65; font-family: var(--font-mono); font-size: 12px; margin-left: 4px; }
.rubrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.rubrics h3 { font-family: var(--font-display); font-size: 18px; line-height: 24px; margin: 0 0 var(--space-1); font-weight: 650; }
.rubrics p { font-size: 15px; line-height: 22px; color: var(--ink-muted); margin: 0; }

/* Článek */
.article { padding-top: var(--space-12); padding-bottom: var(--space-24); }
.article__head, .prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.crumbs { font-size: 14px; line-height: 20px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.crumbs a { color: var(--signal-ink); text-underline-offset: 3px; }
.article__head .meta { margin-top: var(--space-8); }
.article__head .display { margin-top: var(--space-4); }
.article__cover { max-width: 1000px; margin: var(--space-12) auto; }
.article__cover img { border-radius: var(--radius-lg); width: 100%; max-height: 560px; object-fit: cover; background: var(--paper-sunken); }
.notice { max-width: 760px; margin: var(--space-8) auto 0; background: var(--paper-sunken); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.notice strong { color: var(--ink); }

.prose { font-size: 18px; line-height: 30px; }
.prose > * { margin: 0 0 var(--space-6); }
.prose h2 { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 650; letter-spacing: -.02em; margin: var(--space-12) 0 var(--space-4); }
.prose h3 { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -.01em; margin: var(--space-8) 0 var(--space-3); }
.prose h4 { font-size: 18px; font-weight: 650; margin: var(--space-6) 0 var(--space-2); }
.prose h2 strong, .prose h3 strong { font-weight: inherit; }
.prose a { color: var(--signal-ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li { margin-bottom: var(--space-2); }
.prose li::marker { color: var(--signal-ink); }
.prose figure { margin: var(--space-8) 0; }
.prose figure img, .prose > p img { border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--paper-raised); margin: 0 auto; }
.prose figcaption { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: var(--space-2); text-align: center; }
.prose blockquote { margin: var(--space-8) 0; padding-left: var(--space-6); border-left: 3px solid var(--signal); font-size: 20px; line-height: 32px; }
.prose .box { background: var(--paper-sunken); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); }
.prose .big { font-size: 20px; line-height: 32px; }
.prose .btn { text-decoration: none; color: var(--on-signal); }
.prose .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); align-items: end; }
.prose .cols figure { margin: 0; }
.article__end { max-width: 760px; margin: var(--space-16) auto 0; padding-top: var(--space-8); border-top: 1px solid var(--line); }

/* Právní text */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 650; letter-spacing: -.015em; margin: var(--space-12) 0 var(--space-3); }
.legal h3 { font-size: 18px; font-weight: 650; margin: var(--space-6) 0 var(--space-2); }
.legal ul { padding-left: var(--space-6); margin: 0 0 var(--space-4); }
.legal li { margin-bottom: var(--space-1); }

/* ---------- Formulář ---------- */
.form { display: grid; gap: var(--space-6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 680px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.label { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.label .opt { font-weight: 400; color: var(--ink-muted); }
.hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.input { font: 400 17px/24px var(--font-sans); color: var(--ink); background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); width: 100%; }
textarea.input { min-height: 160px; resize: vertical; }
.input::placeholder { color: var(--ink-muted); opacity: .8; }
.input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field--error .input { border-color: var(--danger); }
.error { font-size: 14px; line-height: 20px; color: var(--danger); }
.choices { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; padding: 0; margin: 0; }
.choices legend { margin-bottom: var(--space-2); padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; font-size: 15px; line-height: 20px; padding: var(--space-2) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--paper-raised); cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { border-radius: var(--radius-md); padding: var(--space-6); }
.form__status[hidden] { display: none; }
.form__status--ok { background: var(--teal-soft); }
.form__status--ok h2 { margin-bottom: var(--space-2); }
.form__status--err { background: var(--signal-soft); color: var(--ink); }
.contact-side { position: sticky; top: calc(var(--header-height) + var(--space-8)); }
.contact-side > * + * { margin-top: var(--space-6); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); background: var(--paper-raised); }
.contact-card dl { margin: 0; display: grid; gap: var(--space-3); }
.contact-card dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.contact-card dd { margin: 0; }
@media (max-width: 900px) { .contact-side { position: static; } }

/* ---------- Patička ---------- */
.footer { background: var(--band); color: var(--on-band-muted); padding: var(--space-16) 0 var(--space-8); font-size: 15px; line-height: 24px; }
.footer a { color: var(--on-band); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-12); }
.footer__cta { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.012em; color: var(--on-band); margin: 0 0 var(--space-4); }
.footer h2 { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--on-band-muted); margin: 0 0 var(--space-4); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer__bottom { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid rgba(180, 184, 198, .3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: 14px; }
.footer .logo img { filter: invert(1) brightness(1.15); height: 28px; margin-bottom: var(--space-6); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { padding: var(--space-24) 0; }
.notfound .display { font-size: clamp(64px, 12vw, 160px); line-height: .9; }
.h1-sub { display: block; margin-top: .35em; font-size: .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; color: var(--ink-muted); }
.split--contact { grid-template-columns: 7fr 4fr; }
@media (max-width: 900px) { .split--contact { grid-template-columns: 1fr; } }
.input, .choices { min-width: 0; }

/* ---------- Kontaktní formulář – karta ---------- */
.form-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-lift); gap: 0; }
.form__group { display: grid; gap: var(--space-4); padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.form__group:first-child { border-top: 0; padding-top: 0; }
.form__step { display: flex; align-items: baseline; gap: var(--space-3); margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.form__step > span:first-child { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--signal-ink); font-weight: 500; }
.form__step .opt { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--ink-muted); }
.form-card .form__row { gap: var(--space-4); }
.form-card .choices { flex-direction: row; gap: var(--space-2); }
.form-card .choices legend { width: 100%; margin-bottom: var(--space-3); }
.form-card .input { background-color: var(--paper); }
.form-card .input:focus { background-color: var(--paper-raised); }
.form-card textarea.input { min-height: 132px; }
.choice span { transition: background .15s, border-color .15s, color .15s; }
.choice:hover span { border-color: var(--ink); }
.select { appearance: none; -webkit-appearance: none; padding-right: var(--space-12); cursor: pointer;
  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='%23858a99' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--space-4) center; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.form__foot .small { flex: 1 1 260px; margin: 0; }
.split--contact { align-items: start; }
@media (max-width: 680px) { .form-card { padding: var(--space-6) var(--space-4); border-radius: var(--radius-md); } }
