/* Úvod, Členství, O projektu a sdílené prvky obsahových stránek (Pro podniky, Zdroje, Kraje, Komunita, Průvodci, Akce).
   Verze 4 „Wherethru“ (DESIGN.md): oblé karty, jemné stíny, olivová a šalvějová, žádné ostré černé linky.
   Tokeny a základní komponenty (.price-card, .place-tile, .cat-chip, .search-bar …) jsou ve style.css. */

/* ---------- Hlavička obsahové stránky ---------- */
.page-head .row { margin-top: 24px; }
.head-note { margin: 6px 0 0; max-width: 62ch; }
.section-head p { margin-bottom: 0; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.head-row h2 { margin: 0; }
.section-head .more-link svg { width: 18px; height: 18px; }

/* Čitelná šířka textu */
.text, .prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.cite { font-size: .86rem; color: var(--ink-3); }

/* ---------- Rozvržení: nadpis vlevo (4/12), obsah vpravo (8/12) ---------- */
/* Sekce za sebou dělí mezera, ne linka */
main > .section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }
.split-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 40px); align-items: start; }
.split-h { grid-column: 1 / span 4; }
.split-h h2 { margin: 0 0 .4em; }
.split-h p { max-width: 40ch; }
.split-h .btn-quiet { padding-inline: 0; }
.split-b { grid-column: 5 / -1; min-width: 0; }
@media (min-width: 900px) { .split-h { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 899px) { .split-h, .split-b { grid-column: 1 / -1; } }

/* Číslované kroky: kulaté číslo, text vedle */
.num-list { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 12px; }
.num-list > li { counter-increment: n; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.num-list > li::before { content: counter(n); grid-row: 1 / span 9; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-900); color: var(--on-brand); font: 700 1.05rem/1 var(--f-display); }
.num-list > li > * { grid-column: 2; }
.num-list h3 { margin: 0 0 .25em; }
.num-list p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.num-list ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--ink-2); }
.num-list ul li { margin: .2em 0; }
@media (max-width: 520px) { .num-list > li { grid-template-columns: 36px minmax(0, 1fr); padding: 16px; } .num-list > li::before { width: 36px; height: 36px; font-size: .95rem; } }

/* Výpis v mřížce: bílé karty */
.rule-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule-grid > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.rule-grid h3 { margin: 0 0 .35em; }
.rule-grid p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .rule-grid { grid-template-columns: 1fr; } }

