/* ============================================================
   GreenHive homepage v6 — "Liquid Hexagon"
   Airy, light WebGL piece. ONE glass hexagonal prism (brand hive
   shape) flows DOWN the page on scroll, threading every section
   like a single continuous element. Three material variants
   (glass / frosted / liquid) behind a JS switch.
   Type system, brand tokens and section markup carried from v4.
   ============================================================ */
:root {
  /* ============================================================
     OFFICIAL BRAND TOKENS - 01_Brand_Identity.md v1.5.0
     Single source of truth: assets/brand/BRAND_COLORS.md
     Hex values live ONLY in this block; use var(--gh-*) elsewhere.
     ============================================================ */
  --gh-dark-green: #016938;   /* hexagon FILL, primary brand */
  --gh-light-green: #8BC440;  /* "Lime" - hexagon OUTLINE, accents, links */
  --gh-black: #1A1A1A;        /* body text, CTA - never #000000 */
  --gh-light-gray: #E6E6E6;   /* borders, dividers */
  --gh-mid-gray: #6C6C6C;     /* secondary text, captions — darkened from #999999 for WCAG AA (lang switcher) */
  --gh-white: #FBFCF9;        /* near-white PAPER base — NEVER pure white; on-brand text + paper-mix endpoint */

  /* semantic mapping (derived tints via color-mix, no raw hex below) */
  --bg: color-mix(in srgb, var(--gh-light-green) 3%, var(--gh-white));   /* page canvas — barely-sage, never pure white */
  --bg-2: color-mix(in srgb, var(--gh-light-gray) 40%, var(--gh-white));
  --bg-dark: var(--gh-dark-green);
  --ink: var(--gh-black);
  --ink-soft: var(--gh-black);
  --ink-faint: color-mix(in srgb, var(--gh-black) 66%, var(--gh-white)); /* ~#686868 — darkened 58%->66% for WCAG AA on white/frosted/green-floor */
  --ink-note: color-mix(in srgb, var(--gh-black) 86%, var(--gh-dark-green)); /* footnotes on deeper-green bg, ~AA */
  --brand: var(--gh-dark-green);
  --accent: var(--gh-light-green);
  --danger: #A5503C;   /* funkční danger tón (BRAND_COLORS.md) — POUZE text/border/outline, nikdy plocha */
  --line: var(--gh-light-gray);
  --surface: color-mix(in srgb, var(--gh-white) 86%, transparent);
  --overlay-soft: color-mix(in srgb, var(--gh-black) 16%, transparent);
  --overlay-strong: color-mix(in srgb, var(--gh-black) 30%, transparent);
  --highlight: color-mix(in srgb, var(--gh-white) 8%, transparent);
  /* airy page wash top (read by shared/components.css) */
  --wash-top: var(--gh-white);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* ---- refined type scale (one step down ~12% from oversized; whitespace,
     not size, carries the premium feel). Hero display kept as-is. ---- */
  --fs-label: 0.66rem;
  --fs-badge: 0.8rem;
  --fs-h2: clamp(2.0rem, 4.4vw, 3.5rem);
  --fs-svc: clamp(1.25rem, 2.3vw, 1.8rem);
  --fs-stat: clamp(1.85rem, 3vw, 2.7rem);   /* big data-driven numbers: scale like display type */
  --fs-year: clamp(1.4rem, 2.4vw, 2rem);    /* story year numbers: fluid */
  --fs-card-title: 0.96rem;
  --fs-contact-h: clamp(2.1rem, 4.8vw, 3.8rem);
  --fs-subpage-h: clamp(2.1rem, 5.2vw, 3.8rem);
  --fs-faq-h: clamp(1.45rem, 3vw, 2.05rem);
  /* ---- unified consistency tokens (one lever each, site-wide) ---- */
  --icon-stroke: 1.1;        /* one thin elegant line weight for ALL line icons (was 1.6/1.8/2.0) */
  /* ===== PRECEDENT "paper-on-green" tile — the canonical card look for the whole site.
     Retune here once → every tile updates. Light paper ~85% (airy, green shows through only as a hint),
     hairline brand-green border, 16px radius, generous padding, whisper-soft depth. Dark text holds WCAG AA. */
  --radius-card: 16px;
  --card-line: 1px solid color-mix(in srgb, var(--gh-light-green) 34%, transparent);   /* hairline soft brand-green */
  --card-bg: linear-gradient(165deg, color-mix(in srgb, color-mix(in srgb, var(--gh-light-green) 12%, var(--gh-white)) 85%, transparent), color-mix(in srgb, color-mix(in srgb, var(--gh-light-green) 18%, var(--gh-white)) 83%, transparent));  /* sage paper ~84% — visibly green-tinted (NOT white), green shows through as a hint */
  --card-shadow: 0 2px 18px color-mix(in srgb, var(--gh-dark-green) 7%, transparent);   /* whisper soft depth, no hard shadow */
  /* NO PURE WHITE anywhere — paper is the default; function differs by opacity or green, never white */
  --card-bg-field: color-mix(in srgb, color-mix(in srgb, var(--gh-light-green) 5%, var(--gh-white)) 95%, transparent);    /* firmer lighter paper — form fields / overlays / lighter slots (still never pure white) */
  --card-bg-header: color-mix(in srgb, color-mix(in srgb, var(--gh-light-green) 7%, var(--gh-white)) 91%, transparent);   /* sticky header — firm ~90% paper, stays legible over scrolling content */
  --card-bg-header-solid: color-mix(in srgb, var(--gh-light-green) 7%, var(--gh-white));   /* OPAQUE varianta header paper — symetrický rám: header == footer, identický odstín bez ohledu na stránkový gradient (nahoře vs dole) */
  --card-bg-solid: color-mix(in srgb, var(--gh-light-green) 13%, var(--gh-white));   /* OPAQUE sage paper — info/stat tiles; identical shade regardless of position over the page gradient (no translucency) */
  --card-bg-active: var(--gh-dark-green);   /* 9.172: AKTIVNÍ segment/tab (segmentové přepínače — bodymap toggle, FAQ taby): brand fill, text vždy --gh-white; žádný nový hex, alias kánonu .bm-view-btn.is-active */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* FLUID ROOT (global responsive standard): root rem scales continuously with viewport,
   so every rem-based font-size AND rem spacing/gap fluidly grows/shrinks with the window
   while keeping all ratios + hierarchy. ~15.3px @360 → 18px @1440 → 19px @1920 (capped).
   Large display type adds its own vw clamp on top (hero h1, section titles). */
html { font-size: clamp(15px, 14.4px + 0.25vw, 19px); scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: var(--brand); color: var(--gh-white); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
/* a11y: generic visible focus fallback for any interactive element without a specific rule */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px;
}
/* programmatic focus target (routed subpage title) should not show a ring */
[tabindex="-1"]:focus { outline: none; }
/* a11y: visually-hidden but available to screen readers (skip link + structural headings) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only.skip-link:focus {
  position: fixed; top: 0.75rem; left: 0.75rem; width: auto; height: auto;
  clip: auto; padding: 0.6rem 1rem; background: var(--brand); color: var(--gh-white);
  border-radius: 6px; z-index: 999; font-weight: 600;
}
.container { width: min(1240px, 92vw); margin: 0 auto; }
.label { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- Airy backdrop + flowing-hex canvas (both fixed) ---------- */
.page-bg {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    /* deeper green pools lower-right, where the hexagon pair lives */
    radial-gradient(ellipse 95% 85% at 80% 74%, color-mix(in srgb, var(--gh-dark-green) 35%, var(--gh-white)), transparent 72%),
    /* lime warmth upper-right */
    radial-gradient(ellipse 75% 60% at 84% 16%, color-mix(in srgb, var(--gh-light-green) 30%, var(--gh-white)), transparent 66%),
    /* directional base: deeper soft-sage floor everywhere (step 2), deepening
       top-left -> lower-right. Still light premium; cards stay white for contrast. */
    linear-gradient(145deg,
      color-mix(in srgb, var(--gh-dark-green) 20%, var(--gh-white)) 0%,
      color-mix(in srgb, var(--gh-dark-green) 26%, var(--gh-white)) 48%,
      color-mix(in srgb, var(--gh-dark-green) 34%, var(--gh-white)) 100%);
}
/* aurora / mesh-gradient: soft brand blooms drifting slowly behind content */
.aurora { position: fixed; inset: -12%; z-index: -2; pointer-events: none; opacity: 0.85; overflow: hidden; }
.aurora span { position: absolute; display: block; border-radius: 50%; filter: blur(70px); }
.aurora span:nth-child(1) { width: 50vw; height: 50vw; left: -8vw; top: -8vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--gh-dark-green) 20%, transparent), transparent 70%); }
.aurora span:nth-child(2) { width: 44vw; height: 44vw; right: -6vw; top: 16vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--gh-light-green) 30%, transparent), transparent 70%); }
.aurora span:nth-child(3) { width: 52vw; height: 52vw; left: 22vw; bottom: -14vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--gh-light-green) 16%, transparent), transparent 72%); }
@media (prefers-reduced-motion: no-preference) {
  .aurora span:nth-child(1) { animation: drift1 28s ease-in-out infinite alternate; }
  .aurora span:nth-child(2) { animation: drift2 34s ease-in-out infinite alternate; }
  .aurora span:nth-child(3) { animation: drift3 40s ease-in-out infinite alternate; }
}
@keyframes drift1 { to { transform: translate(6vw, 5vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-5vw, 7vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(4vw, -6vh) scale(1.15); } }
/* ambient brand hexagons drifting in the deep background (duality echo) */
.ambient-hexes { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ambient-hexes i {
  position: absolute; display: block; background: center / contain no-repeat; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 88 28v44L50 94 12 72V28Z' fill='%23016938' fill-opacity='0.10'/%3E%3Cpath d='M50 13 82 31.5v37L50 87 18 68.5v-37Z' fill='none' stroke='%238BC440' stroke-opacity='0.55' stroke-width='2.4'/%3E%3C/svg%3E");
}
/* elegance: only two very faint depth cells, kept away from the flowing object */
.ambient-hexes i:nth-child(1) { width: 110px; height: 110px; left: 6vw; top: 66vh; opacity: 0.22; }
.ambient-hexes i:nth-child(2) { display: none; }
.ambient-hexes i:nth-child(3) { display: none; }
.ambient-hexes i:nth-child(4) { width: 60px; height: 60px; left: 30vw; top: 12vh; opacity: 0.16; }
@media (prefers-reduced-motion: no-preference) {
  .ambient-hexes i:nth-child(1) { animation: floatHex 34s ease-in-out infinite alternate; }
  .ambient-hexes i:nth-child(4) { animation: floatHex 30s ease-in-out infinite alternate -3s; }
}
@keyframes floatHex { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-30px) rotate(14deg); } }
/* fine grain overlay - removes the sterile digital feel, reads as premium print */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: reduce) { .aurora span, .ambient-hexes i { animation: none !important; } }
#hex-canvas {
  position: fixed; inset: 0; z-index: -1; display: block;
  width: 100%; height: 100%; pointer-events: none;
}

