/* =========================================================
   fara žije + — styly webu
   1. Tokeny   2. Základ   3. Rozvržení   4. Typografie
   5. Komponenty   6. Hlavička a patička   7. Pomocné třídy
   ========================================================= */

/* 1. Tokeny ------------------------------------------------ */
:root {
  --paper: #F5F1E8;
  --paper-2: #EFEADC;
  --ink: #201C18;
  --ink-2: #4A423A;
  --muted: #8B8478;
  --accent: #A24F2E;
  --accent-tint: #F2E1D8;
  --line: #D8D2C4;

  --serif: Literata, Georgia, serif;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --mono: ui-monospace, monospace;

  --max: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* 2. Základ ------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
h1, h2, h3, h4, p, blockquote, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration: underline; }
/* Odkazy s třídou (tlačítka, karty, menu) mají vlastní vzhled. */
a:where([class]), a:where([class]):hover { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* 3. Rozvržení --------------------------------------------- */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 900px; }

.section { padding-block: clamp(60px, 8vw, 108px); }
.section--m { padding-block: clamp(46px, 6vw, 84px); }
.section--s { padding-block: clamp(40px, 5vw, 72px); }
.section-end { padding-bottom: clamp(50px, 6vw, 84px); }
.page-intro { padding-block: clamp(48px, 7vw, 92px) clamp(34px, 4vw, 54px); }

.alt { background: var(--paper-2); }
.rule-t { border-top: 1px solid var(--line); }
.rule-b { border-bottom: 1px solid var(--line); }

/* Pružná mřížka: sloupce min. --min široké, mezera --gap (nastavuje se u prvku). */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); gap: var(--gap, clamp(28px, 4vw, 56px)); align-items: start; }

.section-head { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: baseline; margin-bottom: 26px; }
.section-head > .eyebrow { margin: 0; }
.section-head > .link-s { margin-left: auto; }
.section-head--tight { margin-bottom: 6px; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: clamp(48px, 8vw, 96px); }
.split__col { padding-block: clamp(56px, 7vw, 100px); }
/* Pod sebou (pod cca 670 px) by se horní a spodní odsazení sčítala. */
@media (max-width: 669px) {
  .split__col + .split__col { padding-top: 0; }
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions--center { align-items: center; gap: 16px; }

/* 4. Typografie -------------------------------------------- */
.serif { font-family: var(--serif); }
.accent { color: var(--accent); }
.soft { color: var(--ink-2); }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

.eyebrow { margin-bottom: 24px; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.eyebrow--strong { font-weight: 700; }
.eyebrow--tight { margin-bottom: 18px; }
.eyebrow--flush { margin: 0; }

.label { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.label--accent { color: var(--accent); }
.label--muted { color: var(--muted); }
.label--soft { color: var(--ink-2); }

.h-display { font-family: var(--serif); font-weight: 600; font-size: clamp(2.7rem, 6.6vw, 5.6rem); line-height: 0.97; letter-spacing: -0.025em; max-width: 19ch; }
.h-page { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 20ch; }
.h-page--s { font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: normal; max-width: 24ch; }
.h-section { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.3vw, 2.7rem); line-height: 1.12; letter-spacing: -0.02em; }
.h-chapter { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.14; }
.h-chapter--l { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; }
.h-sub { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.14; }
.h-card { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.h-card--l { font-size: 1.4rem; line-height: 1.16; }

.lead { margin-top: clamp(22px, 3vw, 32px); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.6; font-weight: 300; max-width: 50ch; }
.lead--flush { margin: 0; max-width: 46ch; }
.text { font-size: 1rem; line-height: 1.7; font-weight: 300; }
.text-l, .prose > p { font-size: 1.06rem; line-height: 1.72; font-weight: 300; }
.prose > * + * { margin-top: 18px; }
.note { font-size: 0.92rem; line-height: 1.65; font-weight: 300; color: var(--ink-2); }
.updated { margin-top: 20px; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }

.triple-plus { color: var(--accent); letter-spacing: 0.3em; }
.triple-plus--big { margin-bottom: 20px; font-family: var(--serif); font-size: 1.5rem; }

/* 5. Komponenty -------------------------------------------- */

/* Tlačítka a odkazy */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border: 1px solid transparent; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; font-weight: 600; }
.btn--primary { background: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--ink); color: var(--paper); }
.btn--outline { border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--paper); }