/* ---------- Úvod v5: čistý střed, velké hledání, čipy kategorií ---------- */
.home .hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); background: var(--bg); }
.hero-center { max-width: calc(760px + 2 * var(--gutter)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-claim { font: 600 .8125rem/1.4 var(--f-body); letter-spacing: .04em; color: var(--brand-700); margin: 0 0 14px; }
.home .hero h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; max-width: 20ch; }
.home .hero .lede { margin: 0 0 32px; max-width: 56ch; color: var(--ink-3); }
.hero-search { width: 100%; max-width: 680px; min-height: 60px; padding: 0 6px 0 22px; border-color: var(--line); box-shadow: var(--shadow-sm), 0 8px 24px rgb(0 0 0 / .05); text-align: left; }
.hero-search input { font-size: 1.0625rem; min-height: 56px; }
.hero-search .hero-go { min-height: 48px; padding-inline: 24px; background: #3A4A34; border-color: #3A4A34; color: #FFFFFF; }
.hero-search .hero-go:hover { background: #4E5F47; border-color: #4E5F47; color: #FFFFFF; }
.hero-cats { justify-content: center; margin-top: 20px; width: max-content; max-width: min(1040px, calc(100vw - 2 * var(--gutter))); }
.hero-go .go-ic { display: none; }
@media (max-width: 640px) {
  .hero-center { text-align: left; align-items: stretch; }
  .home .hero h1, .home .hero .lede { max-width: none; }
  .home .hero .lede { margin-bottom: 24px; }
  .hero-search { padding-left: 16px; }
  .hero-search .hero-go { padding-inline: 16px; }
  /* Čipy vodorovně posuvné až k okraji displeje */
  .hero-cats { width: auto; max-width: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .hero-cats::-webkit-scrollbar { display: none; }
  .hero-cats .cat-chip { flex: none; }
}
@media (max-width: 420px) {
  .hero-search .hero-go { width: 48px; padding: 0; justify-content: center; }
  .hero-go .go-ic { display: inline-flex; }
  .hero-go .go-ic svg { width: 20px; height: 20px; }
  .hero-go .go-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}

/* ---------- Úvod: rytmus sekcí (střídání --bg a bílé, rozestup 80 / 56 px) ---------- */
.home .section { padding-block: clamp(56px, 6vw, 80px); }
.home .section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.home .section-head { margin-bottom: 28px; }
.home-dest { padding-block: 8px clamp(40px, 5vw, 64px); }
.home-paths { padding-block: 0 clamp(56px, 6vw, 80px); }

/* ---------- Úvod: tři cesty (tiché karty s ikonou) ---------- */
.path-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.path-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 16px; align-items: center; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink); text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.path-card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-strong); color: var(--ink); }
.path-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-900); }
.path-ic svg { width: 22px; height: 22px; }
.path-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.path-txt b { font: 600 1rem/1.4 var(--f-body); color: var(--heading); }
.path-txt span { color: var(--ink-3); font-size: .875rem; line-height: 1.5; }
.path-go { color: var(--ink-3); }
.path-go svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .path-cards { grid-template-columns: 1fr; } }

/* ---------- Úvod: pás fotek měst a doporučená místa ---------- */
.dest-grid, .tile-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.dest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Karta města: fotka 4:3 s radiusem 16, pod ní jméno, kraj, počet a drobná atribuce, bez rámečku a stínu */
.dest-tile { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.dest-tile:hover { box-shadow: none; }
.dest-tile .place-tile-media { border-radius: var(--r-card); }
.dest-tile .place-tile-media img { transition: transform .3s; }
.dest-tile:hover .place-tile-media img { transform: scale(1.03); }
.dest-tile .place-tile-access { top: 10px; right: 10px; }
.dest-tile .place-tile-body { padding: 12px 2px 0; gap: 2px; }
.dest-tile .place-tile-body h3 { font-size: 1rem; font-weight: 600; }
.dest-tile .meta { font-size: .875rem; }
.dest-count { margin: 4px 0 0; font-size: .875rem; color: var(--ink-2); }
.dest-count b { font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.place-tile .credit { margin: 6px 0 0; font-size: .75rem; line-height: 1.4; }
.place-tile .credit a { position: relative; z-index: 2; color: inherit; }
.place-tile .facts { margin: 6px 0 0; align-items: center; }
.place-tile-body h3 { overflow-wrap: anywhere; }
.home .place-tile:not(.dest-tile) { box-shadow: none; }
.home .place-tile:not(.dest-tile):hover { box-shadow: var(--shadow-sm); }
.dest-note { margin: 20px 0 0; max-width: 76ch; }
@media (max-width: 1000px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Mobil: vodorovně posuvná řada karet */
@media (max-width: 560px) {
  .dest-grid, .tile-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72%, 280px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); }
  .dest-grid::-webkit-scrollbar, .tile-grid::-webkit-scrollbar { display: none; }
  .dest-grid > li, .tile-grid > li { scroll-snap-align: start; }
}

/* ---------- Úvod: čísla z dat ---------- */
.num-cards { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 16px; }
.num-card { margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.num-card .n { font-size: clamp(1.7rem, 2.6vw, 2.2rem); word-spacing: -.2em; }
.num-card .l { font-size: .92rem; }
.num-card.num-main { background: var(--inverse); border-color: var(--inverse); }
.num-card.num-main .n { color: var(--on-inverse); font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
.num-card.num-main .l { color: var(--on-inverse-2); }
@media (max-width: 1000px) { .num-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .num-card.num-main { grid-column: 1 / -1; } }

/* ---------- Úvod: co platforma nabízí ---------- */
.feat-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat-cards > li { background: var(--surface); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.feat-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-900); color: var(--on-brand); margin-bottom: 14px; }
.feat-ic svg { width: 24px; height: 24px; }
.feat-cards h3 { margin: 0 0 .35em; }
.feat-cards p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .feat-cards { grid-template-columns: 1fr; } }

/* v5: na úvodu tiché karty (1px linka, bez stínu), ikony v jemném čtverci */
.home .num-card, .home .feat-cards > li { box-shadow: none; border: 1px solid var(--line); }
.home .num-card .n { word-spacing: normal; }
.home .feat-cards > li { background: var(--bg); }
.home .feat-ic { border-radius: 12px; width: 44px; height: 44px; background: var(--surface-2); color: var(--brand-900); }
.home .feat-ic svg { width: 22px; height: 22px; }
.home .kraj-links.kraj-card { box-shadow: none; }

/* ---------- Úvod: kategorie s ikonou a počtem ---------- */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.cat-tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 12px; align-items: center; min-height: 72px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.cat-tile:hover { border-color: var(--brand-500); background: var(--brand-100); color: var(--ink); }
.cat-tile-ic { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-200); color: var(--brand-900); }
.cat-tile-ic svg { width: 22px; height: 22px; }
.cat-tile b { font: 600 1rem/1.3 var(--f-display); letter-spacing: 0; color: var(--heading); }
.cat-n { color: var(--ink-3); font-size: .9rem; white-space: nowrap; }
.cat-n .num { font-weight: 700; color: var(--ink); word-spacing: -.25em; }
/* Starší textový výpis kategorií (zůstává pro jiné stránky) */
.cat-list { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: clamp(24px, 3vw, 40px); }
.cat-list > li { break-inside: avoid; border-top: 1px solid var(--line); }
.cat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 56px; padding: 14px 8px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.cat-row b { font: 700 1.1rem/1.2 var(--f-display); letter-spacing: -.02em; }
a.cat-row:hover { background: var(--brand-100); color: var(--ink); }

