/* ==========================================================================
   Máma na cestě – styly webu
   Motiv: cestovní deník – teplý papír, fotky jako polaroidy, čárkovaná trasa.
   ========================================================================== */

/* Písma: Newsreader, DM Sans, Caveat (SIL OFL) – variabilní woff2 z Google Fonts, hostované u nás
   (GDPR, rychlost) a zmenšené (tools/shrink_fonts.py): latin-ext jen se znaky češtiny, slovenštiny a sousedů,
   osa wght jen v používaném rozsahu (Newsreader 400–600, DM Sans 400–700, Caveat 500–600). */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0104-0107, U+010C-010F, U+0118-011B, U+0139-013A, U+013D-013E, U+0141-0144, U+0147-0148, U+0150-0151, U+0154-0155, U+0158-015B, U+0160-0161, U+0164-0165, U+016E-0171, U+0178-017E; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/caveat-latin.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: "DM Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dmsans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0104-0107, U+010C-010F, U+0118-011B, U+0139-013A, U+013D-013E, U+0141-0144, U+0147-0148, U+0150-0151, U+0154-0155, U+0158-015B, U+0160-0161, U+0164-0165, U+016E-0171, U+0178-017E; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dmsans-italic-latin.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: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0104-0107, U+010C-010F, U+0118-011B, U+0139-013A, U+013D-013E, U+0141-0144, U+0147-0148, U+0150-0151, U+0154-0155, U+0158-015B, U+0160-0161, U+0164-0165, U+016E-0171, U+0178-017E; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dmsans-latin.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: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("../fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0104-0107, U+010C-010F, U+0118-011B, U+0139-013A, U+013D-013E, U+0141-0144, U+0147-0148, U+0150-0151, U+0154-0155, U+0158-015B, U+0160-0161, U+0164-0165, U+016E-0171, U+0178-017E; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("../fonts/newsreader-italic-latin.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: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0104-0107, U+010C-010F, U+0118-011B, U+0139-013A, U+013D-013E, U+0141-0144, U+0147-0148, U+0150-0151, U+0154-0155, U+0158-015B, U+0160-0161, U+0164-0165, U+016E-0171, U+0178-017E; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* barvy */
  --paper: #FBF7F1;
  --paper-2: #F4EDE2;
  --paper-3: #EADFCF;
  --white: #FFFDF9;
  --ink: #1F2D28;
  --ink-2: #4D5A55;
  --ink-3: #656D69;       /* popisky, metadata – AA i na --paper-2 (4,6:1), papír 5,0:1, --white 5,2:1 */
  --line: #E4D9C8;
  --accent: #C4623A;      /* terakota */
  --accent-ink: #A24A25;  /* terakota pro text (AA na papíře) */
  --forest: #23382F;      /* patička, tmavé plochy */

  /* barvy témat */
  --c-rodicovstvi: #C4623A;   --t-rodicovstvi: #F6E3D8;   --i-rodicovstvi: #8F3E1D;
  --c-cestovani: #2C7284;     --t-cestovani: #DCECEF;     --i-cestovani: #1B5262;
  --c-osobni-rozvoj: #6A8857; --t-osobni-rozvoj: #E3ECDA; --i-osobni-rozvoj: #43603A;
  --c-karierni-rust: #C38A1D; --t-karierni-rust: #F5EACD; --i-karierni-rust: #7A560F;

  /* typografie */
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  /* rozměry */
  --wrap: 1200px;
  --wrap-wide: 1100px;
  --wrap-text: 680px;   /* článek: ~70 znaků na řádek při 18 px */
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(31 45 40 / .06), 0 8px 24px -8px rgb(31 45 40 / .18);
  --shadow-lg: 0 2px 4px rgb(31 45 40 / .06), 0 24px 48px -16px rgb(31 45 40 / .28);
  --header-h: 72px;
}

/* téma na prvku: class="cat--cestovani" nastaví --cat* */
.cat--rodicovstvi   { --cat: var(--c-rodicovstvi);   --cat-tint: var(--t-rodicovstvi);   --cat-ink: var(--i-rodicovstvi); }
.cat--cestovani     { --cat: var(--c-cestovani);     --cat-tint: var(--t-cestovani);     --cat-ink: var(--i-cestovani); }
.cat--osobni-rozvoj { --cat: var(--c-osobni-rozvoj); --cat-tint: var(--t-osobni-rozvoj); --cat-ink: var(--i-osobni-rozvoj); }
.cat--karierni-rust { --cat: var(--c-karierni-rust); --cat-tint: var(--t-karierni-rust); --cat-ink: var(--i-karierni-rust); }

/* ---------------------------------------------------------------- základ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;   /* dlouhé URL a slova v textu se zalomí, nepřetečou */
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); }
.wrap--text { max-width: calc(var(--wrap-text) + 2 * var(--gutter)); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--ink-3); }

.hand { font-family: var(--f-hand); font-weight: 600; line-height: 1; }
.eyebrow { font-size: 1.55rem; color: var(--accent-ink); margin: 0 0 .35em; transform: rotate(-1.5deg); transform-origin: left; display: inline-block; }

