/* ============================================================
   TreeCareLab — public website
   Design system from the Macháček 2026 brand book.
   Core: cream #F1EBDD + near-black #191919 (carry the identity).
   Accents (open-ended set): sage #B2B9A2, clay #BE8378, ochre #CC9A6F.
   Discipline rule: core always; ONE accent per page. Set via the
   body class (accent-sage / accent-clay / accent-ochre).
   Type: Space Mono = logotype & key labels only; Inter = everything else.
   ============================================================ */

/* ---- Fonts (self-hosted, Fontsource 5.3.0 woff2; latin + latin-ext for Czech) ---- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/inter-latin-ext-500-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/inter-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/inter-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/inter-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/space-mono-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/space-mono-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/space-mono-latin-ext-700-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/space-mono-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Space Mono';font-style:italic;font-weight:400;font-display:swap;src:url('assets/fonts/space-mono-latin-ext-400-italic.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Space Mono';font-style:italic;font-weight:400;font-display:swap;src:url('assets/fonts/space-mono-latin-400-italic.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;}

/* ---- Tokens ---- */
:root {
  --cream:      #F8F6F1;
  --cream-deep: #EFEADF;   /* subtle panel tint of cream */
  --ink:        #191919;
  --btn:        #5F6B52;   /* primary buttons (cream text ≥ 4.7:1) */
  --btn-hover:  #4F5A44;
  --ink-soft:   #4a4740;   /* muted body ink on cream */
  --line:       #e2dccd;   /* hairline borders, laboratory feel */

  --sage:  #B2B9A2;
  --clay:  #BE8378;
  --ochre: #CC9A6F;

  /* default accent = sage; pages override via body.accent-* */
  --accent: var(--sage);

  --mono: 'Space Mono', ui-monospace, 'Courier New', monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.2rem, 4vw, 3rem);
}

body.accent-sage  { --accent: var(--sage); }
body.accent-clay  { --accent: var(--clay); }
body.accent-ochre { --accent: var(--ochre); }

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }

/* ---- Language visibility (toggled by site.js on <html data-lang>) ----
   .lang-cs / .lang-en are inline spans. Default = Czech shown, English
   hidden; when data-lang="en" we flip both. */
.lang-en { display: none; }
html[data-lang="en"] .lang-cs { display: none; }
html[data-lang="en"] .lang-en { display: inline; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-tint { background: var(--cream-deep); }

/* ---- Typography ---- */
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; max-width: 66ch; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; background: var(--accent); display: inline-block;
}
#offer .eyebrow { color: var(--ink); font-size: 0.95rem; }

/* ---- Header / nav (injected by site.js) ---- */
/* The injection wrapper must not create a short containing block, or the
   sticky header inside it can only stick within that wrapper's own height. */
#site-header { display: contents; }
.site-header {
  position: relative; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
  margin: 0;
}
.site-header .wrap > a { margin-right: auto; }
.nav-links { display: flex; gap: clamp(0.8rem, 2vw, 1.7rem); align-items: center; }
.nav-links a {
  font-size: 1rem; color: var(--ink-soft);
  padding: 0.3rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: currentColor; }
.nav-links a.lk-aside { margin-left: 1.5rem; }
.nav-links a.lk-order { color: var(--ink); font-weight: 600; }   /* "Objednávka (N)", only when the stored order has lines */
.nav-links a.lk-order[hidden] { display: none; }

.lang-toggle { display: flex; gap: 0.15rem; font-family: var(--mono); font-size: 0.78rem; }
.lang-toggle button {
  background: none; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 0.22rem 0.5rem; cursor: pointer; line-height: 1;
}
.lang-toggle button.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.lang-toggle button:first-child { border-right: none; }

/* mobile nav */
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 0.55rem 0.9rem; cursor: pointer; font-family: var(--mono); font-size: 0.95rem; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active { border-bottom-color: var(--line); }
  .nav-links a.lk-aside { margin-left: 0; margin-top: 0.5rem; }
}

/* ---- Logo (official brand assets, used unchanged) ---- */
.logo { height: clamp(42px, 6vw, 60px); width: auto; display: block; }
.logo-foot { height: 30px; }
.hero-logo { height: clamp(52px, 9vw, 104px); width: auto; margin-bottom: 1.8rem; }
.symbol { width: 88px; height: 88px; object-fit: contain; display: block; margin: 0 auto 1rem; }

/* ---- Hero ---- */
.hero { padding-top: clamp(3rem, 7vw, 5rem); }
.hero .lead { margin-top: 0.4rem; }
.page-symbol { display: block; width: clamp(150px, 22vw, 240px); height: auto; margin: 0 auto; }

@keyframes symbol-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .page-symbol { animation: symbol-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
}

/* Home hero: full-viewport canopy photo, cream overlay so text stays legible */
.hero-home {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: flex-end;
  background-size: 120%;
  background-position: 30% center;
  overflow: hidden;
}
.hero-home::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(16,20,14,.5) 0%, rgba(16,20,14,.2) 35%, rgba(16,20,14,.55) 80%, rgba(16,20,14,.84) 100%);
}
.hero-home .wrap { position: relative; z-index: 1; text-align: left; margin: 0; padding-bottom: clamp(1.5rem, 6vh, 4rem); }
.hero-home .eyebrow { justify-content: center; }
.hero-home .btn-row { justify-content: center; }
/* "Termíny kurzů" under the subline. The hero text sits above the full-hero .band-jump but lets clicks through
   to it; only the button row takes clicks */