/* ---------- Pruh podílu stavů ---------- */
.split-bar { display: flex; gap: 2px; height: 24px; overflow: hidden; margin: 0 0 20px; background: var(--surface-3); border-radius: var(--r-pill); }
.split-bar span { display: block; height: 100%; }
.split-bar .ok { background: var(--ok); } .split-bar .part { background: var(--part); } .split-bar .no { background: var(--no); }
.split-legend { list-style: none; margin: 0; padding: 0; }
.split-legend .rule-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5rem; gap: 12px; align-items: baseline; padding: 12px 0; }
.split-legend .num { text-align: right; font-weight: 700; word-spacing: -.25em; }
.split-legend .split-none .num { font-weight: 600; }

/* ---------- Úvod: kraje jako řádky s čísly ---------- */
.kraj-links { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: clamp(24px, 3vw, 48px); }
.kraj-links.kraj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px clamp(16px, 3vw, 28px) 16px; box-shadow: var(--shadow-sm); }
.kraj-links > li { break-inside: avoid; }
.kraj-links .rule-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; min-height: 52px; padding: 10px 8px 12px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.kraj-links a.rule-row:hover { background: var(--brand-100); }
.kraj-links b { font-weight: 700; }
.kraj-links .num { font-weight: 700; word-spacing: -.25em; }
.kr-line { grid-column: 1 / -1; height: 4px; background: var(--surface-3); border-radius: var(--r-pill); overflow: hidden; }
.kr-line i { display: block; height: 100%; background: var(--brand-500); border-radius: var(--r-pill); }
.kraj-links a:hover .kr-line i { background: var(--brand-900); }
.kraj-links > li.kraj-group { break-after: avoid; padding: 16px 8px 4px; }
.kraj-links > li.kraj-group:first-child { padding-top: 8px; }
.kraj-links > li.kraj-group .kicker { margin: 0; }