/* čárkovaná trasa – opakující se motiv */
.route { position: absolute; pointer-events: none; overflow: visible; }
.route path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .7; vector-effect: non-scaling-stroke; }

/* ---------------------------------------------------------------- tlačítka, štítky */

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent-ink); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--accent-ink); transform: translateY(-1px); }

.chip {
  display: inline-block; padding: .28em .8em; border-radius: 999px;
  background: var(--cat-tint, var(--paper-2)); color: var(--cat-ink, var(--ink-2));
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; line-height: 1.5;
  position: relative; z-index: 2;
}
a.chip:hover { background: var(--cat-ink, var(--ink)); color: var(--white); }   /* bílá na --cat má jen 3–4:1 */

.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

.dot::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--c); margin-right: .55em; vertical-align: .08em; }
.dot--rodicovstvi { --c: var(--c-rodicovstvi); }
.dot--cestovani { --c: var(--c-cestovani); }
.dot--osobni-rozvoj { --c: var(--c-osobni-rozvoj); }
.dot--karierni-rust { --c: var(--c-karierni-rust); }

/* ---------------------------------------------------------------- hlavička */

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(251 247 241 / .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 44px; height: 38px; flex: none; background: currentColor;
  -webkit-mask: url(../img/logo-mask.png) center / contain no-repeat; mask: url(../img/logo-mask.png) center / contain no-repeat;
}
.brand__text { font: 600 1.4rem/1 var(--f-display); letter-spacing: -.01em; }
.brand__text em { font-style: italic; font-weight: 400; color: var(--accent-ink); }
.brand--light { color: var(--paper); }
.brand--light .brand__text em { color: #F0B79A; }   /* terakota na tmavé zelené má jen 3,1:1 */
.brand--light:hover { color: var(--paper); }

.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; gap: 6px; list-style: none; }
.site-nav > ul a {
  display: block; padding: .5em 1em; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .98rem;
}
.site-nav > ul a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav > ul a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.site-nav__topics { display: none; }

.site-header__actions { display: flex; gap: 4px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-toggle { display: none; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; content: "";
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    background: var(--paper); padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul a { font: 500 2rem/1.2 var(--f-display); padding: .4em 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav > ul a:hover, .site-nav > ul a[aria-current="page"] { background: none; color: var(--accent-ink); }
  .site-nav__topics { display: block; margin-top: 32px; }
  .site-nav__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: .6em; }
  .site-nav__topics ul { list-style: none; display: grid; gap: 4px; }
  .site-nav__topics a { display: block; padding: .5em 0; text-decoration: none; font-size: 1.1rem; }
  .site-header__inner { gap: 8px; }
  .site-header__actions { margin-left: auto; }
  .brand__text { font-size: 1.2rem; }
  .brand__mark { width: 38px; height: 33px; }
}

/* ---------------------------------------------------------------- sekce */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 112px); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; font-weight: 400; letter-spacing: -.015em; }

/* ---------------------------------------------------------------- hero */

.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 60vw; max-width: 820px; aspect-ratio: 1; right: -12vw; top: -10%;
  background: radial-gradient(closest-side, var(--paper-2), transparent 72%); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.04; font-weight: 400; margin-bottom: .45em; letter-spacing: -.02em; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero__lead { font-size: clamp(1.06rem, 1.4vw, 1.19rem); line-height: 1.65; color: var(--ink-2); max-width: 34em; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions--center { justify-content: center; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--paper-3); font-size: .92rem; color: var(--ink-2); }
.hero__facts strong { display: block; font: 500 1.35rem/1.2 var(--f-display); color: var(--ink); }

.hero__collage { position: relative; aspect-ratio: 4 / 4.6; max-width: 540px; justify-self: end; width: 100%; }
.snap {
  position: absolute; margin: 0; background: var(--white); padding: 10px 10px 0; border-radius: 6px;
  box-shadow: var(--shadow-lg); transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.snap img { border-radius: 3px; width: 100%; height: 100%; object-fit: cover; }
.snap figcaption { font-size: 1.45rem; color: var(--ink-2); text-align: center; padding: 8px 0 10px; }
.snap--1 { left: 4%; top: 6%; width: 64%; height: 82%; transform: rotate(-2.5deg); z-index: 2; display: flex; flex-direction: column; }
.snap--1 img { flex: 1; min-height: 0; }
.snap--2 { right: 0; top: 0; width: 38%; aspect-ratio: 3 / 3.9; transform: rotate(5deg); z-index: 3; display: flex; flex-direction: column; }
.snap--3 { right: 3%; bottom: 0; width: 41%; aspect-ratio: 3 / 3.7; transform: rotate(-4deg); z-index: 3; display: flex; flex-direction: column; }
.snap--2 img, .snap--3 img { flex: 1; min-height: 0; }
.snap:hover { transform: rotate(0) scale(1.02); z-index: 4; }
.route--hero { inset: 0; width: 100%; height: 100%; z-index: 1; }
.plane { position: absolute; right: -2%; top: -4%; width: 34px; height: 34px; fill: var(--accent); transform: rotate(-8deg); z-index: 5; }

@media (max-width: 520px) {
  .hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; font-size: .78rem; margin-top: 32px; }
  .hero__facts strong { font-size: 1.08rem; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__collage { justify-self: center; max-width: 440px; margin-top: 8px; }
}

/* ---------------------------------------------------------------- témata */

.topics { background: var(--white); border-block: 1px solid var(--line); }
.topics__grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.topic a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.topic a:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.topic__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--cat-tint); }
.topic__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--cat); }
.topic__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.topic a:hover .topic__media img { transform: scale(1.05); }
.topic__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.topic__title { font-size: 1.55rem; margin-bottom: .35em; }
.topic__body p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.topic__count { font-weight: 600; font-size: .88rem; color: var(--cat-ink); }