/* CSS fallback hexagon (mobile / reduced-motion / no WebGL) */
.hex-fallback {
  position: fixed; z-index: -1; display: none;
  width: min(30vw, 280px); aspect-ratio: 1 / 1;
  right: 9vw; top: 16vh;
  background: center / contain no-repeat;
  /* brand mark duality: solid #016938 hexagon + lime #8BC440 outline ring */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 20 76 35v30L50 80 24 65V35Z' fill='%23016938' fill-opacity='0.78'/%3E%3Cpath d='M50 9 85 29v42L50 91 15 71V29Z' fill='none' stroke='%238BC440' stroke-width='3' stroke-opacity='0.92'/%3E%3C/svg%3E");
  filter: drop-shadow(0 20px 36px color-mix(in srgb, var(--gh-dark-green) 20%, transparent));
}
html.use-css-hex .hex-fallback { display: block; }
html.use-css-hex #hex-canvas { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.use-css-hex.allow-motion .hex-fallback { animation: hexbob 14s ease-in-out infinite alternate; }
  @keyframes hexbob { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-26px) rotate(6deg); } }
}

/* ---------- Sticky transparent top bar ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: var(--card-bg-header-solid);   /* SOLID — symetrický rám s footerem (identický odstín, nepropouští gradient) */
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: color-mix(in srgb, var(--gh-light-green) 30%, transparent);
  box-shadow: 0 2px 16px color-mix(in srgb, var(--gh-dark-green) 6%, transparent);
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 0; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; }
.logo:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
/* nav = overlay menu under the hamburger at ALL widths (no inline nav → nothing can wrap) */
nav.main-nav {
  position: absolute; top: calc(100% + 0.55rem); right: 0; z-index: 60;
  display: flex; flex-direction: column; min-width: min(300px, 82vw);
  background: var(--card-bg-header); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--gh-light-green) 36%, transparent); border-radius: var(--radius-card);
  padding: 0.5rem; box-shadow: 0 26px 64px color-mix(in srgb, var(--gh-dark-green) 16%, transparent);
  visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0.22s;   /* delay hiding until fade-out done */
}
nav.main-nav.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s; }   /* show instantly so first link is focusable on open */
@media (prefers-reduced-motion: reduce) { nav.main-nav { transition: none; } }
nav.main-nav a {
  font-family: var(--font-display); font-weight: 450; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.16rem);
  letter-spacing: -0.005em; text-decoration: none; color: var(--ink);
  padding: 0.8rem 1rem; border-radius: 10px; min-height: 44px; display: flex; align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--gh-light-green) 22%, transparent);
  transition: color 0.2s ease, background 0.2s ease;
}
nav.main-nav a:last-child { border-bottom: 0; }
nav.main-nav a:hover { color: var(--brand); background: color-mix(in srgb, var(--gh-light-green) 16%, transparent); }
nav.main-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
nav.main-nav a.nav-cta-fallback { display: none; }   /* CTA backup uvnitř menu — na mobilu zapnuto (mobilní media níže, AŽ za base .header-seg kvůli kaskádě) */
/* header CTA — ONE unified segmented ghost cell: two EQUAL halves, hairline brand divider.
   No solid fill anywhere, so neither half ever reads as "active/selected". Hover lights only that half. */
/* header CTA — two equal text links + hairline divider, NO pill/border/bg (like the CZ/EN switch) */
.header-seg { display: inline-flex; align-items: center; }
/* MOBIL ≤768px: inline CTA segment + Portál pryč z baru → do hamburger menu (bar = logo + CZ/EN + hamburger) */
@media (max-width: 768px) {
  .header-seg { display: none; }
  nav.main-nav a.nav-cta-fallback { display: flex; color: var(--brand); font-weight: 600; }
}
.seg-half {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: clamp(0.74rem, 0.58rem + 0.42vw, 0.86rem); font-weight: 600; line-height: 1;
  color: var(--brand); text-decoration: none; white-space: nowrap;
  padding: 0.5rem 0.8rem; border-bottom: 2px solid transparent; transition: border-color 0.2s ease, color 0.2s ease;
}
.seg-half:hover { border-bottom-color: var(--accent); }   /* subtle underline = clickability, never a persistent "active" */
.seg-half:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.seg-div { width: 1px; height: 1.1em; margin: 0 0.15rem; background: color-mix(in srgb, var(--brand) 50%, transparent); flex: none; }
.nav-toggle {
  display: inline-flex; background: none; border: 0; border-radius: 8px;
  min-width: 44px; min-height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .bars { display: block; position: relative; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.header-right { display: flex; align-items: center; gap: 0.5rem; }
/* CZ / EN language switcher */
.lang { display: inline-flex; align-items: center; gap: 0.15rem; margin-left: 0.3rem; }
.lang-sep { color: var(--gh-mid-gray); font-size: 0.8rem; }
.lang-btn {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gh-mid-gray); padding: 0.6rem 0.45rem; min-height: 44px; line-height: 1;
  display: inline-flex; align-items: center; position: relative; transition: color 0.2s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--brand); }
.lang-btn.active::after {
  content: ""; position: absolute; left: 0.45rem; right: 0.45rem; bottom: 0.7rem;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.lang-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Hero (airy, oversized type; hex floats behind) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  isolation: isolate; overflow: hidden;
}
/* hero in the SAME content container as other sections; headline spans the FULL frame, hexagon floats top-right (fixed canvas) */
.hero-inner { width: min(1240px, 92vw); margin: 0 auto; padding: 5.5rem 0 3rem; display: block; }
.hero-text { min-width: 0; }
.hero-art { display: none; }   /* the living hexagon is a fixed full-viewport canvas; no spacer column needed */
.hero-kicker { color: var(--ink-soft); margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 0.7rem; }
.hero-kicker strong { color: var(--brand); font-weight: 700; }
.hero h1 {
  font-family: var(--font-display); font-weight: 450; font-variation-settings: "opsz" 144;
  /* FLUID: grows with viewport so the longest line reaches near the right frame line; MAX caps very large screens, MIN keeps mobile legible */
  font-size: clamp(2.7rem, 11vw, 8.5rem); line-height: 0.96; letter-spacing: -0.024em; max-width: none;
  display: flex; flex-direction: column;
}
/* staggered 2-line headline: line 2 steps right (~under "mysl" = width of "Tělo i "), flows toward the hexagon, never wraps */
.hero h1 .h1-l1 { display: block; }
.hero h1 .h1-l2 { display: block; margin-left: 2.15em; white-space: nowrap; }
html[lang="en"] .hero h1 .h1-l2 { margin-left: 4.4em; }   /* "elevated." steps under the latter part of "Body and mind," */
@media (max-width: 880px) { .hero h1 .h1-l2, html[lang="en"] .hero h1 .h1-l2 { margin-left: 0; white-space: normal; } }   /* mobile: stack flush-left, no stagger; zruš nowrap (jinak „na nové úrovni." přetéká viewport a tlačí hero obsah za pravý okraj) */
.hero-kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--brand); }
.hero-foot { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.hero-sub { color: var(--ink-soft); font-size: 1.05rem; font-weight: 500; text-align: justify; -webkit-hyphens: none; hyphens: none; overflow-wrap: normal; }   /* full frame logo→CZ/EN, no word splits; medium weight for presence */
.hero-sub strong { color: var(--brand); font-weight: 600; }   /* single brand accent, same system as O nás */
.scroll-cue {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-cue .bar { width: 1px; height: 34px; background: linear-gradient(180deg, var(--ink-faint), transparent); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue .bar { animation: cue 2.4s ease-in-out infinite; transform-origin: top; } }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Ghost / outline CTA ---------- */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.7rem; background: transparent; color: var(--ink);
  font-weight: 700; font-size: 0.92rem; text-decoration: none; padding: 1rem 1.9rem;
  border-radius: 999px; border: 1px solid var(--ink); cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.btn-ghost:hover { background: var(--ink); color: var(--gh-white); transform: translateY(-2px); box-shadow: 0 16px 34px color-mix(in srgb, var(--gh-dark-green) 22%, transparent); }
/* Patient CTA: brand-green frame (#016938) instead of black, applied wherever it appears */
.btn-ghost.cta-patient { border-color: var(--brand); color: var(--brand); }
.btn-ghost.cta-patient:hover { background: var(--brand); color: var(--gh-white); box-shadow: 0 16px 34px color-mix(in srgb, var(--gh-dark-green) 30%, transparent); }
.btn-ghost:active { transform: translateY(0) scale(0.985); }
.btn-ghost:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-ghost .arrow { transition: transform 0.25s var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(5px); }
/* two equal hero CTAs: primary = solid brand fill, secondary = brand paper/ghost (rhythm, not hierarchy) */
.btn-solid { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--brand); color: var(--gh-white); font-weight: 700; font-size: 0.92rem; text-decoration: none; padding: 1rem 1.9rem; border-radius: 999px; border: 1px solid var(--brand); cursor: pointer; transition: background 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease; }
.btn-solid:hover { background: color-mix(in srgb, var(--gh-dark-green) 88%, var(--gh-black)); transform: translateY(-2px); box-shadow: 0 16px 34px color-mix(in srgb, var(--gh-dark-green) 30%, transparent); }
.btn-solid:active { transform: translateY(0) scale(0.985); }
.btn-solid:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-solid .arrow { transition: transform 0.25s var(--ease-out); }
.btn-solid:hover .arrow { transform: translateX(5px); }
.btn-ghost.cta-partner { border-color: var(--brand); color: var(--brand); }
.btn-ghost.cta-partner:hover { background: var(--brand); color: var(--gh-white); box-shadow: 0 16px 34px color-mix(in srgb, var(--gh-dark-green) 30%, transparent); }
.hero-cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
/* MOBIL: hero-foot děti (sub + cta-row) jsou kvůli align-items:flex-start shrink-to-fit na max-content →
   cta-row by se roztáhla na šířku obou tlačítek v řádku (~474px) a přetekla viewport (klipnuto overflow-x:hidden).
   Na úzkém viewportu roztáhnout na šířku kontejneru + tlačítka full-width stack. */
@media (max-width: 560px) {
  .hero-foot { align-items: stretch; }
  .hero-cta-row { width: 100%; }
  .hero-cta-row .btn-solid, .hero-cta-row .btn-ghost { flex: 1 1 100%; justify-content: center; }
}

/* animated lime underline draw on text links */
.footer-grid a, .consent a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
  transition: background-size 0.32s var(--ease-out), color 0.25s ease;
}
.footer-grid a:hover, .consent a:hover { background-size: 100% 1.5px; }