/* ---------- Výzvy: dvě karty (tmavá a šalvějová) ---------- */
.cta-cards { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; padding-bottom: clamp(32px, 5vw, 64px); }
.cta-card { border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); min-width: 0; }
.cta-card h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 18ch; }
.cta-card p { max-width: 48ch; }
.cta-card .row { margin-top: 20px; }
.cta-card.is-dark { background: var(--inverse); color: var(--on-inverse); }
.cta-card.is-dark :is(h2, .kicker) { color: var(--on-inverse); }
.cta-card.is-dark p { color: var(--on-inverse-2); }
.cta-card.is-sage { background: var(--brand-200); }
.cta-card.is-sage p { color: var(--ink-2); }
@media (max-width: 800px) { .cta-cards { grid-template-columns: 1fr; } }

/* Starší výzva .home-cta (zůstává pro jiné stránky): tmavá karta uvnitř okraje */
.home-cta { padding-block: clamp(32px, 5vw, 64px); }
.home-cta > .wrap { background: var(--inverse); color: var(--on-inverse); border-radius: var(--r-lg); padding-block: clamp(28px, 5vw, 56px); }
.home-cta h2 { color: var(--on-inverse); font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 18ch; }
.home-cta .kicker { color: var(--on-inverse-2); }
.home-cta p { color: var(--on-inverse-2); max-width: 46ch; }
.home-cta a:not(.btn) { color: var(--on-inverse); }
.home-cta .btn-ghost, .home-cta .btn-quiet { color: var(--on-inverse); border-color: var(--on-inverse-2); }
.home-cta .btn-ghost:hover, .home-cta .btn-quiet:hover { background: color-mix(in srgb, var(--on-inverse) 14%, transparent); color: var(--on-inverse); }
.cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px clamp(32px, 5vw, 72px); }
.cta-col + .cta-col { border-left: 1px solid color-mix(in srgb, var(--on-inverse) 22%, transparent); padding-left: clamp(24px, 4vw, 56px); }
.cta-col .row { margin-top: 20px; }
@media (max-width: 800px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-col + .cta-col { border-left: 0; padding-left: 0; border-top: 1px solid color-mix(in srgb, var(--on-inverse) 22%, transparent); padding-top: 28px; }
}

/* ---------- Pro podniky ---------- */
.head-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
@media (max-width: 860px) { .head-split { grid-template-columns: 1fr; } }
.sticker-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; }
.sticker-wrap figcaption { font-size: .86rem; color: var(--ink-2); max-width: 34ch; }
.door-sticker { width: 230px; max-width: 100%; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 0 0 16px; }
.door-sticker b { display: block; width: 100%; background: var(--brand-900); color: var(--on-brand); padding: 12px 16px; font: 700 1.1rem var(--f-display); letter-spacing: -.02em; }
.door-sticker > span, .door-sticker small { padding-inline: 16px; }
.door-sticker .qr { display: grid; place-items: start; width: 120px; height: 120px; }
.door-sticker .qr svg { width: 110px; height: 110px; }
.door-sticker small { font: 600 .78rem var(--f-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }

/* Ceník (starší .plans/.plan, používá Pro podniky): karty ve stylu .price-card */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 0; }
.plan.featured { background: var(--brand-100); border-color: var(--brand-500); }
.plan h3 { margin: 0; }
.plan .price { font: 700 clamp(1.8rem, 3vw, 2.4rem)/1 var(--f-display); letter-spacing: -.02em; color: var(--heading); }
.plan .price small { font: 600 .9rem var(--f-body); color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.plan li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.plan li:last-child { border-bottom: 0; }
.plan .btn { margin-top: auto; }
.price-note { font-size: .9rem; color: var(--ink-3); margin-top: 24px; max-width: 68ch; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* Formulář převzetí profilu a zájmu */
.claim form, .form-block { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-sm); }
.claim .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .claim .two { grid-template-columns: 1fr; } }