.links-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; }
.link-u { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.link-u:hover { color: var(--ink); border-bottom-color: var(--ink); }
.link-u--quiet { color: var(--ink); border-bottom-color: var(--line); }
.link-u--quiet:hover { color: var(--accent); border-bottom-color: var(--accent); }
.link-s { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-s:hover { border-bottom-color: var(--accent); }

/* Úvod: hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
/* V pozadí slabě fotka z farního života (vybírá pages/home.php). */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-photo) center / cover; opacity: 0.13; filter: saturate(0.6); }
.hero__inner { padding-block: clamp(44px, 6.5vw, 104px) clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__eyebrow { margin-bottom: clamp(20px, 3vw, 34px); }
.hero__lead { margin-top: clamp(24px, 3vw, 36px); font-size: clamp(1.12rem, 1.7vw, 1.45rem); line-height: 1.55; max-width: 34ch; font-weight: 300; }
.hero__actions { margin-top: clamp(28px, 3.4vw, 44px); }
.hero__actions .btn--outline:not(:hover) { background: var(--paper); }
/* Křížek: čtyři ramena, uprostřed volný prostor. Ramena jsou okna do plné fotky:
   ::before nese fotku přes celé hero (sedí přesně na zeslabenou), maska ji ořízne na tvar ramen. */
.hero__cross { justify-self: end; width: min(100%, 440px); aspect-ratio: 1; --arm: linear-gradient(#000, #000); mask: var(--arm) top / 9% 44%, var(--arm) bottom / 9% 44%, var(--arm) left / 44% 9%, var(--arm) right / 44% 9%; mask-repeat: no-repeat; }
.hero__cross::before, .hero__cross::after { content: ""; position: absolute; inset: 0; }
.hero__cross::before { background: var(--hero-photo) center / cover; }
/* Terakotový nádech: fotka si nechá světla a stíny, odstín převezme od akcentu. */
.hero__cross::after { background: var(--accent); mix-blend-mode: color; }
/* Na mobilu (hero v jednom sloupci) křížek skryjeme. */
@media (max-width: 699px) {
  .hero__cross { display: none; }
}

/* Úvod: pruh se stavem projektu */
.status { padding-block: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 48px); align-items: baseline; }
.status__label { flex: 0 0 auto; margin: 0; }
.status__body { flex: 1 1 420px; min-width: 0; }
.status__headline { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.18; letter-spacing: -0.015em; }
.status__detail { margin-top: 12px; font-size: 1rem; line-height: 1.6; max-width: 62ch; font-weight: 300; }

/* Úvod: čísla */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.numbers__item { border-top: 1px solid var(--ink); padding-top: 16px; }
.numbers__n { margin-bottom: 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; }
.numbers__label { font-size: 0.95rem; line-height: 1.5; font-weight: 300; }

/* Úvod: rozcestník */
.signposts { display: grid; grid-template-columns: repeat(3, 1fr); }
.signpost { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: clamp(34px, 4.4vw, 56px) 32px; border-right: 1px solid var(--line); }
.signpost:first-child { padding-left: 0; }
.signpost:last-child { padding-right: 0; border-right: 0; }
.signpost:hover { color: var(--accent); }
.signpost__title { font-size: 13px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 700; }
.signpost__text { font-size: 1rem; line-height: 1.6; font-weight: 300; max-width: 30ch; }
@media (max-width: 759px) {
  .signposts { grid-template-columns: 1fr; }
  .signpost, .signpost:first-child, .signpost:last-child { padding: 30px 0; border-right: 0; }
  .signpost + .signpost { border-top: 1px solid var(--line); }
}

/* Kroky projektu (úvod) a fáze (Stav projektu) */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step__mark { flex: 0 0 18px; font-family: var(--serif); font-size: 1.1rem; line-height: 1; }
.step__label { flex: 1 1 auto; font-size: clamp(1.05rem, 1.8vw, 1.32rem); }

.step.is-current, .phase.is-current { background: var(--paper-2); }
.step.is-done, .is-done > .phase__head { color: var(--ink); }
.step.is-current, .is-current > .phase__head { color: var(--accent); }
.step.is-todo, .is-todo > .phase__head { color: var(--muted); }

.phases { border-top: 1px solid var(--ink); }
.phase { border-bottom: 1px solid var(--line); }
.phase__head { width: 100%; display: flex; gap: 14px; align-items: baseline; padding: 18px 0; }
.phase__head:hover { color: var(--accent); }
.phase__mark { flex: 0 0 18px; font-family: var(--serif); font-size: 1.15rem; line-height: 1; }
.phase__label { flex: 1 1 auto; min-width: 0; font-size: clamp(1.08rem, 1.9vw, 1.4rem); }
.phase__sign { flex: 0 0 22px; text-align: right; font-family: var(--serif); font-size: 1.25rem; line-height: 1; color: var(--accent); }
.phase__sign::before { content: "+"; }
[aria-expanded="true"] > .phase__sign::before { content: "–"; }
.phase__body { padding: 0 0 22px 32px; }
.phase__item { display: grid; grid-template-columns: minmax(120px, 150px) minmax(0, 1fr); gap: 6px 28px; padding: 14px 0; border-top: 1px solid var(--line); }
.phase__title { margin-bottom: 6px; font-family: var(--serif); font-weight: 500; font-size: 1.18rem; line-height: 1.2; }
.phase__note { font-size: 0.98rem; line-height: 1.66; font-weight: 300; }
@media (max-width: 599px) {
  .phase__body { padding-left: 0; }
  .phase__item { grid-template-columns: 1fr; }
}

/* Stav projektu: etapy */
.stages { border-top: 1px solid var(--ink); }
.stages__item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.stages__item .label { margin-bottom: 6px; }

/* Projektový deník */
.diary__entry { padding: 24px 0; border-top: 1px solid var(--line); }
.diary__date { margin-bottom: 10px; }
.diary__title { margin-bottom: 10px; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; }
.diary__text { font-size: 1.02rem; line-height: 1.7; font-weight: 300; }
.diary--compact .diary__entry { padding: 0 0 24px; margin-bottom: 24px; border-top: 0; border-bottom: 1px solid var(--line); }
.diary--compact .diary__date, .diary--compact .diary__title { margin-bottom: 8px; }
.diary--compact .diary__title { font-size: 1.35rem; }
.diary--compact .diary__text { font-size: 1rem; line-height: 1.65; }

/* Nejbližší termíny */
.dates li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dates__when { flex: 0 0 96px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.dates__what { flex: 1 1 auto; font-size: 1.02rem; font-weight: 300; }
.dates--large { border-top: 1px solid var(--ink); }
.dates--large li { flex-wrap: wrap; gap: 8px 30px; padding: 16px 0; }
.dates--large .dates__when { flex-basis: 130px; }
.dates--large .dates__what { flex: 1 1 240px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }

/* Citáty */
.verse { margin: 0 auto; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 3.4vw, 2.5rem); line-height: 1.25; letter-spacing: -0.015em; max-width: 26ch; }
.verse__cite { margin-top: 22px; }
.pull-quote { border-left: 2px solid var(--accent); padding-left: clamp(20px, 3vw, 32px); max-width: 44ch; }
.pull-quote__text { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; }
.pull-quote__cite { margin-top: 16px; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.plus-quote { position: relative; overflow: hidden; }
.plus-quote .wrap { position: relative; padding-block: clamp(70px, 10vw, 150px); }
.plus-quote__text { margin: 0 auto; font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3.6vw, 2.7rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 24ch; }


/* Příběh: kapitoly */
.chapter { padding-block: clamp(50px, 6.5vw, 90px); }
.chapter--first { padding-top: 0; }
.chapter-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.chapter-head--rule { border-top: 1px solid var(--ink); padding-top: clamp(28px, 3.4vw, 44px); }
.chapter-head__num { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--accent); }

.zones { border-top: 1px solid var(--ink); }
.zones__item { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.zones__stars { font-size: 0.95rem; letter-spacing: 0.22em; color: var(--accent); line-height: 1; }
.zones__title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.16; }
.zones__text { font-size: 1rem; line-height: 1.68; font-weight: 300; max-width: 76ch; }

/* Mřížka buněk s linkami (Co zatím nevíme, Zapojit se, Design systém) */
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.cells > * { background: var(--paper); padding: clamp(22px, 2.6vw, 30px); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cells__head { margin-bottom: 12px; }
.cells__text { font-size: 0.98rem; line-height: 1.65; font-weight: 300; }
.cells__mark { margin-bottom: 14px; font-family: var(--serif); font-size: 1.8rem; color: var(--accent); line-height: 1; }
/* Horní i spodní okraj rámečku splývá s linkou sekce (rule-t, rule-b). */
.cells--ways { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border-top: 0; margin-bottom: -1px; }

/* Zapojit se: cesty zapojení */
.cells > .way { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3.4vw, 44px) clamp(22px, 2.6vw, 32px); }
.way__text { flex: 1 1 auto; line-height: 1.68; }
.way__list { margin-top: 6px; border-top: 1px solid var(--line); }
.way__list li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; line-height: 1.5; font-weight: 300; }

/* Řádkové seznamy s odrážkou */
.rows li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; line-height: 1.6; font-weight: 300; }
.rows--ruled { border-top: 1px solid var(--line); }
.rows__bullet { flex: 0 0 12px; font-family: var(--serif); color: var(--accent); }
.rows__key { flex: 0 0 120px; }

