/* ==================================================================
 * ČČK Havlíčkův Brod — statický web
 * Přenos z in-browser JSX prototypu (D1 revoked) na čisté HTML+CSS+JS.
 * Vizuál 1:1 s prototypem (prototypový přepínací panel nastavení: červená
 * bright, layout hero banner, displayFont Space Grotesk, světlý režim —
 * natvrdo zapečeno; onen přepínací panel byl vývojářský nástroj a do
 * produkce nepatří).
 * ================================================================== */

/* ---------- Self-hosted web fonts (no external CDN) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.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 700;
  font-display: swap;
  src: url('../fonts/inter-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jbmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jbmono-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/spacegrotesk-latin-ext.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 Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/spacegrotesk-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;
}

/* ---------- Design tokens ---------- */

:root {
  /* Red — ČČK signál („bright" varianta z prototypu — přeneseno napevno) */
  --accent:        #E30613;
  --accent-hover:  #FF1B2D;
  --accent-press:  #A8000C;
  --accent-tint:   #FDE7E9;

  /* Neutrals — paper-first, civic/institucionální */
  --bg:            #FAFAFA;
  --surface-1:     #FFFFFF;
  --surface-2:     #F2F2F0;
  --surface-3:     #E8E8E5;
  --fg:            #16161A;
  --fg-muted:      #4B4B52;
  --fg-subtle:     #8A8A93;
  --fg-on-accent:  #FFFFFF;
  --border:        rgba(22, 22, 26, 0.10);
  --border-strong: rgba(22, 22, 26, 0.18);
  --focus-ring:    #E30613;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Motion */
  --ease:      cubic-bezier(0.2, 0.7, 0.1, 1);
  --dur-micro: 160ms;
  --dur:       240ms;
  --dur-slow:  400ms;

  /* Layout */
  --container:       1280px;
  --container-narrow: 920px;
  --nav-height:      104px;

  --cross-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 2h6v7h7v6h-7v7H9v-7H2V9h7z' fill='%23E30613'/></svg>");
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--fg);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transform: translateY(-76px);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 112px 0; }
.section--sm { padding: 48px 0; }
.section--md { padding: 72px 0; }
.section--xl { padding: 144px 0; }
.section--surface2 { background: var(--surface-2); }

@media (max-width: 900px) {
  .section, .section--sm, .section--md, .section--xl { padding: 40px 0; }
}
@media (max-width: 480px) {
  .section, .section--sm, .section--md, .section--xl { padding: 28px 0; }
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}
/* Eyebrow immediately followed by a heading gets the standard 20px rhythm gap */
.eyebrow + .display { margin-top: 20px; }
.display--w16 { max-width: 16ch; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}

.display--hero { font-size: clamp(48px, 8vw, 104px); }
.display--h1   { font-size: clamp(40px, 6vw, 72px); }
.display--h2   { font-size: clamp(32px, 4.4vw, 56px); }
.display--h3   { font-size: clamp(24px, 2.6vw, 36px); }
.display--h4   { font-size: 22px; font-weight: 600; }

@media (max-width: 900px) {
  .display--hero { font-size: clamp(32px, 9vw, 44px); }
  .display--h1   { font-size: clamp(28px, 7vw, 36px); }
  .display--h2   { font-size: clamp(24px, 6vw, 32px); }
  .display--h3   { font-size: clamp(20px, 5vw, 26px); }
  .display { max-width: 100%; }
}
@media (max-width: 480px) {
  .display--hero { font-size: 30px; }
  .display--h1   { font-size: 26px; }
  .display--h2   { font-size: 22px; }
  .display--h3   { font-size: 19px; }
}

.lede {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}
@media (max-width: 900px) { .lede { font-size: 15px; line-height: 1.55; } }
@media (max-width: 480px) { .lede { font-size: 14px; } }

.body-text {
  font-family: var(--font-body);
  color: var(--fg);
  line-height: 1.6;
}

/* Underline-on-hover for nav and links */
.link {
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}
.link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link-active::after { background: var(--accent); transform: scaleX(1); }