/* Tabulka label / hodnota */
.kv-table td:first-child { white-space: nowrap; font-weight: 700; width: 1%; }
@media (max-width: 600px) {
  .kv-table td:first-child { white-space: normal; }
  .facts-table thead { display: none; }
  .facts-table, .facts-table tbody, .facts-table tr, table.facts-table td { display: block; width: 100%; }
  .facts-table tr { border-bottom: 1px solid var(--line); padding: 4px 14px; }
  table.facts-table td { border-bottom: 0 !important; padding: 6px 0; }
  table.facts-table td:first-child { padding-top: 12px; }
  table.facts-table td:last-child { padding-bottom: 12px; }
  .facts-table tr:last-child { border-bottom: 0; }
}

/* ---------- O projektu: plán rozvoje ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.timeline > li { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); min-width: 0; }
.timeline > li.now { background: var(--brand-200); border-color: var(--brand-500); }
.timeline .when { font: 700 .85rem/1.2 var(--f-body); letter-spacing: .04em; color: var(--ink-3); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.timeline > li.now .when { color: var(--brand-900); }
.timeline h3 { margin: 0 0 .3em; font-size: 1.25rem; }
.timeline p { margin: 0 0 .5em; color: var(--ink-2); }
.timeline ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.timeline ul li { margin: .2em 0; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- Zdroje a trh: obsah vlevo, text vpravo ---------- */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 40px 96px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px; box-shadow: var(--shadow-sm); }
.toc-title { font: 700 .78rem/1.2 var(--f-body); letter-spacing: .04em; color: var(--ink-3); margin: 10px 10px 6px; }
.toc a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; min-height: 44px; display: flex; align-items: center; }
.toc a:hover { background: var(--brand-100); }
.doc { min-width: 0; max-width: 820px; }
.doc > section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.doc > section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.doc h3 { margin-top: 1.4em; }
.doc > section > p, .doc > section > ul, .doc > section > ol { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc .table-wrap { margin: 16px 0; }
.doc .callout { margin: 16px 0 0; }
.stat-band { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 16px 0 24px; }
.stat-band .stat { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; min-width: 0; }
.stat-v { font: 700 clamp(1.9rem, 3.6vw, 2.6rem)/1 var(--f-display); letter-spacing: -.02em; word-spacing: -.2em; color: var(--heading); }
.stat-l { color: var(--ink-2); font-size: .95rem; }
.stat-l a { white-space: nowrap; }
.sources-list { font-size: .92rem; columns: 2 320px; column-gap: 40px; padding-left: 2.2em !important; }
.sources-list li { break-inside: avoid; }
.sources-list a { overflow-wrap: anywhere; }
.sources-list li:target { background: var(--brand-200); color: var(--brand-900); border-radius: var(--r-sm); }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; padding-block: 24px 56px; }
  .toc { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 8px; background: transparent; border: 0; box-shadow: none; padding: 0 var(--gutter); margin-inline: calc(var(--gutter) * -1); }
  .toc::-webkit-scrollbar { display: none; }
  .toc-title { display: none; }
  .toc a { flex: none; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: 8px 14px; font-size: .9rem; white-space: nowrap; background: var(--surface); }
  .toc a:hover { background: var(--brand-200); color: var(--brand-900); }
}

/* ---------- Drobnosti obsahových stránek ---------- */
.pf-sub, .op-h3 { margin: 32px 0 12px; }
.op-facts { margin-top: 24px; }
.op-list { list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.op-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.op-list li:last-child { border-bottom: 0; }
.op-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .op-team { grid-template-columns: 1fr; } }
.split-h .callout { margin-top: 20px; }

