/* ============================================================
   VŠE PRO VAŠE HŘIŠTĚ — design system
   Forest green + warm amber, Clash Display + Satoshi
   ============================================================ */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — clean cool white (per original brand) */
  --color-bg: #f7f8fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef1f6;
  --color-surface-offset: #e4e9f1;
  --color-divider: #dfe3ea;
  --color-border: #ccd3dd;

  /* Text */
  --color-text: #16202e;
  --color-text-muted: #536073;
  --color-text-faint: #94a0b0;
  --color-text-inverse: #f7f9fc;

  /* Primary — brand blue (from logo) */
  --color-primary: #2a5aa4;
  --color-primary-hover: #224b8a;
  --color-primary-active: #1a3c70;
  --color-primary-highlight: #dbe6f5;

  /* Accent — brand orange (from logo) */
  --color-accent: #e88a10;
  --color-accent-hover: #ca7607;
  --color-accent-highlight: #fdeed7;

  /* Brand lime — signature CTA color of the original site */
  --color-lime: #e3ff00;
  --color-lime-hover: #d0eb00;
  --color-lime-active: #bdd600;
  --color-on-lime: #131a06;

  /* Brand magenta (from logo) */
  --color-magenta: #a42288;

  /* Deep blue for footers / dark panels */
  --color-deep: #16345c;
  --color-deep-2: #102844;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.3 0.03 260 / 0.07);
  --shadow-md: 0 4px 14px oklch(0.3 0.03 260 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.3 0.03 260 / 0.14);

  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1240px;

  --font-display: 'Clash Display', 'Trebuchet MS', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #10151d;
  --color-surface: #161c26;
  --color-surface-2: #1c2330;
  --color-surface-offset: #212a3a;
  --color-divider: #232c3b;
  --color-border: #38445a;

  --color-text: #d5dae2;
  --color-text-muted: #8f9aab;
  --color-text-faint: #5d6879;
  --color-text-inverse: #131824;

  --color-primary: #7fa9e2;
  --color-primary-hover: #9cbeec;
  --color-primary-active: #b6d0f3;
  --color-primary-highlight: #1e2c44;

  --color-accent: #f0a746;
  --color-accent-hover: #f5bc6e;
  --color-accent-highlight: #3a2c17;

  --color-lime: #dcf51a;
  --color-lime-hover: #e7fb4d;
  --color-lime-active: #f0ff7a;
  --color-on-lime: #131a06;

  --color-magenta: #d566bd;

  --color-deep: #0d1c30;
  --color-deep-2: #091524;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

/* ---------- Layout primitives ---------- */

.container {
  width: min(var(--content-wide), 100% - clamp(var(--space-8), 6vw, var(--space-16)));
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section--tint {
  background: var(--color-surface-2);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-magenta);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-head h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand__mark {
  flex-shrink: 0;
  height: 44px;
  width: auto;
}
.brand__word {
  display: block;
  height: 21px;
  width: auto;
}
[data-theme='dark'] .brand__word {
  filter: brightness(1.45);
}
.footer .brand__mark {
  height: 40px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand__name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
}
.nav a:hover {
  color: var(--color-text);
}
.nav a[aria-current='page'] {
  color: var(--color-primary);
  font-weight: 700;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-switch:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding-inline: 10px;
  border-radius: var(--radius-md);
}
.nav-burger span {
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8em 1.5em;
  border-radius: var(--radius-full);
  min-height: 44px;
}
.btn--primary {
  background: var(--color-lime);
  color: var(--color-on-lime);
}
.btn--primary:hover {
  background: var(--color-lime-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active {
  background: var(--color-lime-active);
  transform: translateY(0);
}
.btn--ghost {
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--light {
  /* Always sits on dark imagery/panels — keep light in both themes */
  background: #f7f9fc;
  color: #16345c;
}
.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height, 72px));
  min-height: calc(100svh - var(--header-height, 72px));
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: #f5f7f0;
}
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, oklch(0.2 0.05 260 / 0.88) 0%, oklch(0.25 0.05 260 / 0.35) 45%, oklch(0.3 0.04 260 / 0.12) 100%);
}
.hero__content {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  max-width: 780px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: oklch(0.38 0.07 260 / 0.55);
  border: 1px solid oklch(1 0 0 / 0.25);
  backdrop-filter: blur(6px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-lime);
}
.hero p {
  font-size: var(--text-base);
  max-width: 56ch;
  color: oklch(0.96 0.01 260 / 0.92);
  margin-bottom: var(--space-8);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-16));
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.25);
  max-width: 640px;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: #fff;
}
.hero__stat span {
  font-size: var(--text-xs);
  color: oklch(0.93 0.02 260 / 0.85);
}