/* ---------- Reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }

/* ===== PRECEDENT "paper-on-green" tile — shared look for every card on the site (single source) ===== */
.tile-paper { background: var(--card-bg); border: var(--card-line); border-radius: var(--radius-card);
  box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* every unified card adopts the precedent's soft depth (bg/border/radius already via --card-* tokens) */
.digital-tile, .story-card, .partner-card, .source-card, .bodymap-panel { box-shadow: var(--card-shadow); }

/* ---------- About / manifesto ---------- */
/* one calm single-column block (no 2-col split / mid-gap), airy like the patient page */
.about-grid { display: block; }   /* left-align to the content container (KDO JSME lines up with hero + Co děláme); inner content capped by intro/credo max-width */
/* intro = comfortable lead size (NOT hero) — closer to the patient-page body proportions */
.intro-copy {
  font-family: var(--font-display); font-weight: 350; font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  line-height: 1.62; letter-spacing: -0.005em; color: var(--ink);
  text-align: justify; -webkit-hyphens: none; hyphens: none; overflow-wrap: normal;   /* full frame, no word splits */
}
.intro-copy strong { font-weight: 550; color: var(--brand); }   /* only ONE key phrase in green */
/* 4 vision pillars in a calm 2x2 grid — Aesop quiet: no dividers, icon + title + description */
.about-credo { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.9rem 3rem; margin-top: 2.6rem; }   /* 2x2 fills the canonical frame (like the 4 Data-driven cards) */
.about-credo li { --credo-ic: clamp(56px, 4.2vw, 76px); display: grid; grid-template-columns: var(--credo-ic) 1fr; gap: 1.1rem; align-items: start; }
.credo-ic { display: inline-flex; color: var(--brand); flex: none; margin-top: 0.1rem; }
.credo-ic svg { width: var(--credo-ic); height: var(--credo-ic); display: block; }   /* fluid vision icons, scale with viewport, proportional to title/desc */
.credo-txt { display: block; }
.credo-t { display: block; font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.3; }
.credo-d { display: block; font-size: 0.9rem; color: var(--ink-faint); line-height: 1.5; margin-top: 0.25rem; max-width: 30ch; }
@media (max-width: 620px) { .about-credo { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Section heads ---------- */
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.sect-head h2 {
  color: var(--ink); font-family: var(--font-display); font-weight: 450;
  font-size: var(--fs-h2); letter-spacing: -0.02em; line-height: 1.04;
}
.sect-head h2 em { font-style: italic; color: var(--brand); }   /* optional single-word green accent */
.sect-head h2::after { content: ""; display: block; width: 52px; height: 3px; border-radius: 2px; background: var(--accent); margin-top: 1rem; }
.sect-head .label { color: var(--brand); display: inline-flex; align-items: center; gap: 0.5rem; }
.sect-head .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------- Co děláme — editorial service index (2-col list + detail panel below) ---------- */
.svc-index { border-top: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.svc-index-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 3.5rem); margin: 0; padding: 0; }
@media (max-width: 720px) { .svc-index-list { grid-template-columns: 1fr; column-gap: 0; } }
.svc-row {
  position: relative; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: clamp(0.8rem, 1.6vw, 1.4rem);
  padding: clamp(1.15rem, 2vw, 1.6rem) clamp(0.7rem, 1.4vw, 1.1rem);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  transition: background 0.25s ease, padding-left 0.25s var(--ease-out);
}
.svc-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(0.95rem, 1.3vw, 1.2rem); color: var(--brand); line-height: 1.35; font-variant-numeric: tabular-nums; }
.svc-row-txt { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.svc-row-title { font-family: var(--font-display); font-weight: 450; font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--ink); line-height: 1.15; }
.svc-row-lead { font-size: clamp(0.82rem, 1vw, 0.94rem); color: #54624A; line-height: 1.45; }   /* muted olive, darkened from #5A6B4E to clear WCAG AA on washi */
.idx-full { display: none; }
.svc-arrow { color: var(--brand); font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.2; align-self: center; opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s var(--ease-out); }
@media (hover: hover) {
  .svc-row:hover { background: color-mix(in srgb, var(--gh-light-green) 12%, transparent); padding-left: clamp(1rem, 1.9vw, 1.6rem); }
  .svc-row:hover .svc-arrow { opacity: 1; transform: none; }
}
.svc-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 8px; }
.svc-row:focus-visible .svc-arrow, .svc-row.active .svc-arrow { opacity: 1; transform: none; }
.svc-row.active { background: color-mix(in srgb, var(--gh-light-green) 16%, transparent); }
@media (prefers-reduced-motion: reduce) { .svc-row, .svc-arrow { transition: none; } }
/* detail panel BELOW the list (full-width, doesn't reshuffle the grid) */
.svc-detail {
  margin-top: clamp(1.2rem, 2.5vw, 2rem); padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--card-bg); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); border-radius: var(--radius-card);
  position: relative; display: flex; flex-direction: column; gap: 0.7rem;
}
.svc-detail[hidden] { display: none; }
.svc-detail-title { font-family: var(--font-display); font-weight: 450; font-size: var(--fs-svc); color: var(--ink); line-height: 1.12; max-width: 40ch; }
.svc-detail-body { font-size: clamp(0.9rem, 1vw, 1rem); color: var(--ink-soft); line-height: 1.65; max-width: 70ch; }
.svc-detail-cta { align-self: flex-start; margin-top: 0.3rem; font-size: 0.86rem; padding: 0.7rem 1.3rem; }
.svc-detail-close {
  position: absolute; top: 0.6rem; right: 0.7rem; width: 36px; height: 36px; border: 0; background: none;
  color: var(--ink-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s ease;
}
.svc-detail-close:hover { color: var(--brand); }
.svc-detail-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Digital operations ---------- */
.digital-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.digital-tile { background: var(--card-bg-solid); border: 0; border-radius: var(--radius-card); padding: 1.6rem 1.5rem 1.5rem; position: relative; overflow: hidden; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }   /* OPAQUE solid paper, identical shade per position; no border */
@media (hover: hover) { .digital-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 46px color-mix(in srgb, var(--gh-dark-green) 15%, transparent); } }
@media (prefers-reduced-motion: reduce) { .digital-tile { transition: none; } .digital-tile:hover { transform: none; } }
.digital-tile .tile-line { display: block; height: 2px; width: 0; background: var(--accent); margin-bottom: 1.2rem; transition: width 1s var(--ease-out) 0.2s; }
.digital-tile.visible .tile-line { width: 44px; }
.digital-tile .tile-stat { font-family: var(--font-display); font-weight: 550; font-size: var(--fs-stat); line-height: 1.05; color: var(--gh-dark-green); font-variant-numeric: tabular-nums; }
.digital-tile .tile-stat small { font-size: 1.1rem; font-weight: 450; }
.digital-tile h3 { font-size: var(--fs-card-title); font-weight: 700; margin: 0.6rem 0 0.3rem; }
.digital-tile p { color: var(--ink-soft); font-size: 0.88rem; }
.digital-foot { margin-top: 1.8rem; color: var(--ink-note); font-size: 0.88rem; max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { .digital-tile .tile-line { transition: none; } .digital-tile.visible .tile-line { width: 44px; } }

/* ---------- Story rail ---------- */
/* story = 4 tiles per row INSIDE the canonical frame (no horizontal bleed/overflow) */
/* ---------- Story carousel: ONE milestone card + bare arrows + hexagon dots ---------- */
.story-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(0.4rem, 2vw, 1.4rem); }
.story-stage { position: relative; min-height: clamp(296px, 34vw, 348px); }
.story-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(460px, 100%); height: clamp(280px, 32vw, 328px);
  background: var(--card-bg-solid); border: 0; border-radius: var(--radius-card);   /* CDS #12: OPAQUE solid paper (same shade as .digital-tile), no border; lift via whisper shadow */
  display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
  padding: clamp(1.6rem, 3vw, 2.4rem); text-align: left;
  opacity: 0; visibility: hidden; z-index: 0; transition: opacity 0.4s var(--ease-out), visibility 0.4s, transform 0.4s var(--ease-out);
}
.story-card.is-active { opacity: 1; visibility: visible; z-index: 2; }
/* GHOST cards — neighbouring milestones peek faintly to the sides for depth (non-interactive) */
.story-card.is-ghost-prev, .story-card.is-ghost-next { opacity: 0.3; visibility: visible; z-index: 1; pointer-events: none; }
.story-card.is-ghost-prev { transform: translate(-50%, -50%) translateX(-52%) scale(0.9); -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 88%); mask-image: linear-gradient(90deg, #000 45%, transparent 88%); }   /* 9.146 (B14): fade směrem k aktivní kartě — žádný tvrdě oříznutý text mid-word */
.story-card.is-ghost-next { transform: translate(-50%, -50%) translateX(52%) scale(0.9); -webkit-mask-image: linear-gradient(270deg, #000 45%, transparent 88%); mask-image: linear-gradient(270deg, #000 45%, transparent 88%); }
/* CDS: drobný hexagon akcent VŽDY v pravém horním rohu karty (line, brand, ~0.5 opacity) — sjednoceno napříč webem (story, partner) */
.story-hex, .partner-hex, .portal-login-hex, .source-hex { position: absolute; top: clamp(0.9rem, 2vw, 1.3rem); right: clamp(0.9rem, 2vw, 1.3rem); width: clamp(30px, 3.4vw, 36px); height: auto; color: var(--brand); opacity: 0.5; pointer-events: none; }
.story-hex svg, .partner-hex svg, .portal-login-hex svg, .source-hex svg { width: 100%; height: auto; display: block; fill: none; stroke: currentColor; }
/* (9.88) odstraněn rotující hex „život" (.story-rotor / story-spin) — duplicitní 2. rotující 3D prvek;
   brand WebGL hexagon animace = jediný rotující prvek v sekci. */
@media (max-width: 760px) { .story-card.is-ghost-prev, .story-card.is-ghost-next { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .story-card { transition: none; } }
/* future milestones: lighter SOLID shade (NO border) + "PŘIPRAVUJEME" tag — distinguished by shade, not a frame */
.story-card.is-future { background: color-mix(in srgb, var(--gh-light-green) 7%, var(--gh-white)); }
.story-soon { display: none; }
.story-card.is-future .story-soon {
  display: inline-block; align-self: flex-start; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); background: color-mix(in srgb, var(--gh-light-green) 22%, transparent); border-radius: 999px; padding: 0.25rem 0.7rem; margin-bottom: 0.7rem;
}
.story-year { font-family: var(--font-display); font-weight: 550; font-size: var(--fs-year); line-height: 1; color: var(--gh-dark-green); }
.story-when { color: var(--ink-faint); font-size: clamp(0.72rem, 0.9vw, 0.82rem); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.55rem 0 0.7rem; }
.story-card h3 { font-family: var(--font-display); font-weight: 450; font-size: var(--fs-svc); color: var(--ink); line-height: 1.12; margin-bottom: 0.5rem; }
.story-desc { color: var(--ink-soft); font-size: clamp(0.86rem, 1vw, 0.96rem); line-height: 1.55; }
/* bare arrows — no box/border/background */
.story-arrow { -webkit-appearance: none; appearance: none; border: 0; background: none; box-shadow: none; padding: 0.4rem; margin: 0; color: var(--brand); cursor: pointer; display: inline-flex; line-height: 0; transition: opacity 0.2s ease; }
.story-arrow svg { width: clamp(26px, 3.2vw, 38px); height: auto; }
.story-arrow:hover { opacity: 0.55; }
.story-arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
/* hexagon dots — bare hex shape only, no box/outline behind */
.story-dots { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(0.5rem, 1.2vw, 0.8rem); margin-top: clamp(1.3rem, 2.6vw, 2rem); }
.story-dot { -webkit-appearance: none; appearance: none; border: 0; background: none; box-shadow: none; padding: 0.35rem; margin: 0; cursor: pointer; line-height: 0; }
/* inactive = lime OUTLINE (fill none); active/hover/focus = FULL lime. SVG data-URI = pravý dutý obrys (clip-path stroke nejde). */
.story-dot::before { content: ""; display: block; width: clamp(14px, 1.5vw, 18px); aspect-ratio: 1 / 1.12; background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 112'><polygon points='50,6 94,30.5 94,81.5 50,106 6,81.5 6,30.5' fill='none' stroke='%23016938' stroke-width='9'/></svg>"); transition: transform 0.25s ease; }   /* inactive = brand DARK GREEN obrys (lime jen pro aktivní/hover) */
.story-dot[aria-selected="true"]::before, .story-dot:hover::before, .story-dot:focus-visible::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 112'><polygon points='50,0 100,28 100,84 50,112 0,84 0,28' fill='%23016938'/></svg>"); }   /* aktivní/hover = plný brand DARK GREEN #016938 (sjednoceno s obrysem) */
.story-dot[aria-selected="true"]::before { transform: scale(1.18); }   /* active = plný brand DARK GREEN #016938 */
.story-dot:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .story-dot::before { transition: none; } }

/* ---------- Quality: badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--card-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: var(--card-line); border-radius: 999px; padding: 0.6rem 1.2rem; font-size: var(--fs-badge); font-weight: 700; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.badge small { color: var(--ink-faint); font-weight: 500; letter-spacing: 0.02em; }
.spec-foot { margin-top: 1.6rem; color: var(--ink-note); font-size: 0.84rem; }
/* Kvalita — 4 srozumitelné pilíře (paper karty, žádná čísla/žargon) */
.quality-intro { font-family: var(--font-display); font-weight: 350; font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.5; color: var(--ink); max-width: 62ch; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.quality-intro strong { font-weight: 500; color: var(--brand); }
.quality-pillars { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.4rem); margin: 0; padding: 0; }
@media (max-width: 680px) { .quality-pillars { grid-template-columns: 1fr; } }
.quality-card { background: var(--card-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: var(--card-line); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; gap: 0.45rem; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease; }
@media (hover: hover) { .quality-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gh-light-green) 50%, transparent); box-shadow: 0 18px 40px color-mix(in srgb, var(--gh-dark-green) 13%, transparent); } }
@media (prefers-reduced-motion: reduce) { .quality-card { transition: none; } .quality-card:hover { transform: none; } }
.qp-ic { display: inline-flex; align-self: flex-end; color: var(--brand); }   /* CDS: hexagon ikona v PRAVÉM horním rohu karty (sjednoceno napříč webem) */
.qp-ic svg { width: clamp(38px, 4vw, 50px); height: clamp(38px, 4vw, 50px); display: block; }
.quality-card h3 { font-family: var(--font-display); font-weight: 450; font-size: var(--fs-svc); color: var(--ink); line-height: 1.15; margin-top: 0.4rem; }
.quality-card p { color: var(--ink-soft); font-size: clamp(0.9rem, 1vw, 0.98rem); line-height: 1.6; }
.quality-foot { margin-top: clamp(1.4rem, 2.5vw, 2rem); color: var(--ink-note); font-size: clamp(0.84rem, 1vw, 0.92rem); max-width: 70ch; }
/* ---------- Contact (light) ---------- */
.contact-inner { display: grid; gap: clamp(1.6rem, 3.5vw, 2.6rem); }   /* full-width: hlavička+údaje nahoře, formulář přes celou šířku pod tím */
.contact h2 { color: var(--ink); font-family: var(--font-display); font-weight: 450; font-size: var(--fs-contact-h); line-height: 1.06; letter-spacing: -0.015em; }
.contact h2 em { font-style: italic; color: var(--brand); }
/* full-width formulář: řádek Jméno|E-mail, Zpráva full, dole consent+submit */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem clamp(1rem, 3vw, 2rem); margin-top: 0.3rem; }
.form-foot .consent { flex: 1 1 32ch; margin: 0; }
.form-foot .btn-ghost { flex: 0 0 auto; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .consent { flex: 0 0 auto; }   /* 9.146 (B15): v column směru je flex-basis 32ch VÝŠKA → 305px prázdna nad tlačítkem (měřeno); auto = 26px */
  .form-foot .btn-ghost { width: 100%; justify-content: center; }
}
/* static map card (links out to Google Maps; no embed/cookies) */
/* GDPR-safe map (plain, no card frame): consent-gated Google map; OSM preview before consent */
.map-stage { position: relative; height: 178px; border-radius: var(--radius-card); overflow: hidden; background: var(--card-bg-field); border: var(--card-line); }
.map-canvas { position: absolute; inset: 0; display: none; }
.footer-map.map-on .map-canvas { display: block; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.65rem; text-align: center; padding: 1rem; }
.footer-map.map-on .map-placeholder, .footer-map.map-failed .map-placeholder { display: none; }
.map-placeholder p { font-size: 0.82rem; color: var(--ink); margin: 0; max-width: 26ch; line-height: 1.4; }
.map-consent-btn { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 0.5rem 1.05rem; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: var(--gh-white); cursor: pointer; transition: background 0.2s ease; }
.map-consent-btn:hover { background: color-mix(in srgb, var(--gh-dark-green) 86%, var(--gh-black)); }
.map-consent-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.map-failnote { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.footer-map.map-failed .map-failnote { display: flex; }
.map-failnote p { font-size: 0.82rem; color: var(--ink-soft); margin: 0; max-width: 26ch; line-height: 1.4; }
/* brand text identity (replaces logo) */
.footer-identity { font-family: var(--font-display); font-weight: 550; font-size: 1.25rem; color: var(--ink); margin: 0; line-height: 1.1; }
/* provozovna identity — plain text, airy (no card) */
.footer-prov { margin-top: 1.4rem; max-width: 360px; }
.footer-prov-label { display: block; color: var(--brand); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-prov-addr { color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 0; }
.footer-prov-legal { color: var(--ink-faint); font-size: 0.78rem; line-height: 1.7; margin: 1.5rem 0 0; max-width: 360px; }
form.contact-form { position: relative; display: grid; gap: 1rem; background: var(--card-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: var(--card-line); border-radius: var(--radius-card); padding: 2rem; }   /* hexagon akcent (.tile-hex) v pravém horním rohu — stejná rodina jako pacient/partner/portál/bodymap karty */
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea { background: var(--card-bg-field); border: var(--card-line); border-radius: 10px; color: var(--ink); font-family: var(--font-body); font-size: 0.95rem; padding: 0.85rem 1rem; min-height: 44px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.82rem; color: var(--ink-soft); }
.consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.consent a { color: var(--brand); }
form .btn-ghost { justify-self: start; margin-top: 0.4rem; }
/* contact form: submit states (airy, no alert box) + validation highlight */
.form-status { font-size: 0.9rem; line-height: 1.55; margin: 0.1rem 0 0; max-width: 52ch; }
.form-status[hidden] { display: none; }
.form-status.is-success { color: var(--brand); font-weight: 600; }
.form-status.is-error { color: var(--danger); }
.field-err { color: var(--danger); font-size: 0.82rem; line-height: 1.35; margin: 0.35rem 0 0; }   /* audit 2026-07-05 J: per-field chybová hláška */   /* functional error tone (not a surface) */
.field input.invalid, .field textarea.invalid { border-color: var(--danger); }
.consent.invalid { color: var(--danger); }
.consent.invalid input { outline: 2px solid var(--danger); outline-offset: 1px; }

/* ---------- partner application form (lives on #stat-se-partnerem subpage, reuses .field/.consent/.form-status/.btn-ghost) ---------- */
form.partner-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 760px; margin-top: clamp(1.4rem, 3vw, 2.2rem); background: var(--card-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: var(--card-line); border-radius: var(--radius-card); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--card-shadow); }
.partner-form .field.span-2 { grid-column: 1 / -1; }
.partner-form .field input, .partner-form .field textarea { width: 100%; }
.partner-form .field textarea { resize: vertical; min-height: 92px; }
.partner-form .field .opt { font-weight: 500; color: var(--ink-faint); font-size: 0.74rem; letter-spacing: 0.01em; }
.partner-form .req-star { color: var(--brand); }
.partner-form .field select { background: var(--card-bg-field); border: var(--card-line); border-radius: 10px; color: var(--ink); font-family: var(--font-body); font-size: 0.95rem; padding: 0.85rem 1rem; min-height: 44px; width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23016938' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.partner-form .field select:invalid, .partner-form .field select.placeholder { color: var(--ink-faint); }
.partner-form .field select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.partner-form .field select.invalid { border-color: var(--danger); }
.partner-form .consent { grid-column: 1 / -1; }
.partner-form .form-status { grid-column: 1 / -1; max-width: 60ch; }
.partner-form .hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.partner-form .hp-field input { background: transparent; }   /* hidden honeypot — keep it off the pure-white audit too */
.partner-form .ts-wrap { grid-column: 1 / -1; display: grid; gap: 0.5rem; margin-top: 0.2rem; }
.partner-form .cf-turnstile-host { min-height: 0; }
.partner-form .cf-turnstile-host:empty { display: none; }
/* 9.150: Turnstile na kontaktním formuláři (neviditelný režim — prázdný host se nezobrazuje) */
.contact-form .ts-wrap { display: grid; gap: 0.5rem; }
.contact-form .cf-turnstile-host { min-height: 0; }
.contact-form .cf-turnstile-host:empty { display: none; }
.partner-form .ts-note { font-size: 0.74rem; line-height: 1.5; color: var(--ink-faint); margin: 0; max-width: none; }
.partner-form .ts-note a { color: var(--brand); }
/* ---------- Patient intake form (?page=registrace) — reuses .partner-form field/select/consent/ts styling ---------- */
/* layout = partner-form 2-col grid (form.partner-form); section subheads + most fields span full width,
   jen Datum narození | Telefon tvoří jednu 2-col dvojici. Pole reuse .partner-form .field/input/select. */
/* intl-tel-input — sladit s naším paper stylem: jedno pole (field token + ctrl-h), čitelný paper dropdown (žádná čistě bílá) */
.intake-form .iti { width: 100%; display: block; }
.intake-form .iti__tel-input { width: 100%; height: var(--ctrl-h); background: var(--card-bg-field); border: var(--card-line); border-radius: 10px; color: var(--ink); font-family: var(--font-body); font-size: 0.95rem; }
.intake-form .iti__tel-input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.intake-form .iti__tel-input.invalid { border-color: var(--danger); }
.iti__selected-country { background: transparent; border-radius: 10px 0 0 10px; }
.iti__selected-country:hover, .iti__selected-country:focus { background: color-mix(in srgb, var(--gh-light-green) 12%, transparent); }
.iti__dropdown-content { background: var(--card-bg-field); border: var(--card-line); border-radius: 12px; box-shadow: var(--card-shadow); color: var(--ink); overflow: hidden; }
.iti__search-input { background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 0.92rem; }
.iti__search-input::placeholder { color: var(--ink-faint); }
.iti__country-list { background: transparent; }
.iti__country { color: var(--ink); }
.iti__country.iti__highlight, .iti__country:hover { background: color-mix(in srgb, var(--gh-light-green) 16%, transparent); }
.iti__dial-code { color: var(--ink-faint); }
/* JEDNOTNÁ výška všech ovládacích prvků (input/select/date/předvolba/telefon) — high-end konzistence */
:root { --ctrl-h: 3rem; }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.partner-form .field select { height: var(--ctrl-h); min-height: var(--ctrl-h); padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.field-help { font-size: 0.74rem; color: var(--ink-faint); margin: 0.35rem 0 0; }
.radio-row { display: flex; gap: 1.8rem; align-items: center; min-height: var(--ctrl-h); margin-top: 0; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.96rem; font-weight: 500; color: var(--ink); cursor: pointer; }
/* override .partner-form .field input (width:100%, min-height:44px, border…) so radios stay small native circles */
.partner-form .radio-row input[type="radio"], .radio-row input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; -webkit-appearance: auto; appearance: auto; accent-color: var(--brand); flex: none; margin: 0; }
.radio-row.invalid label { color: var(--danger); }
.intake-consents { grid-column: 1 / -1; display: grid; gap: 0.85rem; margin-top: 0.2rem; }
/* 9.146 (B3): .intake-draft banner odstraněn z LIVE (interní QP/DPO poznámka nepatří na produkci) */
/* ===== 9.147: FOCUS MODE — registrace jako čistá stránka (bloomwell trend, CEO 1. 7.): na ?page=registrace zůstává jen logo + jazykový přepínač + wizard na brand pozadí (gradient + WebGL hexagony). Bez navigace, CTA segmentu, portal linku, footeru i back-linku — únik = klik na logo. Reverz: smazat tento blok + FOCUS_PAGES v showRoute. ===== */
body.focus-mode .main-nav, body.focus-mode .header-seg, body.focus-mode .portal-link, body.focus-mode .nav-toggle,
body.focus-mode footer, body.focus-mode .subpage-back { display: none !important; }   /* 9.153c: .subpage-back vrácen do hide listu (9.152c ho vyňal a jeho zrušením zůstal viditelný) */
/* 9.153: textový návrat ve focus-mode ZRUŠEN (CEO 2. 7. večer: „zpět na úvod tam být nemá") — návrat = pouze logo v .card-head. Ruší pravidlo 9.152c. */
/* ===== 9.152→9.153: FOCUS MODE v3 (CEO 2. 7., třetí iterace „vše v kartě") — žádný globální header/footer, logo|CZ-EN řádek + kompaktní hlavička PŘÍMO V KARTĚ, dlouhý lead skryt → krátká * poznámka POD kartou ===== */
body.focus-mode header { display: none !important; }
body.focus-mode #registrace .subpage-lead, body.focus-mode #stat-se-partnerem .subpage-lead { display: none; }
.focus-note { display: none; }
body.focus-mode .focus-note { display: block; max-width: 70ch; margin: 1.1rem auto 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.6; text-align: center; }
/* 9.153: horní řádek karty (logo vlevo = návrat, CZ/EN vpravo) + kompaktní in-card hlavička */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.card-head .focus-logo img { height: 28px; width: auto; display: block; }
.reg-header--in-card { text-align: center; margin-bottom: 0.5rem; }
.reg-header--in-card .feature-crown { width: 28px !important; margin: 0 auto 0.25rem !important; }
.reg-header--in-card .subpage-eyebrow { margin-bottom: 0.25rem !important; }
.reg-header--in-card .subpage-h1 { font-size: 28px !important; margin: 0 0 0.35rem !important; }   /* 9.154b: px + !important — rem/specificita dávaly 45.6px a H1 na 2 řádky */
.reg-header--in-card .subpage-h1::after { margin-top: 0.4rem !important; }
/* 9.154: komprese focus stránek — NULOVÝ scroll na desktopu (CEO 2. 7.: „nechci aby se musel vůbec skorolovat"); hodnoty změřené živě (krok 1/2/3 → obsah končí 872/767/752 px) */
body.focus-mode .subpage { padding-top: 16px !important; padding-bottom: 12px !important; }
body.focus-mode .subpage-inner { padding-top: 0 !important; }
body.focus-mode .wizard-card { margin-top: 0; padding: 1.3rem 1.6rem 1.4rem; }
body.focus-mode .partner-form { gap: 0.75rem; }
body.focus-mode .wiz-progress { margin-bottom: 0.5rem; }
body.focus-mode .focus-note { margin-top: 0.7rem; }
@media (min-width: 761px) { body.focus-mode #registrace .wizard-card { min-height: 772px; } }   /* 9.154b: jednotná výška kroků (CDS) dle nejvyššího kroku 1 — PX, ne rem (root font 19px nafoukl 48.2rem na 916px) */
/* DESKTOP/notebook: registrace formulář využije ŠÍŘKU (2-col párový grid jako kontaktní formulář),
   rozšířený rám. Hlavička (hexagon+nadpis+intro) zůstává centrovaná; jen FORMULÁŘ + draft vyplní šířku.
   Telefon (≤560px) = stack (form.partner-form → 1fr níže). */
#registrace .subpage-inner, #stat-se-partnerem .subpage-inner { max-width: 1080px; }
/* HLAVIČKA nad wizard kartou — kompaktní, vycentrovaná */
.reg-header { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.reg-header .feature-crown { margin: 0 auto 0.9rem; }
.reg-header .subpage-h1::after { margin-left: auto; margin-right: auto; }   /* brand podtržítko vycentrované pod nadpisem */
#telemedicina .reg-header .subpage-h1 { max-width: 22ch; }   /* delší nadpis telemedicíny se nezalomí tak agresivně (registrace/partner zůstávají 16ch) */
.reg-header .subpage-lead { max-width: clamp(320px, 92vw, 560px); margin: 0.9rem auto 0; text-align: justify; text-align-last: center; -webkit-hyphens: none; hyphens: none; }
/* WIZARD KARTA: paper, zaoblená, soft shadow, max-width ~720px, vycentrovaná; formulář ji vyplní */
.feature-card.wizard-card { width: 100%; max-width: 720px; margin: clamp(1.6rem, 3vw, 2.4rem) auto 0; align-items: stretch; text-align: left; background: var(--card-bg); }   /* JEDNO paper pozadí (paper-on-green, lehce průsvitné) přes CELOU kartu; karta odlišená od stránky. Form = transparent (žádné vnořené 2. pozadí). Inputy si drží field token. */
.intake-form.wizard { display: block; max-width: none; width: 100%; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }   /* vypnout vlastní card styling partner-form → jediné pozadí = wizard-card (žádná krabice v krabici). Platí pro pacient i partner wizard. */
/* PROGRESS — 3 segmenty (lišta + popisek), aktivní/hotové brand, budoucí tlumené */
.wiz-progress { list-style: none; margin: 0 0 clamp(1.5rem, 3vw, 2.1rem); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.wiz-prog-step { display: flex; flex-direction: column; gap: 0.45rem; }
.wiz-prog-bar { height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--gh-dark-green) 14%, transparent); }
.wiz-prog-step.is-active .wiz-prog-bar, .wiz-prog-step.is-done .wiz-prog-bar { background: var(--brand); }
.wiz-prog-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.wiz-prog-step.is-active .wiz-prog-label, .wiz-prog-step.is-done .wiz-prog-label { color: var(--brand); }
/* KROKY + 2-up dvojice (stejně vysoké i široké, top-aligned) */
.wiz-step { display: grid; gap: 1.3rem; }
.wiz-step[hidden] { display: none; }
.wiz-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
/* NAVIGACE dole */
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2.1rem); flex-wrap: wrap; }
.wiz-count { font-size: 0.82rem; font-weight: 700; color: var(--brand); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }   /* čisté „1/3" v brand zelené */
.wiz-back { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--brand); background: none; border: 0; padding: 0.4rem 0.2rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.wiz-back[hidden], .wiz-next[hidden], .wiz-submit[hidden] { display: none; }
.wiz-back:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wiz-next, .wiz-submit { margin-left: auto; }
@media (max-width: 560px) {
  .wiz-2up { grid-template-columns: 1fr; gap: 1.3rem; }
  .wiz-prog-label { font-size: 0.6rem; letter-spacing: 0.02em; }
  .wiz-nav { gap: 0.6rem; }
}
/* DESKTOP: pacient stránka využije šířku — bodymap landscape (silhouette|panel) dostane svých ~960px
   místo capnutí na 820px. Textové bloky mají vlastní ch-max (čitelnost), takže se nepřetáhnou. Telefon = stack. */
#pacient .subpage-inner { max-width: 980px; }
@media (max-width: 560px) { form.partner-form { grid-template-columns: 1fr; } }
button[type="submit"][disabled] { opacity: 0.65; cursor: progress; }

/* ---------- Footer (light) ---------- */
/* footer = the SAME light-green paper band as the sticky header (--card-bg-header) → symmetric top/bottom frame.
   The band lives on ::after at z-index -1: SAME level as the fixed #hex-canvas, but footer comes LATER in the DOM,
   so the paper paints ABOVE the canvas — the 3D motif + trail slide UNDER the footer paper (mirrors the opaque
   sticky header), never smudge over the contact/legal text (audit 2026-07-05 #2). Footer TEXT (z-index auto)
   stays above the band; .page-bg (z-index -3) stays behind everything. */
footer { position: relative; z-index: auto; padding: 3.2rem 0 2.4rem; font-size: 0.88rem; color: var(--ink-soft); background: transparent; }
footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--card-bg-header-solid); }   /* SOLID — IDENTICKÝ s header.scrolled (symetrický rám); -1 = NAD canvasem (motiv podjíždí pod paper) */
footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(640px, 76%); height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gh-light-green) 48%, transparent) 20%, color-mix(in srgb, var(--gh-light-green) 48%, transparent) 80%, transparent); z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.6rem; align-items: start; }
/* footer map (left column, sits with the address): real static location thumbnail */
.footer-map { margin: 1.3rem 0 0; max-width: 360px; }
/* right column: contact details under the social icons */
.footer-contact { display: grid; gap: 0.85rem; margin: 1.3rem 0 0; }
.footer-grid .footer-contact a { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1; }
.footer-grid .footer-contact a:hover { color: var(--brand); }
.footer-grid .footer-contact a:hover .footer-contact-icon { color: var(--brand); }
.footer-contact-icon { width: 27px; height: 27px; color: var(--brand); flex: none; display: block; stroke-width: var(--icon-stroke); }
/* RIGHT column mirrors the LEFT: content flush to the site's right content edge (symmetry) */
.footer-connect { text-align: right; }
.footer-connect .social-strip { justify-content: flex-end; }
.footer-connect .footer-contact { justify-items: end; }
.footer-connect .ratings { justify-content: flex-end; margin-top: 1.6rem; }
.footer-connect .rating { align-items: flex-end; }
/* bottom strip legal links */
.footer-legal-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-legal-links a { color: var(--ink-soft); text-decoration: none; }
.footer-legal-links a:hover { color: var(--brand); }
/* 9.146 (B11): touch targety odkazů na mobilu ≥24px (WCAG 2.5.8) */
@media (max-width: 560px) {
  .footer-legal-links a, .footer-grid a, .partner-existing a { display: inline-block; padding: 0.4rem 0; }
}
/* social icon strip: BOLD solid brand glyphs, no circles, generous spacing */
.social-strip { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 1.6rem; }
.social-link { display: inline-flex; color: var(--brand); padding: 5px; margin: -5px; transition: color 0.2s ease, transform 0.2s var(--ease-out); }
.social-link svg { width: 36px; height: 36px; display: block; pointer-events: none; stroke-width: var(--icon-stroke); }
.social-link:hover { color: color-mix(in srgb, var(--gh-dark-green) 82%, var(--gh-black)); transform: translateY(-2px); }
.social-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.social-link[hidden] { display: none; }
/* ratings: prominent Google (real 5,0 / 3 reviews) */
.ratings { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.8rem; }
.rating { display: inline-flex; flex-direction: column; gap: 0.45rem; color: var(--ink); text-decoration: none; }
a.rating:hover .rating-stars { transform: translateY(-1px); }
/* Google trust badge: official 4-colour "G" logo + score (the site's ONLY multicolor element — small, contained) */
.rating-brand { display: inline-flex; align-items: center; gap: 0.45rem; }
.g-logo svg { width: clamp(15px, 1.3vw, 18px); height: auto; display: block; }
.rating-score { font-family: var(--font-display); font-weight: 500; font-size: clamp(0.92rem, 1.1vw, 1.05rem); color: var(--ink); line-height: 1; }
.rating-stars { display: inline-flex; gap: 0.18rem; color: #F4B400; transition: transform 0.2s var(--ease-out); }   /* Google gold 5/5 stars */
.rating-stars svg { width: 15px; height: 15px; display: block; }
.rating:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.footer-grid .footer-h { color: var(--ink); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid a { display: inline-block; color: var(--ink-soft); text-decoration: none; padding: 0.4rem 0; }
.footer-grid a:hover { color: var(--brand); }
/* Najít lékaře hub: official-source cards (light premium) */
/* 9.156 redesign (CEO): grid přes šířku místo osamělého sloupce, hexagon akcenty (corner rule), pill tagy */
.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: clamp(2rem, 4vw, 3rem) 0 2rem; }   /* SEO F4 QA-B: minmax(0,1fr) — dlouhé titulky nepřetlačí sloupce */
@media (max-width: 860px) { .sources { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
.source-card { position: relative; display: flex; flex-direction: column; text-decoration: none; border: var(--card-line); border-radius: var(--radius-card); padding: 1.6rem 1.6rem 1.4rem; background: var(--card-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease; }
.source-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--gh-black) 50%, transparent); }
.source-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* factual info block (pharmacies) — looks like a card but is not a link */
.source-info { cursor: default; background: var(--card-bg-field); }
.source-info:hover { border-color: var(--line); transform: none; box-shadow: none; }
.source-info .source-desc { margin-bottom: 0; }
.source-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: 0.01em; padding-right: 2.6rem; }   /* 9.156: Fraunces + prostor pro rohový hexagon */
.source-name .ext-arrow { font-size: 0.8em; color: var(--brand); opacity: 0.8; }
.source-desc { display: block; flex: 1; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; margin: 0.55rem 0 1rem; }
.source-tag { display: inline-block; align-self: flex-start; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-weight: 700; background: color-mix(in srgb, var(--gh-light-green) 22%, transparent); border-radius: 999px; padding: 0.28rem 0.75rem; }
.nl-cta-row { text-align: center; margin: 0; }
.footer-legal { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.78rem; }