/* ---------- Pro podniky: odkaz na profil podniku a další služby ---------- */
.pf-try { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0 0; }
.pf-try .small { color: var(--ink-2); }
.pf-claim-row { margin-top: 28px; }
.pf-proto { margin-top: 20px; max-width: 68ch; }
.pf-extra td:last-child { white-space: nowrap; }
@media (max-width: 600px) { .pf-extra td:last-child { white-space: normal; } }

/* ---------- Členství (clenstvi.html) ---------- */
.cl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.cl-head h1 { max-width: 12ch; }
.cl-head-media { position: relative; margin: 0; min-width: 0; }
.cl-head-media .wave-photo { aspect-ratio: 16 / 9; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: var(--brand-100); }
.cl-head-media .route-deco { position: absolute; right: 10%; bottom: -8px; width: 38%; }
.cl-head-media .handnote { position: absolute; left: 0; bottom: -20px; margin: 0; max-width: 14ch; color: var(--brand-700); }
.cl-head-media .credit { font-size: .74rem; color: var(--ink-3); margin: 64px 0 0; text-align: right; }
.cl-head-media .credit a { color: inherit; }
@media (max-width: 899px) {
  .cl-head { grid-template-columns: 1fr; }
  .cl-head-media { order: -1; }
  .cl-head-media .wave-photo { border-radius: var(--r-card); -webkit-mask: none; mask: none; }
  .cl-head-media .route-deco, .cl-head-media .handnote { display: none; }
  .cl-head-media .credit { margin-top: 8px; text-align: left; }
}
.cl-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 18px; margin-top: 24px; box-shadow: var(--shadow-sm); }
.cl-now .kicker { margin: 0; }
.cl-now-line { margin: 0; font: 700 1.05rem/1.3 var(--f-display); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--heading); }
.cl-now-line .tier-tag { font-size: .9rem; padding: 4px 12px; }
.cl-now .small { flex-basis: 100%; margin: 0; }
.cl-note { margin: 0 0 28px; max-width: 76ch; }
.cl-tiers { margin-top: 8px; }
.cl-tier { padding-top: 28px; }
.cl-tier-top { display: flex; align-items: center; gap: 14px; }
.cl-tier-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-200); color: var(--brand-900); }
.cl-tier-ic svg { width: 28px; height: 28px; }
.price-card.is-sage .cl-tier-ic { background: var(--surface); }
.price-card.is-dark .cl-tier-ic { background: color-mix(in srgb, var(--on-inverse) 14%, transparent); color: var(--on-inverse); }
.price-claim { margin: 2px 0 0; color: var(--ink-3); font-size: .95rem; }
.price-card.is-dark .price-claim { color: var(--on-inverse-2); }
.cl-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cl-cur { position: absolute; top: -13px; left: 20px; margin: 0; display: inline-flex; align-items: center; gap: 6px; font: 700 .78rem/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-900); background: var(--brand-200); border-radius: var(--r-pill); padding: 4px 10px; box-shadow: var(--shadow-sm); }
.price-card.is-dark .cl-cur { background: var(--on-inverse); color: var(--inverse); }
.cl-quote { margin: 0; color: var(--ink-3); font-size: .93rem; }
.price-card.is-dark .cl-quote { color: var(--on-inverse-2); }
.cl-tier li > span:first-child { display: contents; }
.price-card li.is-off .cl-x { color: var(--ink-3); }
.price-card.is-dark li.is-off svg { color: var(--on-inverse-2); }
.price-card li.is-off > span:last-child { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.cl-tier .btn { white-space: normal; text-align: center; }
.cl-tier .btn[disabled] { opacity: 1; background: transparent; color: inherit; border: 1.5px dashed currentColor; cursor: default; box-shadow: none; }
.cl-tier.is-current { outline: 3px solid var(--brand-500); outline-offset: 3px; }
.cl-try-note { margin: 0; font-size: .82rem; color: var(--ink-3); text-align: center; }
.price-card.is-dark .cl-try-note { color: var(--on-inverse-2); }
.price-card.is-dark .btn-primary { background: var(--on-inverse); color: var(--inverse); border-color: var(--on-inverse); }
.price-card.is-dark .btn-primary:hover { background: var(--brand-200); color: var(--brand-900); }
/* Starší značky z v3 (.cl-tag) */
.cl-tag { margin: 0; display: flex; align-items: center; gap: 10px; min-height: 28px; }

.cl-cmp-wrap { overflow-x: auto; }
.table-wrap > table.data.cl-cmp { min-width: 0; }
.cl-cmp th[scope="row"] { font: 600 .95rem/1.3 var(--f-body); color: var(--ink); background: transparent; }
.cl-cmp thead th:not(:first-child), .cl-cmp td { text-align: center; width: 18%; }
.cl-yes, .cl-no { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.cl-yes { color: var(--brand-900); }
.cl-yes svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: var(--brand-900); color: var(--on-brand); }
.cl-no { color: var(--ink-3); font-weight: 600; }
.cl-no svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--surface-3); color: var(--ink-3); }
.cl-no i { display: inline-block; width: 14px; height: 2px; background: currentColor; }
@media (max-width: 520px) {
  .cl-cmp th, .cl-cmp td { padding: 10px 4px !important; }
  .cl-cmp th[scope="row"] { font-size: .88rem; padding-left: 10px !important; }
  .cl-cmp thead .tier-tag { font-size: .66rem; padding: 2px 5px; letter-spacing: 0; }
  .cl-yes, .cl-no { flex-direction: column; gap: 2px; font-size: .8rem; }
}