/* ---------- Page hero (interior) ---------- */

.page-hero {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.page-hero h1 {
  font-size: var(--text-2xl);
}
.page-hero p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ---------- Audience strip ---------- */

.audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}
.audience__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-right: var(--space-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}
.chip svg {
  color: var(--color-primary);
}

/* ---------- Service cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Process timeline ---------- */

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-5);
}
.process__step {
  counter-increment: step;
  position: relative;
  padding-top: var(--space-6);
}
.process__step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}
.process__step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: var(--space-5);
  height: 2px;
  background: var(--color-divider);
}
.process__step:last-child::after {
  right: 0;
}
.process__step h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.process__step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Category cards ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  isolation: isolate;
  background: var(--color-surface-offset);
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.2 0.05 260 / 0.82), transparent 55%);
}
.cat-card:hover img {
  transform: scale(1.045);
}
.cat-card__label {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}
.cat-card__label h3 {
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 700;
}
.cat-card__label span {
  display: block;
  color: oklch(0.92 0.02 260 / 0.85);
  font-size: var(--text-xs);
  font-weight: 500;
  margin-top: 2px;
}
.cat-card__arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.16);
  border: 1px solid oklch(1 0 0 / 0.3);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background var(--transition-interactive);
}
.cat-card:hover .cat-card__arrow {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------- Full-bleed break ---------- */

.bleed {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f5f7f0;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32));
}
.bleed__media,
.bleed__media img,
.bleed__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.bleed::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: oklch(0.22 0.06 260 / 0.62);
}
.bleed blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  max-width: 22ch;
  line-height: 1.25;
}
.bleed cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  margin-top: var(--space-6);
  color: oklch(0.93 0.02 260 / 0.85);
}

/* ---------- Feature split ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.split--reverse > .split__media {
  order: 2;
}
.split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__media img,
.split__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split__media video,
.hero__video {
  pointer-events: none;
  -webkit-touch-callout: none;
}
.split__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.split__body > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.checklist {
  display: grid;
  gap: var(--space-3);
}
.split__body .checklist + p {
  margin-top: var(--space-6);
}
.checklist li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
}
.checklist li strong {
  display: block;
}
.checklist li span {
  color: var(--color-text-muted);
}
.checklist svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

/* ---------- Reference gallery ---------- */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.ref-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ref-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ref-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ref-card__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.ref-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.ref-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.ref-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-6);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-deep);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: oklch(0.55 0.12 260 / 0.25);
  filter: blur(10px);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  color: #fff;
}
.cta-band p {
  color: oklch(0.9 0.02 260 / 0.85);
  font-size: var(--text-sm);
}
.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  position: relative;
}
.cta-band__phone {
  font-size: var(--text-sm);
  color: oklch(0.9 0.02 260 / 0.85);
}
.cta-band__phone a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.cta-band__phone a:hover {
  color: var(--color-lime);
}