@media (max-width: 1000px) { .topics__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .topics__grid { grid-template-columns: 1fr; gap: 12px; }
  .topic a { flex-direction: row; }
  .topic__media { width: 112px; aspect-ratio: auto; flex: none; }
  .topic__media::after { inset: 0 0 0 auto; width: 4px; height: auto; }
  .topic__body { padding: 14px 16px; }
  .topic__title { font-size: 1.25rem; }
  .topic__body p { font-size: .88rem; margin-bottom: .5em; }
}

/* ---------------------------------------------------------------- karty článků */

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 18px;
  position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; font-size: .84rem; color: var(--ink-3); }
.card__title { font-size: 1.45rem; line-height: 1.22; margin-bottom: .5em; }
.card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { background-size: 100% 1px; color: var(--ink); }
.card__excerpt { color: var(--ink-2); font-size: .97rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__more { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--ink-3); padding-top: 4px; }
.card__arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background .25s, color .25s, transform .25s; }
.card:hover .card__arrow { background: var(--cat-ink, var(--ink)); border-color: transparent; color: var(--white); transform: translateX(3px); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 56px) clamp(20px, 3vw, 36px); }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* velká karta */
.card--feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.card--feature .card__media { aspect-ratio: 5 / 4; margin: 0; border-radius: calc(var(--radius) * 1.3); }
.card--feature .card__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.12; font-weight: 400; letter-spacing: -.01em; }
.card--feature .card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 4; }
.card--feature .card__more { margin-top: 18px; justify-content: flex-start; gap: 16px; }
@media (max-width: 800px) { .card--feature { grid-template-columns: 1fr; gap: 0; } .card--feature .card__media { margin-bottom: 20px; } }

/* malá karta (seznam) */
.card--compact { flex-direction: row; gap: 18px; align-items: center; padding-block: 18px; border-top: 1px solid var(--line); }
.card--compact:first-child { border-top: 0; padding-top: 0; }
.card--compact .card__media { width: 112px; flex: none; aspect-ratio: 1; margin: 0; border-radius: var(--radius-sm); }
.card--compact .card__title { font-size: 1.18rem; line-height: 1.25; margin: 0; }
.card--compact .card__meta { margin-bottom: 6px; }

.latest__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.latest__grid .card--feature { grid-template-columns: 1fr; gap: 0; }
.latest__grid .card--feature .card__media { margin-bottom: 22px; aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .latest__grid { grid-template-columns: 1fr; } }

.blog-featured { margin-bottom: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px dashed var(--paper-3); }
.blog-empty { text-align: center; color: var(--ink-2); font-size: 1.1rem; padding-block: 24px; margin: 0; }

/* ---------------------------------------------------------------- o mně (úvod) */

.about-teaser { background: var(--paper-2); position: relative; overflow: hidden; }
.about-teaser__grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.about-teaser__photo { margin: 0; position: relative; }
.about-teaser__photo img { border-radius: 200px 200px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about-teaser__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1.5px dashed var(--accent); border-radius: 200px 200px var(--radius) var(--radius); z-index: 0; }
.about-teaser__photo img { position: relative; z-index: 1; }
.about-teaser__text .section__title { margin-bottom: .6em; }
.about-teaser__text > p:not(.eyebrow):not(.signature) { color: var(--ink-2); font-size: 1.06rem; }
.signature { font-size: 2.6rem; color: var(--accent-ink); margin: .1em 0 .7em; transform: rotate(-4deg); display: block; width: fit-content; }
@media (max-width: 860px) { .about-teaser__grid { grid-template-columns: 1fr; } .about-teaser__photo { max-width: 380px; margin-inline: auto 40px; } }

/* ---------------------------------------------------------------- citát */

.quote-band { padding-block: clamp(64px, 9vw, 112px); text-align: center; position: relative; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; }
.quote-band blockquote::before { content: "“"; display: block; font: 400 6rem/0.6 var(--f-display); color: var(--accent); margin-bottom: .2em; }
.quote-band p { font: italic 400 clamp(1.55rem, 3.2vw, 2.4rem)/1.3 var(--f-display); letter-spacing: -.01em; margin-bottom: .8em; text-wrap: balance; }
.quote-band cite { font-style: normal; color: var(--ink-3); font-size: .95rem; letter-spacing: .04em; }

