/* ============================================================
   Amazing Heroes — prémiový vzhled, světlé/tmavé téma
   Brand akcenty: magenta #EC008C, cyan #22D3EE
   ============================================================ */

:root {
  /* Brand akcenty (konstantní v obou tématech) */
  --magenta: #ec008c;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, var(--magenta), var(--cyan));
  --grad-soft: linear-gradient(100deg, rgba(236,0,140,0.14), rgba(34,211,238,0.14));

  /* SVĚTLÉ TÉMA */
  --bg: #ffffff;
  --bg-soft: #f6f5f3;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0b0b0f;
  --text-2: #34373f;
  --muted: #71767f;
  --border: rgba(12, 12, 24, 0.09);
  --border-2: rgba(12, 12, 24, 0.16);
  --shadow-rgb: 20, 22, 45;
  --header-bg: rgba(255, 255, 255, 0.72);
  --hairline: linear-gradient(90deg, transparent, rgba(12,12,24,0.12), transparent);
  --btn-solid-bg: #0b0b0f;
  --btn-solid-text: #ffffff;
  --glow-1: rgba(34, 211, 238, 0.30);
  --glow-2: rgba(236, 0, 140, 0.28);

  --maxw: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Urbanist", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #08080b;
  --bg-soft: #0d0d12;
  --surface: #101015;
  --card: #121218;
  --text: #f5f5f8;
  --text-2: #c9cbd4;
  --muted: #8b90a0;
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.18);
  --shadow-rgb: 0, 0, 0;
  --header-bg: rgba(10, 10, 15, 0.62);
  --hairline: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  --btn-solid-bg: #ffffff;
  --btn-solid-text: #0b0b0f;
  --glow-1: rgba(34, 211, 238, 0.28);
  --glow-2: rgba(236, 0, 140, 0.26);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 88px; }