/* ---------- Legal pages (Privacy / Cookies) ---------- */
.legal-prose { max-width: 76ch; margin-top: 2.4rem; }
.legal-h { font-family: var(--font-display); font-weight: 450; font-size: var(--fs-faq-h); color: var(--ink); margin: 2rem 0 0.7rem; }
.legal-prose p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.75; margin: 0 0 0.4rem; }
/* SEO F4 blog: článková typografie — rozšíření legal-prose o seznamy, tabulky a odkazy */
.article-prose { margin-top: 1.6rem; }
.article-prose h2 { font-family: var(--font-display); font-weight: 450; font-size: 1.45rem; color: var(--ink); margin: 2.4rem 0 0.8rem; }
.article-prose h3 { font-family: var(--font-display); font-weight: 450; font-size: var(--fs-faq-h); color: var(--ink); margin: 1.8rem 0 0.6rem; }
.article-prose p { margin: 0 0 0.8rem; }
.article-prose ul, .article-prose ol { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.75; margin: 0.2rem 0 1rem; padding-left: 1.35rem; }
.article-prose li { margin: 0.3rem 0; }
.article-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-prose table { border-collapse: collapse; margin: 1.1rem 0 1.4rem; font-size: 0.93rem; color: var(--ink-soft); width: 100%; max-width: 76ch; display: block; overflow-x: auto; }
.article-prose th, .article-prose td { border: 1px solid var(--line); padding: 0.5rem 0.8rem; text-align: left; vertical-align: top; background: color-mix(in srgb, var(--gh-white) 55%, transparent); }   /* QA seo-f4: lehký paper podklad buněk — data v tabulce musí zůstat čitelná nad watermark hexagony / WebGL motivem (legibility first), tokeny only */
.article-prose th { color: var(--ink); font-weight: 600; background: var(--card-bg-field); }
.article-prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }
.article-prose blockquote { border-left: 3px solid var(--gh-light-green); margin: 1rem 0; padding: 0.2rem 0 0.2rem 1rem; color: var(--ink-soft); }
.article-byline { font-size: 0.84rem; color: var(--ink-soft); margin-top: 0.9rem; }
.legal-updated { margin-top: 2.4rem; font-size: 0.84rem; color: var(--ink-note); font-style: italic; }