/* ---------------------------------------------------------------- banner (data/settings/banners.json) */

.banner { padding-block: 0 clamp(64px, 9vw, 112px); }
/* karta s okraji jako obsah (gutter); na širokém displeji přesahuje sloupec textu o gutter na každou stranu */
.banner__inner {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  background: var(--forest); color: var(--paper); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px); position: relative; overflow: hidden;
}
.banner__inner::after { content: ""; position: absolute; width: 320px; aspect-ratio: 1; right: -80px; bottom: -160px; border-radius: 50%; background: rgb(196 98 58 / .25); filter: blur(10px); }
.banner .eyebrow { color: #F0B79A; }
.banner__title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; margin-bottom: .4em; color: var(--white); }
.banner__text p:last-child { color: rgb(251 247 241 / .78); margin: 0; max-width: 40em; }
.banner .btn { position: relative; z-index: 1; }
.banner__stamp { width: 120px; transform: rotate(-10deg); color: #F0B79A; --stamp-num: var(--white); }
.banner__inner--nostamp { grid-template-columns: 1fr auto; }
/* slot: kandidáti přes sebe v jedné buňce – výška = nejvyšší z nich, los v JS nic neposune;
   karty se roztáhnou na stejnou výšku (obsah zůstane svisle uprostřed) */
.banner-slot { display: grid; }
.banner-slot[hidden] { display: none; }
.banner-slot__item { grid-area: 1 / 1; display: grid; }
.banner-slot__item > .banner { display: grid; }
.banner-slot__item:not(.is-shown) { visibility: hidden; }
/* barevné varianty – vybírá se v administraci */
.banner--terracotta .banner__inner { background: var(--accent-ink); }
.banner--terracotta .banner__inner::after { background: rgb(240 183 154 / .22); }
.banner--terracotta .eyebrow, .banner--terracotta .banner__stamp { color: #FBD9C6; }
.banner--sea .banner__inner { background: var(--i-cestovani); }
.banner--sea .banner__inner::after { background: rgb(220 236 239 / .18); }
.banner--sea .eyebrow, .banner--sea .banner__stamp { color: #BFE0E7; }
.banner--sand .banner__inner { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.banner--sand .banner__inner::after { background: rgb(196 98 58 / .12); }
.banner--sand .banner__title { color: var(--ink); }
.banner--sand .banner__text p:last-child { color: var(--ink-2); }
.banner--sand .eyebrow, .banner--sand .banner__stamp { color: var(--accent-ink); }
.banner--sand .banner__stamp { --stamp-num: var(--ink); }
.banner--sand .btn--light { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
  .banner__inner { grid-template-columns: 1fr; }
  .banner__stamp { width: 92px; position: absolute; right: 20px; top: 16px; opacity: .9; }
  .banner__text { padding-right: 90px; }
  .banner .btn { justify-self: start; }   /* na tabletu ne přes celou šířku karty */
}
@media (max-width: 480px) { .banner__text { padding-right: 0; } .banner__stamp { display: none; } .banner .btn { justify-self: stretch; } }

/* ---------------------------------------------------------------- hlavička podstránek */

.page-head { padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.page-head--center { text-align: center; padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); }
.page-head--center .eyebrow { transform-origin: center; }
.page-head__title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; font-weight: 400; letter-spacing: -.02em; margin-bottom: .35em; }
.page-head__lead { font-size: clamp(1.06rem, 1.4vw, 1.19rem); line-height: 1.65; color: var(--ink-2); max-width: 36em; margin-bottom: 0; }
.page-head--center .page-head__lead { margin-inline: auto; }
.page-head--cat .page-head__title { color: var(--cat-ink); }
/* stránka jen s hlavičkou (404): tlačítka odsadit od textu a patičku od tlačítek */
.page-head .hero__actions { margin-top: 28px; }
main > .page-head:only-child { padding-bottom: clamp(72px, 10vw, 120px); }

/* razítko (partials/stamp.php) */
.stamp { display: block; width: 100%; overflow: visible; }
.stamp__ring { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 4; }
.stamp__ring-text { fill: currentColor; font: 600 10.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.stamp__num { fill: var(--stamp-num, currentColor); font: 500 32px var(--f-display); }
.stamp__label { fill: currentColor; font: 600 9px var(--f-body); letter-spacing: .12em; text-transform: uppercase; }

/* hlavička přehledu: text vlevo, cestovní grafika vpravo */
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-head__grid > .crumbs { grid-column: 1 / -1; }
.page-head__main { grid-column: 1; grid-row: 2; }
.page-head__art { grid-column: 2; grid-row: 2; position: relative; width: 380px; height: 260px; color: var(--cat, var(--accent)); }
.page-head__eyebrow { display: none; }
.page-head__note { position: absolute; left: 14px; top: 18px; margin: 0; font-size: 2.9rem; color: var(--cat-ink, var(--accent-ink)); transform: rotate(-5deg); white-space: nowrap; }
.page-head__route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.page-head__route path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .75; }
.page-head__plane { position: absolute; left: 292px; top: 46px; width: 36px; height: 36px; fill: currentColor; transform: rotate(-14deg); }
.page-head__pin { position: absolute; left: 252px; top: 136px; width: 32px; height: 32px; fill: var(--cat-tint, var(--paper-2)); stroke: currentColor; stroke-width: 1.6; }
.page-head__pin circle { fill: currentColor; stroke: none; }
.page-head__stamp { position: absolute; left: 34px; top: 120px; width: 128px; transform: rotate(-9deg); --stamp-num: var(--ink); }
.page-head__stamp::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: var(--cat-tint, var(--paper-2)); opacity: .7; z-index: -1; }
@media (max-width: 960px) {
  /* minmax(0, …): sloupec nesmí růst podle obsahu (dřív ho roztáhly filtry témat a lead přetékal) */
  .page-head__grid { grid-template-columns: minmax(0, 1fr); }
  .page-head__art { display: none; }
  .page-head__eyebrow { display: inline-block; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--ink-3); margin-bottom: clamp(24px, 4vw, 40px); }
.page-head--center .crumbs { justify-content: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; padding: .55em 1.05em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); text-decoration: none; font-weight: 500; font-size: .93rem; transition: background .2s, border-color .2s, color .2s;
}
.filter span { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.filter::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--ink)); }
.filter:hover { border-color: var(--cat, var(--ink)); color: var(--ink); }
.filter.is-active { background: var(--cat-ink, var(--ink)); border-color: transparent; color: var(--white); }
.filter.is-active span { color: rgb(255 255 255 / .8); }
.filter.is-active::before { background: var(--white); }
/* na mobilu se témata zalomí do řádků: je jich pár, všechna (i aktivní) jsou vidět bez skrytého posouvání */

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(56px, 7vw, 88px); flex-wrap: wrap; }
.pager ol { list-style: none; display: flex; gap: 6px; }
.pager ol a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; font-weight: 600; border: 1px solid var(--line); }
.pager ol a:hover { border-color: var(--ink); color: var(--ink); }
.pager ol a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager__step { font-weight: 600; text-decoration: none; padding: .6em 1em; }
.pager__step.is-disabled { color: var(--ink-3); font-weight: 500; cursor: default; }
/* úzký displej: čísla stran na první řádek, Novější/Starší pod ně ke krajům (jinak „Starší“ visel sám na druhém řádku) */
@media (max-width: 520px) {
  .pager { justify-content: space-between; row-gap: 8px; }
  .pager ol { order: -1; flex-basis: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- článek */

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.post__head { padding-block: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 44px); }
.post__head .crumbs { margin-bottom: 28px; }
.post__cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.post__title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; margin-bottom: .55em; }
.post__meta { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--ink-3); line-height: 1.45; }
.post__meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; background: var(--paper-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.post__cover { margin: 0 auto clamp(40px, 5vw, 64px); }
.post__cover img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: calc(var(--radius) * 1.3); }
@media (max-width: 640px) { .post__cover { padding-inline: 0; } .post__cover img { border-radius: 0; } }