body {
  /* Ořez na body, ne jen na html: dekorativní bubliny v hero přesahují vpravo a
     samotné html { overflow-x: clip } je na viewport nepropagovalo → na mobilu
     šla stránka posunout do strany. `clip` (ne `hidden`) zachová lepivou hlavičku. */
  overflow-x: clip;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(46% 30% at var(--g1, 86% 3%), var(--glow-1), transparent 68%),
    radial-gradient(50% 34% at var(--g2, 5% 26%), var(--glow-2), transparent 68%),
    radial-gradient(48% 30% at var(--g3, 96% 48%), var(--glow-1), transparent 68%),
    radial-gradient(46% 30% at var(--g4, 6% 68%), var(--glow-2), transparent 68%),
    radial-gradient(46% 30% at var(--g5, 92% 86%), var(--glow-1), transparent 68%),
    radial-gradient(44% 28% at var(--g6, 8% 98%), var(--glow-2), transparent 68%);
  background-repeat: no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Polohy září pro jednotlivé stránky (aby byly všude jinde) */
body.glow-b { --g1: 8% 4%; --g2: 92% 24%; --g3: 10% 48%; --g4: 90% 70%; --g5: 6% 88%; --g6: 94% 98%; }
body.glow-c { --g1: 52% 2%; --g2: 4% 34%; --g3: 96% 46%; --g4: 6% 66%; --g5: 96% 82%; --g6: 4% 98%; }
body.glow-d { --g1: 94% 6%; --g2: 8% 30%; --g3: 6% 54%; --g4: 92% 66%; --g5: 8% 88%; --g6: 90% 98%; }
body.glow-e { --g1: 5% 5%; --g2: 92% 28%; --g3: 96% 52%; --g4: 8% 70%; --g5: 94% 86%; --g6: 6% 98%; }
body.glow-f { --g1: 90% 3%; --g2: 8% 30%; --g3: 92% 52%; --g4: 6% 70%; --g5: 90% 88%; --g6: 8% 98%; }
body.glow-g { --g1: 10% 3%; --g2: 96% 28%; --g3: 8% 52%; --g4: 92% 70%; --g5: 6% 88%; --g6: 94% 98%; }
body.glow-h { --g1: 96% 4%; --g2: 6% 30%; --g3: 92% 50%; --g4: 8% 70%; --g5: 92% 86%; --g6: 6% 98%; }
body.glow-i { --g1: 4% 6%; --g2: 88% 28%; --g3: 10% 52%; --g4: 90% 70%; --g5: 8% 88%; --g6: 92% 98%; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 26px;
}
section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-m { color: var(--magenta); }
.accent-c { color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  padding: 16px 34px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-text);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--grad);
  color: #fff;
  box-shadow: 0 16px 34px -14px rgba(236, 0, 140, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 34px -14px rgba(236, 0, 140, 0.5);
}
.btn-light { background: #fff; color: #0b0b0f; }
.btn-light:hover { transform: translateY(-2px); background: var(--grad); color: #fff; box-shadow: 0 16px 34px -14px rgba(236, 0, 140, 0.5); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.32); }
.btn-outline-light:hover { transform: translateY(-2px); background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 16px 34px -14px rgba(236, 0, 140, 0.5); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Průhledná hlavička nad tmavým herem (dokud se nescrolluje) */
.has-dark-hero .site-header:not(.scrolled) {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.has-dark-hero .site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.78); }
.has-dark-hero .site-header:not(.scrolled) .nav-links a:hover { color: #fff; }
.has-dark-hero .site-header:not(.scrolled) .theme-toggle { color: #fff; border-color: rgba(255,255,255,0.3); }
.has-dark-hero .site-header:not(.scrolled) .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.has-dark-hero .site-header:not(.scrolled) .btn-ghost:hover { background: var(--grad); color: #fff; border-color: transparent; }
.has-dark-hero .site-header:not(.scrolled) .btn-primary { background: #fff; color: #0a0a10; }
.has-dark-hero .site-header:not(.scrolled) .btn-primary:hover { background: var(--grad); color: #fff; }
.has-dark-hero .site-header:not(.scrolled) .hamburger span { background: #fff; }
.has-dark-hero .site-header:not(.scrolled) .logo-light { display: none; }
.has-dark-hero .site-header:not(.scrolled) .logo-dark { display: block; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand img { height: 45px; width: auto; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.24s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--border-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--text); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Scroll rail (orientace)
   ============================================================ */
.scroll-rail {
  position: fixed;
  left: 28px; top: 50%;
  transform: translateY(-50%);
  height: min(54vh, 460px);
  z-index: 40;
}
.rail-track {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 3px; height: 100%;
  background: var(--border-2);
  border-radius: 3px;
  overflow: hidden;
}
.rail-fill {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 0%;
  background: var(--grad);
  border-radius: 3px;
  transition: height 0.12s linear;
}
.rail-dots {
  position: absolute; inset: 0;
  list-style: none;
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: center;
}
.rail-dots a {
  display: block; width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--muted);
  position: relative; cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.rail-dots a::after {
  content: attr(data-name);
  position: absolute; left: 22px; top: 50%;
  transform: translateY(-50%) translateX(-6px);
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.rail-dots a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); color: var(--text); }
.rail-dots a.active {
  background: var(--magenta);
  border-color: transparent;
  transform: scale(1.55);
  box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.16);
}
@media (max-width: 1100px) { .scroll-rail { display: none; } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 108px;
}
.hero-centered { text-align: center; padding: 108px 0 104px; overflow: visible; }
.hero-centered .hero-copy { max-width: 1040px; margin-inline: auto; }
.hero-centered h1 { margin-top: 22px; font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
.hero-centered .lead { margin-inline: auto; }
.hero-centered .hero-actions,
.hero-centered .hero-trust { justify-content: center; }
.hero-centered .container { position: relative; z-index: 1; }

/* Bublina v pozadí hera */
.hero .hero-bubble {
  position: absolute;
  top: 48%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(660px, 82vw);
  aspect-ratio: 1 / 1;
  z-index: 0;
  pointer-events: none;
}
.hero .hero-bubble .ring { display: none; }
.hero .hero-bubble .orb { inset: 12%; filter: blur(14px); opacity: 0.6; }
/* Bubliny v rozích (vpravo nahoře, vlevo dole) */
.hero .bubble-tr { top: -16%; right: -10%; left: auto; bottom: auto; transform: none; width: min(520px, 60vw); }
.hero .bubble-bl { bottom: -18%; left: -10%; top: auto; right: auto; transform: none; width: min(520px, 60vw); }

/* ============================================================
   Hero cine — video + kaskádový nástup obsahu
   ============================================================ */
.hero-cine { padding: 88px 0 96px; overflow: visible; }
.hero-cine-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.hero-cine .hero-copy { flex: 1; text-align: left; min-width: 0; }
.hero-cine h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); margin-top: 20px; }
.hero-cine .lead { margin-top: 22px; }
.hero-cine .hero-actions,
.hero-cine .hero-trust { justify-content: flex-start; }

/* Video karta — plovoucí, zaoblená, bez rámečku */
.hero-video-card {
  flex-shrink: 0;
  width: min(330px, 26vw);
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 60px 120px -48px rgba(10, 10, 30, 0.55),
    0 24px 48px -24px rgba(236, 0, 140, 0.18);
  will-change: transform, opacity;
}
.hero-video-card video { width: 100%; height: auto; display: block; }

/* Počáteční stavy choreografie (JS přidá .is-in a .play) */
.hero-cine:not(.no-anim) .hero-video-card { opacity: 0; }
.hero-cine:not(.no-anim) .anim-el {
  opacity: 0;
  transform: translateX(-26px);
  filter: blur(7px);
}
.hero-cine.play .anim-el {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 0.65s ease var(--d, 0s),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.21, 1) var(--d, 0s),
    filter 0.55s ease var(--d, 0s);
}
/* Kaskáda: label → nadpis → popis → CTA → trust */
.hero-cine .hero-copy .anim-el:nth-child(1) { --d: 0s; }
.hero-cine .hero-copy .anim-el:nth-child(2) { --d: 0.12s; }
.hero-cine .hero-copy .anim-el:nth-child(3) { --d: 0.24s; }
.hero-cine .hero-copy .anim-el:nth-child(4) { --d: 0.36s; }
.hero-cine .hero-copy .anim-el:nth-child(5) { --d: 0.48s; }
.hero-cine .hero-copy .anim-el:nth-child(6) { --d: 0.6s; }

@media (max-width: 860px) {
  .hero-cine { padding: 48px 0 80px; }
  .hero-cine-grid { flex-direction: column; gap: 32px; }
  .hero-cine .hero-copy { text-align: center; }
  .hero-cine .hero-actions, .hero-cine .hero-trust { justify-content: center; }
  .hero-cine:not(.no-anim):not(.play) .anim-el { transform: translateY(18px); }
  .hero-video-card { width: min(240px, 62vw); border-radius: 26px; }

  /* Na mobilu je video to první, co návštěvník uvidí — až pod ním text. */
  .hero-cine .hero-video-card { order: -1; margin-inline: auto; }
  .hero-cine .hero-copy { order: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cine .hero-video-card, .hero-cine .anim-el { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ============================================================
   Hero stage — organické glass bloby + čočkový nadpis
   ============================================================ */
.hero-stage {
  position: relative;
  overflow: hidden;
  padding: 132px 0 138px;
  isolation: isolate;
  background:
    radial-gradient(135% 130% at 50% -10%, #10132b 0%, #0a0c1e 48%, #06070f 100%);
}
/* Hero podjede pod (průhlednou) hlavičku */
.has-dark-hero .hero-stage { margin-top: -79px; padding-top: 210px; }
.hero-stage .hero-scene {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}
.blob-layer { position: absolute; inset: 0; will-change: transform; }

.blob {
  position: absolute;
  border-radius: 58% 42% 55% 45% / 55% 45% 55% 45%;
  will-change: transform, border-radius;
  --edge: conic-gradient(from 130deg, #ec1f9a, #a855f7, #22d3ee, #3b82f6, #ec1f9a);
  --hi: #241640; --lo: #0b0916;
  background: radial-gradient(125% 125% at 32% 24%, var(--hi), var(--lo) 72%);
}
/* Prosvítající barevný zářící okraj (gradient border) */
.blob::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 2px; background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: blur(1.5px); opacity: 1;
}
/* Jemné vnější záření okraje */
.blob::after {
  content: ""; position: absolute; inset: -4%; border-radius: inherit;
  background: var(--edge); filter: blur(28px); opacity: 0.28; z-index: -1;
}
.layer-back .blob { opacity: 0.5; filter: blur(9px); }
.layer-back .blob::before { opacity: 0.42; }
.layer-mid .blob { opacity: 0.96; }

/* Velké tekuté bloby rámující text (tmavé tělo + gradientový okraj) */
.bm1 { --hi:#251743; --lo:#0b0916; --edge: conic-gradient(from 120deg,#ec1f9a,#a855f7,#22d3ee,#3b82f6,#ec1f9a); left:-8%;  top:-16%; width:540px; height:460px; animation: morphA 28s ease-in-out infinite; }
.bm2 { --hi:#141c3e; --lo:#080a18; --edge: conic-gradient(from 250deg,#22d3ee,#3b82f6,#a855f7,#ec1f9a,#22d3ee); left:56%; top:-18%; width:580px; height:480px; animation: morphB 32s ease-in-out infinite; }
.bm3 { --hi:#2a1136; --lo:#0e0817; --edge: conic-gradient(from 300deg,#ec1f9a,#8b5cf6,#22d3ee,#a855f7,#ec1f9a); left:-12%; top:50%;  width:580px; height:500px; animation: morphC 30s ease-in-out infinite; }
.bm4 { --hi:#1b1442; --lo:#0a0818; --edge: conic-gradient(from 40deg,#3b82f6,#22d3ee,#ec1f9a,#8b5cf6,#3b82f6);  left:64%; top:42%;  width:520px; height:460px; animation: morphB 26s ease-in-out infinite reverse; }
.bk1 { --hi:#1a1030; --lo:#08060f; --edge: conic-gradient(from 90deg,#a855f7,#ec1f9a,#22d3ee,#a855f7); left:20%; top:18%; width:440px; height:400px; animation: morphC 40s ease-in-out infinite; }
.bk2 { --hi:#101a34; --lo:#070a14; --edge: conic-gradient(from 200deg,#22d3ee,#3b82f6,#a855f7,#22d3ee); left:46%; top:44%; width:420px; height:380px; animation: morphA 44s ease-in-out infinite reverse; }
.bk3 { --hi:#241038; --lo:#0b0714; --edge: conic-gradient(from 320deg,#ec1f9a,#8b5cf6,#3b82f6,#ec1f9a); left:8%; top:64%; width:400px; height:360px; animation: morphB 38s ease-in-out infinite; }

@keyframes morphA {
  0%,100% { border-radius: 60% 40% 55% 45% / 52% 46% 54% 48%; }
  33% { border-radius: 46% 54% 40% 60% / 60% 42% 58% 40%; }
  66% { border-radius: 54% 46% 62% 38% / 44% 58% 42% 56%; }
}
@keyframes morphB {
  0%,100% { border-radius: 52% 48% 44% 56% / 56% 52% 48% 44%; }
  50% { border-radius: 44% 56% 58% 42% / 46% 44% 56% 54%; }
}
@keyframes morphC {
  0%,100% { border-radius: 48% 52% 56% 44% / 50% 56% 44% 50%; }
  40% { border-radius: 60% 40% 46% 54% / 58% 42% 58% 42%; }
  70% { border-radius: 42% 58% 52% 48% / 44% 54% 46% 56%; }
}

/* Světelné částice (foreground) */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 1px rgba(255,255,255,0.5);
  opacity: 0;
  animation: ptTwinkle var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes ptTwinkle {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: var(--maxo, 0.7); transform: translateY(-14px); }
}

/* Obsah nad scénou */
.hero-stage .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1060px;
  margin-inline: auto;
}
.hero-stage .eyebrow { color: rgba(255,255,255,0.6); }
.hero-stage .eyebrow::before { background: var(--grad); }
.hero-stage .lead { color: rgba(255,255,255,0.72); margin-inline: auto; }
.hero-stage .hero-actions { justify-content: center; }
.hero-stage .hero-trust { justify-content: center; color: rgba(255,255,255,0.55); }

/* Tlačítka na tmavém stage */
.hero-stage .btn-primary { background: #fff; color: #0a0a10; }
.hero-stage .btn-primary:hover { background: var(--grad); color: #fff; box-shadow: 0 16px 40px -14px rgba(236,0,140,0.55); }
.hero-stage .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.hero-stage .btn-ghost:hover { border-color: #fff; }

/* Nadpis — dvě vrstvy: obrys + výplň s čočkovou maskou */
.hero-title { position: relative; margin: 24px auto 0; display: grid; }
.ht {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.ht-fill { z-index: 2; color: #fff; }
.ht-outline {
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(255,255,255,0.92);
  pointer-events: none;
}
.ht-outline span { color: transparent; -webkit-text-stroke: 1.3px rgba(255,255,255,0.92); background: none; }

/* Čočka: výplň zmizí tam, kde je blob (průnik „mimo bloby") */
.ht-fill {
  --b1x: -999px; --b1y: -999px; --b2x: -999px; --b2y: -999px;
  --b3x: -999px; --b3y: -999px; --b4x: -999px; --b4y: -999px;
  --b5x: -999px; --b5y: -999px;
  --r1: 170px; --r2: 160px; --r3: 180px; --r4: 170px; --r5: 150px;
  -webkit-mask:
    radial-gradient(circle var(--r1) at var(--b1x) var(--b1y), transparent 0 44%, #000 72%),
    radial-gradient(circle var(--r2) at var(--b2x) var(--b2y), transparent 0 44%, #000 72%),
    radial-gradient(circle var(--r3) at var(--b3x) var(--b3y), transparent 0 44%, #000 72%),
    radial-gradient(circle var(--r4) at var(--b4x) var(--b4y), transparent 0 44%, #000 72%),
    radial-gradient(circle var(--r5) at var(--b5x) var(--b5y), transparent 0 44%, #000 72%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--r1) at var(--b1x) var(--b1y), transparent 0 44%, #000 72%),
    radial-gradient(circle var(--r2) at var(--b2x) var(--b2y), transparent 0 44%, #000 72%),
    radial-gradient(circle var(--r3) at var(--b3x) var(--b3y), transparent 0 44%, #000 72%),
    radial-gradient(circle var(--r4) at var(--b4x) var(--b4y), transparent 0 44%, #000 72%),
    radial-gradient(circle var(--r5) at var(--b5x) var(--b5y), transparent 0 44%, #000 72%);
  mask-composite: intersect;
}

@media (max-width: 720px) {
  .hero-stage { padding: 92px 0 104px; }
  .layer-mid .blob { opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  .hero-particle { animation: none !important; opacity: 0.4; }
  .ht-fill { -webkit-mask: none; mask: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin: 22px 0 0;
}
.hero .lead {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-2);
  margin-top: 24px;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-top: 42px;
  font-size: 0.92rem; color: var(--text-2);
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 15px;
  max-width: 54ch;
}
.process-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  margin-top: 48px;
}
/* Horní lišta zůstává kompaktní (výjimka z dominantních tlačítek) */
.site-header .nav-cta .btn {
  font-size: 0.96rem;
  padding: 13px 26px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 9px; }
.hero-trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-visual .ring {
  position: absolute; inset: -3%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--magenta), var(--cyan), var(--magenta));
  -webkit-mask: radial-gradient(closest-side, transparent 79%, #000 80%);
  mask: radial-gradient(closest-side, transparent 79%, #000 80%);
  opacity: 0.6;
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orb {
  position: absolute; inset: 8%;
  border-radius: 36% 64% 58% 42% / 52% 44% 56% 48%;
  background: var(--grad);
  animation: morph 11s ease-in-out infinite;
}
.orb.two {
  inset: 24%;
  background: #0a0a0d;
  animation-duration: 8s; animation-direction: reverse;
}
@keyframes morph {
  0%,100% { border-radius: 36% 64% 58% 42% / 52% 44% 56% 48%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 62% 38% 42% 58% / 46% 60% 40% 54%; transform: rotate(8deg) scale(1.03); }
  66% { border-radius: 48% 52% 60% 40% / 58% 42% 58% 42%; transform: rotate(-7deg) scale(0.98); }
}
.spark {
  position: absolute; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
  animation: floaty 6s ease-in-out infinite; z-index: 3;
}
.spark.s1 { width: 16px; height: 16px; top: 4%; left: 14%; }
.spark.s2 { width: 10px; height: 10px; bottom: 14%; left: 2%; background: var(--cyan); animation-delay: 1.1s; }
.spark.s3 { width: 22px; height: 22px; top: 20%; right: 2%; background: var(--magenta); animation-delay: 2.3s; }
.spark.s4 { width: 12px; height: 12px; bottom: 6%; right: 20%; animation-delay: 3.1s; animation-duration: 7s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.12); }
}
.hero-visual .badge {
  position: relative; z-index: 2; text-align: center; color: #fff;
}
.hero-visual .badge .big { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; line-height: 1; transition: transform 0.35s ease; }
.hero-visual .badge .small { letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.8rem; margin-top: 10px; opacity: 0.9; }
.hero-visual .ring, .hero-visual .orb { transition: filter 0.35s ease, opacity 0.35s ease; }
.hero-visual:hover .ring { opacity: 0.92; }
.hero-visual:hover .orb { filter: drop-shadow(0 0 30px rgba(236, 0, 140, 0.5)); }
.hero-visual:hover .badge .big { transform: scale(1.1); }
.hero-visual:hover .spark { box-shadow: 0 0 26px rgba(236, 0, 140, 0.75); }

/* ============================================================
   Sections & headings
   ============================================================ */
.section { padding: 104px 0; }
.section-head { max-width: 680px; margin-bottom: 58px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin: 16px 0 0; }
.section-head p { margin-top: 18px; font-size: 1.1rem; color: var(--muted); }
/* Nadpisy s ručním zalomením / na jeden řádek — širší section-head, odstavce úzké */
.why .section-head, .process .section-head,
.training .section-head, #reference .section-head { max-width: none; }
.why .section-head p, .process .section-head p { max-width: 620px; }
.training .section-head p { max-width: 660px; margin-inline: auto; }

.hairline {
  height: 1px; width: 100%;
  background: var(--hairline);
  border: none;
}

/* ---------- Why ---------- */
.why { background: transparent; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -34px rgba(var(--shadow-rgb), 0.4);
  border-color: var(--border-2);
}
.why-card .num { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-card h3 { font-size: 1.22rem; margin: 16px 0 9px; }
.why-card p { color: var(--muted); font-size: 0.98rem; }
.why-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Hero Crew (tým) ---------- */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
.crew-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 16px 34px -24px rgba(var(--shadow-rgb), 0.5);
}
.crew-photo { position: relative; aspect-ratio: 3 / 4; }
.crew-ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  object-fit: cover;
  font-size: 3rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--muted);
  background: linear-gradient(160deg, var(--card), color-mix(in srgb, var(--text) 7%, var(--card)));
}
.crew-info { padding: 16px 18px 20px; }
.crew-name { font-size: 1.12rem; margin: 0 0 3px; }
.crew-role {
  display: block;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 9px;
}
.crew-desc { font-size: 0.93rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* Hover: moderní hero přes celou dlaždici */
.crew-hero {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 26px; text-align: center;
  background: var(--grad);
  color: #fff;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.4s ease, transform 0.65s cubic-bezier(0.22, 0.61, 0.21, 1);
}
.crew-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 60%);
  pointer-events: none;
}
.crew-card:hover .crew-hero,
.crew-card:focus-within .crew-hero { opacity: 1; transform: scale(1); }
.crew-emblem {
  width: 82px; height: 82px; position: relative;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
  animation: crew-emblem-float 4s ease-in-out infinite;
}
@keyframes crew-emblem-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}
.crew-hero-name { position: relative; font-size: 1.25rem; font-weight: 800; }
.crew-hero-alias {
  position: relative;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.82;
}
.crew-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .crew-emblem { animation: none; }
  .crew-hero { transition: opacity 0.2s ease; }
}

/* ---------- Services ---------- */
#sluzby .section-head { max-width: none; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  height: 3px; width: 100%; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -34px rgba(var(--shadow-rgb), 0.45);
  border-color: var(--border-2);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  color: var(--magenta);
  font-size: 1.45rem; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-card .more { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 0.9rem; color: var(--magenta); }
.service-card .more::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* ---------- Spolupráce (marquee) ---------- */
.partners { padding: 56px 0 60px; overflow: hidden; }
.partners-label { text-align: center; margin-bottom: 30px; }
.marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-run 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-item {
  flex: 0 0 auto;
  margin-right: 20px;
  display: grid;
  place-items: center;
  min-width: 210px;
  height: 96px;
  padding: 0 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.partner-item:hover {
  color: var(--text);
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.partner-logo {
  padding: 0 34px;
  min-width: auto;
  border: none;
  background: transparent;
}
.partner-logo:hover { transform: translateY(-3px); border: none; background: transparent; }
.partner-logo img { max-height: 60px; max-width: 200px; width: auto; object-fit: contain; }
.pl-tominter img { max-height: 32px; max-width: 220px; }
.pl-finest img { max-height: 68px; max-width: 160px; }
.pl-points img { max-height: 52px; max-width: 190px; }
.pl-brnenec img { max-height: 38px; max-width: 210px; }
@media (max-width: 560px) {
  .partner-item { min-width: 160px; height: 80px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Process ---------- */
.process { background: transparent; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative;
  padding: 34px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -34px rgba(var(--shadow-rgb), 0.4);
  border-color: var(--border-2);
}
/* Velká obrysová číslice jako vodoznak v rohu */
.step::after {
  content: attr(data-num);
  position: absolute;
  right: 6px; top: -26px;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-2);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.step:hover::after { opacity: 1; transform: translateY(4px); }
/* Gradientový badge s číslem */
.step .step-num {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(236, 0, 140, 0.55);
}
.step h3 { position: relative; z-index: 1; font-size: 1.3rem; margin: 16px 0 6px; }
.step p { position: relative; z-index: 1; color: var(--muted); font-size: 0.98rem; }

/* ---------- References ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 34px 66px -34px rgba(var(--shadow-rgb), 0.5); }
.case-thumb {
  aspect-ratio: 16 / 10;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em;
}
.case-card:nth-child(2) .case-thumb { background: linear-gradient(125deg, var(--cyan), #0a0a0d); }
.case-card:nth-child(3) .case-thumb { background: linear-gradient(125deg, #0a0a0d, var(--magenta)); }
.case-body { padding: 24px 24px 28px; }
.case-body .tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.case-body h3 { font-size: 1.2rem; margin: 10px 0 9px; }
.case-body p { color: var(--muted); font-size: 0.95rem; }
.case-body .result { margin-top: 16px; font-weight: 700; color: var(--magenta); font-size: 0.95rem; }

/* ---------- Reference / recenze ---------- */
.ref-divider { text-align: center; margin: 58px 0 30px; }
.ref-divider h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 8px; }

.ref-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ref-card::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.ref-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: 0 34px 66px -34px rgba(var(--shadow-rgb), 0.5);
}
.ref-card:hover::before { transform: scaleX(1); }
.ref-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem; line-height: 0.6; height: 26px;
  color: transparent;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  opacity: 0.85; margin-bottom: 10px;
}
.ref-quote {
  color: var(--text);
  font-size: 1.02rem; line-height: 1.6;
  margin: 0 0 24px;
}
.ref-block { margin-bottom: 18px; }
.ref-block .ref-label {
  display: block;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 5px;
}
.ref-block p { margin: 0; font-size: 0.94rem; line-height: 1.55; color: var(--muted); }
/* Náhled webu v referenční kartě (rámeček prohlížeče) */
.ref-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 22px;
  box-shadow: 0 16px 34px -22px rgba(var(--shadow-rgb), 0.5);
}
.ref-preview-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 13px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-bottom: 1px solid var(--border);
}
.ref-preview-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.ref-preview-bar span:nth-child(1) { background: #ff5f57; }
.ref-preview-bar span:nth-child(2) { background: #febc2e; }
.ref-preview-bar span:nth-child(3) { background: #28c840; }
.ref-preview-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 15% 0%, color-mix(in srgb, var(--magenta) 16%, transparent), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 60%),
    var(--card);
}
.ref-preview-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ref-preview-note {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.ref-fail {
  text-align: center;
  margin: 44px auto 0;
  font-size: 1.05rem;
  color: var(--muted);
}
.ref-fail-q { font-weight: 800; color: var(--text); margin-right: 6px; }

/* Preloader jen při prvním spuštění (sessionStorage ah-visited) */
.no-preloader .preloader { display: none !important; }

/* ---------- Reference — velká bublina (rozcestník na indexu) ---------- */
.ref-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(var(--shadow-rgb), 0.4);
}
.ref-half {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 200px;
  padding: 46px 30px;
  color: inherit;
  transition: background 0.25s ease;
}
button.ref-half {
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  width: 100%;
}
.ref-half.active h3,
.ref-half:hover h3 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ref-half.active::after { opacity: 1; }
.ref-half + .ref-half { border-left: 1px solid var(--border); }
.ref-half::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 50% 110%, color-mix(in srgb, var(--magenta) 14%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.ref-half:last-child::after {
  background: radial-gradient(420px 260px at 50% 110%, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 70%);
}
.ref-half:hover::after { opacity: 1; }
.ref-half-num {
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.ref-half h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.ref-half p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.ref-half-more {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--magenta);
  transition: transform 0.22s ease;
}
.ref-half:hover .ref-half-more { transform: translateX(5px); }
@media (max-width: 760px) {
  .ref-split { grid-template-columns: 1fr; }
  .ref-half + .ref-half { border-left: none; border-top: 1px solid var(--border); }
  .ref-half { padding: 38px 28px 34px; }
}

/* ---------- Little Heroes — sekce na hlavní stránce ---------- */
.lh-band {
  text-align: center;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 66px 34px 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(var(--shadow-rgb), 0.4);
}
.lh-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(460px 240px at 12% 0%, color-mix(in srgb, var(--magenta) 10%, transparent), transparent 70%),
    radial-gradient(460px 240px at 88% 100%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.lh-band > * { position: relative; }
.lh-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 12px 0 14px; }
.lh-band p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.lh-band .hero-actions { justify-content: center; margin-top: 28px; }
/* Little Heroes — HP sekce (text + náhledy) */
.lh-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.lh-copy { max-width: 580px; }
.lh-copy h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin: 16px 0 0; }
.lh-answer {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 4px;
  max-width: 46ch;
}
.lh-body { margin-top: 14px; font-size: 1.1rem; color: var(--muted); }
/* Little Heroes — mise jako plovoucí texty (bez bublin) po celém pravém prostoru */
.lh-mission-anim {
  position: absolute; inset: 0;
  z-index: 6; pointer-events: none;
}
.mission-chip {
  position: absolute;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 58%;
  line-height: 1.22; font-weight: 800; letter-spacing: -0.01em;
}
.mission-chip .m-q, .mission-chip .m-a {
  display: block; opacity: 0;
  text-shadow: 0 2px 22px var(--bg), 0 1px 4px rgba(0, 0, 0, 0.55);
}
.mission-chip .m-q {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--text);
  animation: mQright 15s ease-in-out infinite;
}
.mission-chip .m-a {
  font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--magenta);
  animation: mALeft 15s ease-in-out infinite;
}
/* rozmístění po celé pravé ploše */
.mission-chip.m1 { top: 0; left: 0; }
.mission-chip.m2 { top: 42%; right: 0; text-align: right; align-items: flex-end; }
.mission-chip.m3 { bottom: 0; left: 4%; }
.mission-chip.m1 .m-q, .mission-chip.m1 .m-a { animation-delay: 0s; }
.mission-chip.m2 .m-q, .mission-chip.m2 .m-a { animation-delay: 5s; }
.mission-chip.m3 .m-q, .mission-chip.m3 .m-a { animation-delay: 10s; }
/* otázka přijede zprava */
@keyframes mQright {
  0% { opacity: 0; transform: translateX(48px); }
  5% { opacity: 1; transform: translateX(0); }
  28% { opacity: 1; transform: translateX(0); }
  33% { opacity: 0; transform: translateX(-24px); }
  100% { opacity: 0; transform: translateX(48px); }
}
/* odpověď doběhne o chvíli později zleva */
@keyframes mALeft {
  0%, 7% { opacity: 0; transform: translateX(-48px); }
  12% { opacity: 1; transform: translateX(0); }
  28% { opacity: 1; transform: translateX(0); }
  33% { opacity: 0; transform: translateX(24px); }
  100% { opacity: 0; transform: translateX(-48px); }
}
@media (prefers-reduced-motion: reduce) {
  .mission-chip .m-q, .mission-chip .m-a { animation: none; opacity: 1; transform: none; }
}
.lh-punchline { margin-top: 22px; font-size: 1.12rem; font-weight: 700; line-height: 1.5; color: var(--text); }
.lh-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.lh-peek { position: relative; height: 360px; }
.lh-peek .peek-card {
  position: absolute; left: 50%; top: 50%;
  width: 300px; max-width: 82%;
  min-height: 0;
}
.lh-peek .peek-front { transform: translate(-50%, -50%) rotate(-4deg); z-index: 2; box-shadow: 0 42px 72px -34px rgba(var(--shadow-rgb), 0.6); }
.lh-peek .peek-back  { transform: translate(-50%, -50%) rotate(6deg) translate(56px, -30px); z-index: 1; }
@media (max-width: 860px) {
  .lh-grid { grid-template-columns: 1fr; gap: 36px; }
  .lh-copy { max-width: none; }
  .lh-cta { justify-content: flex-start; }
  .lh-peek { height: 320px; }
}

/* Little Heroes — náhledové ukázky (mockupy) */
.lh-samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.mock { margin: 0; }
.mock-canvas {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 16px 34px -24px rgba(var(--shadow-rgb), 0.5);
  overflow: hidden;
}
.mock > figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.m-viz { justify-content: center; gap: 3px; background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--magenta) 7%, var(--card))); }
.m-viz .m-brand { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta); margin-bottom: 14px; }
.m-viz .m-name { font-size: 1.5rem; font-weight: 800; }
.m-viz .m-role { font-weight: 700; color: var(--text-2); }
.m-viz .m-sub { font-size: 0.9rem; color: var(--muted); }
.m-logo { align-items: center; justify-content: center; text-align: center; gap: 8px; }
.m-logo .m-mark { font-size: 2.5rem; line-height: 1; }
.m-logo strong { font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-logo .m-alt { font-size: 0.85rem; color: var(--muted); }
.m-diplom { align-items: center; justify-content: center; text-align: center; gap: 5px; border: 3px double color-mix(in srgb, var(--magenta) 45%, var(--border)); }
.m-diplom .m-top, .m-diplom .m-mid { font-size: 0.85rem; color: var(--muted); }
.m-diplom .m-name { font-size: 1.3rem; font-weight: 800; margin: 4px 0; }
.m-diplom .m-check { margin-top: 6px; font-weight: 700; color: var(--cyan); }
.m-doc .m-head { font-weight: 800; font-size: 1rem; margin-bottom: 10px; }
.m-doc .m-row { font-size: 0.95rem; color: var(--text-2); margin-bottom: 4px; }
.m-doc .m-row em { font-style: normal; font-weight: 600; color: var(--muted); }
.m-doc .m-sign { margin-top: auto; padding-top: 12px; font-size: 0.85rem; color: var(--muted); }
.m-doc ul, .m-doc ol { margin: 4px 0 0; padding-left: 20px; color: var(--text-2); font-size: 0.95rem; }
.m-doc ul.m-cols { columns: 2; }
.m-doc .m-punch { margin-top: auto; padding-top: 12px; font-weight: 800; color: var(--text); }
.m-id .m-title { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--magenta); margin-bottom: 14px; }
.m-id .m-idrow { display: flex; align-items: center; gap: 12px; }
.m-id .m-photo { width: 46px; height: 46px; border-radius: 10px; background: color-mix(in srgb, var(--cyan) 20%, var(--card)); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.m-id .m-idinfo { display: flex; flex-direction: column; }
.m-id .m-idinfo strong { font-size: 1.05rem; }
.m-id .m-idinfo span { font-size: 0.85rem; color: var(--muted); }
.m-id .m-qr { width: 40px; height: 40px; margin-left: auto; flex: none; border-radius: 6px; opacity: 0.5; background-image: repeating-conic-gradient(var(--text) 0 25%, transparent 0 50%); background-size: 12px 12px; }
.m-cert { gap: 8px; }
.m-cert .m-seal { font-size: 1.7rem; color: var(--magenta); }
.m-cert .m-line { font-weight: 700; }
.m-poster { align-items: center; justify-content: center; text-align: center; gap: 8px; background: color-mix(in srgb, var(--magenta) 9%, var(--card)); border-color: color-mix(in srgb, var(--magenta) 32%, var(--border)); }
.m-poster .m-top { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.m-poster .m-main { font-size: 1.35rem; font-weight: 800; }
.m-poster .m-reward { font-weight: 700; color: var(--magenta); }
/* Little Heroes — rozbalovací ukázky (details) */
.lh-reveal { text-align: center; margin-top: 44px; }
.lh-details { text-align: center; }
.lh-details summary { list-style: none; cursor: pointer; }
.lh-details summary::-webkit-details-marker { display: none; }
.lh-details summary::marker { content: ""; }
.lh-lbl-open { display: none; }
.lh-details[open] summary .lh-lbl-closed { display: none; }
.lh-details[open] summary .lh-lbl-open { display: inline; }
.lh-details-body { margin-top: 30px; }
/* Little Heroes — archetypy „Mám doma…" */
.lh-types-lead { text-align: center; font-weight: 700; font-size: 1.15rem; margin: 36px 0 0; }
.lh-types-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 6px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.lh-types-track { display: flex; width: max-content; animation: marquee-run 30s linear infinite; }
.lh-types-track .lh-type { flex: 0 0 auto; margin-right: 12px; }
.lh-types-marquee:hover .lh-types-track { animation-play-state: paused; }
.lh-type {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.lh-type:hover { transform: translateY(-3px); border-color: transparent; background: var(--grad); color: #fff; }
.lh-type--star { border-color: transparent; background: var(--grad); color: #fff; }
.lh-closer {
  text-align: center;
  max-width: 680px;
  margin: 44px auto 0;
  color: var(--text-2);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
}
.lh-outro {
  text-align: center;
  max-width: 640px;
  margin: 40px auto 0;
  color: var(--text-2);
  font-size: 1.08rem;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .lh-types-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .lh-types-track [aria-hidden="true"] { display: none; }
}

/* ---------- Reference — podstránka se záložkami ---------- */
.ref-pane { display: none; }
.ref-pane.active { display: block; }

/* Kompaktní přepínač na podstránce reference (nahrazuje velké dlaždice) */
.ref-switch {
  display: flex;
  width: fit-content;
  margin: 0 auto 44px;
  gap: 14px;
}
.ref-switch .ref-tab {
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  padding: 12px 30px;
  border-radius: 999px;
  box-shadow: 0 20px 50px -34px rgba(var(--shadow-rgb), 0.5);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.ref-switch .ref-tab:hover { color: var(--text); border-color: var(--border-2); }
.ref-switch .ref-tab.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
@media (max-width: 600px) {
  .ref-switch { gap: 10px; max-width: 100%; }
  .ref-switch .ref-tab { padding: 11px 18px; font-size: 0.92rem; }
}
.nepovedlo-hero {
  text-align: center;
  padding: 60px 0 30px;
}
.nepovedlo-hero h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 14px;
}
.nepovedlo-hero p { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto; }
.ref-foot {
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.ref-brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ref-logo { font-weight: 800; font-size: 1.08rem; letter-spacing: 0.01em; color: var(--text); }
.ref-role { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ref-badge {
  flex: 0 0 auto;
  align-self: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--magenta);
  background: color-mix(in srgb, var(--magenta) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--magenta) 30%, transparent);
  white-space: nowrap;
}

/* ---------- Training ---------- */
.training { background: transparent; }
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(var(--shadow-rgb), 0.45); border-color: var(--border-2); }
.course-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-weight: 800; font-size: 1.3rem; margin-bottom: 24px;
}
.course-card h3 { font-size: 1.55rem; margin-bottom: 7px; }
.course-card .level { display: inline-block; font-weight: 700; font-size: 0.82rem; color: var(--magenta); margin-bottom: 16px; }
.course-card p { color: var(--muted); font-size: 1rem; }
.course-card--cta { background: linear-gradient(150deg, #101015, #1a1420); border-color: transparent; }
.course-card--cta h3 { color: #fff; }
.course-card--cta p { color: rgba(255,255,255,0.7); }
.course-card--cta .level { color: var(--cyan); }
.training-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 52px; }

/* ---------- Be creative (barevný slide v barvách i/o) ---------- */
.creative-band { padding: 44px 0; }
.creative-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 50px;
  align-items: center;
  border-radius: 30px;
  padding: 60px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--magenta) 0%, #7d2bd6 48%, var(--cyan) 100%);
  box-shadow: 0 50px 110px -50px rgba(236, 0, 140, 0.55);
}
[data-theme="dark"] .creative-inner {
  background: linear-gradient(120deg, #c8007a 0%, #5b23b0 48%, #17a8c4 100%);
  box-shadow: 0 50px 110px -55px rgba(0, 0, 0, 0.75);
}
.creative-centered { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 84px 60px; }
.creative-centered .creative-copy { max-width: none; }

/* Oba claim bloky mají stejný tvar bez ohledu na délku textu */
.creative-fixed {
  min-height: 470px;
  align-content: center;
  position: relative;
}
/* Logo Amazing Heroes pod textem */
.creative-logo {
  height: 38px;
  width: auto;
  margin: 32px auto 0;
  display: block;
  animation: logo-float 5.5s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
/* Tenká šikmá designová čárka zespoda nahoru */
.creative-slash {
  position: absolute;
  left: 16%;
  bottom: -8%;
  width: 2px;
  height: 120%;
  background: linear-gradient(to top, rgba(255,255,255,0.55), rgba(255,255,255,0.18) 55%, transparent);
  transform: rotate(26deg);
  transform-origin: bottom center;
  pointer-events: none;
  overflow: hidden;
}
/* Světýlko běžící po čárce zespoda nahoru */
.creative-slash::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 70px;
  top: 100%;
  background: linear-gradient(to top, transparent, rgba(255,255,255,0.95), transparent);
  animation: slash-run 4.6s ease-in-out infinite;
}
@keyframes slash-run {
  0% { top: 100%; opacity: 0; }
  12% { opacity: 1; }
  55% { top: -18%; opacity: 0; }
  100% { top: -18%; opacity: 0; }
}
/* Nájezd bloku ze strany + následné objevení textu */
.creative-inner.reveal.slide-left,
.creative-inner.reveal.slide-right {
  opacity: 0;
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 0.61, 0.21, 1);
}
.creative-inner.reveal.slide-left { transform: translateX(-110px); }
.creative-inner.reveal.slide-right { transform: translateX(110px); }
.creative-inner.reveal.slide-left.in,
.creative-inner.reveal.slide-right.in { opacity: 1; transform: none; }
/* Text se objeví až po dojezdu bloku */
.creative-inner.slide-left .creative-copy,
.creative-inner.slide-right .creative-copy {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.6s, transform 0.6s cubic-bezier(0.22, 0.61, 0.21, 1) 0.6s;
}
.creative-inner.slide-left.in .creative-copy,
.creative-inner.slide-right.in .creative-copy { opacity: 1; transform: none; }

/* Občasný jemný světelný přejezd (sheen) */
.creative-fixed::after {
  content: "";
  position: absolute;
  inset: -12%;
  background: linear-gradient(105deg, transparent 43%, rgba(255,255,255,0.13) 50%, transparent 57%);
  transform: translateX(-130%) skewX(-6deg);
  animation: band-sheen 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes band-sheen {
  0%, 52% { transform: translateX(-130%) skewX(-6deg); }
  78% { transform: translateX(130%) skewX(-6deg); }
  100% { transform: translateX(130%) skewX(-6deg); }
}
.creative-copy .creative-tag {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 18px;
}
.creative-copy h2 {
  color: #fff;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.creative-copy .creative-sub {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.creative-visual .hero-visual {
  max-width: 400px;
  width: 100%;
  margin-inline: auto;
}

/* ---------- Podpis / osobní slib ---------- */
.signature-section { text-align: center; }
/* Skryté easter-egg tlačítko — transparentní, odhalí se po najetí */
.egg-reveal {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 100%; margin-top: 44px; padding: 44px 24px;
  border: 1px solid transparent; border-radius: 22px;
  background: transparent; cursor: pointer; font: inherit;
  transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}
.egg-reveal .egg-msg, .egg-reveal .egg-code {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.egg-reveal .egg-msg { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; color: var(--text); }
.egg-reveal .egg-code {
  font-size: 1rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 8px 18px; border-radius: 999px; background: var(--grad); color: #fff;
}
.egg-reveal:hover, .egg-reveal:focus-visible { outline: none; border-color: rgba(255, 255, 255, 0.45); }
.egg-reveal:hover .egg-msg, .egg-reveal:focus-visible .egg-msg,
.egg-reveal:hover .egg-code, .egg-reveal:focus-visible .egg-code {
  opacity: 1; transform: translateY(0);
}
.signature-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: 16px; }
.signature-section p { color: var(--muted); margin: 16px auto 0; max-width: 48ch; font-size: 1.06rem; }
.signature-name {
  margin-top: 4px;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0.32;
}
.signature-img {
  width: min(1000px, 92vw);
  aspect-ratio: 1092 / 606;
  margin: 30px auto 0;
  background: linear-gradient(100deg, #ec008c, #8b5cf6, #22d3ee, #8b5cf6, #ec008c);
  background-size: 220% 100%;
  -webkit-mask: url("assets/podpis.png") center / contain no-repeat;
  mask: url("assets/podpis.png") center / contain no-repeat;
  animation: sig-flow 9s ease-in-out infinite;
}
@keyframes sig-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- CTA band (luxe panel, tmavý v obou tématech) ---------- */
.cta-band {
  padding: 72px 0 112px; text-align: center;
  color: #fff;
  background:
    radial-gradient(55% 90% at 0% 100%, rgba(236,0,140,0.22), transparent 62%),
    radial-gradient(50% 90% at 100% 100%, rgba(34,211,238,0.18), transparent 62%),
    linear-gradient(180deg, transparent 0, transparent 16px, #0c0b13 54px, #131018 100%);
}
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-top: 18px; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 20px auto 0; max-width: 52ch; font-size: 1.12rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 38px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #131018, #0a0910); color: rgba(255,255,255,0.6); padding: 76px 0 34px; border-top: none; }
.site-footer .logo-light { display: none; }
.site-footer .logo-dark { display: block; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 22px; }
.site-footer p { font-size: 0.96rem; max-width: 34ch; color: rgba(255,255,255,0.58); }
.footer-col h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { font-size: 0.95rem; color: rgba(255,255,255,0.58); transition: color 0.18s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: rgba(255,255,255,0.42);
}

/* ============================================================
   Podstránky (služby) + poptávkový formulář
   ============================================================ */
.subhero { padding: 58px 0 24px; }
.subhero + .section { padding-top: 22px; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  font-weight: 600; font-size: 0.88rem; color: var(--muted);
  transition: color 0.18s ease, gap 0.18s ease, border-color 0.2s ease;
}
.back:hover { color: var(--text); gap: 12px; border-color: var(--border-2); }
.subhero .back { margin-right: 16px; vertical-align: middle; }
.subhero .eyebrow { vertical-align: middle; }
.subhero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 26px 0 0; }
.subhero .lead {
  display: block;
  margin-top: 20px;
  max-width: 48ch;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.subhero-note { margin-top: 20px; max-width: 62ch; color: var(--text-2); font-size: 1.1rem; line-height: 1.55; }
@keyframes leadFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* Superschopnosti — spotlight řádek přes celou šířku, kraje mizí do ztracena */
.powers {
  width: 100%; margin: 34px 0 0;
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
  overflow: hidden; padding: 14px 0;
  font-size: clamp(1.05rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: -0.01em;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 17%, #000 83%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 17%, #000 83%, transparent 100%);
}
.power {
  flex: 0 0 auto;
  color: var(--muted);
  padding: 0 clamp(10px, 1.8vw, 26px);
  transition: color 0.3s ease;
  animation: powerSpot 9s ease-in-out infinite;
}
@keyframes powerSpot {
  0%, 100% { color: var(--muted); }
  8% { color: var(--magenta); text-shadow: 0 0 22px rgba(236, 0, 140, 0.4); }
  17% { color: var(--muted); text-shadow: none; }
}
.power:nth-child(1) { animation-delay: 0s; }
.power:nth-child(2) { animation-delay: 1.5s; }
.power:nth-child(3) { animation-delay: 3s; }
.power:nth-child(4) { animation-delay: 4.5s; }
.power:nth-child(5) { animation-delay: 6s; }
.power:nth-child(6) { animation-delay: 7.5s; }
@media (prefers-reduced-motion: reduce) {
  .subhero .lead { animation: none; }
  .power { animation: none; color: var(--text-2); }
}
.subhero .hero-actions { margin-top: 34px; }

.includes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Kontakt — mapa */
.contact-map {
  margin-top: 26px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -34px rgba(var(--shadow-rgb), 0.5);
}
.contact-map iframe { width: 100%; height: 380px; border: 0; display: block; }
.include-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.include-item:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -34px rgba(var(--shadow-rgb), 0.4); border-color: var(--border-2); }
.include-item .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-soft); color: var(--magenta);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 18px;
}
.include-item h3 { font-size: 1.14rem; margin-bottom: 8px; }
.include-item p { color: var(--muted); font-size: 0.96rem; }

/* Kontakt — kreativní panel „poznejte tým" */
.team-cta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 22px; padding: 22px 26px;
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--card); position: relative; overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.team-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.team-cta:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 30px 60px -34px rgba(var(--shadow-rgb), 0.45); }
.team-avatars { display: flex; }
.team-av {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800; color: #fff; letter-spacing: 0.02em;
  background: var(--grad); border: 2px solid var(--card);
  margin-left: -14px; transition: margin-left 0.28s ease;
}
.team-av:first-child { margin-left: 0; }
.team-cta:hover .team-av { margin-left: -6px; }
.team-cta:hover .team-av:first-child { margin-left: 0; }
.team-cta-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.team-cta-text strong { font-size: 1.12rem; font-weight: 800; }
.team-cta-text > span { color: var(--muted); font-size: 0.95rem; }
.team-cta-go {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700; white-space: nowrap;
  transition: gap 0.25s ease;
}
.team-cta:hover .team-cta-go { gap: 15px; }

/* Kontakt — dvousloupcový layout: formulář vlevo, info pod sebou vpravo */
.contact-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: start; margin-top: 44px; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 940px) {
  .contact-split { grid-template-columns: 1fr; gap: 24px; }
}
/* Mezinadpis v kontaktu */
.contact-sub { margin-top: 62px; margin-bottom: 34px; }
.contact-sub h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 18px; line-height: 1.18; }
/* Noční mapa — tmavomodrá (bez zelené), ladí s webem */
.contact-map--night iframe { filter: grayscale(1) invert(0.9) sepia(0.6) hue-rotate(175deg) saturate(2.2) brightness(0.92) contrast(0.95); }

/* Formulář */
.form-wrap { max-width: 780px; margin-inline: auto; }
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 40px 90px -50px rgba(var(--shadow-rgb), 0.5);
}
.field { margin-bottom: 22px; }
.field > label { display: block; font-weight: 700; margin-bottom: 9px; font-size: 0.95rem; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-2);
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice label {
  display: inline-block; padding: 10px 18px;
  border-radius: 999px; border: 1.5px solid var(--border-2);
  cursor: pointer; font-weight: 600; font-size: 0.9rem; margin: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.choice input:checked + label { background: var(--grad); color: #fff; border-color: transparent; }
.choice input:focus-visible + label { box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.16); }
.form-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { color: var(--muted); font-size: 0.86rem; }
.form-success {
  display: none;
  text-align: center; padding: 48px 30px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 22px;
  background: var(--grad); color: #fff; font-size: 2rem;
}
.form-success h2 { font-size: 1.8rem; }
.form-success p { color: var(--muted); margin-top: 12px; max-width: 42ch; margin-inline: auto; }

/* ============================================================
   Preloader (načítací obrazovka)
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--bg);
  background-image:
    radial-gradient(24% 22% at 0% 0%, var(--glow-1), transparent 58%),
    radial-gradient(24% 22% at 100% 0%, var(--glow-2), transparent 58%),
    radial-gradient(24% 22% at 0% 100%, var(--glow-2), transparent 58%),
    radial-gradient(24% 22% at 100% 100%, var(--glow-1), transparent 58%);
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: pl-pop 0.5s ease both;
}
@keyframes pl-pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.preloader img { height: 46px; width: auto; }
.preloader-bar {
  width: 190px;
  height: 3px;
  border-radius: 3px;
  background: var(--border-2);
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 3px;
  transition: width 0.25s ease;
}

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid, .services-grid, .steps, .training-grid, .includes-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .creative-inner { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px; }

  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 14px 26px 22px;
    box-shadow: 0 20px 40px -24px rgba(var(--shadow-rgb), 0.4);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 11px 0; font-size: 1.05rem; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 74px 0; }
  .why-grid, .services-grid, .steps, .cases-grid, .training-grid, .includes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .hero { padding: 60px 0 76px; }
  .nav-cta .btn-primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Přístupnost: skip link + focus ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
}
.btn:focus-visible,
.nav-links a:focus-visible,
.theme-toggle:focus-visible,
.hamburger:focus-visible,
.brand:focus-visible,
.footer-col a:focus-visible,
.service-card:focus-visible {
  outline: 2.5px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible { border-radius: 999px; }

/* ---------- Právní stránka ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal-content p { color: var(--muted); margin: 0 0 12px; line-height: 1.7; }
.legal-content a { color: var(--magenta); font-weight: 600; }
.legal-updated { margin-top: 40px; font-size: 0.85rem; opacity: 0.7; }

/* ---------- Souhlas u formuláře ---------- */
.form-consent {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.55;
}
.form-consent a { color: var(--magenta); font-weight: 600; }

/* ---------- Cookie lišta (aktivuje se jen s analytikou) ---------- */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 250;
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--card);
  box-shadow: 0 24px 60px -20px rgba(var(--shadow-rgb), 0.55);
}
.cookie-bar.show { display: flex; }
.cookie-bar p { margin: 0; font-size: 0.88rem; color: var(--muted); flex: 1 1 300px; }
.cookie-bar p a { color: var(--magenta); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 18px; font-size: 0.88rem; }

/* ==========================================================================
   WordPress — srovnání s návrhem
   ========================================================================== */

/* Blok Skupina obaluje svůj obsah do vnitřního kontejneru. Ten by rozbil
   mřížky a flex layouty z návrhu (hero, karty služeb, patička), proto ho
   z rozvržení vyřadíme — děti se pak chovají, jako by byly přímo v rodiči. */
.wp-block-group__inner-container { display: contents; }

/* Editor v administraci: stejná zásada, ať klient vidí web tak, jak vypadá. */
.editor-styles-wrapper .wp-block-group__inner-container { display: contents; }

/* Nadpis H1 v podobě drobného štítku (Reference) — kvůli vyhledávačům je to
   plnohodnotný nadpis stránky, vizuálně ale zůstává decentní jako dřív. */
h1.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

/* Ceník: hlavní nadpis je nově H1, vzhled beze změny. */
.nepovedlo-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 14px;
}

/* Náhled reference je proklik na web klienta — dáme to najevo i vizuálně. */
.ref-preview-odkaz {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.ref-preview-odkaz img {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.21, 1), filter 0.3s ease;
}
.ref-preview-odkaz::after {
  content: "Otevřít web ↗";
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ref-card:hover .ref-preview-odkaz img,
.ref-preview-odkaz:hover img { transform: scale(1.04); }
.ref-card:hover .ref-preview-odkaz::after,
.ref-preview-odkaz:focus-visible::after { opacity: 1; transform: translateY(0); }
.ref-preview-odkaz:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }

/* Pořadí karet v referencích: Tominter patří až na třetí místo.
   Řešíme přes pořadí v mřížce, obsah stránky zůstává beze změny.
   Základní pořadí 9 posílá KAŽDOU další kartu na konec — bez něj by nově
   přidaná karta (výchozí order 0) skočila před všechny ostatní. */
.cases-grid .ref-card { order: 9; }
.cases-grid .ref-card:nth-child(1) { order: 4; }  /* Tominter */
.cases-grid .ref-card:nth-child(2) { order: 1; }  /* Finest Invest — zůstává první */
.cases-grid .ref-card:nth-child(3) { order: 3; }  /* Apartmány Dyjákovičky */
.cases-grid .ref-card:nth-child(4) { order: 5; }  /* Point S */
.cases-grid .ref-card:nth-child(5) { order: 6; }  /* Brněnec */
.cases-grid .ref-card--lab-ref { order: 2; }      /* Amazing LAB — hned za Finestem */

/* ---------- Kovářova kobyLAB — třetí záložka referencí ----------
   Vlastní značka z House of Amazing. „LAB“ v tlačítku svítí gradientem,
   jenže AKTIVNÍ tlačítko má gradient i na pozadí — tam by text zmizel,
   proto se z něj v aktivním stavu stane světlý štítek. */
/* „LAB“ je VÝŘEZ ZE ZNAČKY Amazing Lab, ne psané písmo — proto se vkládá
   jako maska: tvar nese obrázek, barvu dodá pozadí. Díky tomu logo svítí
   gradientem na klidném tlačítku a bíle na aktivním (kde je gradient na
   pozadí), a funguje ve světlém i tmavém režimu bez druhého souboru.
   Poměr stran výřezu je 2,916 : 1, výška odpovídá verzálkám okolního textu. */
.ref-tab--lab .lab-zvyr {
  display: inline-block;
  width: 2.1em;
  height: 0.72em;
  margin-left: 0.05em;
  background: var(--grad);
  -webkit-mask: url("../img/lab-logo.png") no-repeat center / contain;
  mask: url("../img/lab-logo.png") no-repeat center / contain;
  vertical-align: baseline;
}
.ref-switch .ref-tab--lab.active .lab-zvyr {
  /* Aktivní tlačítko má gradient na pozadí — logo tam musí být bílé. */
  background: #fff;
}

/* Dlaždice stojí sama, tak ať se neroztáhne přes celou šířku. */
.lab-solo { max-width: 760px; margin: 0 auto; }
.ref-card--lab { padding: 38px 34px 30px; }
.ref-card--lab > .ref-label {
  display: block;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.lab-nadpis {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.08;
  margin-bottom: 14px;
}
.lab-perex {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .ref-card--lab { padding: 28px 22px 24px; }
}

/* Odkaz na LAB v patičce dlaždice — plné tlačítko je tu zbytečně velké. */
.ref-card--lab .ref-foot { flex-wrap: wrap; row-gap: 14px; }
.lab-odkaz { font-size: 0.98rem; padding: 12px 24px; }

/* Gradient na tlačítkách nedosahoval k okraji: obrázek pozadí se kreslí od
   VNITŘNÍ hrany (background-origin: padding-box) a v 1px rámečku se opakoval,
   takže na krajích svítil ustřižený proužek. Kreslíme ho od vnější hrany. */
.btn,
.ref-switch .ref-tab,
.theme-toggle,
.btn:hover, .btn:focus-visible,
.btn-primary:hover, .btn-ghost:hover,
.btn-light:hover, .btn-outline-light:hover,
.ref-switch .ref-tab:hover, .ref-switch .ref-tab.active,
.theme-toggle:hover {
  /* Musí být i u stavů hover — `background: var(--grad)` je zkrácený zápis
     a ten obě vlastnosti resetuje zpátky na výchozí hodnoty. */
  background-origin: border-box;
  background-repeat: no-repeat;
}

#tabKobyla > * { position: relative; z-index: 1; }

/* Nápis Amazing LAB je široký a nízký — v pásu potřebuje vlastní míru. */
.pl-amazinglab img { max-height: 26px; max-width: 230px; }

/* Šev nad výzvou „Pojďme do toho“: pruh měl vlastní NEPRŮHLEDNÉ pozadí, které
   během 54 px nasadilo plnou tmavou barvu a ostře uťalo barevné záře stránky.
   V tmavém režimu je pozadí stránky stejně tmavé, takže pruhu stačí jen barevné
   akcenty a přechod je plynulý. Světlý režim si tmavý pruh ponechává — bílý
   text na něm musí mít pod sebou plnou tmavou plochu. */
[data-theme="dark"] .cta-band {
  background:
    radial-gradient(55% 90% at 0% 100%, rgba(236, 0, 140, 0.22), transparent 62%),
    radial-gradient(50% 90% at 100% 100%, rgba(34, 211, 238, 0.18), transparent 62%);
}

/* Tlačítko „Kovářova kobyLAB": na mobilu má být každé slovo na svém řádku.
   Zlom je pevný (<br>), ať nezáleží na šířce písma, a „koby" s logem drží
   pohromadě — jinak by se logo mohlo utrhnout na vlastní řádek. */
.lab-br { display: none; }
.lab-slovo { white-space: nowrap; }
@media (max-width: 600px) {
  .lab-br { display: block; }
  .ref-switch { flex-wrap: wrap; justify-content: center; }
  .ref-switch .ref-tab--lab { line-height: 1.3; }
}

/* Karty LABu v referencích: patička se musí zalomit, jinak se dlouhý popisek
   pere s tlačítkem. Karta s Instagramem nemá náhled, takže ji nenecháme
   roztáhnout do výšky sousedů — jinak pod textem zeje prázdno. */
.ref-card--lab-ref .ref-foot { flex-wrap: wrap; row-gap: 14px; }
/* Karta Instagramu má stejný rámeček jako ostatní, jen místo screenshotu
   nese značku — IG profil nejde nasnímat (přihlašovací stěna). Maska, ne
   obrázek, aby logo drželo barvu textu ve světlém i tmavém režimu. */
.ref-znacka-logo {
  width: 64%;
  aspect-ratio: 7.979;
  background: var(--text);
  -webkit-mask: url("../partner-amazinglab.png") no-repeat center / contain;
  mask: url("../partner-amazinglab.png") no-repeat center / contain;
  opacity: 0.92;
}

/* Náhled u Instagramu má být na černé — logo tedy bílé v obou režimech. */
.ref-card--insta .ref-preview-screen { background: #000; }
.ref-card--insta .ref-znacka-logo { background: #fff; opacity: 1; }

/* Dvě tlačítka v patičce dlaždice kobyLAB: web je hlavní, Instagram druhý.
   Vlastní obal, ať je mezi nimi stálá mezera a na úzkém displeji se zalomí. */
.lab-akce { display: flex; gap: 10px; flex-wrap: wrap; }

/* Logo je proklik na profil — stejně jako náhledy webů u ostatních referencí. */
.ref-card--insta .ref-preview-odkaz { display: grid; place-items: center; }
.ref-card--insta .ref-preview-odkaz::after { content: "Otevřít Instagram ↗"; }

/* Patička karty Instagramu drží v jednom řádku: značka vlevo, tlačítko vedle.
   Plná velikost tlačítka se do šířky sloupce nevešla a zalamovala se pod ni. */
.ref-card--insta .ref-foot { flex-wrap: nowrap; align-items: center; gap: 12px; }
.ref-card--insta .ref-brand { flex: 0 0 auto; }
.ref-card--insta .ref-logo,
.ref-card--insta .ref-role { white-space: nowrap; }
.ref-card--insta .ref-foot .btn {
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 10px 16px;
}

/* Na úzkém displeji se tlačítko dotýkalo okraje karty — zmenšíme ho,
   ať zůstane vedle značky, ale s mezerou. */
@media (max-width: 600px) {
  .ref-card--insta .ref-foot .btn { font-size: 0.8rem; padding: 9px 13px; }
}

/* Tatáž vada jako u tlačítek, jen na dalších místech: prvek má gradient
   NA POZADÍ a zároveň rámeček. Obrázek pozadí se kreslí od vnitřní hrany
   a v rámečku se opakuje, takže na kraji svítí ustřižený proužek jiné barvy.
   `background:` je zkrácený zápis a obě vlastnosti resetuje, proto je musíme
   uvést zvlášť — a i u stavů hover. */
.eyebrow::before,
.nav-links a::after,
.rail-fill,
.hero-trust .dot,
.orb,
.spark,
.step .step-num,
.lh-type,
.lh-type:hover,
.lh-type--star,
.course-icon,
.egg-reveal .egg-code,
.team-av,
.team-cta-go,
.choice input:checked + label,
.form-success .check,
.preloader-bar span {
  background-origin: border-box;
  background-repeat: no-repeat;
}

/* ---------- Světlý režim: spodek stránky ----------
   Výzva „Pojďme do toho“ i patička měly tmavé pozadí a bílý text natvrdo,
   takže ve světlém režimu zůstal spodek webu černý. Tady je přebarvíme
   celé — včetně tlačítek, odkazů a loga, které má v patičce svou variantu. */
[data-theme="light"] .cta-band {
  color: var(--text);
  background:
    radial-gradient(55% 90% at 0% 100%, rgba(236, 0, 140, 0.12), transparent 62%),
    radial-gradient(50% 90% at 100% 100%, rgba(34, 211, 238, 0.12), transparent 62%),
    linear-gradient(180deg, transparent 0, transparent 16px, var(--bg-soft) 64px, var(--bg-soft) 100%);
}
[data-theme="light"] .cta-band h2 { color: var(--text); }
[data-theme="light"] .cta-band p { color: var(--text-2); }
[data-theme="light"] .cta-band .btn-light {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-text);
  border-color: transparent;
}
[data-theme="light"] .cta-band .btn-outline-light {
  color: var(--text);
  border-color: var(--border-2);
}
[data-theme="light"] .cta-band .btn-light:hover,
[data-theme="light"] .cta-band .btn-outline-light:hover {
  background: var(--grad);
  background-origin: border-box;
  background-repeat: no-repeat;
  color: #fff;
  border-color: transparent;
}

[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, var(--bg-soft), #ffffff);
  color: var(--muted);
  border-top: 1px solid var(--border);
}
[data-theme="light"] .site-footer .logo-light { display: block; }
[data-theme="light"] .site-footer .logo-dark { display: none; }
[data-theme="light"] .site-footer p { color: var(--text-2); }
[data-theme="light"] .footer-col h4 { color: var(--text); }
[data-theme="light"] .footer-col a { color: var(--text-2); }
[data-theme="light"] .footer-col a:hover { color: var(--text); }
[data-theme="light"] .footer-bottom {
  border-top-color: var(--border);
  color: var(--muted);
}

/* ---------- Přepnutí režimu: najednou, ne na etapy ----------
   Tělo stránky mělo na barvě pozadí přechod 0,4 s, jenže patička a výzva
   nesou GRADIENT a ten se plynule přebarvit nedá — skočil hned. Spodek webu
   tak byl přebarvený dřív než zbytek stránky. Měřeno: po 117 ms bylo pozadí
   teprve v třetině, patička už hotová. Přepínáme proto rázem. */
body { transition: none; }

/* Výzva ve světlém režimu nepotřebuje vlastní plochu — stránka je světlá sama.
   Dřív tu byl přechod do `--bg-soft`, který na bílém pozadí tvořil viditelný
   předěl. Zůstávají jen barevné akcenty, stejně jako v tmavém režimu. */
[data-theme="light"] .cta-band {
  color: var(--text);
  /* Žádné vlastní pozadí ani akcenty: ty byly ukotvené ke SPODNÍMU okraji
     pruhu, takže se na něm ostře usekly a dělaly viditelnou čáru. Stránka
     má vlastní barevné záře, které tudy projdou plynule dál. */
  background: none;
}

/* Patička ve světlém režimu nabíhá z průhledné, takže na ni pozadí stránky
   plynule přejde a nevznikne ostrá hrana. */
[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, transparent 0, var(--bg-soft) 200px, var(--bg-soft) 100%);
  border-top: none;
}

/* Ukázky v Little Heroes: karty mají být stejně velké. Mřížka sice vyrovnala
   výšku figur v rámci řádku, ale rámeček uvnitř (.mock-canvas) se neroztahoval
   a jednotlivé řádky se lišily podle nejdelšího textu. */
.lh-samples { grid-auto-rows: 1fr; }
.lh-samples .mock { display: flex; flex-direction: column; }
.lh-samples .mock-canvas { flex: 1 1 auto; }

/* ---------- Úpravy podle reportu z 11. 10. 2026 ----------
   Plocha s iniciálami v Crew byla na výšku (3:4) jako prostor pro fotku.
   Fotky zatím nebudou, tak ať nezabírá půl dlaždice. */
.crew-photo { aspect-ratio: 16 / 10; }
.crew-ph { font-size: 2.1rem; }

/* Role u Tatiany se lámala na dva řádky a rozhodila text oproti ostatním
   dlaždicím. Drobně užší prostrkání a menší písmo ji srovná na jeden řádek. */
.crew-role {
  white-space: nowrap;
  font-size: 0.69rem;
  letter-spacing: 0.07em;
}

/* Úvod záložky Úspěchy — zbylé dvě záložky svůj text měly, tahle ne. */
.uspechy-uvod { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.uspechy-uvod h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.uspechy-uvod p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Náhled u M2 Safe: zakázkou byl NÁZEV, tak ho ukážeme jako nápis —
   screenshot webu neexistuje a vymýšlet si ho nebudeme. */
.ref-napis {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  background-origin: border-box;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ref-napis em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

/* M2 Safe v pásu značek: logo neexistuje, protože naší zakázkou byl NÁZEV.
   Ukazujeme ho proto jako nápis — v písmu webu, ve stejné výšce jako loga. */
.partner-nazev {
  /* Bez rámečku a podkladu — stejně jako loga, která si kartu vypínají
     vlastní třídou. Barva jako text webu: v tmavém režimu bílá,
     ve světlém tmavá, aby nápis fungoval stejně jako okolní loga. */
  padding: 0 34px;
  min-width: auto;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.partner-nazev:hover { border: none; background: transparent; }

/* Logo Heroes v hlavičce bylo malé vůči výšce lišty (45 z 78 px). */
.brand img { height: 56px; }

/* Karta Instagramu: ikona nad nápisem, ať je na první pohled jasné,
   o jakou síť jde — bez ní se obě karty LABu pletly dohromady. */
.ref-card--insta .ref-preview-odkaz { gap: 18px; align-content: center; }
.ig-ikona {
  display: block;
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
.ig-ikona svg { width: 100%; height: 100%; display: block; }

/* Lišta s „semaforem" dává smysl jen tam, kde je v náhledu SKUTEČNÝ web —
   u fotek (Point S, Brněnec) a značek (M2 Safe, Instagram) by slibovala
   stránku, která tam není. Poznáme je podle toho, že screenshot webu je
   vždy obrázek uvnitř prokliku; fotky prokliku nemají a značky nejsou obrázek.
   Prohlížeč bez podpory `:has()` lištu prostě nezobrazí — nic se nerozbije. */
.ref-preview-bar { display: none; }
.ref-preview:has(.ref-preview-odkaz img) .ref-preview-bar { display: flex; }

/* Náhledy BEZ lišty (fotky, značky) si o její výšku zvětší obraz, takže mají
   stejnou celkovou výšku jako weby v rámečku — ale žádný prázdný pruh.
   Výšku počítáme ze šířky karty (62,5 % = poměr 16:10) plus 30 px za lištu,
   takže to sedí na každé šířce. Poměr nad tím je záloha pro prohlížeče,
   které `cqw` neumí. */
.ref-preview { container-type: inline-size; }
.ref-preview:not(:has(.ref-preview-odkaz img)) .ref-preview-screen {
  aspect-ratio: 16 / 11.55;
}
@supports (height: 10cqw) {
  .ref-preview:not(:has(.ref-preview-odkaz img)) .ref-preview-screen {
    aspect-ratio: auto;
    height: calc(62.5cqw + 30px);
  }
}

/* Všechny karty referencí stejně vysoké, ne jen v rámci řádku. */
.cases-grid { grid-auto-rows: 1fr; }