/* legal facts list (telemedicine / patient) */
.legal-facts { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.9rem; max-width: 74ch; position: relative; z-index: 1; }
.legal-facts li { display: flex; align-items: flex-start; gap: 0.85rem; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }
.fact-ico { flex: none; width: 38px; height: 38px; margin-top: calc(0.8em - 19px); }   /* svislý střed ikony = střed 1. řádku textu (0.8em = půl line-height 1.6; 19px = půl výšky ikony 38px). Posune ikonu mírně nahoru, ať nesedí pod středem řádku. */
.fact-ico .hx { fill: none; stroke: var(--brand); stroke-width: 5; }
.fact-ico .sym { fill: none; stroke: var(--brand); stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.fact-ico .sym-fill { fill: var(--brand); stroke: none; }
.fact-ico .sym-txt { fill: var(--brand); font-family: var(--font-display), serif; font-weight: 700; font-size: 40px; }
/* subpage brand WebGL hexagon: keep it SUBTLE behind routed-page content so list text stays fully legible
   (CDS: route through negative space, never cover text). Hero animace beze změny. */
body.routed #hex-canvas, body.gh-article #hex-canvas { opacity: 0.3; }
body.gh-article .lang { display: none; }   /* SEO F4: články jsou CS-only — toggle bez cíle skrýt (EN parita = follow-up) */   /* SEO F4 QA-A: články = subpage režim motivu, router .routed neřídí */

/* ---------- Interactive body silhouette (bodymap) ---------- */
.bodymap-lead { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; max-width: 70ch; margin: 0.4rem 0 1.6rem; }
/* FRAMELESS: silhouette + info-panel float in the same airy space as the roadmap below — no card, no box */
/* JEDNA karta: jeden opaque sage paper podklad (stabilní, ne bílá, ne dvoutónová — viz 9.129), zaoblení + soft
   shadow. Uvnitř: ovládací linka (full-width) → hairline → tělo (silueta | panel). */
.bodymap {
  margin: 2.2rem auto 7.5rem; max-width: 980px;
  background: var(--card-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);   /* sjednoceno s .feature-card / .partner-card: stejné var(--card-bg) + blur(8px) jako celá rodina karet (bez blur se průsvitné pozadí složí jinak) — 9.144 */
  border: var(--card-line); border-radius: var(--radius-card); box-shadow: var(--card-shadow);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: clamp(1.3rem, 2.6vw, 1.9rem);
}
/* ovládací linka přes celou šířku + jemná hairline pod ní */
.bodymap-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-bottom: clamp(1rem, 2vw, 1.4rem); border-bottom: 1px solid var(--line); }
.bodymap-bar-left { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.4rem); flex-wrap: wrap; }
.bodymap-bar-hex { flex: none; width: clamp(26px, 2.6vw, 32px); height: auto; color: var(--brand); opacity: 0.5; line-height: 0; pointer-events: none; }
.bodymap-bar-hex svg { width: 100%; height: auto; display: block; fill: none; stroke: currentColor; }
.bodymap-body { display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: clamp(1.6rem, 3vw, 2.4rem); align-items: center; }
.bodymap-fig-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bodymap-prompt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
/* front/back toggle — flush segment (transparent pill + hairline border) na paper kartě, aktivní segment brand */
.bodymap-toggle { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: transparent; border: var(--card-line); border-radius: 999px; }
.bm-view-btn { font: inherit; font-size: 0.78rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 999px; border: none; background: transparent; color: var(--ink-soft); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.bm-view-btn.is-active { background: var(--card-bg-active); color: var(--gh-white); }   /* 9.172: sjednoceno na CDS token aktivního segmentu (computed hodnota beze změny = --gh-dark-green) */
.bm-view-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* image stage + percentage hotspots */
.bodymap-stage { position: relative; width: 100%; max-width: 420px; }
.bodymap-img { width: 100%; height: auto; display: block; user-select: none; }
.bodymap-img[hidden] { display: none; }
.bodymap-hotspots { position: absolute; inset: 0; }
.bodymap-hotspots[hidden] { display: none; }
.bm-zone { position: absolute; border: 0; margin: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 14px; transition: background 0.18s ease, box-shadow 0.18s ease; }
.bm-zone:hover, .bm-zone:focus-visible { background: color-mix(in srgb, var(--accent) 36%, transparent); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 75%, transparent); outline: none; }
.bm-zone.selected { background: color-mix(in srgb, var(--brand) 30%, transparent); box-shadow: 0 0 0 1.5px var(--brand); }
.bodymap-stage.debug .bm-zone { background: color-mix(in srgb, red 16%, transparent); box-shadow: 0 0 0 1px red; }
/* informační panel — TRANSPARENTNÍ (karta poskytuje jediný paper podklad; žádné vnořené 2. pozadí) */
.bodymap-panel { position: relative; background: none; border: 0; box-shadow: none; padding: 0; min-height: 0;
  display: flex; flex-direction: column; justify-content: center; }