.toc { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); margin-bottom: 40px; }
.toc summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary small { color: var(--ink-3); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.toc summary small::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ink); transition: transform .2s; }
.toc[open] summary small::after { transform: rotate(45deg); }
.toc ol { padding: 0 20px 18px 42px; display: grid; gap: 6px; font-size: .95rem; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

/* typografie obsahu
   Rytmus: odstavec 18 px / řádkování 1.7 (≈ 31 px). Mezera mezi odstavci ≈ 2/3 řádku.
   Mezititulek má nahoře ~2,5× víc místa než dole, aby opticky patřil k textu pod sebou. */
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.25rem; }
.prose > * + h2 { margin-top: 3rem; }
.prose > * + h3 { margin-top: 2.25rem; }
.prose > h2 + *, .prose > h3 + * { margin-top: .75rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 1.95rem); line-height: 1.2; font-weight: 500; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.4rem); line-height: 1.3; font-weight: 600; letter-spacing: 0; }
.prose a { color: var(--accent-ink); text-decoration-color: rgb(162 74 37 / .4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose b { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--cat, var(--accent)); }
.prose ol li::marker { color: var(--cat-ink, var(--accent-ink)); font-weight: 600; }
.prose > p:first-child { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
@media (max-width: 640px) {
  .prose { font-size: 1.0625rem; }
  .prose > * + h2 { margin-top: 2.5rem; }
  .prose > p:first-child { font-size: 1.15rem; }
}

.prose > .b-image, .prose > .b-gallery, .prose > .b-video, .prose > .b-quote { margin-block: 2.25rem; }
.prose > h2 + .b-image, .prose > h2 + .b-gallery { margin-top: 1.25rem; }
.b-image img { border-radius: var(--radius-sm); max-height: 82vh; width: auto; margin-inline: auto; cursor: zoom-in; }
/* fotky otevírající lightbox jsou ovladatelné klávesnicí (site.js) */
.prose [data-lightbox] img:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-sm); }
.b-image figcaption { font: 1.35rem/1.2 var(--f-hand); color: var(--ink-3); text-align: center; margin-top: .6em; }
.b-gallery ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; }
.b-gallery[data-count="2"] ul, .b-gallery[data-count="4"] ul { grid-template-columns: repeat(2, 1fr); }
.prose .b-gallery li { margin: 0; }   /* jinak .prose li + li posune 2. a další fotku dolů */
.b-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
@media (min-width: 900px) { .b-gallery { margin-inline: -60px; } }
.b-quote { padding: 4px 0 4px 28px; border-left: 3px solid var(--cat, var(--accent)); }
.b-quote p { font: italic 400 1.4rem/1.5 var(--f-display); margin: 0; }
.b-quote cite { display: block; margin-top: .6em; font-style: normal; font-size: .9rem; color: var(--ink-3); }
.b-delimiter { border: 0; text-align: center; margin-block: 2.6em; }
.b-delimiter::before { content: "· · ·"; color: var(--accent); letter-spacing: .6em; font-size: 1.4rem; }
.b-video video { width: 100%; border-radius: var(--radius-sm); background: var(--ink); max-height: 80vh; }
/* blok HTML z administrace (vložené mapy, videa, příspěvky ze sítí) */
.prose > .b-html { margin-block: 2.25rem; overflow-x: auto; }   /* široká tabulka nebo vložený kód se posouvá uvnitř, stránka zůstane v šířce displeje */
.b-html iframe, .b-html video, .b-html img { max-width: 100%; }
.b-html iframe { border: 0; }
/* mobil: fotky, video a citát na celou šířku textu – výchozí okraje figure/blockquote (40 px) by ubraly čtvrtinu šířky;
   sizes obrázků v Site.php s tím počítají */