.hero-home .hero-sub + .btn-row { justify-content: flex-start; margin-top: 1.4rem; pointer-events: auto; }
.hero-home .wrap:has(.btn-row) { z-index: 2; pointer-events: none; }
.hero-home .btn-on-photo { background: transparent; color: var(--cream); border-color: var(--cream); }
.hero-home .btn-on-photo:hover, .hero-home .btn-on-photo:focus-visible { background: var(--cream); color: var(--ink); }
.hero-home .btn-on-photo:focus-visible { outline-color: var(--cream); }
/* Home wordmark is the visual anchor — much larger, width-driven */
.hero-home .hero-h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: .01em; margin: 0 0 .6rem; max-width: 18ch; color: #F3EEE2; text-wrap: balance; } /* balance: no orphan word when it wraps */
.hero-home .hero-br { display: none; } /* EN headline: controlled break after "where", desktop only */
@media (min-width: 1024px) { .hero-home .hero-h1 { max-width: none; white-space: nowrap; } .hero-home .hero-br { display: inline; } }
.hero-home .hero-sub { font-family: var(--sans); font-size: clamp(.95rem, 1.5vw, 1.2rem); line-height: 1.4; margin: 0; max-width: 46ch; color: #F3EEE2; }
.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 1.6rem; margin: 0; z-index: 1;
  font-family: var(--mono); font-size: 1rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); opacity: .9;
  animation: scrollnudge 1.8s ease-in-out infinite;
}
.scroll-hint .cue-arrow { font-size: 1.3em; margin-right: .15em; vertical-align: -0.05em; }
@keyframes scrollnudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}
.hero-logo-link { display: inline-block; }
.hero-logo-link:hover img { opacity: 0.85; transition: opacity .15s; }
.scroll-hint { text-decoration: none; cursor: pointer; }
.band-jump { position: absolute; inset: 0; z-index: 1; }

/* Home only: the big crown wordmark is the brand there, so the small one in
   the header bar would be redundant — hide it. */
body.home .site-header .logo { display: block; height: clamp(42px, 6vw, 60px); filter: brightness(0) invert(1); }