.bodymap-panel-h { font-family: var(--font-display); font-weight: 450; font-size: var(--fs-svc); color: var(--ink); line-height: 1.1; margin-bottom: 0.7rem; }
.bodymap-panel-p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; }
.bodymap-panel-l2 { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.bodymap-panel-l2[hidden] { display: none; }
.bodymap-cta { align-self: flex-start; margin-top: 1.3rem; font-size: 0.82rem; padding: 0.62rem 1.15rem; }
/* BLOK 1 v pravém sloupci: intro „Prozkoumejte možnosti" NAD blokem „Vyberte oblast těla"; menší H3 podnadpis,
   odstavec konzistentní s panelem, jemná hairline + mezera odděluje oba bloky */
.bodymap-head { padding-bottom: clamp(1rem, 2vw, 1.4rem); margin-bottom: clamp(1rem, 2vw, 1.4rem); border-bottom: 1px solid var(--line); }
.bodymap-head-h { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--ink); line-height: 1.2; margin: 0 0 0.4rem; }
.bodymap-head-p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.bodymap-edu { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.55; margin: 0.5rem 0 0; font-style: italic; }
.pt-role-disclaimer { max-width: 70ch; margin: clamp(1.6rem, 3vw, 2.4rem) auto 0; padding-top: clamp(1.1rem, 2vw, 1.5rem); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.82rem; line-height: 1.65; text-align: center; }
/* 9.145: geo-disclaimer — typografie = role-disclaimer, navazuje pod ním bez druhé hairline a velké mezery */
.pt-geo-disclaimer { margin-top: 0.7rem; padding-top: 0; border-top: 0; }
@media (max-width: 720px) {
  .bodymap { margin: 1.8rem auto 4.5rem; padding: clamp(1.1rem, 4vw, 1.5rem); }
  .bodymap-bar-hex { display: none; }   /* dekorativní akcent — na mobilu vypustit (nesirotčí na vlastním řádku) */
  .bodymap-body { grid-template-columns: 1fr; gap: 1.6rem; }
  .bodymap-stage { max-width: 300px; margin: 0 auto; }
  .bodymap-panel { justify-content: flex-start; align-items: center; text-align: center; }
  .bodymap-cta { align-self: center; }
}