/* Soutěžní výzva: porota */
.jury { border-top: 1px solid var(--line); }
.jury__item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.jury__item dt { margin-bottom: 6px; }

/* Rozbalovací FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; gap: 18px; align-items: baseline; padding: 20px 0; }
.faq__q:hover { color: var(--accent); }
.faq__sign { flex: 0 0 14px; font-family: var(--serif); color: var(--accent); font-size: 1.15rem; line-height: 1; }
.faq__sign::before { content: "+"; }
[aria-expanded="true"] > .faq__sign::before { content: "−"; }
.faq__text { flex: 1 1 auto; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.35; }
.faq__a { margin-bottom: 24px; padding-left: 32px; font-size: 1rem; line-height: 1.7; font-weight: 300; max-width: 60ch; }

/* Formulář */
.form { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.form__trap { position: absolute; left: -9999px; }
.form__error { font-size: 0.95rem; color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__legend { padding: 0; margin-bottom: 8px; }
.field__hint { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.field__input, .field__textarea { font-family: var(--sans); font-size: 1.02rem; color: var(--ink); background: none; border-radius: 0; outline: none; }
.field__input { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); }
.field__input--strong { border-bottom-color: var(--ink); }
.field__textarea { padding: 12px; line-height: 1.6; border: 1px solid var(--line); resize: vertical; }
.field__input:focus, .field__textarea:focus { border-color: var(--accent); }

.choice { display: flex; gap: 12px; align-items: baseline; width: 100%; padding: 12px 14px; border: 1px solid var(--line); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--paper-2); }
.choice__mark { flex: 0 0 12px; font-family: var(--serif); color: var(--accent); line-height: 1; }
.choice__mark::before { content: "+"; }
[aria-pressed="true"] > .choice__mark::before { content: "✕"; }
.choice__title { display: block; font-size: 1.02rem; line-height: 1.3; }
.choice__note { display: block; margin-top: 4px; font-size: 0.9rem; font-weight: 300; line-height: 1.5; color: var(--ink-2); }

.form-thanks { margin-top: 26px; border-top: 1px solid var(--accent); padding-top: 22px; }
.form-thanks__title { margin-bottom: 10px; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; color: var(--accent); }
.form-direct { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.88rem; }

/* Zapojit se: dar */
/* Dělicí linka mezi sloupci je mezera 1 px s pozadím v barvě linky — sedí vedle sebe i pod sebou. */
.donate { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.donate__col { padding: clamp(30px, 3.6vw, 48px); background: var(--paper-2); }
.donate__col--bank { display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 30px); align-items: flex-start; background: var(--paper); }
.budget { border-top: 1px solid var(--line); }
.budget__row { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; line-height: 1.5; font-weight: 300; }
.budget__amount { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.qr { width: 100%; max-width: 230px; height: auto; }
.bank-value { margin: 5px 0 18px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }

/* Dokumenty */
.doc-group + .doc-group { margin-top: clamp(40px, 5vw, 66px); }
.docs { border-top: 1px solid var(--ink); }
.doc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.doc:hover { background: var(--paper-2); }
.doc__title { margin-bottom: 6px; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.doc__meta { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.doc__note { grid-column: span 2; min-width: 0; font-size: 1rem; line-height: 1.65; font-weight: 300; }

/* Design systém */
.ds-h { margin-bottom: 20px; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.swatches__chip { height: 110px; border: 1px solid var(--line); }
.swatches__name { margin: 10px 0 2px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.specimens { border-top: 1px solid var(--line); }
.specimens > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.specimens .mono { margin-bottom: 8px; font-size: 11px; }
.specimens__display { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; max-width: none; }

/* 6. Hlavička a patička ------------------------------------ */
/* Odkazy na kotvu (např. #denik) nesmí zajet pod přilepenou hlavičku. */
html { scroll-padding-top: 110px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245, 241, 232, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { --gutter: clamp(16px, 4vw, 48px); }
.site-header__bar { padding-block: 14px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.logo { display: inline-flex; align-items: baseline; gap: 8px; flex: 0 0 auto; white-space: nowrap; font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -0.015em; }
.logo--footer { margin-bottom: 14px; font-size: 1.5rem; letter-spacing: normal; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; margin-left: auto; }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.nav__link:hover { color: var(--accent); }
.nav__dot { flex: 0 0 9px; width: 9px; text-align: center; color: var(--accent); opacity: 0; }
.nav__link[aria-current] .nav__dot { opacity: 1; }
.nav__cta { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--accent); color: var(--accent); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.nav__cta[aria-current] { background: var(--accent-tint); }
.nav__cta:hover { background: var(--accent); color: var(--paper); }

.now-bar { background: var(--accent); color: var(--paper); }
.now-bar__inner { padding-block: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.now-bar__label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.now-bar__text { font-size: 0.95rem; line-height: 1.4; font-weight: 300; }
.now-bar__link { margin-left: auto; padding-bottom: 2px; border-bottom: 1px solid rgba(245, 241, 232, 0.5); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.now-bar__link:hover { border-bottom-color: var(--paper); }
.now-bar__close { margin-right: -6px; padding: 0 6px; font-size: 1.35rem; line-height: 1; opacity: 0.75; }
.now-bar__close:hover { opacity: 1; }
html:not(.js) .now-bar__close { display: none; }

/* Mobil a tablet: menu schované pod tlačítkem, pruh „Právě teď“ na jeden řádek. */
.menu-toggle { display: none; }
@media (max-width: 959px) {
  .site-header__bar { padding-block: 10px; gap: 0 20px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; padding: 10px 0; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
  .menu-toggle__icon { position: relative; width: 22px; height: 14px; border-block: 2px solid var(--accent); transition: border-color 0.2s; }
  .menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; top: 4px; width: 100%; height: 2px; background: var(--accent); transition: transform 0.2s; }
  [aria-expanded="true"] > .menu-toggle__icon { border-color: transparent; }
  [aria-expanded="true"] > .menu-toggle__icon::before { transform: rotate(45deg); }
  [aria-expanded="true"] > .menu-toggle__icon::after { transform: rotate(-45deg); }

  .nav { flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 10px 0 8px; }
  .js .nav { display: none; }
  .js .is-open .nav { display: flex; }
  .nav__link { padding: 14px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.45rem; letter-spacing: normal; text-transform: none; }
  .nav__link[aria-current] { color: var(--accent); }
  .nav__cta { justify-content: center; margin-top: 14px; padding: 14px 16px; }

  .now-bar__inner { flex-wrap: nowrap; padding-block: 9px; }
  .now-bar__text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 599px) {
  .now-bar__label { display: none; }
}

.site-footer { position: relative; overflow: hidden; background: var(--paper-2); border-top: 1px solid var(--line); }
.site-footer__grid { position: relative; padding-block: clamp(44px, 6vw, 76px) clamp(28px, 3vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: clamp(24px, 3vw, 44px); }
.site-footer__head { margin-bottom: 14px; }.site-footer__text { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.65; font-weight: 300; max-width: 30ch; }
.site-footer__text--small { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--ink-2); }
.site-footer__link { margin-bottom: 4px; font-size: 0.95rem; }
.site-footer__nav { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; margin-bottom: 18px; }
.site-footer__nav a { font-size: 0.95rem; font-weight: 300; color: var(--ink); }
.site-footer__nav a.accent { color: var(--accent); }
.site-footer__nav a:hover { color: var(--accent); text-decoration: none; }
.site-footer__nav a.accent:hover { color: var(--ink); }
.person + .person { margin-top: 20px; }
.person__name { margin-bottom: 4px; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.person__role { margin-bottom: 8px; font-size: 0.9rem; font-weight: 300; color: var(--ink-2); }
.site-footer__bottom { position: relative; border-top: 1px solid var(--line); }
.site-footer__bottom-inner { padding-block: 18px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); }

/* 7. Pomocné třídy ----------------------------------------- */
.measure-xxs { max-width: 22ch; }
.measure-xs { max-width: 28ch; }
.measure-s { max-width: 44ch; }
.measure-m { max-width: 56ch; }
.measure { max-width: 62ch; }
.measure-wide { max-width: 70ch; }

.mt-s { margin-top: 12px; }
.mt-m { margin-top: 18px; }
.mt-l { margin-top: clamp(26px, 3.4vw, 40px); }
.mt-xl { margin-top: clamp(34px, 4.6vw, 60px); }
.mb-m { margin-bottom: 18px; }
.mb-xl { margin-bottom: clamp(44px, 5vw, 70px); }
.pt-l { padding-top: clamp(30px, 4vw, 44px); }