/* ---------- Team / contact cards ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.person-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.person-card__initials {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.person-card__puzzle {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 2px 4px rgba(22, 52, 92, 0.18));
  transition: transform 0.3s ease;
}
.person-card:hover .person-card__puzzle {
  transform: rotate(-8deg) scale(1.08);
}
.map-panel__puzzle {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 1px 3px rgba(22, 52, 92, 0.15));
}
.person-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
}
.person-card__role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.person-card__region {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.person-card__links {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.person-card__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}
.person-card__links a:hover {
  color: var(--color-primary);
}
.person-card__links svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Contact form ---------- */

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.form-field {
  display: grid;
  gap: var(--space-2);
}
.form-field--full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: var(--text-sm);
  font-weight: 700;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--text-sm);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.18);
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.form-success {
  display: none;
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}
.form-success.is-visible {
  display: block;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--color-deep);
  color: oklch(0.88 0.02 260 / 0.85);
  padding-block: clamp(var(--space-16), 7vw, var(--space-24)) var(--space-8);
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
}
.footer a {
  color: inherit;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.footer__brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 34ch;
}
.footer h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer ul {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
/* Časová osa spolupráce */
.timeline {
  --tl-p: 0%;
  position: relative;
  list-style: none;
  margin: var(--space-10) 0 0;
  padding: 0;
  max-width: 760px;
}
.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 8px;
  width: 2px;
  border-radius: 2px;
}
.timeline::before {
  bottom: 8px;
  background: var(--color-border);
}
.timeline::after {
  height: calc(var(--tl-p) - 16px);
  max-height: calc(100% - 16px);
  background: linear-gradient(180deg, var(--color-primary), var(--color-deep));
  transition: height 0.25s linear;
}
.timeline__step {
  position: relative;
  padding: 0 0 var(--space-10) 76px;
}
.timeline__step:last-child {
  padding-bottom: var(--space-2);
}
.timeline__dot {
  position: absolute;
  left: 0;
  top: -2px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.35s;
}
.timeline__step.is-done .timeline__dot {
  background: var(--color-deep);
  border-color: var(--color-deep);
  color: #e3ff00;
  transform: scale(1.06);
}
.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.timeline__meta h3 {
  margin: 0;
}
.timeline__time {
  padding: 0.25em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.timeline__step.is-done .timeline__time {
  background: #e3ff00;
  border-color: #e3ff00;
  color: var(--color-deep);
}
.timeline__step p {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  max-width: 56ch;
}
@media (max-width: 640px) {
  .timeline__step {
    padding-left: 62px;
  }
  .timeline__dot {
    width: 40px;
    height: 40px;
  }
  .timeline::before,
  .timeline::after {
    left: 19px;
  }
}

/* Porovnání před / po */
.ba {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  line-height: 0;
}
.ba img {
  width: 100%;
  height: auto;
  display: block;
}
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba__before img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 12px rgb(0 0 0 / 0.35);
  pointer-events: none;
}
.ba__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.ba__handle span::before {
  content: '‹ ›';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-deep);
  line-height: 1;
  padding-left: 0.15em;
}
.ba__label {
  position: absolute;
  top: var(--space-4);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgb(22 52 92 / 0.75);
  color: #fff;
  line-height: 1.4;
  pointer-events: none;
}
.ba__label--before {
  left: var(--space-4);
}
.ba__label--after {
  right: var(--space-4);
  background: #e3ff00;
  color: var(--color-deep);
}
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: none;
}
.ba__range:focus-visible ~ .ba__handle,
.ba:has(.ba__range:focus-visible) .ba__handle {
  background: #e3ff00;
}
.ba__hint {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgb(10 16 26 / 0.92);
  padding: var(--space-6);
}
.lightbox--open {
  display: flex;
}
.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  border-radius: var(--radius-md, 0.75rem);
  box-shadow: var(--shadow-lg);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgb(255 255 255 / 0.25);
}
.lightbox__close {
  top: var(--space-5);
  right: var(--space-5);
}
.lightbox__nav--prev {
  left: var(--space-5);
}
.lightbox__nav--next {
  right: var(--space-5);
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  padding-bottom: 4px;
}
@media (max-width: 640px) {
  .lightbox {
    padding: var(--space-3);
  }
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
}