/* Subtle grid backdrop, used behind page headers */
.grid-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(22, 22, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 26, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.cross-pattern {
  background-image: var(--cross-svg);
  background-size: 28px 28px;
  background-repeat: repeat;
  opacity: 0.06;
}

/* Page-load fade */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-fade { animation: fade-up var(--dur-slow) var(--ease); animation-fill-mode: both; }
@media (prefers-reduced-motion: reduce) {
  .page-fade { animation: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn__arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }

.btn--secondary { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-2); }

.btn--ghost {
  background: transparent; color: var(--fg);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0; padding: 6px 0;
}
.btn--ghost:hover { border-color: var(--accent); }

.btn--light { background: rgba(255,255,255,0.94); color: var(--accent); }
.btn--light:hover { background: #fff; }

.btn--on-dark { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn--on-dark:hover { background: rgba(255,255,255,0.12); }

.btn--sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
/* Backdrop blur lives on a ::before layer, not on .site-header itself.
 * Reason: `backdrop-filter` on an element makes it a containing block for
 * its `position: fixed` descendants (CSS Filter Effects spec). .main-nav
 * (the mobile nav drawer) is a descendant of .site-header and relies on
 * `position: fixed; inset: 76px 0 0 0` being relative to the *viewport*.
 * With the filter on .site-header, the drawer got trapped inside the 76px
 * header box instead (measured: top:76 height:32 instead of top:76
 * height:736) — see fix/mobilni-menu. The ::before is a pseudo-element,
 * not an ancestor of .main-nav, so it can carry the same filter safely. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}
.site-header.is-scrolled::before {
  /* Fully opaque, not the original 88% translucent color-mix — measured on
   * /kurzy that 88% (and even 97%) + blur still let page text show through
   * legibly under the logo/toggle button on mobile. `backdrop-filter` is
   * kept only for the saturate() boost on the very first frame of the
   * background transition; at full opacity there is nothing left to blur. */
  background: var(--bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.site-header__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark { display: flex; align-items: center; cursor: pointer; user-select: none; }
.wordmark img { display: block; object-fit: contain; }
.wordmark--nav img { width: 84px; height: 84px; }
.wordmark--footer img { width: 84px; height: 84px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav__links { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
}
.main-nav a.link-active { color: var(--fg); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .site-header__inner { height: 76px; }
  .wordmark--nav img { width: 56px; height: 56px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--surface-1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(20px, 4vw, 56px) 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__links > a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .main-nav .btn { margin-top: 20px; align-self: flex-start; }
}

/* ---------- Nav dropdown ("Co děláme" / "O nás") ---------- */

.nav-item { position: relative; }
.nav-item__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; padding: 0; margin: 0;
  cursor: pointer; font: inherit;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--fg-muted);
  min-height: 44px;
}
.nav-item__trigger:hover, .nav-item.is-open .nav-item__trigger { color: var(--fg); }
.nav-item__caret { width: 10px; height: 10px; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.nav-item.is-open .nav-item__caret { transform: rotate(180deg); }

/* .subnav-panel is the single animated wrapper (one grid item); .subnav
 * (the <ul>) lives inside it. Keeping the collapse trick on a wrapper with
 * exactly one child — not on the <ul> itself — matters: a <ul> with N <li>
 * children as direct grid items would auto-place li #2..N into implicit
 * grid-auto-rows tracks that the 0fr→1fr toggle never touches, so only the
 * first item would ever collapse.
 *
 * The closed/hidden state below is intentionally UNCONDITIONAL — it is not
 * nested in either of the two @media blocks further down. Previously this
 * rule was empty (`.subnav-panel { }`) and every hidden-state property lived
 * inside `@media (min-width: 901px)` or `@media (max-width: 900px)`. Those
 * two ranges are complementary for any *integer* viewport width, but:
 *   1. A fractional CSS-pixel viewport width (browser zoom at a non-100%
 *      level, or OS display scaling that doesn't divide evenly) can land in
 *      the open interval 900px < width < 901px, which BOTH media queries
 *      miss. With nothing defined outside them, the panel had no display/
 *      position/visibility at all and rendered as a plain in-flow block —
 *      three of them stacked next to their triggers, overlapping visually.
 *   2. More generally, relying solely on a media query for the hidden state
 *      means the very first style resolution of the element (before either
 *      query has been evaluated against a settled layout viewport) has no
 *      defined hidden state to fall back on.
 * Making position + opacity + visibility + pointer-events unconditional
 * means the panel is hidden and out of flow from the very first style
 * resolution, independent of viewport width, and independent of whether any
 * JS has run at all (no-JS still gets a fully closed, linked-list menu). */
.subnav-panel {
  position: absolute; top: 100%; left: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.nav-item.is-open .subnav-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.subnav {
  list-style: none; margin: 0; padding: 0;
}
.subnav a {
  font-family: var(--font-body); font-size: 14px; color: var(--fg-muted);
}

@media (min-width: 901px) {
  .subnav-panel {
    top: calc(100% + 18px); left: -16px;
    min-width: 268px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(22, 22, 26, 0.14);
    padding: 8px;
    z-index: 60;
  }
  .subnav li a { display: block; padding: 11px 14px; border-radius: 8px; }
  .subnav li a:hover, .subnav li a:focus-visible { background: var(--surface-2); color: var(--fg); }
  .subnav li a.link-active { color: var(--accent); font-weight: 600; }
}

@media (max-width: 900px) {
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-item__trigger {
    width: 100%; justify-content: space-between;
    padding: 16px 4px; font-size: 16px; color: var(--fg-muted);
  }
  .subnav-panel {
    /* Undo the desktop-oriented unconditional defaults above: on the mobile
     * accordion, hiding is done purely by collapsing height to 0 (grid trick
     * below), exactly as before this fix. Without this reset, the
     * unconditional opacity/visibility transition (240ms) would finish
     * before the grid-template-rows collapse (400ms) and the content would
     * visibly vanish mid-animation instead of shrinking away with it. */
    position: static;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows var(--dur-slow) var(--ease);
  }
  .subnav-panel > .subnav { min-height: 0; overflow: hidden; }
  .nav-item.is-open .subnav-panel { grid-template-rows: 1fr; }
  .subnav li a { display: block; padding: 12px 4px 12px 14px; font-size: 15px; }
  .subnav li a.link-active { color: var(--accent); }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .subnav-panel { transition: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--surface-2);
  margin-top: 80px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.site-footer__about p {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 40ch;
}
.footer-col__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 16px;
}
.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col__links a { font-size: 14px; color: var(--fg); align-self: flex-start; }
.footer-contact { font-size: 14px; line-height: 1.7; color: var(--fg); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-subtle);
}
.site-footer__bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .site-footer { padding-top: 32px; margin-top: 32px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; margin-bottom: 32px; }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Cards / tiles (generic) ---------- */

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card--link { cursor: pointer; }
.card--link:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.image-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  color: var(--fg-subtle);
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 2h4v8h8v4h-8v8h-4v-8H2v-4h8z' fill='%23E30613' fill-opacity='0.06'/></svg>");
  background-size: 40px 40px;
}
.image-placeholder span { position: relative; z-index: 1; opacity: 0.7; }
.image-placeholder--accent {
  background-color: var(--accent);
  color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 2h4v8h8v4h-8v8h-4v-8H2v-4h8z' fill='%23ffffff' fill-opacity='0.08'/></svg>");
}
.image-placeholder--4-3 { aspect-ratio: 4 / 3; }
.image-placeholder--4-5 { aspect-ratio: 4 / 5; }
.image-placeholder--16-9 { aspect-ratio: 16 / 9; }

.cross-glyph { display: block; object-fit: contain; }

/* ==================================================================
 * HOME
 * ================================================================== */

/* --- Hero banner --- */

.hero-banner {
  position: relative;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  /* Bounded to the viewport minus the sticky nav so the whole hero — title,
     buttons, 03/03 indicator — is always visible on first paint, no matter
     how long the CMS-driven title is. The min() half keeps it from ever
     exceeding available height; the fixed 560px cap keeps it from growing
     needlessly tall on big screens. Title overflow itself is capped by the
     line-clamp on .hero-body .display below, so this height never depends
     on title length. */
  height: min(calc(100vh - var(--nav-height)), 560px);
  min-height: 420px;
}
.hero-banner__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(20px, 3.4vw, 36px);
  padding-bottom: clamp(24px, 3.6vw, 40px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
  cursor: pointer;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(227,6,19,0.42) 0%, rgba(227,6,19,0.32) 50%, rgba(120,3,10,0.78) 100%);
  mix-blend-mode: multiply;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
}
.hero-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.hero-body { max-width: 42ch; margin-top: 20px; min-height: 0; flex-shrink: 1; }
.hero-body__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); font-weight: 600;
  margin-bottom: 10px;
}
.hero-body .display {
  color: #fff;
  max-width: 34ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.18);
  /* Dedicated (smaller-than-.display--h1) size so a long CMS title still
     reads as 2-3 lines instead of 6-7. The line-clamp is the hard safety
     net: whatever the title length, it can never push the hero taller than
     its fixed height and hide the buttons/indicator below. */
  font-size: clamp(28px, 3.6vw, 46px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.hero-body__actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; flex-shrink: 0; }

.hero-indicators { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-shrink: 0; }
.hero-indicators button {
  width: 40px; height: 4px; border: 0; border-radius: 2px;
  background: rgba(255,255,255,0.45);
  cursor: pointer; padding: 0;
  transform: scaleX(0.6);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hero-indicators button.is-active { transform: scaleX(1); background: #fff; }
.hero-indicators__count {
  margin-left: 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.75); letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  /* Mobile nav is 76px tall (see .site-header__inner override below) — mirror
     that here so the hero still fits the viewport minus the header. */
  .hero-banner { height: min(calc(100vh - 76px), 620px); min-height: 460px; }
  .hero-body .display { -webkit-line-clamp: 4; }
}

/* --- Stats bar --- */

.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat__value {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display);
  font-size: 56px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--fg);
}
.stat__unit { font-size: 20px; color: var(--fg-muted); font-weight: 400; }
.stat__label { margin-top: 12px; font-size: 13px; color: var(--fg-muted); }