@media (max-width: 640px) {
  .prose > .b-image, .prose > .b-gallery, .prose > .b-video, .prose > .b-quote { margin-inline: 0; }
  .b-quote { padding-left: 20px; }
  .b-quote p { font-size: 1.25rem; }
}

.post__foot { margin-top: clamp(48px, 6vw, 72px); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 20px; border-block: 1px dashed var(--paper-3); }
.share__label { font-weight: 600; margin-right: 8px; font-size: .92rem; }
.share__btn { padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: .88rem; font-weight: 500; }
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__btn.is-done { background: var(--ink); color: var(--paper); }

.author-box { display: grid; grid-template-columns: 120px 1fr; gap: 28px; margin-top: 40px; padding: 32px; background: var(--paper-2); border-radius: var(--radius); }
.author-box__photo img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.author-box__name { font-size: 1.6rem; margin-bottom: .4em; }
.author-box p:not(.eyebrow) { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; padding: 24px; gap: 16px; } .author-box__photo img { width: 88px; height: 88px; } }

.related { padding-bottom: clamp(48px, 6vw, 80px); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: clamp(56px, 8vw, 96px); }
.post-nav__link { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font: 500 1.15rem/1.3 var(--f-display); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.post-nav__link small { display: block; font: 600 .8rem/1 var(--f-body); color: var(--ink-3); margin-bottom: 10px; letter-spacing: .03em; }
.post-nav__link:hover { border-color: transparent; box-shadow: var(--shadow); color: var(--ink); }
.post-nav__link--next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: 1; } }

/* ---------------------------------------------------------------- můj příběh */

.story { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.story__inner { position: relative; display: grid; gap: clamp(64px, 10vw, 140px); }
.route--story { left: 50%; top: 0; width: 40px; height: 100%; transform: translateX(-50%); }
.chapter { display: grid; grid-template-columns: 1fr 64px 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; position: relative; }
.chapter__photo { margin: 0; }
.chapter__photo img { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-left: auto; transform: rotate(-1.5deg); }
.chapter--flip .chapter__photo { order: 3; }
.chapter--flip .chapter__photo img { margin-left: 0; transform: rotate(1.5deg); }
.chapter--flip .chapter__text { order: 1; text-align: right; }
.chapter--flip .chapter__pin { order: 2; }
.chapter__pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px dashed var(--accent); font: 500 1.6rem var(--f-display); color: var(--accent-ink); z-index: 1; }
.chapter__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; font-weight: 400; margin-bottom: .55em; }
.chapter__text p:not(.eyebrow) { color: var(--ink-2); }
.chapter--flip .eyebrow { transform-origin: right; }
@media (max-width: 860px) {
  .route--story { left: calc(var(--gutter) + 32px); }   /* střed sloupce s čísly (.story__inner má padding gutteru) */
  .chapter, .chapter--flip { grid-template-columns: 64px 1fr; gap: 20px 24px; }
  .chapter__pin, .chapter--flip .chapter__pin { order: 1; grid-row: 1; grid-column: 1; align-self: start; }
  .chapter__photo, .chapter--flip .chapter__photo { order: 2; grid-column: 2; }
  .chapter__text, .chapter--flip .chapter__text { order: 3; grid-column: 2; text-align: left; }
  .chapter__photo img, .chapter--flip .chapter__photo img { margin: 0; max-width: 360px; }
  .chapter--flip .eyebrow { transform-origin: left; }
}
/* telefon: užší sloupec s čísly, ať text kapitol nemá jen ~30 znaků na řádek */
@media (max-width: 520px) {
  .chapter, .chapter--flip { grid-template-columns: 44px 1fr; column-gap: 14px; }
  .chapter__pin { width: 44px; height: 44px; font-size: 1.25rem; }
  .route--story { left: calc(var(--gutter) + 22px); }
}