.cl-faq { display: grid; gap: 10px; }
.cl-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.cl-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 18px; font: 700 1.05rem/1.3 var(--f-display); letter-spacing: -.01em; color: var(--heading); border-radius: var(--r); }
.cl-faq summary::-webkit-details-marker { display: none; }
.cl-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-200); color: var(--brand-900); font: 700 1.2rem/1 var(--f-body); }
.cl-faq details[open] summary::after { content: "\2212"; }
.cl-faq summary:hover { background: var(--brand-100); }
.cl-faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Úvod: drobnosti ---------- */
.home-note { margin-top: 24px; max-width: 76ch; }
.home-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.home-prices .price-card li > span:first-child { display: contents; }
.home-prices .price-card h3 { font-size: 1.4rem; }
/* Starší třídy z v3 (pro jiné stránky) */
.home-kicker { margin: 0 0 18px; }
.band-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.band-stats .stat { margin: 0; }
.home-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-tiers > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (max-width: 860px) { .home-tiers { grid-template-columns: 1fr; } }

/* ---------- O projektu ---------- */
.op-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.op-brand { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.op-brand img { height: 40px; width: auto; }
.op-brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .op-brand .logo-light { display: none; } :root:not([data-theme="light"]) .op-brand .logo-dark { display: block; } }
:root[data-theme="dark"] .op-brand .logo-light { display: none; }
:root[data-theme="dark"] .op-brand .logo-dark { display: block; }
.op-brand p { margin: 0; color: var(--ink-3); font-size: .93rem; }
.op-brand .op-claim { font: 700 .8rem/1.4 var(--f-body); letter-spacing: .04em; color: var(--ink-3); }
@media (max-width: 860px) { .op-head { grid-template-columns: 1fr; } }
.op-people { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.op-people li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; font: 700 1.1rem/1.15 var(--f-display); letter-spacing: -.02em; color: var(--heading); min-width: 0; overflow-wrap: anywhere; }
.op-people li::before { content: attr(data-initial); flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-200); color: var(--brand-900); font: 700 1rem/1 var(--f-display); }
@media (max-width: 900px) { .op-people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .op-people { grid-template-columns: 1fr; } }
.op-rev { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.op-rev > li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.op-rev h3 { margin: 0 0 6px; font-size: 1.1rem; }
.op-rev ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.op-rev ul li { margin: .2em 0; }
.op-rev .free { background: var(--brand-200); border-color: var(--brand-500); }
@media (max-width: 640px) { .op-rev { grid-template-columns: 1fr; } }
.op-real .table-wrap { margin-block: 4px 20px; }
.op-rev-note { margin-top: 24px; }

/* ---------- v6: logo s názvem v úvodu a animace (při prefers-reduced-motion je style.css zkrátí na nulu) ---------- */
.hero-brand { margin: 0 0 22px; line-height: 0; }
.hero-logo { display: block; width: clamp(220px, 34vw, 380px); height: auto; overflow: visible; }
.hero-logo .hb-hills { fill: var(--brand-500); }
.hero-logo .hb-mark, .hero-logo .hb-word { fill: var(--heading); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-logo .hb-hills { fill: #A9BBA0; } }
:root[data-theme="dark"] .hero-logo .hb-hills { fill: #A9BBA0; }
@media (max-width: 767px) { .hero-logo { width: min(260px, 72vw); } .hero-brand { margin-bottom: 18px; } }

@keyframes hb-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hb-rise { from { opacity: 0; transform: translateY(26px) scaleY(.6); } to { opacity: 1; transform: none; } }
@keyframes hb-slide { from { opacity: 0; transform: translateX(-18px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes kp-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kp-pop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.hero-logo .hb-hills { transform-box: fill-box; transform-origin: 50% 100%; animation: hb-rise .8s cubic-bezier(.2,.8,.2,1) .3s both; }
.hero-logo .hb-mark { animation: hb-draw .9s cubic-bezier(.6,0,.2,1) .05s both; }
.hero-logo .hb-word { animation: hb-slide .8s cubic-bezier(.2,.8,.2,1) .45s both; }
.hero-brand { animation: hb-float 6s ease-in-out 2.2s infinite; }
.home .hero-claim { animation: kp-up .6s ease-out .6s both; }
.home .hero h1 { animation: kp-up .7s ease-out .7s both; }
.home .hero .lede { animation: kp-up .7s ease-out .8s both; }
.home .hero-search { animation: kp-up .7s ease-out .9s both; }
.hero-cats .cat-chip { animation: kp-pop .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(1s + var(--i, 0) * 60ms); }
.hero-cats .cat-chip > :first-child svg { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.hero-cats .cat-chip:hover > :first-child svg { transform: translateY(-2px) scale(1.12); }
.hero-search { transition: box-shadow .25s, transform .25s; }
.hero-search:focus-within { transform: translateY(-1px); box-shadow: var(--shadow-sm), 0 14px 34px rgb(30 40 25 / .12); }

/* Odhalení sekcí při posunu: třídu html.kp-anim přidá index.js jen bez prefers-reduced-motion */
.kp-anim [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.kp-anim [data-reveal].is-in { opacity: 1; transform: none; }
.path-card, .num-card, .dest-tile, .place-tile { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.path-card:hover, .dest-tile:hover { transform: translateY(-3px); }
.path-card .path-go svg { transition: transform .25s; }
.path-card:hover .path-go svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .hero-brand { animation: none; } .kp-anim [data-reveal] { opacity: 1; transform: none; } }

/* Našeptávač obcí v hledání na úvodu (místo datalistu): otevře se hned po kliknutí do pole */
.hero-search { position: relative; z-index: 5; }
.hero-sug { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; max-height: min(360px, 55vh); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow), 0 12px 32px rgb(0 0 0 / .12); text-align: left; }
.hero-sug[hidden] { display: none; }
.hero-sug-h { padding: 8px 12px 4px; font: 600 .75rem/1.2 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.hero-sug [role=option] { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.hero-sug [role=option]:hover, .hero-sug [aria-selected=true] { background: var(--brand-100); }
.hero-sug-ic { display: inline-grid; flex: none; color: var(--ink-3); }
.hero-sug-ic svg { width: 18px; height: 18px; }
.hero-sug b { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.hero-sug-n { flex: none; font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