@media (max-width: 900px) {
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 16px; }
  .stat:nth-child(2n) { border-left: 1px solid var(--border); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(1) { border-left: none; }
  .stat__value { font-size: 36px; }
}

/* --- Mission --- */

.mission-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.mission-grid__body { padding-top: 12px; }
.mission-grid__body p:first-child {
  font-family: var(--font-body); font-size: 19px; line-height: 1.6;
  color: var(--fg); margin-top: 0; text-wrap: pretty;
}
.mission-grid__body p + p { font-size: 17px; line-height: 1.65; color: var(--fg-muted); margin-top: 20px; }
.mission-grid__body .btn { margin-top: 32px; }

@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Services grid --- */

.services-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.service-tile {
  background: var(--surface-1); color: var(--fg);
  padding: 32px; cursor: pointer; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  position: relative; overflow: hidden;
  border: 0; text-align: left; font: inherit;
}
.service-tile:hover, .service-tile:focus-visible { background: var(--accent); color: #fff; }
.service-tile__glyph {
  position: absolute; right: 20px; bottom: 20px; opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service-tile:hover .service-tile__glyph, .service-tile:focus-visible .service-tile__glyph { opacity: 0.16; }
.service-tile__n {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--fg-subtle); margin-bottom: 28px;
}
.service-tile:hover .service-tile__n { color: rgba(255,255,255,0.7); }
.service-tile__title {
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 14px;
}
.service-tile__desc { font-size: 14px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
.service-tile:hover .service-tile__desc { color: rgba(255,255,255,0.85); }
.service-tile__more {
  margin-top: 24px; position: relative; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.service-tile__more span { transition: transform var(--dur) var(--ease); }
.service-tile:hover .service-tile__more span { transform: translateX(4px); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-tile { min-height: 220px; padding: 20px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* --- Aktuality cards --- */

.aktuality-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
}
.aktuality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aktualita-card {
  display: flex; flex-direction: column;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  text-align: left; color: inherit; scroll-margin-top: 120px;
}
/* --link modifier: card is a real navigable <a> (used on home page → aktuality.html#id) */
.aktualita-card--link { cursor: pointer; }
.aktualita-card--link:hover, .aktualita-card--link:focus-visible { border-color: var(--border-strong); transform: translateY(-2px); }
.aktualita-card .image-placeholder { border-radius: 0; border: 0; }
.aktualita-card__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.aktualita-card--lg .aktualita-card__body { padding: 32px; }
.aktualita-card__meta {
  display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--fg-subtle);
}
.aktualita-card__meta .cat { font-family: var(--font-mono); color: var(--accent); font-weight: 600; }
.aktualita-card__title {
  margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.01em; color: var(--fg);
}
.aktualita-card--lg .aktualita-card__title { font-size: 28px; }
.aktualita-card__excerpt { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-muted); }
.aktualita-card__more {
  margin-top: auto; padding-top: 8px;
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.aktualita-card__more span { transition: transform var(--dur) var(--ease); }
.aktualita-card--link:hover .aktualita-card__more span { transform: translateX(4px); }

@media (max-width: 900px) {
  .aktuality-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .aktuality-grid { grid-template-columns: 1fr; }
}

/* --- Upcoming course strip --- */

.course-strip {
  background: var(--fg); color: var(--bg); border-radius: 16px;
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  position: relative; overflow: hidden;
}
.course-strip__body { position: relative; }
.course-strip__eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-hover); font-weight: 600; margin-bottom: 16px;
}
.course-strip__body .display { color: var(--bg); max-width: 20ch; }
.course-strip__body p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 52ch; }
.course-strip__aside { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.course-strip__price { font-family: var(--font-display); font-size: 56px; font-weight: 500; color: var(--bg); line-height: 1; }

@media (max-width: 900px) {
  .course-strip { grid-template-columns: 1fr; text-align: left; }
  .course-strip__aside { align-items: flex-start; }
}

/* --- Support / final CTA --- */

.support-cta {
  border-top: 1px solid var(--border); padding-top: 64px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center;
}
.support-cta .display { margin-top: 20px; max-width: 20ch; }
.support-cta p { font-size: 17px; line-height: 1.65; color: var(--fg-muted); margin: 0; }
.support-cta__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .support-cta { grid-template-columns: 1fr; gap: 24px; }
}