.cta-end { background: var(--paper-2); text-align: center; }
.cta-end__inner p { color: var(--ink-2); margin: 1em auto 2em; max-width: 36em; }

/* ---------------------------------------------------------------- kontakt */

.contact__grid { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.contact__photo { margin: 0; }
.contact__photo img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.contact__mail { display: inline-block; font: 500 clamp(1.5rem, 3.4vw, 2.3rem)/1.2 var(--f-display); color: var(--accent-ink); margin: 12px 0 28px; word-break: break-word; }
.contact__links { list-style: none; display: grid; gap: 4px; margin-bottom: 36px; }
.contact__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.contact__company { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; font-size: .9rem; margin: 0; }
.contact__company dt { color: var(--ink-3); }
.contact__company dd { margin: 0; }
@media (max-width: 800px) { .contact__grid { grid-template-columns: 1fr; } .contact__photo { max-width: 320px; } }

/* ---------------------------------------------------------------- patička */

.site-footer { background: var(--forest); color: rgb(251 247 241 / .78); position: relative; padding-top: clamp(64px, 8vw, 96px); font-size: .95rem; }
.route--footer { top: -30px; left: 0; width: 100%; height: 60px; }
.route--footer path { stroke: var(--accent); opacity: .9; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.site-footer__brand p { max-width: 26em; margin-top: 18px; }
.site-footer__brand .hand { font-size: 2rem; color: #F0B79A; transform: rotate(-4deg); display: inline-block; }
.site-footer__title { font: 600 .78rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .14em; color: var(--paper); margin-bottom: 18px; }
.site-footer__links { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__links span { opacity: .75; font-size: .82rem; margin-left: 4px; }
.site-footer__mail { color: var(--paper); font-weight: 600; word-break: break-word; }
.social { list-style: none; display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(251 247 241 / .25); }
.social a:hover { background: var(--paper); color: var(--forest); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.social svg path { fill: currentColor; stroke: none; }
.social svg .fill { fill: currentColor; stroke: none; }
/* tři sloupce: autorka vlevo, autor webu přesně uprostřed, cookies vpravo; na mobilu pod sebou */
.site-footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid rgb(251 247 241 / .12); font-size: .82rem; color: rgb(251 247 241 / .55); }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { justify-self: end; text-align: right; }
.site-footer__legal a, .site-footer__legal button, .site-footer__credit a { color: inherit; }
.site-footer__credit a:hover, .site-footer__legal a:hover { color: var(--white); }
@media (max-width: 760px) {
  .site-footer__bottom { grid-template-columns: 1fr; }
  .site-footer__legal { justify-self: start; text-align: left; }
  .site-footer__credit { order: 3; }
}
.site-footer__legal button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.site-footer__legal button:hover { color: var(--white); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------------------------------------------------------- hledání */

.search { position: fixed; inset: 0; z-index: 80; background: rgb(31 45 40 / .45); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search[hidden] { display: none; }
.search__panel { width: 100%; max-width: 640px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search__bar svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; flex: none; }
.search__bar input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.1rem; outline: none; min-width: 0; padding: 6px 0; }
.search__close { border: 1px solid var(--line); background: var(--white); border-radius: 6px; font-size: .75rem; padding: 4px 8px; color: var(--ink-3); }
.search__results { list-style: none; max-height: 60vh; overflow-y: auto; }
.search__results a { display: block; padding: 14px 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.search__results a:hover, .search__results a:focus { background: var(--white); color: var(--ink); }
.search__results a:focus { outline: none; }
.search__results a:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 8px; background: var(--paper-2); }
.search__results a:focus-visible strong { color: var(--accent-ink); }
.search__results strong { display: block; font: 500 1.08rem/1.3 var(--f-display); margin-bottom: 4px; }
.search__results span { font-size: .85rem; color: var(--ink-3); }
.search__results mark { background: var(--t-karierni-rust); color: inherit; border-radius: 3px; padding: 0 2px; }
.search__empty { padding: 20px; color: var(--ink-3); }
@media (max-width: 640px) {
  .search { padding-top: 12px; }   /* víc místa pro výsledky nad klávesnicí */
  .search__results span { display: block; line-height: 1.45; }   /* zalomená témata a datum bez řádkování po odstavci */
}

/* ---------------------------------------------------------------- lightbox */

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(20 28 25 / .94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgb(255 255 255 / .1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.lightbox button:hover { background: rgb(255 255 255 / .2); }
.lightbox button:focus-visible { outline: 2px solid #F0B79A; outline-offset: 3px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 14px; top: 50%; translate: 0 -50%; }
/* mobil: šipky pod fotku – přes fotku by na světlém snímku nebyly vidět a zakrývaly ji */
@media (max-width: 640px) {
  .lightbox { padding: 72px 12px 88px; }
  .lightbox__nav--prev, .lightbox__nav--next { top: auto; bottom: 20px; translate: none; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}

/* ---------------------------------------------------------------- lišta souhlasu s cookies */

/* pevně dole a mimo tok stránky: nic neposouvá (CLS) a čtení neblokuje – není modální */
.consent {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; max-height: calc(100dvh - 32px); overflow: auto;
  padding: 22px 24px 20px; border-radius: var(--radius);
  background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .95rem; line-height: 1.55;
}
.consent[hidden], .consent [hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .consent { animation: consent-in .35s cubic-bezier(.2,.7,.3,1); } }
@keyframes consent-in { from { transform: translateY(24px); } }
.consent__title { font: 600 1.3rem/1.2 var(--f-display); margin: 0 2rem .4rem 0; }
.consent__title:focus { outline: none; }
.consent__title:focus-visible { outline: 2px solid var(--accent); }
.consent__text { margin: 0; color: var(--ink-2); }
.consent__text a { color: var(--accent-ink); }
.consent__prefs fieldset { border: 0; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.consent__cat { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); }
.consent__cat input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); }
.consent__cat label { font-weight: 650; }
.consent__cat label span { font-weight: 400; font-size: .85rem; color: var(--ink-3); margin-left: .4em; }
.consent__cat p { grid-column: 2; margin: 0; font-size: .87rem; color: var(--ink-2); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent__actions .btn { padding: .75em 1.2em; font-size: .92rem; justify-content: center; }
.consent__actions [data-consent-accept], .consent__actions [data-consent-reject] { flex: 1 1 9em; }
.consent__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.consent__close:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 480px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 16px 16px 14px; max-height: calc(100dvh - 16px); font-size: .9rem; line-height: 1.5; }
  .consent__title { font-size: 1.15rem; }
  .consent__actions { margin-top: 12px; }
  .consent__actions .btn { flex: 1 1 100%; padding: .7em 1em; }
  .consent__actions [data-consent-accept], .consent__actions [data-consent-reject] { flex: 1 1 40%; }
}

/* ---------------------------------------------------------------- zásady cookies */

.legal { padding-bottom: clamp(48px, 7vw, 96px); }
.legal .prose > p:first-child { font-size: inherit; }
.legal__table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal__table th { font-weight: 650; background: var(--paper-2); }
.legal__table code { font-size: .88em; white-space: nowrap; }
.legal__scroll { overflow-x: auto; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) {
  .legal__table thead { display: none; }
  .legal__table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal__table td { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; border: 0; padding: 4px 0; }
  .legal__table td::before { content: attr(data-label); font-weight: 650; color: var(--ink-2); }
}

/* ---------------------------------------------------------------- dotykové ovládání */

/* prst: cíle aspoň 44 × 44 px (WCAG 2.5.5); s myší zůstává vzhled i chování beze změny */
@media (pointer: coarse) {
  .filter, .share__btn, .consent__actions .btn { min-height: 44px; }
  .share__btn { display: inline-flex; align-items: center; }
  .site-nav > ul a { min-height: 44px; display: flex; align-items: center; }
  .social a, .consent__close { width: 44px; height: 44px; }
  .site-footer__links { gap: 0; }
  .site-footer__links a { display: inline-block; padding-block: 10px; }
  .contact__mail { padding-block: 8px; margin-block: 4px 20px; }   /* stejná poloha textu, cíl 45 px */
  .toc ol { gap: 0; }
  .toc a { display: block; padding-block: 10px; }   /* block: číslo zůstane u prvního řádku dlouhé položky */
  /* hledání: na telefonu není klávesa Esc – místo popisku „Esc“ křížek 44 px (aria-label „Zavřít“ zůstává);
     nativní mazací křížek v poli by vedle něj mátl */
  .search__close { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; font-size: 0; margin-right: -10px; }
  .search__close::before { content: "×"; font-size: 1.9rem; line-height: 1; color: var(--ink-2); }
  .search__bar input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
  /* drobné odkazy v textu: neviditelná plocha přes okolí, vzhled ani fokus se nemění */
  .brand, .crumbs a, .link-arrow, .site-footer__legal a, .site-footer__legal button { position: relative; }
  .brand::after, .crumbs a::after, .chip::after, .link-arrow::after, .site-footer__legal a::after, .site-footer__legal button::after {
    content: ""; position: absolute; inset: -12px -8px;
  }
  .brand::after { inset: -6px 0; }
  .chip::after { inset: -9px 0; }
}

/* ---------------------------------------------------------------- animace při scrollu */

/* jen tam, kde to prohlížeč umí – jinak je vše rovnou vidět */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card, .topic, .chapter, .about-teaser__grid > *, .quote-band blockquote {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%;
    }
  }
}
/* jen posun, bez průhlednosti: napůl průhledný text u okraje obrazovky neměl dost kontrastu (Lighthouse/axe) */
@keyframes rise { from { transform: translateY(24px); } to { transform: none; } }