/* Srovnání povrchů */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.surface-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: var(--text-sm);
}
.surface-table th,
.surface-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.surface-table thead th {
  background: var(--color-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.surface-table tbody tr:last-child td {
  border-bottom: 0;
}
.surface-table tbody tr:nth-child(even) {
  background: var(--color-surface-2);
}
.surface-table td:nth-child(2) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Karta ke stažení */
.download {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.download__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md, 0.75rem);
  background: var(--color-deep);
  color: #e3ff00;
}
.download__body {
  flex: 1;
}
.download__body p {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.download .btn {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .download {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Animovaná počítadla */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-deep, #16345c);
  color: #fff;
}
.stat {
  display: grid;
  gap: var(--space-2);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: #e3ff00;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: var(--text-sm);
  opacity: 0.75;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-8) var(--space-5);
  }
}

/* Přehled kontrol dle ČSN EN 1176-7 */
.inspect {
  margin-top: var(--space-8);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, oklch(0.9 0.01 260));
}
.inspect__title {
  margin-bottom: var(--space-6);
}
.inspect__rows {
  display: grid;
  gap: var(--space-5);
}
.inspect__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-5);
  align-items: start;
}
.inspect__badge {
  justify-self: start;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: var(--color-deep, #16345c);
  color: #e3ff00;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.inspect__row p {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted, oklch(0.45 0.02 260));
}
.inspect__note {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border, oklch(0.9 0.01 260));
  font-size: var(--text-sm);
}
@media (max-width: 640px) {
  .inspect__row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

.footer__person {
  margin-bottom: var(--space-1);
}
.footer__person span {
  display: block;
  font-size: var(--text-xs);
  color: oklch(0.8 0.02 260 / 0.6);
}
.footer__person a {
  word-break: break-all;
}
.footer__addresses {
  padding-block: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
  font-size: var(--text-sm);
}
.footer__addresses p {
  line-height: 1.7;
}


.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: oklch(0.8 0.02 260 / 0.6);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .grid-3,
  .cat-grid,
  .ref-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8) var(--space-5);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .brand__name {
    font-size: 1rem;
    white-space: nowrap;
  }
  .brand__name span {
    display: none;
  }
  .brand__mark {
    height: 36px;
  }
  .brand__word {
    height: 16px;
    max-width: 38vw;
    object-fit: contain;
    object-position: left center;
  }
  .header__actions {
    gap: var(--space-2);
  }
  .lang-switch {
    height: 28px;
    padding-inline: var(--space-2);
  }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--space-6) var(--space-6);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    z-index: 40;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-divider);
    font-size: var(--text-base);
  }
  .nav a:last-child {
    border-bottom: none;
  }
  .nav-burger {
    display: flex;
  }
  .header .btn--primary {
    display: none;
  }

  .grid-2,
  .grid-3,
  .cat-grid,
  .ref-grid,
  .team-grid,
  .split,
  .form-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }
  .split--reverse > .split__media {
    order: 0;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ---------- Grant cards & FAQ ---------- */

.grant-card__meta {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.grant-card__link a {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.grant-card__link a:hover {
  text-decoration: underline;
}

.faq {
  display: grid;
  gap: var(--space-3);
}
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--text-base);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-primary);
  font-weight: 500;
  transition: transform var(--transition-interactive);
}
.faq details[open] summary::after {
  content: '−';
  background: var(--color-lime);
  color: var(--color-on-lime);
}
.faq details > p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.faq details > p a { color: var(--color-primary); }

/* ---------- Quote cards ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.quote-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.quote-card blockquote {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.65;
}
.quote-card blockquote::before {
  content: '“';
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-magenta);
  margin-bottom: var(--space-2);
}
.quote-card figcaption {
  margin-top: auto;
  font-size: var(--text-sm);
}
.quote-card figcaption strong { display: block; }
.quote-card figcaption span {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* ---------- Regional map ---------- */

.map-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  align-items: center;
}
.cz-map {
  width: 100%;
  height: auto;
}
.cz-map path {
  fill: var(--color-surface-offset);
  stroke: var(--color-bg);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill var(--transition-interactive);
}
.cz-map path:hover,
.cz-map path:focus-visible {
  fill: var(--color-primary-highlight);
  outline: none;
}
.cz-map path.is-active {
  fill: var(--color-lime);
}
.map-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}
.map-panel__hint {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.map-panel__region {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-magenta);
}
.map-panel h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}
.map-panel__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}
.map-panel__links {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
.map-panel__links a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}
.map-panel__links a:hover { color: var(--color-primary); }

/* ---------- Prose (GDPR) ---------- */

.prose h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.prose p + p { margin-top: var(--space-3); }
.prose ul {
  list-style: disc;
  padding-left: 1.2em;
  display: grid;
  gap: var(--space-1);
}
.prose a { color: var(--color-primary); }
.prose strong { color: var(--color-text); }

/* ---------- Cookie bar ---------- */

.cookie-bar {
  position: fixed;
  inset: auto var(--space-4) var(--space-4) var(--space-4);
  z-index: 60;
  max-width: 560px;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.cookie-bar p {
  flex: 1 1 260px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.cookie-bar p a { color: var(--color-primary); }
.cookie-bar__actions {
  display: flex;
  gap: var(--space-2);
}
.cookie-bar .btn {
  min-height: 36px;
  padding: 0.5em 1.1em;
  font-size: var(--text-xs);
}

@media (max-width: 1023px) {
  .quote-grid { grid-template-columns: 1fr; }
  .map-wrap { grid-template-columns: 1fr; }
  .dotace-process { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.process--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .process--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .process--4 { grid-template-columns: 1fr; }
}

.container--narrow {
  width: min(820px, 100% - clamp(var(--space-8), 6vw, var(--space-16)));
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.cz-map path:focus { outline: none; }
.cz-map path:focus-visible {
  stroke: var(--color-primary);
  stroke-width: 2.5;
}

/* ---------- Case studies ---------- */

.study-hero {
  border-radius: var(--radius-xl);
}
.study-hero .ba {
  border-radius: var(--radius-xl);
}
.study-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}
.study-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}
.study-params {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: sticky;
  top: 96px;
}
.study-params h2 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-5);
}
.study-params dl {
  display: grid;
  gap: var(--space-4);
}
.study-params dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-magenta);
}
.study-params dd {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 2px;
}
.study-prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.study-prose h2:first-child { margin-top: 0; }
.study-prose p {
  color: var(--color-text-muted);
  line-height: 1.7;
}
.study-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.study-gallery figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.study-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.study-gallery figure:hover img { transform: scale(1.04); }