/* ==================================================================
 * PAGE HEADER (aktuality / kurzy / o-nas / kontakt)
 * ================================================================== */

.page-header { padding: 88px 0 64px; border-bottom: 1px solid var(--border); }
.page-header__inner { display: flex; flex-direction: column; gap: 24px; max-width: 64ch; }
.page-header .display { max-width: 20ch; }
.page-header .lede { max-width: 54ch; }

@media (max-width: 900px) {
  .page-header { padding: 48px 0 32px; }
}

/* ==================================================================
 * AKTUALITY
 * ================================================================== */

.filter-pills {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.filter-pill {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent; color: var(--fg);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  min-height: 36px;
}
.filter-pill.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }

.aktualita-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  margin-bottom: 56px; padding-bottom: 56px;
  border-bottom: 1px solid var(--border); align-items: center;
  text-align: left; color: inherit; scroll-margin-top: 120px;
}
.aktualita-featured__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--fg-subtle); margin-bottom: 20px; }
.aktualita-featured__meta .cat { font-family: var(--font-mono); color: var(--accent); font-weight: 600; }
.aktualita-featured__title { margin-bottom: 20px; }
.aktualita-featured__excerpt { font-size: 17px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
.aktualita-featured .btn { margin-top: 28px; }

@media (max-width: 900px) {
  .aktualita-featured { grid-template-columns: 1fr; gap: 20px; }
}

.aktuality-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .aktuality-list-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .aktuality-list-grid { grid-template-columns: 1fr; } }