/* Home only: overlay the nav directly on the full-bleed hero (no cream bar). */
body.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: none; }
body.home .hero-home { min-height: 100vh; }
body.home .nav-toggle { border-color: rgba(243,238,226,.85); color: #F3EEE2; }
body.home .lang-toggle button { border-color: rgba(243,238,226,.85); color: #F3EEE2; }
body.home .lang-toggle button.active { background: #F3EEE2; color: var(--ink); border-color: #F3EEE2; }
body.home .hero-home .scroll-hint { left: 0; right: 0; width: fit-content; margin: 0 auto; color: #F3EEE2; }
@media (min-width: 761px) { body.home .nav-links a { color: #F3EEE2; } }
@media (max-width: 760px) { .hero-home { align-items: center; background-position: left center; background-size: cover; } .hero-home .wrap { padding-bottom: 0; } .hero-home::before { background: linear-gradient(to bottom, rgba(16,20,14,.55) 0%, rgba(16,20,14,.42) 32%, rgba(16,20,14,.68) 100%); } }

/* ---- Home symbol band — one screen, staggered rows, cascade reveal ---- */
.symband { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(1.8rem, 5vh, 3.6rem); padding: clamp(3rem, 7vh, 5.5rem) 9vw; }
.srow { display: flex; align-items: center; gap: 1.7rem; max-width: 600px; }
.srow img { width: clamp(110px, 13vw, 180px); height: auto; flex: none; }
.srow h2 { font-family: var(--mono); font-weight: 700; letter-spacing: .12em; font-size: clamp(1.25rem, 2.4vw, 1.9rem); margin: 0 0 .45rem; }
@media (max-width: 480px) { .srow h2 { font-size: clamp(.95rem, 4.8vw, 1.25rem); letter-spacing: .06em; } } /* keep BIG PICTURE / ODBORNOST on one line on narrow phones */
.srow p { font-size: clamp(.98rem, 1.4vw, 1.15rem); color: #2a2a27; max-width: 34ch; margin: 0; }
.srow.left { align-self: flex-start; }
.srow.center { align-self: center; }
.srow.right { align-self: flex-end; } /* symbol stays LEFT of text in all rows */
.symband .srow { text-align: left; } /* keep text left even on the .center row (avoid .center utility) */

.reveal { opacity: 0; transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.from-left { transform: translateX(-70px); }
.reveal.from-right { transform: translateX(70px); }
.reveal.from-up { transform: translateY(48px); }
.reveal.in-view { opacity: 1; transform: none; }
.symband .srow:nth-child(1) { transition-delay: 0s; }
.symband .srow:nth-child(2) { transition-delay: .45s; }
.symband .srow:nth-child(3) { transition-delay: .9s; }
@media (max-width: 760px) { .symband { min-height: auto; } .symband .scroll-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- "What we offer" — text-only row (home) ---- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.5rem; }
.offer-item { border-top: 1px solid var(--line); padding-top: 1.6rem; transition: border-color .15s; }
.offer-item:hover { border-top-color: var(--accent); }
.offer-item .k { font-family: var(--mono); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0 0 .7rem; color: var(--ink); }
.offer-item p { color: var(--ink-soft); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.5; margin: 0; }
.offer-more { display: inline-block; margin-top: .9rem; font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; color: var(--ink); }
.offer-next { display: block; margin-top: .9rem; font-size: .95rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.offer-next[hidden] { display: none; }
.offer-cell > .offer-item { display: block; } /* Kurzy card + its next-date link share one grid cell */
.offer-item:hover .k { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.offer-item:hover .offer-more { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .offer-grid { grid-template-columns: 1fr; } }

/* ---- Photo / text teaser rows (inner pages) ---- */
.teaser { display: flex; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: center; flex-wrap: wrap; }
.teaser > .teaser-text { flex: 1 1 340px; }
.teaser > .teaser-media { flex: 1 1 340px; }
.teaser-media img { max-width: 480px; width: 100%; height: auto; margin: 0 auto; display: block; }
.teaser-media img.frame-lg { max-width: 600px; }
.pub-list { margin: 1.4rem 0 0; padding-left: 1.4rem; }
.pub-list li { margin-bottom: .9rem; line-height: 1.55; font-size: .98rem; }
.pub-list a { word-break: break-word; }
.teaser.reverse { flex-direction: row-reverse; }
@media (max-width: 720px) {
  .hero { padding-top: 1.6rem; }
  .teaser, .teaser.reverse { flex-direction: column; gap: 0.4rem; }
  .teaser > .teaser-text, .teaser > .teaser-media { flex: 0 0 auto; }
  .teaser-media .page-symbol { max-width: 240px; }
}

/* ---- Photo frame (regular jpgs) vs. cutout (transparent webp on cream) ---- */
.photo { border: 1px solid var(--line); background: var(--cream-deep); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.ratio-4-5 { aspect-ratio: 4 / 5; }
.photo.ratio-3-4 { aspect-ratio: 3 / 4; }
.photo.ratio-4-3 { aspect-ratio: 4 / 3; }
.cutout { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.caption { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-soft); margin-top: 0.7rem; }

/* ---- Paired photos (services: tomography setup + tomogram) ---- */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }

/* ---- Octagon photo frame (About page people photos only; brand "Big Picture" motif) ---- */
.frame-octagon {
  aspect-ratio: 1 / 1; object-fit: cover; object-position: center;
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%,
                      29.3% 100%, 0 70.7%, 0 29.3%);
}

/* ---- Credentials strip (home) — compact, no imagery ---- */
.credentials {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.8rem 0;
}
.credentials .cred { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.03em; color: var(--ink-soft); text-align: center; max-width: 26ch; }
.credentials .cred strong { color: var(--ink); font-weight: 700; }
.cred-logo { height: 64px; width: auto; display: block; margin: 0 0 0.6rem; }

/* About — Why (centered) + Expertise split with interlocked credential octagons */
.why-lead { max-width: 68ch; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.why-lead h2 { text-align: center; }

.about-split { display: grid; grid-template-columns: minmax(280px, 46%) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.cred-hive { display: flex; flex-direction: column; align-items: flex-start; transform: translateY(40px); }
.hive-cell { display: flex; align-items: center; gap: 1rem; }

.hive-cell + .hive-cell { margin-top: -49px; }
.hive-cell:nth-child(2) { margin-left: 111px; }
.hive-cell:nth-child(3) { margin-left: 222px; }
.cred-hive .hive-cell:nth-child(1) { transition-delay: 0s; }
.cred-hive .hive-cell:nth-child(2) { transition-delay: .15s; }
.cred-hive .hive-cell:nth-child(3) { transition-delay: .3s; }

.hive-badge {
  position: relative; width: 160px; height: 160px; flex: none;
  background: #6b7555;
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
}
.hive-badge::before {
  content: ""; position: absolute; inset: 3px; z-index: 0; background: var(--cream);
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
}
.hive-badge > * { position: relative; z-index: 1; }
.hive-badge img { width: 88px; height: 88px; object-fit: contain; }
.hive-badge strong { font-family: var(--mono); font-size: 1rem; letter-spacing: .04em; color: var(--ink); }
.hive-badge--text strong { font-size: 1.7rem; }
.hive-label { font-family: var(--mono); font-size: .82rem; line-height: 1.35; color: var(--ink-soft); margin: 0; max-width: 22ch; }

@media (max-width: 760px) {
  .about-split { grid-template-columns: 1fr; }
  .hive-cell:nth-child(2), .hive-cell:nth-child(3) { margin-left: 0; }
  .hive-cell + .hive-cell { margin-top: 1rem; }
  .cred-hive { transform: none; }
}

/* ---- Accent-washed section (colour presence, one accent per page) ---- */
.section-accent {
  background: color-mix(in srgb, var(--accent) 26%, var(--cream));
  border-top: 1px solid color-mix(in srgb, var(--accent) 45%, var(--cream));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, var(--cream));
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 1rem; line-height: 1.25; letter-spacing: 0.02em;  /* body-size labels, tight tracking */
  padding: 0.7rem 1.15rem; border: 1px solid var(--ink); cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-primary { background: var(--btn); color: var(--cream); border-color: var(--btn); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--btn-hover); color: var(--cream); border-color: var(--btn-hover); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--btn); color: var(--cream); border-color: var(--btn); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
/* focus: outline only for keyboard focus (:focus-visible); text fields keep their own :focus style */
:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, select:focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.btn-lg { font-size: 1.05rem; padding: 1rem 1.9rem; border-width: 2px; }

/* ---- Home contact CTA ---- */
.cta-line { font-family: var(--mono); font-size: clamp(1rem, 2vw, 1.3rem); margin: 0 auto 1.6rem; color: var(--ink); }   /* auto: the 66ch box itself centred */

/* ---- Pillars (PROGRESS / EXPERTISE / BIG PICTURE) ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--cream); padding: 2.6rem 1.4rem; text-align: center; }
.pillar .k { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.7rem; }
.pillar .k svg { width: 18px; height: 18px; }
.pillar p { font-size: 0.95rem; line-height: 1.5; margin: 0 auto; max-width: 30ch; color: var(--ink-soft); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---- Card grid ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.cards-2up { grid-template-columns: repeat(2, 1fr); }
.cards-2up .course { padding: 1.7rem; }
.cards-2up .course h3 { font-size: 1.35rem; }
@media (max-width: 640px) { .cards-2up { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); background: var(--cream);
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: 0.9rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink); }
.card .more::after { content: " →"; color: var(--accent); }

/* ---- Course cards ---- */
.course {
  border: 1px solid var(--line); background: var(--cream); padding: 1.5rem 1.5rem;
  display: grid; gap: 0.6rem;
}
.course .top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.course h3 { margin: 0.2rem 0 0.1rem; }
.course .meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.03em; }
.course .price { font-family: var(--mono); font-size: 0.9rem; margin-top: 0.3rem; }
.course .price span { color: var(--ink-soft); }
.course .actions { margin-top: 0.6rem; }

/* pills / badges — one neutral system (brand book §12) */
.pill {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.35rem; line-height: 1;
}
.pill.accent { border-color: var(--accent); color: var(--ink); }

/* status note strip */
.note {
  border-left: 3px solid var(--accent); background: var(--cream-deep);
  padding: 1rem 1.2rem; font-size: 0.95rem; color: var(--ink-soft); margin: 1.5rem 0; max-width: 66ch;
}

/* ---- Definition rows (services / research lists) ---- */
.rows { margin-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.row {
  flex: 0 1 calc((100% - 2rem) / 3);
  border: 1px solid var(--line); padding: 1.4rem; background: var(--cream);
}
.row h3 { margin: 0 0 0.55rem; }
.row p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.step-oct {
  position: relative; width: 46px; height: 46px; flex: none;
  background: #6b7555;
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  display: flex; align-items: center; justify-content: center;
}
.step-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.6rem; }
.step-head h3 { margin: 0; }
.step-oct span { font-family: var(--mono); font-weight: 700; color: var(--cream); font-size: 1.15rem; }
@media (max-width: 720px) { .row { flex-basis: 100%; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.duo-col h2 { margin-top: 0; }
.duo-col .btn-row { margin-top: 1.1rem; }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: 0.6rem 0.7rem;
  border: 1px solid var(--line); background: var(--cream); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.contact-detail { font-family: var(--mono); font-size: 0.9rem; line-height: 2; }
.contact-detail .k { color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--cream-deep); padding: 2.5rem 0; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 1.4rem; }
.site-footer .foot-nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.site-footer .foot-main { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.site-footer .fcol { font-size: 0.88rem; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.site-footer .foot-seg { white-space: nowrap; } /* wrap only after a "·", never before */
.foot-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.foot-social a { display: inline-flex; color: var(--ink-soft); transition: color .15s; }
.foot-social a:hover { color: var(--ink); }
.foot-social svg { width: 22px; height: 22px; }
.site-footer .fcol-sub { max-width: 34ch; }
.foot-sub-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.5rem; }
.foot-sub-lead { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 0.9rem; }
.foot-sub-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: stretch; }
.foot-sub-form input[type="email"] { flex: 1 1 12rem; font-family: var(--sans); font-size: 0.9rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); background: var(--cream); color: var(--ink); }
.foot-sub-form .btn { padding: 0.6rem 1rem; }
.foot-sub-note { margin-top: 0.7rem; color: var(--ink-soft); }
.foot-sub-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Utility ---- */
.stack-lg > * + * { margin-top: 2.5rem; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- Course books (foldable course cards) ---- */
.course-list{display:flex;flex-direction:column;gap:2.4rem;margin-top:1.5rem;}
.course-book{border:1px solid var(--line);background:var(--cream);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 4px 16px rgba(25,25,25,.07);}
.course-book .cb-media{height:clamp(170px,26vw,240px);overflow:hidden;background:var(--cream-deep);border-bottom:1px solid var(--line);}
.course-book .cb-media img{width:100%;height:100%;display:block;}
.course-book.is-photo .cb-media img{object-fit:cover;}
.course-book.is-symbol .cb-media img{object-fit:contain;padding:1.6rem;}
.course-book .cb-body{padding:1.1rem 1.5rem 1rem;display:flex;flex-direction:column;gap:.4rem;}
.course-book .meta{margin:0;line-height:1.5;} /* was inheriting the global p margin → big gap above the price */
.course-book h3{margin:.2rem 0 0;font-size:1.3rem;}
.course-book .price{margin:0;line-height:1.5;}
.cb-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:.1rem 0 0;}
.cb-status{align-self:flex-start;display:inline-flex;align-items:center;gap:.4rem;font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;padding:.24rem .6rem;border:1px solid var(--line);margin:0;}
.cb-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;}
.status-open{color:#5f7051;}
.status-last{color:var(--ochre);}
.status-full{color:var(--clay);}
/* term list on a course card: one row per upcoming date */
.cb-terms{list-style:none;margin:.3rem 0 .2rem;padding:0;display:flex;flex-direction:column;gap:.5rem;}
.cb-term{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .9rem;padding:.6rem 0;border-top:1px solid var(--line);}
.cb-term:last-child{border-bottom:1px solid var(--line);}
.cb-term-when{font-weight:600;}
.cb-hours{display:block;font-weight:400;font-size:.85rem;color:var(--ink-soft);}   /* course teaching hours */
.cb-pick .cb-hours{margin-top:.4rem;}
.cb-incl{font-family:var(--sans);font-size:.85rem;color:var(--ink-soft);}   /* "· šanon v ceně" after the card price, like .cb-hours */
.cb-term-place{color:var(--ink-soft);font-size:.92rem;}
.cb-term-avail{display:inline-flex;align-items:center;gap:.45rem;font-family:var(--sans);font-size:1rem;color:var(--ink);}
.cb-term-avail::before{content:"";flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:#5f7051;}  /* open: same green as .status-open */
.cb-term-avail.status-last::before{background:var(--ochre);}
.cb-term-avail.status-full::before{background:var(--clay);}
.cb-term-avail.status-last,.cb-term-avail.status-full{font-weight:600;}
.cb-term .btn{margin-left:auto;}
.cb-term.is-off .cb-term-when,.cb-term.is-off .cb-term-place{color:var(--ink-soft);}
.cb-term[hidden]{display:none;}
/* 2+ terms: dropdown + one button side by side; stacked full width on phones */
.cb-pick{margin:.3rem 0 .2rem;padding:.6rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.cb-pick-label{display:block;margin-bottom:.35rem;font-size:.85rem;color:var(--ink-soft);}
.cb-pick-row{display:flex;flex-wrap:wrap;gap:.5rem .9rem;align-items:center;}   /* like .cb-term: [select] [status] … [button] */
.cb-pick-row .btn{margin-left:auto;}
.cb-pick-row [hidden]{display:none;}
.cb-pick-sel{flex:0 1 auto;min-width:0;padding:.55rem .6rem;border:1px solid var(--line);background:var(--cream);font:inherit;color:var(--ink);}
.cb-pick-sel:focus-visible{outline-color:var(--btn);}   /* same ring, brand green */
.cb-pick .cb-term-note{display:block;margin-top:.4rem;}
.cb-pick .cb-term-note[hidden]{display:none;}
/* currency switch (Kč | €) at the "Nejbližší termíny" heading */
.tm-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem 1.5rem;flex-wrap:wrap;}
.tm-head h2,.tm-head h1{margin-bottom:0;}
.cur-switch{display:inline-flex;border:1px solid var(--ink);}
.cur-switch[hidden]{display:none;}
.cur-switch button{font-family:var(--mono);font-size:1rem;line-height:1.25;padding:.45rem .95rem;border:0;background:transparent;color:var(--ink);cursor:pointer;}
.cur-switch button+button{border-left:1px solid var(--ink);}
.cur-switch button[aria-checked="true"]{background:var(--ink);color:var(--cream);}
.cur-note{color:var(--clay);font-weight:600;margin:.6rem 0 0;}
.cur-note[hidden]{display:none;}
.price-note{display:block;font-size:.85rem;font-weight:400;color:var(--ink-soft);}
.rf-sum-cur{font-size:.85rem;color:var(--ink-soft);margin-top:.2rem;}
.rf-pr-hint{font-size:.85rem;color:var(--ink-soft);margin:.2rem 0 .6rem;}
@media (max-width:600px){.tm-head{flex-direction:column;align-items:flex-start;}}
/* "Termíny" (courses.html#terminy): one line per term on desktop, stacked on phones */
.tm-sec{scroll-margin-top:1rem;}
.tm-month{font-size:1.15rem;font-weight:700;color:var(--btn);margin:2.2rem 0 0;padding-bottom:.35rem;border-bottom:2px solid var(--btn);}
.tm-month:first-child{margin-top:1.4rem;}
.tm-month+.tm-rows>.tm-row:first-child{border-top:0;}   /* the month's 2px line replaces it */
.tm-rows{list-style:none;margin:0;padding:0;}
.tm-row{display:grid;grid-template-columns:10rem minmax(0,1fr) 16.25rem 13.5rem 9rem;align-items:center;gap:.4rem .8rem;padding:.6rem 0;border-top:1px solid var(--line);}
.tm-when{font-weight:600;white-space:nowrap;}
html[data-lang="en"] .tm-row{grid-template-columns:13rem minmax(0,1fr) 16.25rem 13.5rem 9rem;}   /* EN dates are longer ("28 June – 2 July 2027") */
.tm-avail{white-space:nowrap;}
.tm-title{color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:3px;}
.tm-title:hover{color:var(--accent);}
.tm-place{color:var(--ink-soft);font-size:.92rem;}
.tm-row .btn{justify-self:end;}
.tm-row.is-off .tm-when{color:var(--ink-soft);}
#tm-list [hidden]{display:none;}
.tm-in{display:block;font-size:.85rem;color:var(--ink-soft);}   /* "✓ V objednávce" under the status */
/* card term row reached from "Nejbližší termíny": ~2 s flash; static with reduced motion */
.cb-term.is-flash,.cb-pick.is-flash{animation:cb-flash 2s ease-out;}
@keyframes cb-flash{from{background:color-mix(in srgb,var(--accent) 40%,var(--cream));}to{background:transparent;}}
@media (prefers-reduced-motion:reduce){.cb-term.is-flash,.cb-pick.is-flash{animation:none;background:color-mix(in srgb,var(--accent) 40%,var(--cream));}}
.cb-term:focus{outline:2px solid var(--ink);outline-offset:2px;}
.tm-toggle{margin-top:1rem;}
@media (max-width:1000px){
  .tm-row{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem 1rem;}
  .tm-when{order:1;}.tm-avail{order:2;}.tm-title{order:3;}.tm-place{order:4;}.tm-row .btn{order:5;}
  .tm-when,.tm-avail{white-space:normal;}
  .tm-title,.tm-place,.tm-row .btn{flex:1 1 100%;}
  .tm-place:empty{display:none;}
}
}
.cb-term-note{flex:1 1 100%;font-size:.85rem;color:var(--ink-soft);}
.rf-oi-term{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--ink-soft);}
.rf-oi-term select{padding:.3rem .5rem;border:1px solid var(--line);background:var(--cream);font:inherit;font-size:.9rem;color:var(--ink);max-width:16rem;}
@media (max-width:480px){.cb-term .btn{margin-left:0;width:100%;}.rf-oi-term select{max-width:100%;}}
/* the one long button label ("Mám zájem, dejte mi vědět o termínu") may wrap on phones: full width, centred */
@media (max-width:480px){.cb-actions .btn{width:100%;justify-content:center;text-align:center;}}
/* thanks.html: add the ordered dates to a calendar */
.cal{margin:2rem 0 1.5rem;}
.cal-h{font-size:1.15rem;margin:0 0 .8rem;}
.cal-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.8rem;}
.cal-item{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;padding:.7rem 0;border-top:1px solid var(--line);}
.cal-item:last-child{border-bottom:1px solid var(--line);}
.cal-item-t{flex:1 1 100%;font-weight:600;}
.cal-item-d{font-family:var(--mono);font-size:.78rem;color:var(--ink-soft);}
.cal-btns{display:flex;flex-wrap:wrap;gap:.5rem;margin-left:auto;}
.cal-btns .btn{padding:.4rem .8rem;}
.cal-note{margin:.9rem 0 0;font-size:.85rem;color:var(--ink-soft);}
@media (max-width:480px){.cal-btns{margin-left:0;}}
/* card footer: details toggle = outline button (the <summary>), small copy link on the same row */
.cb-foot{position:relative;margin-top:.3rem;}
.cb-more>summary{list-style:none;min-height:2.75rem;box-sizing:border-box;}
.cb-more>summary::-webkit-details-marker{display:none;}
.cb-more>summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px;}
.cb-more-hide,.cb-more[open] .cb-more-show{display:none;}
.cb-more[open] .cb-more-hide{display:inline;}
.cb-more[open]>summary{margin-bottom:.8rem;}
.cb-copy{position:absolute;top:0;right:0;height:2.75rem;display:inline-flex;align-items:center;gap:.35rem;padding:0;border:0;background:none;font:inherit;font-size:.85rem;color:var(--ink-soft);cursor:pointer;}
.cb-copy:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.cb-copy:focus-visible{outline:2px solid var(--ink);outline-offset:2px;}
.cb-copy-ic{width:15px;height:15px;flex:none;}
.cb-foot.is-solo .cb-copy{position:static;}
.cb-title:hover,.cb-title:focus-visible{text-decoration:underline;text-underline-offset:3px;}   /* card title = link to the course page */
/* ---- course detail pages (kurzy/<id>.html, built by scripts/build_course_pages.py) ---- */
.course-page .cp-back{margin:0 0 1.2rem;font-size:.9rem;}
.course-page .cp-back a{color:var(--ink-soft);}
.course-page .cp-back a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.course-page .course-book h1{font-size:clamp(1.5rem,3.75vw,2.33rem);margin:.2rem 0 0;}   /* site h1 × .75 */
@media (min-width:720px){
  .course-page .course-book{overflow:visible;align-items:flex-start;}   /* overflow:hidden would stop the sticky photo */
  .course-page .course-book.is-photo .cb-media{position:sticky;top:1.5rem;align-self:flex-start;height:calc(100vh - 3rem);max-height:760px;min-height:0;}
}
@media (max-width:600px){
  .cb-more>summary{display:flex;justify-content:center;width:100%;margin-bottom:2.4rem;}
  .cb-more[open]>summary{margin-bottom:2.6rem;}
  .cb-copy{top:3.15rem;left:0;right:auto;height:auto;}
}
.cb-desc{margin-top:.3rem;font-size:.95rem;color:var(--ink-soft);}
.cb-sub{font-family:var(--mono);font-weight:400;font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;color:var(--ink);margin:1rem 0 .4rem;}
.cb-outline{font-size:.95rem;color:var(--ink-soft);}
.cb-outline ul{margin:0;padding-left:1.2rem;list-style:disc;}
.cb-outline li{margin-bottom:.25rem;}
.cb-outline-day{font-family:var(--mono);font-size:.75rem;letter-spacing:.05em;text-transform:uppercase;color:var(--ink);margin:.9rem 0 .3rem;}
.cb-outline-day:first-child{margin-top:.3rem;}
.cb-sub-ol{font-family:inherit;font-size:1.1rem;font-weight:600;letter-spacing:0;text-transform:none;margin-top:1.6rem;}
.cb-outline-h{font-weight:600;color:var(--ink);margin:.9rem 0 .3rem;}
.cb-outline-h:first-child{margin-top:0;}
.cb-outline-p{margin:0 0 .3rem;}
.cb-outline-en{display:none;} html[data-lang="en"] .cb-outline-cs{display:none;} html[data-lang="en"] .cb-outline-en{display:block;}
.cb-gallery{display:flex;flex-wrap:wrap;gap:12px;margin-top:1rem;}
.cb-gallery img{height:150px;width:auto;max-width:100%;object-fit:contain;display:block;cursor:zoom-in;}
/* photo lightbox (courses.html) */
.lb{border:0;padding:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;background:rgba(25,25,25,.88);color:var(--cream);}
.lb[open]{display:flex;align-items:center;justify-content:center;}
.lb::backdrop{background:rgba(25,25,25,.5);}
.lb figure{margin:0;text-align:center;}
.lb-img{max-width:90vw;max-height:80vh;object-fit:contain;display:block;margin:0 auto;}
.lb-cap{margin-top:.7rem;font-size:.9rem;max-width:90vw;}
.lb-count{position:absolute;top:1rem;left:1rem;margin:0;font-family:var(--mono);font-size:.78rem;letter-spacing:.05em;}
.lb-btn{position:absolute;width:2.6rem;height:2.6rem;background:transparent;border:1px solid rgba(241,235,221,.45);color:var(--cream);font:inherit;font-size:1.3rem;line-height:1;cursor:pointer;}
.lb-btn:hover{background:rgba(241,235,221,.12);}
.lb-prev{left:1rem;top:50%;transform:translateY(-50%);}
.lb-next{right:1rem;top:50%;transform:translateY(-50%);}
.lb-close{right:1rem;top:1rem;}
@media (min-width:720px){
  .course-book{flex-direction:row;}
  .course-book .cb-media{width:300px;height:auto;flex:0 0 auto;border-bottom:0;border-right:1px solid var(--line);}
  .course-book .cb-body{flex:1;}
  /* photo cards: the text column sets the height, the photo covers the media column */
  .course-book.is-photo .cb-media{position:relative;min-height:240px;}
  .course-book.is-photo .cb-media img{position:absolute;inset:0;object-position:center;}
}
@media (max-width:719px){
  .cb-pick-row{flex-direction:column;align-items:flex-start;}
  .cb-pick-sel,.cb-pick-row .btn{width:100%;margin-left:0;justify-content:center;}
  /* mobile: show the whole photo instead of a cropped strip (desktop unaffected) */
  .course-book.is-photo .cb-media{height:auto;}
  .course-book.is-photo .cb-media img{height:auto;}
  .cb-gallery img{height:110px;}
}
/* ---- Legal pages (obchodni-podminky.html, zpracovani-osobnich-udaju.html) ---- */
html[data-lang="en"] .legal-doc.lang-en { display: block; } /* one block container per language */
.legal-doc { max-width: 760px; line-height: 1.6; }
.legal-doc h2 { font-size: 1.15rem; margin: 2.2rem 0 .7rem; }
.legal-doc ul { padding-left: 1.3rem; }
.legal-doc li { margin-bottom: .3rem; }
.legal-pdf { font-size: .88rem; margin: 0 0 1.6rem; }
.legal-table { overflow-x: auto; margin: 1rem 0 1.4rem; } /* only the table scrolls sideways on mobile */
.legal-doc table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .9em; line-height: 1.45; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: .6em .8em; border: 0; border-bottom: 1px solid rgba(25,25,25,.22); } /* rows only; --line is too faint on cream */
.legal-doc thead th { background: rgba(178,185,162,.35); font-weight: 600; } /* sage tint */
.legal-doc td:first-child { font-weight: 600; }
/* ---- Reservation form ---- */
#rf-participants{max-width:8rem;}
.rf-addon-desc{font-size:.9rem;color:var(--ink-soft);margin:0;}
.rf-bnd{flex:none;margin:0;padding:.6rem .8rem;border:1px solid var(--line);background:var(--cream);}   /* card after the last participant of the first course that offers it */
.rf-bnd[hidden]{display:none;}
.rf-bnd-h{font-family:var(--sans);font-size:.95rem;font-weight:600;letter-spacing:normal;text-transform:none;line-height:1.3;margin:0 0 .3rem;}
.rf-bnd-row{display:flex;gap:.9rem;align-items:flex-start;}
.rf-bnd-zoom{flex:0 0 auto;padding:0;border:0;background:none;cursor:zoom-in;line-height:0;}   /* transparent cutout straight on the card */
.rf-bnd-zoom[hidden]{display:none;}
.rf-bnd-zoom img{width:96px;height:auto;display:block;}
@media (max-width:480px){.rf-bnd-zoom img{width:80px;}}
.rf-bnd-zoom:focus-visible{outline:2px solid var(--ink);outline-offset:2px;}
.rf-bnd-body{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;min-width:0;}
.rf-bnd-txt{font-size:.9rem;margin:0;}
.rf-bnd-more{border:0;background:none;padding:0;font:inherit;font-size:.9rem;font-weight:600;color:var(--ink);text-decoration:none;text-underline-offset:3px;cursor:pointer;}
.rf-bnd-more:hover,.rf-bnd-more:focus-visible{text-decoration:underline;}
.rf-bnd-more:focus-visible{outline:2px solid var(--ink);outline-offset:2px;}
.rf-bnd-more[hidden],.rf-addon-desc[hidden]{display:none;}
.rf-addon-row{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap;margin-top:.3rem;}
.rf-stepper input{width:4.5rem;padding:.4rem .5rem;border:1px solid var(--line);background:var(--cream);font-family:var(--sans);}
.rf-summary{border:1px solid var(--line);background:var(--cream);padding:1rem 1.2rem;margin:1.2rem 0;}
.rf-sum-line,.rf-sum-total{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0;font-size:.95rem;}
.rf-sum-line[hidden]{display:none;}
.rf-sum-total{border-top:1px solid var(--line);margin-top:.3rem;padding-top:.6rem;font-weight:700;font-size:1.1rem;}
.rf-sum-note{font-size:.78rem;color:var(--ink-soft);margin:.6rem 0 0;}
.reserve-form{max-width:960px;margin-top:1.4rem;}
.rf-col{min-width:0;display:flex;flex-direction:column;}
@media (min-width:760px){
  .reserve-form{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start;}
}
.rf-selected{font-family:var(--sans);font-weight:600;font-size:1.05rem;color:var(--ink);margin:0 0 .8rem;}
.rf-selected strong{color:var(--ink);}
.rf-order{list-style:none;margin:0 0 1rem;padding:0;}
.rf-oi{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem 1rem;padding:1rem 1.2rem;border:1px solid var(--line);background:var(--cream);font-size:.95rem;}
.rf-oi+.rf-oi{margin-top:1.75rem;}
.rf-oi-thumb{flex:none;width:56px;height:56px;object-fit:cover;}
.rf-oi-head{flex:1 1 0;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;}
@media (max-width:480px){.rf-oi-thumb{width:44px;height:44px;}}
.rf-oi-title{flex:1 1 100%;font-weight:600;}
.rf-oi-when{font-weight:400;color:var(--ink-soft);}
.rf-oi-n{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--ink-soft);}
.rf-oi-n input{width:4.5rem;padding:.3rem .5rem;border:1px solid var(--line);background:var(--cream);font:inherit;color:var(--ink);}
.rf-oi-price{margin-left:auto;}
.rf-oi-people{flex:1 1 100%;display:flex;flex-direction:column;gap:.5rem;}
.rf-pr-list{display:flex;flex-direction:column;}
.rf-pr{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.4rem .8rem;padding:.6rem 0;}
.rf-pr+.rf-pr{border-top:1px solid var(--line);}
.rf-pr-checks{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:.3rem 1.2rem;}
.rf-pr-me{display:flex;align-items:center;gap:.4rem;font-size:.85rem;font-weight:600;cursor:pointer;}
.rf-pr-f{flex:1 1 11rem;display:flex;flex-direction:column;gap:.2rem;font-size:.8rem;color:var(--ink-soft);}
.rf-pr-fn{flex-basis:8rem;}   /* participant Jméno / Příjmení: narrower than the e-mail */
.rf-pr-f input{padding:.35rem .5rem;border:1px solid var(--line);background:var(--cream);font:inherit;font-size:.95rem;color:var(--ink);}
.rf-pr-f input[readonly]{background:transparent;color:var(--ink-soft);cursor:default;}   /* "Stejné jako fakturační údaje": copied, muted */
.rf-pr-later{display:flex;align-items:center;gap:.4rem;font-size:.85rem;color:var(--ink-soft);cursor:pointer;}
.rf-pr-head{flex:1 1 100%;display:flex;align-items:center;justify-content:space-between;gap:.8rem;min-height:1.6rem;}   /* "Účastník N" … "× Odebrat" */
.rf-pr+.rf-pr .rf-pr-head{margin-top:.5rem;}   /* from participant 2: more room below the divider */
.rf-pr-num{font-family:var(--mono);font-size:.75rem;letter-spacing:.05em;text-transform:uppercase;color:var(--ink);}   /* like .cb-sub */
.rf-pr-remove{background:none;border:0;padding:.15rem 0;font:inherit;font-size:.85rem;color:var(--ink-soft);cursor:pointer;}
.rf-pr-remove:hover,.rf-pr-remove:focus-visible{color:var(--clay);}
.rf-pr [hidden]{display:none;}
.rf-pr-sum{flex:1 1 12rem;font-size:.95rem;color:var(--ink);padding:.2rem 0;}
.rf-pr.is-later{align-items:center;padding-top:.45rem;padding-bottom:.45rem;}
.rf-pr-binder{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:.3rem 1.1rem;font-size:.9rem;color:var(--ink);padding-top:.2rem;}
.rf-pr-binder label{display:flex;align-items:center;gap:.35rem;cursor:pointer;}
.rf-pr-bnote{flex:1 1 100%;font-size:.9rem;color:var(--ink);margin:0;padding-top:.2rem;}   /* binder "v ceně" / from another course, instead of the radios */
.rf-pr-add{align-self:flex-start;padding:.45rem .9rem;}
/* lunch + accommodation per participant (term fields), below the binder choice */
.rf-pr-x{flex:1 1 100%;display:flex;flex-direction:column;gap:.4rem;}
.rf-pr-x:empty{display:none;}
.rf-pr-lunch,.rf-a-nights,.rf-a-opts{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem 1.1rem;font-size:.9rem;color:var(--ink);}
.rf-pr-x label:not(.rf-pr-f){display:flex;align-items:center;gap:.35rem;font-size:.9rem;color:var(--ink);cursor:pointer;}
.rf-pr-x [hidden],.rf-pr-x label[hidden]{display:none;}
.rf-l-all{border:0;background:none;padding:0;font:inherit;font-size:.85rem;color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.rf-l-note,.rf-a-info{font-size:.85rem;color:var(--ink-soft);margin:0;}
.rf-l-note a,.rf-a-info a{text-decoration:underline;}
.rf-a-body{display:flex;flex-direction:column;gap:.45rem;padding-left:1.4rem;}
.rf-a-opts{flex-direction:column;align-items:flex-start;}
.rf-a-matef{max-width:24rem;}
.rf-a-text{font-size:.85rem;color:var(--ink-soft);border:1px solid var(--line);background:var(--cream);padding:.5rem .7rem;}
.rf-a-text p{margin:0 0 .4rem;}.rf-a-text p:last-child{margin-bottom:0;}.rf-a-text a{text-decoration:underline;}
html[data-lang="en"] .rf-a-text.lang-en{display:block;}   /* one block per language */
.rf-check[hidden],.rf-notice[hidden]{display:none;}
@media (max-width:480px){.rf-pr-f{flex-basis:100%;}.rf-pr.is-later .rf-pr-sum{flex-basis:100%;}}
.rf-oi-remove{flex:none;white-space:nowrap;}   /* "× Odebrat kurz": text button, styled by .rf-pr-remove */
@media (max-width:480px){.rf-oi-remove{order:-1;flex:1 1 100%;text-align:right;}}   /* own line above the title, right-aligned */
.rf-order-empty{font-size:.9rem;color:var(--ink-soft);margin:0 0 1rem;}
.rf-more{margin:0 0 1.2rem;}
.course-list:focus{outline:none;}
.rf-order-error{color:var(--clay);font-weight:600;margin:0 0 .8rem;}
.rf-buyer{border:1px solid var(--line);padding:.8rem 1rem;margin-bottom:1rem;display:flex;gap:1.4rem;flex-wrap:wrap;}
.rf-addr-row{display:flex;gap:.8rem;}
.rf-zip{flex:0 0 9rem;}
.rf-city{flex:1;min-width:0;}
.rf-addr-row input{min-width:0;width:100%;}
.rf-name-row > .field{flex:1;min-width:0;}   /* Jméno | Příjmení side by side, stacked on phones (as PSČ | Město) */
@media (max-width:480px){ .rf-addr-row{flex-direction:column;gap:0;} .rf-zip{flex:none;} }
.rf-buyer legend{font-family:var(--sans);font-weight:600;font-size:1.05rem;color:var(--ink);padding:0 .4rem;}   /* same as .rf-selected */
.rf-radio,.rf-check{display:flex;align-items:flex-start;gap:.5rem;font-size:.95rem;cursor:pointer;}
.rf-check{margin:.4rem 0 .8rem;}
.rf-check a{font-weight:700;text-decoration:underline;}
.rf-check a:hover{color:var(--accent);}
.doclink{font-weight:700;text-decoration:underline;}
.doclink:hover{color:var(--accent);}
.rf-company{border-left:2px solid var(--line);padding-left:1rem;margin-bottom:.4rem;}
.rf-consent{font-size:.82rem;color:var(--ink-soft);}
.rf-notice{margin:.4rem 0 .8rem;}

/* course lecturers (in "Popis kurzu"): octagon = .step-oct (same clip-path + colours as the "Jak kurzy fungují" badges), 64 px */
.lect-list{list-style:none;margin:0;padding:0;display:grid;gap:.9rem;}
.lect{display:flex;align-items:flex-start;gap:.9rem;}
.lect-noimg .lect{gap:0;}
.lect.lect-nobio{align-items:center;}   /* no bio shown: name centred to the photo */
.step-oct.lect-oct{width:64px;height:64px;}
.lect-oct img{width:100%;height:100%;object-fit:cover;display:block;}
.lect-text{min-width:0;flex:1;font-size:.95rem;}
.lect-name{margin:0;font-weight:600;color:var(--ink);}
.lect-bio{margin:.15rem 0 0;color:var(--ink-soft);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;}
.lect-bio.is-open{display:block;-webkit-line-clamp:unset;line-clamp:none;}
.lect-multi .lect-bio:not(.is-open){display:none;}   /* 2+ lecturers: bio only after "Více" */
.lect-more{background:none;border:0;padding:0;margin-top:.2rem;font:inherit;font-size:.88rem;color:var(--ink);text-decoration:underline;cursor:pointer;}
.lect-more:focus-visible,.lect-link:focus-visible{outline:2px solid var(--ink);outline-offset:2px;}
.lect-link{display:inline-block;margin-top:.2rem;margin-left:.8rem;font-size:.88rem;color:var(--ink);}
.lect-more[hidden]+.lect-link,.lect-name+.lect-link{margin-left:0;}
/* order page (objednavka.html) + the "added" toast on courses.html */
.ord-bar{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem 1.5rem;flex-wrap:wrap;margin-bottom:1.6rem;}
.ord-clear{border:0;background:none;padding:0;font:inherit;color:var(--ink-soft);text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.ord-clear:hover,.ord-clear.is-armed{color:var(--clay);}
.ord-gone{margin-top:.6rem;}
.ord-gone p{margin:.3rem 0;}
.ord-empty{margin-top:1.4rem;}
.order-toast{position:fixed;left:50%;bottom:1.2rem;transform:translateX(-50%);z-index:60;width:max-content;max-width:calc(100% - 2*var(--gutter));}
.order-toast p{margin:0;padding:.8rem 1.1rem;background:var(--ink);color:var(--cream);font-size:.95rem;box-shadow:0 4px 18px rgba(25,25,25,.25);}
.order-toast a{color:var(--cream);font-weight:700;text-decoration:underline;text-underline-offset:3px;}
/* ucastnici.html: participant details via the e-mail link (reuses the order form's .rf-oi / .rf-pr) */
.pt-ref{font-family:var(--mono);font-size:.9rem;color:var(--ink-soft);margin:0 0 1.2rem;}
.pt-items{list-style:none;margin:0 0 1.2rem;padding:0;}
.pt-closed{font-size:.9rem;color:var(--ink-soft);margin:.2rem 0 0;}
.pt-ok{color:var(--ink);font-weight:600;margin:0 0 .8rem;}
#pt-save[hidden]{display:none;}

/* ---- Field note (note.html): markdown body from notes.json, one block per language ---- */
html[data-lang="en"] .note-body.lang-en { display: block; }
.note-body { max-width: 760px; line-height: 1.6; margin-top: 1.5rem; }
.note-body h2, .note-body h3 { margin-top: 1.6rem; }
.note-body img, .note-img { height: auto; margin: 1.2rem 0; }
.note-img { max-width: 760px; width: 100%; }