/* ---------- Cookie consent bar ---------- */
.cookie-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1.1rem; width: min(960px, 94vw);
  background: var(--card-bg-field); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: var(--card-line); border-radius: var(--radius-card);
  box-shadow: 0 22px 60px color-mix(in srgb, var(--gh-dark-green) 18%, transparent);
  padding: 1.15rem 1.4rem; display: none; gap: 1.2rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap; z-index: 300; }
.cookie-bar.show { display: flex; }
.cookie-bar p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.6; max-width: 60ch; margin: 0; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn { font: inherit; font-size: 0.84rem; font-weight: 600; padding: 0.6rem 1.1rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--brand); transition: background 0.2s ease, color 0.2s ease; }
.cookie-btn-reject { background: transparent; color: var(--brand); }
.cookie-btn-reject:hover { background: color-mix(in srgb, var(--gh-dark-green) 8%, transparent); }
.cookie-btn-accept { background: var(--brand); color: var(--gh-white); }
.cookie-btn-accept:hover { background: color-mix(in srgb, var(--gh-dark-green) 86%, var(--gh-black)); }
.cookie-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 620px) {
  .cookie-bar { bottom: 0.6rem; padding: 1rem; gap: 0.8rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .digital-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .footer-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  /* stacked footer: right column reverts to left-aligned so it reads cleanly */
  .footer-connect { text-align: left; }
  .footer-connect .social-strip { justify-content: flex-start; margin-left: 5px; }   /* 9.98: kompenzace .social-link margin:-5px → ikony na stejné levé ose jako telefon/e-mail */
  .footer-connect .footer-contact { justify-items: start; }
  .footer-connect .ratings { justify-content: flex-start; }
  .footer-connect .rating { align-items: flex-start; }
}
/* nav overlay menu (above) works at ALL widths — no breakpoint nav-collapse needed */
@media (max-width: 768px) {
  .seg-half { padding: 0.55rem 0.7rem; }   /* deep mobile: compact the unified CTA cell, both halves stay equal */
  /* compact header so logo + CTA + CZ/EN + hamburger all fit without clipping */
  .header-right { gap: 0.15rem; }
  .lang { margin-left: 0; }
  .lang-btn { padding: 0.55rem 0.35rem; }
  .lang-sep { margin: 0 -2px; }
  .hero-inner { padding-bottom: 3.2rem; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.6rem); }
  .logo img { height: 26px; }
  /* simplified mobile cell: small subtle accent tucked in the corner */
  .hex-fallback { width: 30vw; right: 2vw; top: 7vh; opacity: 0.82; }
  /* comfortable tap targets on mobile */
  .footer-grid a { padding: 0.55rem 0; }
}
@media (max-width: 560px) {
  .digital-grid { grid-template-columns: 1fr; }
  .subpage-back { min-height: 44px; align-items: center; }
  /* ---- audit 2026-07-05 · batch G (mobile) ---- */
  /* #1 (P1): 3D dvouhexagon motiv na úzkém viewportu kříží textový sloupec (Kdo jsme) — dráha nemá
     negativní prostor. Motiv ZŮSTÁVÁ (signature), jen ztlumit ≤0.25, ať nikdy neruší čitelnost. */
  #hex-canvas, body.routed #hex-canvas, body.gh-article #hex-canvas { opacity: 0.25; }
  /* #4: justified text na úzkém sloupci tvoří „řeky" — mobil = zarovnání vlevo + hyphens:auto
     (lang=cs/en na <html> řídí slovník); desktop justified zůstává. */
  .hero-sub, .intro-copy { text-align: left; -webkit-hyphens: auto; hyphens: auto; }
  .reg-header .subpage-lead { text-align: left; text-align-last: auto; -webkit-hyphens: auto; hyphens: auto; }
  /* #8 (FAQ taby): pravidla žijí u kánonu .faq-tabs (~1470) — tam vyhrávají kaskádu (stejná specificita, pozdější v souboru). */
  /* a11y touch targety ≥44px: padding rozšiřuje hit-area, záporný margin drží footprint (vizuál beze změny) */
  .story-dot { padding: 1rem; margin: -0.65rem; }          /* 14px glyf + 2×16 = 46px */
  .story-arrow { padding: 0.65rem; margin: -0.25rem; }     /* 26px svg + 2×10.4 = 46.8px */
  .lang-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -0.25rem; right: -0.25rem; }   /* výška 44px drží min-height; šířku rozšiřuje hit-area pseudo po hranici sousedů */
}

/* ============================================================
   Copy-rewrite additions (v6): subpages + two subtle brand
   watermark textures. Visual-only, light touch.
   ============================================================ */
/* ---- Pro partnery: two tracks (technical hemp / medical) ---- */
/* .partners uses the standard section rhythm (no padding-top override) */
.partner-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.4rem; }
.partner-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem;
  padding: 2rem 1.9rem; border-radius: var(--radius-card); border: var(--card-line);
  background: var(--card-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease; }
.partner-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gh-light-green) 55%, transparent);
  box-shadow: 0 22px 48px color-mix(in srgb, var(--gh-dark-green) 14%, transparent); }
.partner-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); padding: 0.32rem 0.7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--gh-light-green) 24%, transparent); }
.partner-card h3 { font-family: var(--font-display); font-weight: 450; font-size: var(--fs-svc); color: var(--ink); line-height: 1.1; margin-top: 0.2rem; }
.partner-card p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65; flex: 1; }
.partner-card .btn-ghost { margin-top: 0.8rem; font-size: 0.86rem; padding: 0.8rem 1.4rem; }
/* Tier 2 -> Tier 3 partner-portal gateway (under the Medical track) */
.partner-portal { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed color-mix(in srgb, var(--gh-dark-green) 28%, var(--line)); width: 100%; }
@media (prefers-reduced-motion: reduce) { .partner-card { transition: none; } .partner-card:hover { transform: none; } }
@media (max-width: 760px) { .partner-tracks { grid-template-columns: 1fr; } }
/* one primary partner action + separated, weaker existing-partner portal */
.partner-cta-row { margin-top: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.partner-existing { margin: 0; display: flex; flex-direction: column; gap: 0.15rem; color: var(--ink-note); font-size: clamp(0.8rem, 0.95vw, 0.88rem); padding-left: clamp(1rem, 3vw, 2.4rem); border-left: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.partner-existing .partner-portal-soon { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 560px) { .partner-existing { padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); width: 100%; } }
/* ---- subpages (Telemedicína / Stát se pacientem) ---- */
.subpage { padding: clamp(6rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 7rem); min-height: 100svh; }
.subpage-inner { max-width: 820px; }
.subpage-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; color: var(--ink-soft); margin-bottom: 2.4rem; }
.subpage-back:hover { color: var(--brand); }
.subpage-back .arrow { transition: transform 0.25s var(--ease-out); }
.subpage-back:hover .arrow { transform: translateX(-4px); }
.subpage-soon { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--gh-light-green) 18%, var(--gh-white)); border: 1px solid color-mix(in srgb, var(--gh-light-green) 45%, transparent); border-radius: 999px; padding: 0.35rem 0.9rem; margin-bottom: 1.4rem; }
.subpage-eyebrow { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; color: var(--brand); margin-bottom: 1rem; }   /* 9.171: wrap+center bez vlivu na jednotextové eyebrow — jen fallback pro .eyebrow-note na úzkých šířkách */
.subpage-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* 9.171: decentní doplněk eyebrow řádku (např. „Připravujeme spuštění v ČR") — JEDEN lehký řádek s hairline oddělovačem, nikdy druhá výrazná plaketa nad eyebrow */
.subpage-eyebrow .eyebrow-note { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-note); font-weight: 500; }
.subpage-eyebrow .eyebrow-note::before { content: ""; width: 1px; height: 0.9em; background: color-mix(in srgb, var(--gh-black) 30%, transparent); }
@media (max-width: 560px) {
  .subpage-eyebrow .eyebrow-note { flex-basis: 100%; justify-content: center; }
  .subpage-eyebrow .eyebrow-note::before { display: none; }   /* na vlastním řádku oddělovač nedává smysl */
}
.subpage-h1 { position: relative; font-family: var(--font-display); font-weight: 450; font-size: var(--fs-subpage-h); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); max-width: 16ch; }
.subpage-lead { font-size: clamp(1.05rem, 2.1vw, 1.35rem); color: var(--ink-soft); margin-top: 1.4rem; max-width: 60ch; line-height: 1.55; }
/* Partner portal — login VISUAL PREVIEW card (paper, CDS; no real auth) */
.portal-login { max-width: 420px; margin-top: clamp(1.6rem, 3vw, 2.4rem); padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--card-bg); border: var(--card-line); border-radius: var(--radius-card); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 1rem; }
/* ---------- Feature / hero card — centered paper card CROWNED by a hexagon (hive). FOCAL only, MAX 1/screen; never on grid tiles. Mirrors the portal (?page=portal) reference. ---------- */
.feature-card { margin: clamp(2rem, 4vw, 3.4rem) auto 0; width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem; background: var(--card-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: var(--card-line); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: clamp(2rem, 4.4vw, 3rem) clamp(1.6rem, 3.5vw, 2.6rem); }
.feature-card.is-wide { width: min(680px, 100%); }
.feature-crown { width: clamp(44px, 8vw, 56px); height: auto; margin-bottom: 0.3rem; display: block; }
/* small hexagon ACCENT inside a specific tile/card (not a page wrapper) — sized to that tile */
/* hexagon = drobný akcent v pravém horním rohu panelu (NE wrapper přes stránku) */
.tile-hex { position: absolute; top: clamp(0.7rem, 1.6vw, 1.1rem); right: clamp(0.7rem, 1.6vw, 1.1rem); display: block; width: clamp(22px, 2.4vw, 30px); height: auto; margin: 0; }
.feature-crown .hx-fill, .tile-hex .hx-fill { fill: color-mix(in srgb, var(--gh-light-green) 20%, var(--gh-white)); }
.feature-crown .hx-line, .tile-hex .hx-line { fill: none; stroke: var(--brand); stroke-width: 4; }
.feature-card .subpage-soon { margin-bottom: 0.3rem; }
.feature-card .subpage-eyebrow { justify-content: center; }
.feature-card .subpage-h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: none; margin-left: auto; margin-right: auto; }
.feature-card .subpage-h1::after { margin-left: auto; margin-right: auto; }
.feature-card .feature-lead { color: var(--ink-soft); font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.6; max-width: 44ch; margin: 0.2rem 0 0.3rem; }
.feature-card .subpage-lead { text-align: center; max-width: 46ch; margin-left: auto; margin-right: auto; }
/* a form placed INSIDE a feature card drops its own card chrome — the feature-card IS the paper */
.feature-card .portal-login, .feature-card .partner-form { background: none; border: 0; box-shadow: none; padding: 0; margin-top: 1rem; width: 100%; max-width: 100%; text-align: left; }
@media (max-width: 560px) { .feature-card, .feature-card.is-wide { width: 100%; } }
/* discreet utility "Portál" link in the header bar (collapses into hamburger when tight) */
.portal-link { display: inline-flex; align-items: center; gap: 0.38rem; min-height: 44px; padding: 0.5rem 0.5rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--gh-mid-gray); text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.portal-link-ico { width: clamp(15px, 1.05rem, 18px); height: auto; flex: none; fill: none; stroke: var(--brand); stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.portal-link:hover { color: var(--brand); }
.portal-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 768px) { .portal-link { display: none; } }   /* mobil: Portál zůstává v hamburger menu */
/* 9.155: Portál dropdown v headeru (pacient · lékař · partner) */
.portal-menu { position: relative; display: inline-flex; }
.portal-link { background: none; border: 0; cursor: pointer; }
.portal-caret { font-size: 0.6rem; margin-left: 0.15rem; transition: transform 0.2s ease; }
.portal-menu.open .portal-caret { transform: rotate(180deg); }
.portal-menu-panel { position: absolute; top: calc(100% + 6px); right: 0; min-width: 240px; background: var(--card-bg-header-solid); border: 1px solid color-mix(in srgb, var(--gh-light-green) 34%, transparent); border-radius: 12px; box-shadow: 0 12px 32px rgba(1, 105, 56, 0.14); padding: 0.4rem; display: none; z-index: 60; }
.portal-menu.open .portal-menu-panel { display: block; }
.portal-menu-panel a { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.6rem 0.75rem; border-radius: 8px; text-decoration: none; }
.portal-menu-panel a:hover { background: color-mix(in srgb, var(--gh-light-green) 14%, transparent); }
.portal-menu-panel strong { font-size: 0.85rem; color: var(--brand); font-weight: 700; }
.portal-menu-panel a > span, .portal-menu-panel .pc-txt span { font-size: 0.75rem; color: var(--ink-soft); }
/* 9.155: rozcestník na ?page=portal (nahrazuje falešný login) */
.portal-choices { display: grid; gap: 0.6rem; }
.portal-choice { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.85rem 1rem; border: 1px solid color-mix(in srgb, var(--gh-light-green) 34%, transparent); border-radius: 12px; background: var(--card-bg-solid); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.portal-choice:hover { border-color: var(--brand); transform: translateY(-1px); }
.portal-choice .pc-txt { display: flex; flex-direction: column; gap: 0.1rem; }
.portal-choice strong { color: var(--brand); font-weight: 700; font-size: 0.95rem; }
.portal-choice .pc-txt span { color: var(--ink-soft); font-size: 0.8rem; }
.portal-choice .arrow { color: var(--brand); }
/* ---------- Partner portal subpage — side-by-side (wide): intro | login karta ---------- */
.portal-inner { max-width: none; }   /* full-width kanonický rám (override .subpage-inner 820px cap) */
#portal .subpage-inner { min-height: min(80vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.portal-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; width: 100%; }
.portal-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; text-align: left; }
.portal-intro .subpage-back { margin-top: clamp(1rem, 2.5vw, 1.6rem); }
.portal-card { margin: auto; width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem; background: var(--card-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: var(--card-line); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: clamp(1.8rem, 4vw, 2.8rem); }
.portal-card--login { position: relative; margin: 0; width: 100%; max-width: none; align-items: stretch; text-align: left; }
@media (max-width: 760px) { .portal-split { grid-template-columns: 1fr; gap: clamp(1.6rem, 5vw, 2.4rem); } #portal .subpage-inner { min-height: 0; } }
.portal-card .subpage-soon { margin-bottom: 0.3rem; }
.portal-card .subpage-h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: none; }
.portal-card .subpage-h1::after { margin-left: auto; margin-right: auto; }
.portal-lead { color: var(--ink-soft); font-size: clamp(0.92rem, 1vw, 1rem); line-height: 1.6; max-width: 36ch; margin: 0.2rem 0 0.3rem; }
.portal-card .portal-login { background: none; border: 0; box-shadow: none; padding: 0; margin-top: 1rem; width: 100%; max-width: 100%; text-align: left; gap: 0.9rem; }
/* numbered node reused by the wavy journey map below */
.pathway-num { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 550; font-size: 1.25rem; color: var(--gh-white); background: var(--gh-dark-green); flex: none; }

/* ---------- Wavy journey map (patient pathway) ---------- */
.journey { position: relative; height: 490px; margin: 6rem 0 3.2rem; width: min(1060px, 94vw); left: 50%; transform: translateX(-50%); }
.journey-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey-path path { stroke-linecap: round; stroke-dasharray: 7 6; }   /* fine elegant dashed trail (map route) */
.journey-stops { list-style: none; margin: 0; padding: 0; }
.jstop { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 0; height: 0; }
/* refined small node on the curve */
.jstop .pathway-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 34px; height: 34px; font-size: 1rem; font-weight: 500; box-shadow: 0 4px 14px color-mix(in srgb, var(--gh-dark-green) 26%, transparent); }
/* floating icon + title, NO box - sits in open space with a barely-there soft halo for legibility */
.jcard { position: absolute; left: 50%; transform: translateX(-50%); width: 168px;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center;
  background: radial-gradient(ellipse 78% 66% at 50% 40%, color-mix(in srgb, color-mix(in srgb, var(--gh-light-green) 12%, var(--gh-white)) 56%, transparent), transparent 72%); }