/* ==================================================================
 * KURZY
 * ================================================================== */

.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.usp {
  padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-1);
}
.usp__value {
  font-family: var(--font-display); font-size: 48px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--accent);
}
.usp__label { margin-top: 8px; font-size: 13px; color: var(--fg-muted); }

@media (max-width: 900px) { .usp-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 480px) { .usp-grid { grid-template-columns: 1fr; } }

.course-table {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-1);
}
.course-table__head, .course-row {
  display: grid; grid-template-columns: 140px 1fr 140px 110px 170px; gap: 12px;
  align-items: center;
}
.course-table__head {
  background: var(--surface-2); padding: 14px 24px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-subtle); border-bottom: 1px solid var(--border);
}
.course-row {
  padding: 24px; border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease); font-size: 15px;
}
.course-row:last-child { border-bottom: none; }
.course-row:hover { background: var(--surface-2); }
.course-row__date-day { font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.course-row__day { font-size: 12px; color: var(--fg-subtle); margin-top: 2px; }
.course-row__name { font-weight: 500; }
.course-row__time { color: var(--fg-muted); font-family: var(--font-mono); font-size: 13px; }
.course-row__price { font-weight: 600; }
.course-row__spots { display: flex; align-items: center; gap: 12px; }
.course-row__spots-count { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); }
.course-row__spots-count.is-low { color: var(--accent); }
.course-row__full {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--fg-subtle); border: 1px solid var(--border);
}
.course-row .btn { margin-left: auto; }