.ref-card__more {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.ref-card__more:hover { text-decoration: underline; }
.ref-card figure { overflow: hidden; }
.ref-card figure img { transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.ref-card:hover figure img { transform: scale(1.05); }

/* ---------- Filter bar ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.filter-bar button {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.55em 1.2em;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.filter-bar button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-bar button.is-active {
  background: var(--color-lime);
  border-color: var(--color-lime);
  color: var(--color-on-lime);
}
.ref-card.is-hidden { display: none; }

/* ---------- Form wizard ---------- */

.wizard-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.wizard-progress__step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
}
.wizard-progress__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.wizard-progress__step.is-active { color: var(--color-text); }
.wizard-progress__step.is-active .wizard-progress__dot {
  background: var(--color-lime);
  color: var(--color-on-lime);
}
.wizard-progress__step.is-done .wizard-progress__dot {
  background: var(--color-primary);
  color: #fff;
}
.wizard-progress__line {
  flex: 1;
  height: 2px;
  background: var(--color-divider);
  min-width: 16px;
}
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.wizard-step__title {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.choice-card {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-card span {
  display: block;
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-interactive);
}
.choice-card:hover span { border-color: var(--color-primary); }
.choice-card input:checked + span {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.choice-card input:focus-visible + span {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.wizard-error {
  display: none;
  color: #c02929;
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}
.wizard-error.is-visible { display: block; }

@media (max-width: 767px) {
  .study-layout { grid-template-columns: 1fr; }
  .study-params { position: static; }
  .study-gallery { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .wizard-progress__step span:last-child { display: none; }
  .wizard-progress__step.is-active span:last-child { display: inline; }
}

.wizard-step {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.wizard-step legend {
  padding: 0;
  float: left;
  width: 100%;
}
.wizard-step legend + * { clear: both; }

/* ---------- Dynamic layer: hero video ---------- */

.hero__media {
  top: -16%;
  bottom: 0;
  height: auto;
  will-change: transform;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* Hero entrance — staggered rise on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero__content > :nth-child(1) { animation-delay: 0.05s; }
  .hero__content > :nth-child(2) { animation-delay: 0.15s; }
  .hero__content > :nth-child(3) { animation-delay: 0.25s; }
  .hero__content > :nth-child(4) { animation-delay: 0.35s; }
  .hero__content > :nth-child(5) { animation-delay: 0.45s; }
}
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Page transitions ---------- */

@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: page-out 0.2s cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: page-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Page-hero aurora ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  width: clamp(320px, 40vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}
.page-hero::before {
  background: radial-gradient(circle, oklch(0.72 0.15 250 / 0.5), transparent 65%);
  top: -40%;
  right: 8%;
  animation: aurora-a 14s ease-in-out infinite alternate;
}
.page-hero::after {
  background: radial-gradient(circle, oklch(0.85 0.17 105 / 0.4), transparent 65%);
  bottom: -55%;
  right: 28%;
  animation: aurora-b 18s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, 12%, 0) scale(1.15); }
}
@keyframes aurora-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(10%, -10%, 0) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after { animation: none; }
}

/* ---------- Staggered reveal children ---------- */

.reveal > * {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.is-visible) > * { opacity: 0; transform: translateY(14px); }
  .reveal.is-visible > * { opacity: 1; transform: none; }
  .reveal.is-visible > :nth-child(1) { transition-delay: 0s; }
  .reveal.is-visible > :nth-child(2) { transition-delay: 0.06s; }
  .reveal.is-visible > :nth-child(3) { transition-delay: 0.12s; }
  .reveal.is-visible > :nth-child(4) { transition-delay: 0.18s; }
  .reveal.is-visible > :nth-child(5) { transition-delay: 0.24s; }
  .reveal.is-visible > :nth-child(6) { transition-delay: 0.3s; }
  .reveal.is-visible > :nth-child(n+7) { transition-delay: 0.36s; }
}

/* ---------- Scroll progress (case studies) ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--color-primary), var(--color-lime));
  z-index: 200;
  pointer-events: none;
}

/* ---------- Dotace: stav výzev ---------- */

.grant-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25em 0.85em;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}
.grant-status--closed {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
}
.grant-status--upcoming {
  background: color-mix(in oklab, var(--color-accent) 14%, transparent);
  color: var(--color-accent);
  border: 1px solid color-mix(in oklab, var(--color-accent) 35%, transparent);
}
.grant-status--open {
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  border: 1px solid color-mix(in oklab, var(--color-primary) 30%, transparent);
}

.grant-outlook {
  margin-top: var(--space-8);
  padding: var(--space-7) var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-accent);
}
.grant-outlook h3 {
  margin-bottom: var(--space-3);
}
.grant-outlook p {
  color: var(--color-text-muted);
  max-width: 75ch;
}