.jstop-above .jcard { bottom: 28px; }
.jstop-below .jcard { top: 28px; }
.jcard-icon { width: 128px; height: 128px; flex: none; object-fit: contain; display: block; }
.jcard h3 { font-size: 1.02rem; font-weight: 600; margin: 0; line-height: 1.3; color: var(--ink); letter-spacing: 0.01em; }
/* airy hairline divider — shared elegant separator (silhouette/roadmap + patient-page bottom blocks) */
.roadmap-hair, .block-hair { border: 0; height: 1px; width: min(640px, 76%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gh-light-green) 48%, transparent) 20%, color-mix(in srgb, var(--gh-light-green) 48%, transparent) 80%, transparent); }
.roadmap-hair { margin: 0 auto; }
.block-hair { margin: 3.8rem auto; }   /* generous air around each bottom-section divider */
@media (max-width: 820px) {
  /* graceful vertical dashed trail: number + icon + title stacked */
  .journey { height: auto; padding-left: 6px; margin-top: 4rem; }
  .journey-path { display: none; }
  .journey-stops { position: relative; }
  .journey-stops::before { content: ""; position: absolute; left: 23px; top: 18px; bottom: 18px; width: 1.5px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--accent) 80%, var(--brand))); }
  .jstop { position: static; transform: none; width: auto; height: auto; display: grid; grid-template-columns: 46px 1fr; gap: 1.1rem; align-items: center; margin-bottom: 1.6rem; }
  .jstop .pathway-num { position: relative; left: auto; top: auto; transform: none; width: 38px; height: 38px; }
  .jcard { position: static; transform: none; width: auto; flex-direction: row; align-items: center; gap: 0.85rem; text-align: left; background: none; }
  .jcard-icon { width: 76px; height: 76px; }
}
.faq-h { font-family: var(--font-display); font-weight: 450; font-size: var(--fs-faq-h); color: var(--ink); margin: 2.4rem 0 1.2rem; }
.subpage-faqlink { margin: 0 0 0.4rem; }
.subpage-faqlink a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--brand); font-weight: 600; text-decoration: none; }
.subpage-faqlink a:hover { text-decoration: underline; }
.faq { display: grid; gap: 0.9rem; }
.faq-item { border-top: 1px solid var(--line); padding: 1.1rem 0 0.4rem; }
.faq-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.faq-item p { color: var(--ink-soft); font-size: 0.94rem; max-width: 64ch; }
/* general FAQ: three audience groups as a CENTERED segmented switch (9.172) — vizuální jazyk kánonu
   .bodymap-toggle/.bm-view-btn (pill kontejner + hairline --card-line, aktivní segment --card-bg-active
   fill + paper text); markup/ARIA/JS beze změny (role=tablist/tab, šipky, aria-selected). */
.faq-tabs { display: flex; width: fit-content; max-width: 100%; gap: 0.25rem; margin: 1.8rem auto 0.4rem; padding: 0.25rem; background: transparent; border: var(--card-line); border-radius: 999px; }
.faq-tabs [role="tab"] { font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px; padding: 0.55rem 1.15rem; white-space: nowrap; cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.faq-tabs [role="tab"]:hover:not([aria-selected="true"]) { color: var(--ink); background: color-mix(in srgb, var(--gh-light-green) 8%, transparent); }
.faq-tabs [role="tab"][aria-selected="true"] { color: var(--gh-white); background: var(--card-bg-active); }
.faq-tabs [role="tab"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* 9.172 mobilní fix (nahrazuje audit #8 scroll+edge-fade — odstraněno): pod 768 px se v tabech
   zobrazují ZKRÁCENÉ labely (Pacienti / Technické (B2B) / Medical) — všechny tři segmenty se
   vejdou na 360 i 375 px BEZ posouvání, pill tvar kontejneru se neláme; plné znění od 768 px výš.
   Touch target drží min-height 44 px, hit-area je celé tlačítko (span je jen text). */
.faq-tabs .faq-tab-short { display: none; }
@media (max-width: 767px) {
  .faq-tabs { flex-wrap: nowrap; }
  .faq-tabs [role="tab"] { flex: none; white-space: nowrap; min-height: 44px; padding: 0.55rem 0.85rem; }
  .faq-tabs .faq-tab-full { display: none; }
  .faq-tabs .faq-tab-short { display: inline; }
}
.faq-panel[hidden] { display: none; }
.faq-panel { padding-top: 1.4rem; }
.subpage-cta { margin: 3rem 0 1.4rem; }
.subpage-note { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; max-width: 64ch; opacity: 0.85; border-left: 2px solid color-mix(in srgb, var(--gh-light-green) 60%, transparent); padding-left: 0.9rem; }
/* Phase 3 polish: lime accent under eyebrow, tactile hover on pathway + faq */
.subpage-h1::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--accent); margin-top: 1.1rem; }
@media (hover: hover) {
  .faq-item { transition: background 0.3s ease; border-radius: 10px; }
  .faq-item:hover { background: color-mix(in srgb, var(--gh-light-green) 7%, transparent); }
}
/* WATERMARK 1: faint outline hexagons repeating down the whole page (scroll with content) */
.watermarks { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; overflow: hidden; }
.watermarks i { position: absolute; display: block; background: center / contain no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8 86 29v42L50 92 14 71V29Z' fill='none' stroke='%23016938' stroke-opacity='0.5' stroke-width='1.4'/%3E%3C/svg%3E"); }
.watermarks i:nth-child(1) { width: 220px; height: 220px; right: 4vw;  top: 78vh;  opacity: 0.07; }
.watermarks i:nth-child(2) { width: 130px; height: 130px; left: 5vw;   top: 150vh; opacity: 0.06; }
.watermarks i:nth-child(3) { width: 300px; height: 300px; right: -3vw; top: 224vh; opacity: 0.05; }
.watermarks i:nth-child(4) { width: 160px; height: 160px; left: 8vw;   top: 308vh; opacity: 0.06; }
.watermarks i:nth-child(5) { width: 240px; height: 240px; right: 6vw;  top: 392vh; opacity: 0.055; }
.watermarks i:nth-child(6) { width: 120px; height: 120px; left: 4vw;   top: 470vh; opacity: 0.06; }

/* WATERMARK 2: faint honeycomb hex-grid texture (the "hive" metaphor), like paper embossing */
.page-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23016938' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M28 1 54 16v32L28 63 2 48V16Z'/%3E%3Cpath d='M28 33 54 48v32L28 95 2 80V48Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 144px; }