@media (max-width: 900px) {
  .course-table__head { display: none; }
  .course-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "date name"
      "time price"
      "spots spots";
    row-gap: 6px;
    font-size: 13px;
  }
  .course-row > :nth-child(1) { grid-area: date; }
  .course-row > :nth-child(2) { grid-area: name; }
  .course-row > :nth-child(3) { grid-area: time; }
  .course-row > :nth-child(4) { grid-area: price; }
  .course-row > :nth-child(5) { grid-area: spots; margin-top: 8px; }
}

.learn-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.learn-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.learn-tile { background: var(--surface-1); padding: 24px; min-height: 140px; }
.learn-tile__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.learn-tile p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-muted); }

@media (max-width: 900px) {
  .learn-grid { grid-template-columns: 1fr; gap: 32px; }
  .learn-tiles { grid-template-columns: 1fr; }
}

.cta-panel {
  background: var(--accent); color: #fff; border-radius: 16px;
  padding: clamp(32px, 6vw, 80px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-panel__glyph { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); opacity: 0.16; }
.cta-panel__body { position: relative; }
.cta-panel__eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; opacity: 0.84; }
.cta-panel__body .display { color: #fff; max-width: 18ch; }
.cta-panel__body p { margin-top: 20px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.88); max-width: 48ch; }
.cta-panel__aside { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

@media (max-width: 900px) {
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel__glyph { display: none; }
}

/* ==================================================================
 * O NÁS
 * ================================================================== */

.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.intro-grid > * { min-width: 0; }
.intro-grid p { font-size: 17px; line-height: 1.7; color: var(--fg-muted); margin-bottom: 20px; }
.intro-grid .display { margin-bottom: 24px; max-width: 20ch; }

@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 24px; } }

.principles-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.principle { background: var(--surface-1); padding: 28px; min-height: 180px; }
.principle__n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.principle__title { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.principle p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-muted); }

@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles-grid { grid-template-columns: 1fr; } }

.team-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 24px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-member__name { margin-top: 20px; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.team-member__role { font-size: 14px; color: var(--fg-muted); margin-top: 6px; }

@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.timeline { border-left: 2px solid var(--accent); padding-left: 32px; display: flex; flex-direction: column; gap: 36px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: -41px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--bg);
}
.timeline-item__year { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--accent); }
.timeline-item__text { font-size: 16px; line-height: 1.6; color: var(--fg); }

@media (max-width: 640px) {
  .timeline { padding-left: 24px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-item::before { left: -33px; }
}

/* ==================================================================
 * KONTAKT
 * ================================================================== */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-heading { margin-top: 20px; font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.4; }
.contact-address { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--fg-muted); }

.contact-rows { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-row__label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 6px; }
.contact-row__value { font-size: 17px; color: var(--fg); }
.contact-row__value--mono { font-family: var(--font-mono); }

.office-hours { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.office-hours table { margin-top: 16px; font-size: 15px; }
.office-hours td { padding: 12px 0; border-bottom: 1px solid var(--border); }
.office-hours td:first-child { width: 60px; color: var(--fg-subtle); font-family: var(--font-mono); }
.office-hours td:last-child { color: var(--fg); }

.contact-form-panel {
  padding: clamp(28px, 4vw, 48px); background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 16px;
}
.contact-form-panel .display { margin-top: 16px; margin-bottom: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 6px;
  color: var(--fg); outline: none; transition: border-color var(--dur) var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 16px; flex-wrap: wrap; }
.form-footer__gdpr { font-size: 12px; color: var(--fg-subtle); max-width: 40ch; }

.form-success {
  padding: 32px; text-align: center;
  background: var(--accent-tint); border-radius: 12px; border: 1px solid var(--accent);
}
.form-success img { margin: 0 auto; }
.form-success__title { margin-top: 16px; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.form-success__text { margin-top: 8px; font-size: 14px; color: var(--fg-muted); }

.map-panel { margin-top: 16px; }

.map-embed {
  position: relative; height: 360px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface-2); overflow: hidden;
}
.map-embed__frame {
  width: 100%; height: 100%; border: 0; display: block; pointer-events: none;
}
.map-embed.is-activated .map-embed__frame { pointer-events: auto; }
.map-embed.is-activated .map-embed__overlay { display: none; }

.map-embed__overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22, 22, 26, 0.04); border: 0; padding: 0; margin: 0; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.map-embed__overlay:hover, .map-embed__overlay:focus-visible { background: rgba(22, 22, 26, 0.08); }
.map-embed__overlay-text {
  padding: 10px 18px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--fg);
  box-shadow: 0 4px 16px rgba(22, 22, 26, 0.12);
}
.map-embed__noscript { padding: 16px; text-align: center; font-size: 14px; }