/* ---------- Přepínač hudby ---------- */

.audio-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.audio-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.audio-toggle--on {
  color: var(--color-primary);
}

/* ---------- Animace podstránek a mikrointerakce ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Vstupní animace záhlaví podstránek */
  @keyframes heroRise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  .page-hero .eyebrow,
  .study-hero .eyebrow { animation: heroRise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards; }
  .page-hero h1,
  .study-hero h1 { animation: heroRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards; }
  .page-hero p,
  .study-hero p { animation: heroRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s backwards; }

  /* Kaskádové odhalování karet v mřížkách */
  .reveal,
  .reveal > * { transition-delay: var(--reveal-delay, 0ms); }

  /* Animované podtržení nadpisů sekcí */
  .section-head h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    margin-top: var(--space-3);
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
  }
  .section-head.reveal:not(.is-visible) h2::after { transform: scaleX(0); }

  /* Přechody kroků poptávkového formuláře */
  @keyframes stepIn {
    from { opacity: 0; transform: translateX(18px); }
  }
  .wizard-step.is-active { animation: stepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

  /* Plynulé otevírání FAQ */
  @keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
  }
  .faq details[open] > *:not(summary) { animation: faqOpen 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .faq summary::after { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
  .faq details[open] summary::after { transform: rotate(45deg); }

  /* Filtr realizací — naskočení karet */
  @keyframes cardPop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
  }
  .ref-card.card-pop { animation: cardPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards; }

  /* Panel regionální mapy */
  @keyframes panelIn {
    from { opacity: 0; transform: translateY(8px); }
  }
  .map-panel--anim > * { animation: panelIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards; }

  /* Aktivní kraj — jemné pulzování */
  @keyframes regionPulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(42, 90, 164, 0)); }
    50% { filter: drop-shadow(0 0 6px rgba(42, 90, 164, 0.55)); }
  }
  .cz-map path.is-active { animation: regionPulse 2.4s ease-in-out infinite; }

  /* Otevřená dotační výzva — pulzující odznak */
  @keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 35%, transparent); }
    70%, 100% { box-shadow: 0 0 0 9px transparent; }
  }
  .grant-status--open { animation: badgePulse 2.2s ease-out infinite; }

  /* CTA pás — plovoucí záře */
  @keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-70px, 44px) scale(1.18); }
  }
  .cta-band { position: relative; overflow: hidden; }
  .cta-band > * { position: relative; z-index: 1; }
  .cta-band::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(227, 255, 0, 0.16), transparent 70%);
    animation: blobFloat 14s ease-in-out infinite alternate;
    pointer-events: none;
  }

  /* Mikrointerakce tlačítek a karet */
  .btn:active { transform: translateY(1px) scale(0.98); }
  .person-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(22, 52, 92, 0.13);
  }
  .service-card__icon { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
  .service-card:hover .service-card__icon { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
}

.surface-table .surf {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.surface-table .surf img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex: none;
}

/* ---------- Statement (Apple-style) ---------- */

.statement {
  padding-block: clamp(var(--space-24), 16vw, var(--space-32));
}
.statement__text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-size: clamp(1.85rem, 4.6vw, 3.4rem);
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.statement__w {
  opacity: 0.16;
  transition: opacity 0.18s linear;
}
@media (prefers-reduced-motion: reduce) {
  .statement__w { opacity: 1; }
}

.bleed__media video,
.bleed__media img {
  will-change: transform;
  transform-origin: center;
}