.map-panel__footer {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 12px 24px;
}
.map-panel__address { font-size: 14px; color: var(--fg-muted); }
.map-panel__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 640px) {
  .map-embed { height: 280px; }
}

/* ==================================================================
 * Archive footer note
 * ================================================================== */

.archive-note {
  text-align: center; font-size: 12px; color: var(--fg-subtle);
  padding: 16px 0; border-top: 1px solid var(--border);
}
.archive-note a { text-decoration: underline; }

/* ==================================================================
 * SHARED CONTENT COMPONENTS (nové stránky: zdravotnické asistence,
 * dárcovství krve, tábory, senior point, kroužek, ke stažení,
 * fotogalerie, gdpr)
 * ================================================================== */

/* --- Prose: dlouhé textové bloky (právní texty, popisy) --- */
.prose { max-width: 74ch; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--fg-muted); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--fg); margin: 32px 0 12px;
}
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--fg-muted); font-size: 16px; line-height: 1.7; }
.prose li { margin-bottom: 6px; }
.prose .note {
  margin-top: 8px; padding: 16px 18px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 14px; line-height: 1.6; color: var(--fg-muted);
}
.prose--wide { max-width: 100%; }

.two-col-list { column-count: 2; column-gap: 40px; }
.two-col-list li { break-inside: avoid; }
@media (max-width: 640px) { .two-col-list { column-count: 1; } }

/* --- Data table (ceníky, ročníky táborů, ocenění dárců) --- */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-1); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.data-table caption { text-align: left; padding: 16px 20px 0; font-size: 13px; color: var(--fg-subtle); }
.data-table th, .data-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-subtle); background: var(--surface-2);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td { color: var(--fg-muted); }
.data-table td:first-child { color: var(--fg); font-weight: 500; }

/* --- Doc list (Ke stažení) --- */
.doc-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.doc-card { background: var(--surface-1); padding: 28px clamp(20px, 4vw, 32px); }
.doc-card__title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--fg); margin: 0 0 10px; }
.doc-card__body { font-size: 15px; line-height: 1.7; color: var(--fg-muted); margin: 0; }
.doc-card__body + .doc-card__body { margin-top: 10px; }
.doc-card__link { margin-top: 14px; display: inline-flex; }

/* --- Gallery grid (Fotogalerie) --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-item { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item__cap { padding: 10px 12px; font-size: 12px; line-height: 1.4; color: var(--fg-muted); }
.gallery-group__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.gallery-group { margin-bottom: 48px; }
.gallery-group:last-child { margin-bottom: 0; }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* --- Real-photo variant of image-placeholder (aspect box + <img>) --- */
.photo-box {
  aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden; background: var(--surface-2);
}
.photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-box--16-9 { aspect-ratio: 16 / 9; }
.photo-box--4-5 { aspect-ratio: 4 / 5; }

/* --- Simple link list (external references) --- */
.link-list { display: flex; flex-direction: column; gap: 4px; }
.link-list a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--fg);
}
.link-list a:last-child { border-bottom: none; }

/* --- Category badge row reused outside aktuality (senior point akce) --- */
.entry-card {
  padding: 28px 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
}
.entry-card:last-child { border-bottom: none; }
.entry-card__date { font-family: var(--font-mono); font-size: 13px; color: var(--fg-subtle); padding-top: 4px; }
.entry-card__title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 8px; color: var(--fg); }
.entry-card__text { font-size: 14px; line-height: 1.65; color: var(--fg-muted); margin: 0; }
@media (max-width: 640px) {
  .entry-card { grid-template-columns: 1fr; gap: 6px; }
}

/* --- Simple two-up feature (photo + text), reused across new pages --- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-grid > * { min-width: 0; }
.feature-grid--rev .feature-grid__media { order: 2; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid--rev .feature-grid__media { order: 0; }
}

/* --- Photo pair grid (2 real photos side by side, used on service pages) --- */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }

/* ---------- Small utility set ----------
 * Used only where a one-off spacing/width value doesn't warrant its own
 * component class (keeps HTML free of inline style="" per project standard). */
.u-mt-20  { margin-top: 20px; }
.u-mt-32  { margin-top: 32px; }
.u-mb-40  { margin-bottom: 40px; }
.u-lede-block {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 46ch;
}
