:root {
  --bg: #06060c;
  --bg-elevated: #0c0c14;
  --bg-card: #101018;
  --bg-muted: #16161f;
  --text: #f5f5f7;
  --text-muted: #a8a8b8;
  --text-soft: #6e6e7e;
  --border: #1e1e2a;
  --accent: #9b6ff0;
  --accent-2: #d97fce;
  --accent-3: #f4cf9e;
  --gradient: linear-gradient(
    90deg,
    #c4b5fd 0%,
    #9b6ff0 38%,
    #d97fce 72%,
    #f4cf9e 100%
  );
  --gradient-text-primary: linear-gradient(180deg, #ffffff 0%, #c8cad6 55%, #9496a8 100%);
  --gradient-text-accent: linear-gradient(
    90deg,
    #f5f5f7 0%,
    #ebe8fc 6%,
    #d4c8fd 16%,
    #b8a0f0 30%,
    #9b6ff0 46%,
    #b57edc 62%,
    #d97fce 76%,
    #eebf98 90%,
    #f4cf9e 100%
  );
  --gradient-orbit: linear-gradient(
    135deg,
    #9b6ff0 0%,
    #b57edc 28%,
    #d97fce 52%,
    #eebf98 78%,
    #f4cf9e 100%
  );
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --nav-height: 72px;
  --max: 1140px;
  --page-gutter: clamp(1.5rem, 6vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .brand {
    transition: transform 0.28s ease;
  }

  .brand:hover,
  .brand:focus-visible {
    transform: scale(1.06);
  }
}

.brand-logo {
  display: block;
  height: calc(var(--nav-height) - 22px);
  width: auto;
  max-width: min(340px, 52vw);
  object-fit: contain;
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.brand-mark span {
  display: block;
  border-radius: 3px;
  background: var(--gradient);
}

.brand-mark span:nth-child(1) { opacity: 1; }
.brand-mark span:nth-child(2) { opacity: 0.7; }
.brand-mark span:nth-child(3) { opacity: 0.5; }
.brand-mark span:nth-child(4) { opacity: 0.85; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a,
.mobile-nav a {
  position: relative;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav-links a {
  display: inline-block;
  padding-bottom: 0.25rem;
}

.nav-links a::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.mobile-nav a:hover::after,
.mobile-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  min-width: 2.35rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--text);
}

.lang-btn.is-active {
  background: rgba(155, 111, 240, 0.22);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(155, 111, 240, 0.35);
}

.lang-switch--mobile {
  margin: 0.35rem 0 0.85rem;
  width: fit-content;
}

.mobile-nav.open .lang-switch--mobile {
  display: inline-flex;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.menu-btn {
  display: grid;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-nav {
  --nav-beam-accent: #9b6ff0;
  --nav-beam-accent-2: #c4b5fd;
  position: relative;
  display: none;
  padding: 1.5px;
  border: none;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.btn-nav-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.btn-nav-beam::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 8deg,
    color-mix(in srgb, var(--nav-beam-accent-2) 0%, transparent) 10deg,
    var(--nav-beam-accent-2) 16deg,
    var(--nav-beam-accent) 28deg,
    color-mix(in srgb, var(--nav-beam-accent) 0%, transparent) 34deg,
    transparent 36deg,
    transparent 188deg,
    color-mix(in srgb, var(--nav-beam-accent) 0%, transparent) 190deg,
    var(--nav-beam-accent) 198deg,
    var(--nav-beam-accent-2) 210deg,
    color-mix(in srgb, var(--nav-beam-accent-2) 0%, transparent) 216deg,
    transparent 218deg,
    transparent 360deg
  );
  filter: blur(0.4px);
  animation: nav-beam-spin 3.2s linear infinite;
}

.btn-nav-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.65rem 1.25rem;
  border-radius: inherit;
  background: color-mix(in srgb, var(--bg) 88%, #16122a);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-nav:hover,
.btn-nav:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 16px rgba(155, 111, 240, 0.55),
    0 0 36px rgba(155, 111, 240, 0.32),
    0 0 56px rgba(139, 108, 246, 0.18),
    0 10px 32px rgba(139, 108, 246, 0.45);
}

.btn-nav:hover .btn-nav-beam,
.btn-nav:focus-visible .btn-nav-beam {
  opacity: 0;
}

.btn-nav:hover .btn-nav-beam::before,
.btn-nav:focus-visible .btn-nav-beam::before {
  animation-play-state: paused;
}

.btn-nav:hover .btn-nav-inner,
.btn-nav:focus-visible .btn-nav-inner {
  background: color-mix(in srgb, var(--accent) 24%, rgba(18, 14, 32, 0.96));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(155, 111, 240, 0.35),
    0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}

.btn-nav-inline {
  display: inline-flex;
}

@keyframes nav-beam-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-nav-beam::before {
    animation: none;
  }
}

.btn-hero {
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--text);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent),
    0 8px 32px rgba(139, 108, 246, 0.25);
}

.btn-hero img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-hero-orbit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2px;
  border: none;
  background: transparent;
  box-shadow:
    0 6px 24px rgba(155, 111, 240, 0.28),
    0 10px 36px rgba(244, 207, 158, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.btn-hero-orbit:hover {
  box-shadow:
    0 8px 28px rgba(155, 111, 240, 0.42),
    0 14px 44px rgba(244, 207, 158, 0.2);
}

.btn-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.btn-orbit-ring::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    #9b6ff0 0deg,
    #b57edc 70deg,
    #d97fce 140deg,
    #f4cf9e 220deg,
    #c4b5fd 300deg,
    #9b6ff0 360deg
  );
  animation: orbit-spin 1.2s linear infinite;
}

.btn-orbit-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: calc(0.85rem - 2px) calc(1.4rem - 2px);
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(18, 18, 28, 0.98) 0%, rgba(10, 10, 18, 0.98) 100%);
}

@keyframes orbit-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.btn-hero-avatar {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 50%;
  background: var(--gradient-orbit);
  box-shadow: 0 0 12px rgba(155, 111, 240, 0.35);
}

.btn-hero-avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(155, 111, 240, 0.45) 0%, transparent 70%);
  z-index: -1;
}

.btn-hero-avatar img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(8, 9, 16, 0.92);
}

.btn-hero-dark {
  background: var(--gradient);
  color: #0a0a0f;
  border: none;
  box-shadow: 0 8px 32px rgba(139, 108, 246, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 1rem 1.25rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a::after {
  left: 1.25rem;
  width: calc(100% - 2.5rem);
  bottom: 0.75rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(2rem, 7vw, 4.5rem);
  overflow: hidden;
  min-height: min(calc(100vh - var(--nav-height)), 880px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: #06060c;
  /* izoluje screen blend — bez toho Safari někdy vykreslí celou stránku černě */
  isolation: isolate;
}

.hero > .container {
  /* šířka jako dřív, ale vlevo jen ~polovina centrálního odskoku */
  width: min(var(--max), calc(100% - (var(--page-gutter) * 1.5)));
  margin-left: calc(
    (var(--page-gutter) * 0.5) + max(0px, (100vw - var(--max)) / 4)
  );
  margin-right: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

/* Full-bleed video za textem — Luděk vpravo; černé pozadí videa pryč přes screen + měkkou masku */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* screen na wrapperu — NE na stejném prvku jako filter (Safari black screen) */
  mix-blend-mode: screen;
}

.hero-ludek {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  display: block;
  background: transparent;
  mix-blend-mode: normal;
  /* −15 %; pravý okraj videa sedí na hraně obrazovky */
  transform: scale(0.85);
  transform-origin: right center;
  /*
    Příčina obdélníku: neprůhledné charcoal pozadí ve videu + scale(0.85).
    Měkká maska přímo na videu (transformuje se s ním) rozpouští všechny 4 hrany desky.
    Brightness držíme mírnější, ať se charcoal nezvedne pod screen blendem.
  */
  filter: contrast(1.1) brightness(1.12) saturate(1.08);
  -webkit-mask-image: radial-gradient(
    ellipse 58% 72% at 58% 52%,
    #000 34%,
    rgba(0, 0, 0, 0.94) 52%,
    rgba(0, 0, 0, 0.55) 68%,
    rgba(0, 0, 0, 0.16) 82%,
    transparent 96%
  );
  mask-image: radial-gradient(
    ellipse 58% 72% at 58% 52%,
    #000 34%,
    rgba(0, 0, 0, 0.94) 52%,
    rgba(0, 0, 0, 0.55) 68%,
    rgba(0, 0, 0, 0.16) 82%,
    transparent 96%
  );
}

.hero-beam {
  position: absolute;
  top: -30%;
  left: -15%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at 30% 20%, rgba(139, 108, 246, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 36rem;
  /* ať text není vtažený do blend vrstvy videa */
  isolation: isolate;
  /* jemný stín, ať text zůstane čitelný přes jiskry */
  text-shadow: 0 2px 24px rgba(6, 6, 12, 0.85);
}

@media (max-width: 767px) {
  .hero-ludek {
    object-position: 72% 30%;
    opacity: 1;
    /* Menší figura od pravého okraje — celý Luděk za textem, bez useknutí doprava */
    transform: scale(0.7);
    transform-origin: right center;
    filter: contrast(1.08) brightness(1.1) saturate(1.06);
    -webkit-mask-image: radial-gradient(
      ellipse 70% 72% at 62% 40%,
      #000 30%,
      rgba(0, 0, 0, 0.92) 48%,
      rgba(0, 0, 0, 0.5) 66%,
      rgba(0, 0, 0, 0.14) 84%,
      transparent 97%
    );
    mask-image: radial-gradient(
      ellipse 70% 72% at 62% 40%,
      #000 30%,
      rgba(0, 0, 0, 0.92) 48%,
      rgba(0, 0, 0, 0.5) 66%,
      rgba(0, 0, 0, 0.14) 84%,
      transparent 97%
    );
  }

  .hero-copy {
    padding: 1.25rem clamp(1rem, 4vw, 1.35rem);
    margin-inline: 0;
    border-radius: 16px;
    background: linear-gradient(
      180deg,
      rgba(6, 6, 12, 0.82) 0%,
      rgba(6, 6, 12, 0.55) 55%,
      rgba(6, 6, 12, 0.2) 100%
    );
  }
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-title-line {
  display: block;
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-subtitle {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.text-gradient-primary,
.text-gradient-accent {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background-image: var(--gradient-text-primary);
}

.text-gradient-accent {
  background-image: var(--gradient-text-accent);
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.gradient {
  display: inline;
  background-image: var(--gradient-text-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem 2rem;
  margin-top: 2.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn-orbit-ring::before {
    animation: none;
  }
}

.hero-quote {
  margin: 0;
  max-width: 280px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.45s ease-in-out,
    transform 0.45s ease-in-out;
}

.hero-quote.is-leaving {
  opacity: 0;
  transform: translateY(12px);
}

.hero-quote.is-entering {
  opacity: 0;
  transform: translateY(-10px);
}

.hero-quote p,
.hero-quote-text {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--accent-2);
  line-height: 1.5;
}

.hero-quote footer,
.hero-quote-author {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--text-soft);
}

.hero-quote-rotator {
  min-height: 4.25rem;
  max-width: 280px;
  text-align: left;
  align-self: flex-end;
}

/* ── Točící se logo ── */
.container-loga {
  position: relative;
  width: min(440px, 86vw);
  height: min(440px, 86vw);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.tocici-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* PNG verze (footer / Tok hodnoty) — CSS rotace + screen, ať zmizí černé pozadí */
img.tocici-logo,
.tocici-logo--fallback {
  animation: rotaceLoga 15s linear infinite;
  mix-blend-mode: screen;
  background: transparent;
  filter: contrast(1.35) brightness(1.08) saturate(1.06);
  /* měkké okraje — schová zbytek čtvercového pozadí PNG */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 74%);
}

.container-loga,
.why-core-logo.container-loga,
.footer-logo.container-loga {
  background: transparent;
  /* bez isolation — screen musí míchat s pozadím stránky, ne s „černým boxem“ */
}

/* Hero video — pohyb a odlesky jsou ve videu, ne v CSS */
.container-loga--hero {
  width: min(560px, 94vw);
  height: min(560px, 94vw);
  overflow: visible;
}

.logo-video-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.logo-video-stack .tocici-logo--video {
  grid-area: 1 / 1;
  width: 168%;
  height: 168%;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.08);
  opacity: 0;
  transition: opacity 0.45s ease;
  animation: none;
}

.logo-video-stack .tocici-logo--video.is-active {
  opacity: 1;
}

.container-loga--hero .tocici-logo--fallback {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: none;
}

/* Trial hero — Ludek GIF (bez CSS rotace, pohyb je v GIFu) */
.container-loga--ludek {
  width: min(520px, 92vw);
  height: min(520px, 92vw);
}

.tocici-logo--ludek {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: none;
  filter: drop-shadow(0 0 28px rgba(155, 111, 240, 0.35));
}

/* Legacy — ponecháno pro případné starší markup */

@keyframes rotaceLoga {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  img.tocici-logo,
  .tocici-logo--fallback {
    animation: none;
  }

  .logo-video-stack {
    display: none;
  }

  .container-loga--hero .tocici-logo--fallback {
    opacity: 1;
    animation: none;
  }
}

/* Desktop: text vlevo, video full-bleed za ním (Luděk vpravo) */
@media (min-width: 768px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(2rem, 4vw, 4rem);
  }

  .hero-copy {
    flex: 0 1 42rem;
    max-width: min(42rem, 52%);
    margin-left: 0;
    margin-right: auto;
  }

  .hero-ludek {
    object-position: 82% center;
    transform: scale(0.85);
    transform-origin: right center;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    max-width: min(40rem, 50%);
  }

  .container-loga--hero {
    width: min(620px, 42vw);
    height: min(620px, 42vw);
  }

  .hero-ludek {
    object-position: 84% center;
    transform: scale(0.85);
    transform-origin: right center;
  }
}

@media (min-width: 1280px) {
  .hero-copy {
    max-width: min(38rem, 46%);
  }

  .hero-ludek {
    transform: scale(0.85);
    transform-origin: right center;
  }
}

/* ── Sections ── */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-dark {
  background: var(--bg-elevated);
}

.section-cta {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.75rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-text {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Scroll-driven: #vyzvy ── */
#vyzvy.vyzvy-scroll-track {
  position: relative;
  min-height: 300vh;
  background: var(--bg);
  padding: 0;
}

#vyzvy .sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#vyzvy .vyzvy-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
  width: min(90%, 28rem);
  text-align: center;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

#vyzvy .vyzvy-title .gradient {
  display: inline;
  background: var(--gradient-text-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#vyzvy .pain-card {
  --reveal: 0;
  position: absolute;
  z-index: 1;
  width: max-content;
  max-width: 280px;
  padding: 1.1rem 1.35rem;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: var(--reveal);
  transform:
    translateY(calc(60px - (var(--reveal) * 120px)))
    scale(calc(0.96 + (var(--reveal) * 0.04)));
  transform-origin: center center;
  will-change: opacity, transform;
}

#vyzvy .pain-card::before,
#vyzvy .pain-card::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

#vyzvy .pain-card::before {
  top: 0;
  left: 0;
  border-top: 1.5px solid rgba(255, 255, 255, 0.82);
  border-left: 1.5px solid rgba(255, 255, 255, 0.82);
}

#vyzvy .pain-card::after {
  right: 0;
  bottom: 0;
  border-right: 1.5px solid rgba(255, 255, 255, 0.82);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.82);
}

#vyzvy .pain-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

#vyzvy .pain-card-line {
  display: block;
  white-space: nowrap;
}

#vyzvy .card-1 {
  top: 18%;
  left: 12%;
  right: auto;
}

#vyzvy .card-2 {
  top: 32%;
  right: 10%;
  left: auto;
}

#vyzvy .card-3 {
  bottom: 32%;
  left: 15%;
  right: auto;
}

#vyzvy .card-4 {
  bottom: 18%;
  right: 8%;
  left: auto;
}

@media (max-width: 767px) {
  #vyzvy.vyzvy-scroll-track {
    min-height: 260vh;
  }

  #vyzvy .pain-card-line {
    white-space: normal;
  }

  #vyzvy .pain-card {
    max-width: min(280px, calc(100vw - (var(--page-gutter) * 2)));
    text-align: center;
    transform:
      translateX(-50%)
      translateY(calc(60px - (var(--reveal) * 120px)))
      scale(calc(0.96 + (var(--reveal) * 0.04)));
  }

  #vyzvy .card-1,
  #vyzvy .card-2,
  #vyzvy .card-3,
  #vyzvy .card-4 {
    left: 50%;
    right: auto;
  }

  #vyzvy .card-1 { top: 12%; }
  #vyzvy .card-2 { top: 28%; }
  #vyzvy .card-3 { bottom: 28%; }
  #vyzvy .card-4 { bottom: 12%; }
}

/* ── Services (Bento Grid) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Desktop: 3 + 4 — spodní řada užší, aby se vešly Weby na míru */
@media (min-width: 992px) {
  .services-grid > .service-card:nth-child(-n + 3) {
    grid-column: span 4;
  }

  .services-grid > .service-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(14, 16, 28, 0.96) 0%, rgba(8, 9, 16, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease;
  min-width: 0;
}

.service-card[data-service] {
  cursor: pointer;
}

.service-card[data-service]:focus-visible {
  outline: 2px solid color-mix(in srgb, #9b6ff0 80%, white);
  outline-offset: 2px;
  border-color: rgba(155, 111, 240, 0.45);
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.service-card-wide {
  grid-column: span 2;
}

.service-card-full {
  grid-column: span 3;
  flex-direction: row;
}

.services-duo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.services-duo .service-card {
  height: 100%;
}

.service-card-full .service-visual {
  flex: 0 0 min(380px, 42%);
  aspect-ratio: auto;
  min-height: 200px;
}

.service-card-full .service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 2rem;
}

.service-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.service-card-accent {
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(255, 255, 255, 0.08));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent) 12%, rgba(14, 16, 28, 0.96)) 0%,
    rgba(8, 9, 16, 0.98) 100%
  );
}

.service-card-bonus {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent-3) 35%, rgba(255, 255, 255, 0.08));
}

.service-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.service-topics li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: rgba(155, 111, 240, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(230, 230, 240, 0.88);
}

.service-visual--placeholder {
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(155, 111, 240, 0.18), transparent 70%),
    #0a0614;
}

.service-visual--placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.service-card-wide .service-visual {
  aspect-ratio: 21 / 9;
}

.service-visual:has(.service-video source) {
  cursor: pointer;
}

.service-visual img,
.service-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Mírný zoom do středu — vidět víc scény kolem „tabletů“ */
.service-visual .service-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.18);
  transform-origin: center center;
}

.service-card-wide .service-visual .service-video {
  transform: scale(1.12);
  transform-origin: center center;
}

.service-visual .service-video--frame-left {
  object-position: center center;
}

.service-content {
  padding: 1.35rem 1.5rem 1.5rem;
  text-align: left;
}

.service-bonus {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.service-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
}

.service-content p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid > .service-card {
    grid-column: auto;
  }

  .service-card-wide {
    grid-column: span 1;
  }

  .service-card-full {
    grid-column: span 1;
    flex-direction: column;
  }

  .services-duo {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .service-card-full .service-visual {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .service-card-full .service-content {
    padding: 1.35rem 1.5rem 1.5rem;
  }

  .service-card-wide .service-visual {
    aspect-ratio: 16 / 9;
  }
}

/* ── Why collaborate (Tok hodnoty) ── */
.why-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 7vh, 5.5rem);
  background:
    radial-gradient(ellipse 55% 60% at 50% 50%, rgba(88, 48, 150, 0.28), transparent 72%),
    radial-gradient(ellipse 40% 35% at 15% 20%, rgba(110, 80, 200, 0.1), transparent 60%),
    radial-gradient(ellipse 35% 30% at 85% 75%, rgba(70, 40, 130, 0.12), transparent 55%),
    #0a0614;
}

.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 130, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 130, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 15%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.why-section > .container {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - (var(--page-gutter) * 2)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3vh, 2.75rem);
}

.why-section .section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.why-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  width: 100%;
  margin: 0 auto;
  padding: 0.25rem 0 0.5rem;
  flex: 1 1 auto;
}

.why-flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.why-flow-path {
  fill: none;
  stroke: rgba(196, 181, 253, 0.55);
  stroke-width: 1.25;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  filter: drop-shadow(0 0 6px rgba(155, 111, 240, 0.45));
  opacity: 0.55;
  animation: why-flow-pulse 4.5s ease-in-out infinite;
}

.why-flow-path--spine {
  stroke: rgba(196, 181, 253, 0.72);
  opacity: 0.7;
  animation-delay: 0s;
}

.why-flow-path--stem {
  stroke: rgba(196, 181, 253, 0.8);
  stroke-linecap: butt;
  opacity: 0.85;
  animation-delay: 0.35s;
}

.why-flow-path--branch {
  opacity: 0.5;
  animation-delay: 0.7s;
}

.why-flow-path--branch:nth-of-type(3n) {
  animation-delay: 0.95s;
}

.why-flow-path--branch:nth-of-type(4n) {
  animation-delay: 1.2s;
}

.why-flow-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vh, 1.75rem);
}

.why-flow-col--left {
  align-items: flex-end;
}

.why-flow-col--right {
  align-items: flex-start;
}

.why-flow-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.9rem, 1.4vw, 1.25rem);
  width: min(100%, clamp(280px, 28vw, 420px));
  margin: 0;
  padding: clamp(1.1rem, 1.8vw, 1.55rem) clamp(1.15rem, 1.8vw, 1.6rem);
  border-radius: 18px;
  border: 1px solid rgba(168, 130, 255, 0.38);
  background:
    linear-gradient(155deg, rgba(28, 18, 52, 0.92) 0%, rgba(10, 8, 22, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 14px 32px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(155, 111, 240, 0.12);
  backdrop-filter: blur(10px);
  animation: why-flow-drift 5.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.75s);
}

.why-flow-col--left .why-flow-card {
  flex-direction: row-reverse;
  text-align: right;
}

.why-flow-card-body {
  min-width: 0;
}

.why-flow-card h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
}

.why-flow-card p {
  margin: 0;
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  line-height: 1.5;
  color: rgba(230, 230, 240, 0.78);
}

.why-card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #c4b5fd;
  background: radial-gradient(circle at 50% 40%, rgba(155, 111, 240, 0.22), rgba(155, 111, 240, 0.05));
  box-shadow: 0 0 22px rgba(155, 111, 240, 0.3);
  flex-shrink: 0;
}

.why-card-icon:has(img) {
  width: clamp(56px, 5.5vw, 72px);
  height: clamp(56px, 5.5vw, 72px);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 10, 18, 0.65);
  box-shadow:
    0 0 0 1px rgba(168, 130, 255, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.4),
    0 0 26px rgba(168, 130, 255, 0.45);
}

.why-card-icon:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 14px 7px rgba(12, 12, 20, 0.7);
  pointer-events: none;
}

.why-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.why-flow-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.why-core-logo.container-loga {
  position: relative;
  z-index: 1;
  width: clamp(160px, 22vw, 260px);
  height: clamp(160px, 22vw, 260px);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.why-core-logo .tocici-logo {
  width: 100%;
  height: 100%;
}

@keyframes why-flow-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

.why-flow-col--left .why-flow-card:nth-child(odd),
.why-flow-col--right .why-flow-card:nth-child(even) {
  animation-name: why-flow-drift-alt;
}

@keyframes why-flow-drift-alt {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 12px, 0);
  }
}

@keyframes why-flow-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-flow-card,
  .why-flow-path {
    animation: none !important;
  }
}

@media (max-width: 899px) {
  .why-section {
    min-height: auto;
    display: block;
    padding-block: clamp(3rem, 8vw, 5rem);
  }

  .why-section > .container {
    gap: 1.25rem;
  }

  .why-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }

  .why-flow-lines {
    display: none;
  }

  .why-flow-core {
    order: -1;
    padding: 0.75rem 0 1.1rem;
  }

  .why-core-logo.container-loga {
    width: min(180px, 46vw);
    height: min(180px, 46vw);
  }

  .why-flow-col,
  .why-flow-col--left,
  .why-flow-col--right {
    align-items: stretch;
  }

  .why-flow-card,
  .why-flow-col--left .why-flow-card {
    width: 100%;
    flex-direction: row;
    text-align: left;
    animation: none;
  }
}

/* ── Works / Case studies ── */
.works-section {
  position: relative;
  overflow: hidden;
}

.works-timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: start;
  column-gap: 0;
  width: min(100%, 980px);
  margin: 0.5rem auto 0;
  padding: 1rem 0 0.5rem;
}

.works-timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(168, 130, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  z-index: 0;
}

.works-timeline-progress {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    180deg,
    rgba(155, 111, 240, 0.2) 0%,
    #9b6ff0 35%,
    #f4cf9e 100%
  );
  box-shadow: 0 0 18px rgba(155, 111, 240, 0.65);
  transition: height 0.15s linear;
}

.works-timeline-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.works-timeline-col--left {
  grid-column: 1;
  align-items: flex-end;
  padding-right: 0;
}

.works-timeline-col--right {
  grid-column: 3;
  align-items: flex-start;
  padding-left: 0;
  /* Zigzag: pravý sloupec začíná cca v polovině první levé karty */
  padding-top: clamp(5.5rem, 12vw, 7.25rem);
}

.works-timeline-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  width: min(100%, 420px);
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.25, 1, 0.4, 1);
}

.works-timeline-item.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.works-timeline-item--left {
  flex-direction: row;
  justify-content: flex-end;
}

.works-timeline-item--right {
  flex-direction: row;
  justify-content: flex-start;
}

.works-timeline-node {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0a0614;
  border: 2px solid #c4b5fd;
  box-shadow:
    0 0 0 4px rgba(155, 111, 240, 0.12),
    0 0 18px rgba(155, 111, 240, 0.55);
  z-index: 3;
  /* 14px = půl středového gutteru → střed kolečka na timeline */
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.works-timeline-item--left .works-timeline-node {
  transform: translateX(21px) scale(0.6);
  margin: 0;
}

.works-timeline-item--right .works-timeline-node {
  transform: translateX(-21px) scale(0.6);
  margin: 0;
}

.works-timeline-item--left.is-inview .works-timeline-node {
  transform: translateX(21px) scale(1);
  border-color: #f4cf9e;
  box-shadow:
    0 0 0 5px rgba(244, 207, 158, 0.12),
    0 0 22px rgba(155, 111, 240, 0.7);
}

.works-timeline-item--right.is-inview .works-timeline-node {
  transform: translateX(-21px) scale(1);
  border-color: #f4cf9e;
  box-shadow:
    0 0 0 5px rgba(244, 207, 158, 0.12),
    0 0 22px rgba(155, 111, 240, 0.7);
}

.works-timeline-branch {
  flex: 0 0 auto;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, rgba(196, 181, 253, 0.05), rgba(196, 181, 253, 0.75));
  box-shadow: 0 0 10px rgba(155, 111, 240, 0.35);
  transition: width 0.7s cubic-bezier(0.25, 1, 0.4, 1) 0.12s;
  z-index: 1;
  pointer-events: none;
}

.works-timeline-item--left .works-timeline-branch {
  background: linear-gradient(270deg, rgba(196, 181, 253, 0.05), rgba(196, 181, 253, 0.75));
}

.works-timeline-item.is-inview .works-timeline-branch {
  width: clamp(1.25rem, 4vw, 2.75rem);
}

.works-timeline-card {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(168, 130, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(24, 18, 42, 0.95) 0%, rgba(10, 8, 18, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 16px 36px rgba(0, 0, 0, 0.28);
}

a.works-timeline-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

a.works-timeline-card--link:hover,
a.works-timeline-card--link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent) inset,
    0 0 24px rgba(155, 111, 240, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
  outline: none;
}

.works-timeline-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(8, 6, 16, 0.9);
  overflow: hidden;
}

.works-timeline-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Moje práce: sbalené karty — dole úzký peek; hover = rozvinutí na celý náhled (bez zoomu) */
.works-timeline--expandable .works-timeline-card--expandable {
  --works-media-collapsed: 4.5rem;
  --works-media-expanded: 40rem;
  --works-expand-duration: 1.07s;
  --works-expand-ease: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.works-timeline--expandable .works-timeline-card--expandable .works-timeline-body {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(160deg, rgba(24, 18, 42, 0.98) 0%, rgba(10, 8, 18, 0.98) 100%);
}

.works-timeline--expandable .works-timeline-card--expandable .works-timeline-media {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  aspect-ratio: auto;
  background: rgba(8, 6, 16, 0.9);
}

.works-timeline--expandable .works-timeline-card--expandable .works-timeline-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
  object-position: top center;
}

a.works-timeline-media--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.works-timeline-media--link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: -2px;
}

@media (hover: hover) and (pointer: fine) {
  .works-timeline--expandable .works-timeline-card--expandable .works-timeline-media {
    max-height: var(--works-media-collapsed);
    transition: max-height var(--works-expand-duration) var(--works-expand-ease);
  }

  .works-timeline--expandable .works-timeline-card--expandable:hover,
  .works-timeline--expandable .works-timeline-card--expandable:focus-within {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent) inset,
      0 0 24px rgba(155, 111, 240, 0.28),
      0 18px 40px rgba(0, 0, 0, 0.32);
    transform: translateY(-2px);
  }

  .works-timeline--expandable .works-timeline-card--expandable:hover .works-timeline-media,
  .works-timeline--expandable .works-timeline-card--expandable:focus-within .works-timeline-media {
    max-height: var(--works-media-expanded);
  }
}

@media (hover: none), (pointer: coarse) {
  .works-timeline--expandable .works-timeline-card--expandable .works-timeline-media {
    max-height: none;
    height: auto;
    aspect-ratio: auto;
  }
}

.works-timeline-body {
  padding: 1.35rem 1.4rem;
}

.works-timeline-item--left .works-timeline-card {
  text-align: right;
}

.works-timeline-item--right .works-timeline-card {
  text-align: left;
}

.work-index {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(230, 230, 240, 0.5);
}

.works-stat {
  margin: 0 0 0.7rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(230, 230, 240, 0.55);
  text-shadow: none;
}

.works-stat-value {
  display: inline;
  color: inherit;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.works-timeline-card h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.3;
  background: linear-gradient(135deg, #f4cf9e 0%, #c4b5fd 55%, #9b6ff0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.works-timeline-card p {
  margin: 0;
  color: rgba(230, 230, 240, 0.76);
  font-size: 0.94rem;
  line-height: 1.6;
}

.works-timeline-card strong {
  color: #fff;
}

.works-timeline-item--left .work-tags {
  justify-content: flex-end;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.work-tags span {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.74rem;
  color: rgba(230, 230, 240, 0.75);
}

.works-more {
  margin-top: 1.5rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .works-timeline-item,
  .works-timeline-branch,
  .works-timeline-node,
  .works-timeline-progress {
    transition: none !important;
  }

  .works-timeline-item {
    opacity: 1;
    transform: none;
  }

  .works-timeline-item .works-timeline-branch {
    width: clamp(1.25rem, 4vw, 2.75rem);
  }

  .works-timeline-item--left .works-timeline-node,
  .works-timeline-item--left.is-inview .works-timeline-node {
    transform: translateX(21px) scale(1);
  }

  .works-timeline-item--right .works-timeline-node,
  .works-timeline-item--right.is-inview .works-timeline-node {
    transform: translateX(-21px) scale(1);
  }
}

@media (max-width: 767px) {
  .works-timeline {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 1.35rem;
  }

  .works-timeline-track {
    left: 0.35rem;
    transform: none;
  }

  .works-timeline-col {
    display: contents;
  }

  .works-timeline-col--right {
    padding-top: 0;
  }

  .works-timeline-item {
    width: 100%;
    padding-left: 1.6rem;
    margin-top: 1rem;
  }

  .works-timeline-col--left .works-timeline-item:first-child {
    margin-top: 0;
  }

  /* Keep visual order 01–06 on mobile (L1, R1, L2, R2, L3, R3) */
  .works-timeline-col--left .works-timeline-item:nth-child(1) {
    order: 1;
  }
  .works-timeline-col--right .works-timeline-item:nth-child(1) {
    order: 2;
  }
  .works-timeline-col--left .works-timeline-item:nth-child(2) {
    order: 3;
  }
  .works-timeline-col--right .works-timeline-item:nth-child(2) {
    order: 4;
  }
  .works-timeline-col--left .works-timeline-item:nth-child(3) {
    order: 5;
  }
  .works-timeline-col--right .works-timeline-item:nth-child(3) {
    order: 6;
  }

  /* On phones: always show full project image (no hover-peek collapse). */
  .works-timeline--expandable .works-timeline-card--expandable {
    padding-top: 0;
  }

  .works-timeline--expandable .works-timeline-card--expandable .works-timeline-media {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  .works-timeline--expandable .works-timeline-card--expandable .works-timeline-media img {
    width: 100%;
    height: auto;
    object-fit: unset;
    object-position: top center;
  }

  .works-timeline-item--left,
  .works-timeline-item--right {
    flex-direction: row;
    justify-content: flex-start;
  }

  .works-timeline-node,
  .works-timeline-item--left .works-timeline-node,
  .works-timeline-item--right .works-timeline-node,
  .works-timeline-item--left.is-inview .works-timeline-node,
  .works-timeline-item--right.is-inview .works-timeline-node {
    position: absolute;
    left: -0.05rem;
    top: 1.55rem;
    transform: scale(1);
    margin: 0;
  }

  .works-timeline-branch {
    position: absolute;
    left: 0.35rem;
    top: calc(1.55rem + 6px);
    background: linear-gradient(90deg, rgba(196, 181, 253, 0.75), rgba(196, 181, 253, 0.05)) !important;
  }

  .works-timeline-item.is-inview .works-timeline-branch {
    width: 1.15rem;
  }

  .works-timeline-item--left .works-timeline-card,
  .works-timeline-item--right .works-timeline-card {
    width: 100%;
    text-align: left;
  }

  .works-timeline-item--left .work-tags {
    justify-content: flex-start;
  }
}

/* ── Tech stack (fan deck) ── */
.stack-section {
  --stack-card-w: 220px;
  --stack-card-h: 270px;
  --stack-glow-pad: 16px;
  --stack-fan-step: 118px;
  --stack-fan-tilt: 5.2deg;
  --stack-fan-arc: 1.6px;
  overflow: visible;
}

.stack-container {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.stack-header {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.stack-header .section-title {
  margin: 0;
}

.stack-deck {
  position: relative;
  width: min(100%, 1240px);
  height: calc(var(--stack-card-h) + var(--stack-glow-pad) * 2);
  padding: var(--stack-glow-pad) clamp(1rem, 4vw, 2.5rem);
  margin-inline: auto;
  box-sizing: content-box;
  cursor: pointer;
  outline: none;
  overflow: visible;
}

.stack-card {
  --fan-offset: 4;
  --stack-card-radius: 18px;
  position: absolute;
  top: var(--stack-glow-pad);
  left: 50%;
  width: var(--stack-card-w);
  height: var(--stack-card-h);
  margin-left: calc(var(--stack-card-w) / -2);
  border-radius: var(--stack-card-radius);
  background: transparent;
  overflow: visible;
  z-index: calc(20 - var(--card-index));
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--stack-accent, #9b6ff0) 14%, transparent));
  transform:
    translateX(calc(var(--card-index) * 3px))
    rotate(calc(var(--card-index) * -1.8deg))
    translateY(calc(var(--card-index) * -5px));
  transform-origin: bottom center;
  transition:
    transform 0.55s cubic-bezier(0.25, 1, 0.45, 1),
    filter 0.3s ease;
}

.stack-card-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  padding: 1.5px;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.stack-card-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.stack-card-beam::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 8deg,
    color-mix(in srgb, var(--stack-accent-2, var(--stack-accent)) 0%, transparent) 10deg,
    var(--stack-accent-2, var(--stack-accent)) 16deg,
    var(--stack-accent, #9b6ff0) 28deg,
    color-mix(in srgb, var(--stack-accent, #9b6ff0) 0%, transparent) 34deg,
    transparent 36deg,
    transparent 188deg,
    color-mix(in srgb, var(--stack-accent, #9b6ff0) 0%, transparent) 190deg,
    var(--stack-accent, #9b6ff0) 198deg,
    var(--stack-accent-2, var(--stack-accent)) 210deg,
    color-mix(in srgb, var(--stack-accent-2, var(--stack-accent)) 0%, transparent) 216deg,
    transparent 218deg,
    transparent 360deg
  );
  filter: blur(0.4px);
  animation: stack-beam-spin 3.2s linear infinite;
  animation-delay: calc(var(--card-index) * -0.35s);
}

.stack-card-face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 1.1rem 1rem 1.2rem;
  border-radius: calc(var(--stack-card-radius) - 2px);
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, color-mix(in srgb, var(--stack-accent) 16%, transparent) 0%, transparent 72%),
    linear-gradient(165deg, rgba(20, 22, 38, 0.98) 0%, rgba(8, 9, 18, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -24px 48px color-mix(in srgb, var(--stack-accent) 8%, transparent);
  pointer-events: none;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes stack-beam-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.stack-card-index {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
}

.stack-card-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.stack-card-icon--duo {
  gap: 0.85rem;
}

.stack-icon {
  width: min(68px, 34%);
  height: auto;
  color: var(--stack-accent);
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--stack-accent) 28%, transparent))
    drop-shadow(0 0 12px color-mix(in srgb, var(--stack-accent) 12%, transparent));
}

.stack-card-icon--duo .stack-icon {
  width: min(52px, 28%);
}

.stack-icon--cursor,
.stack-icon--claude,
.stack-icon--openai,
.stack-icon--vercel,
.stack-icon--framer {
  color: #ffffff;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.1));
}

.stack-icon--supabase {
  color: #3ecf8e;
  filter:
    drop-shadow(0 0 6px rgba(62, 207, 142, 0.3))
    drop-shadow(0 0 12px rgba(62, 207, 142, 0.12));
}

.stack-icon--python,
.stack-icon--sql {
  color: #3776ab;
  filter:
    drop-shadow(0 0 6px rgba(55, 118, 171, 0.3))
    drop-shadow(0 0 12px rgba(55, 118, 171, 0.12));
}

.stack-icon--wordpress {
  color: #21759b;
  filter:
    drop-shadow(0 0 6px rgba(33, 117, 155, 0.3))
    drop-shadow(0 0 12px rgba(33, 117, 155, 0.12));
}

.stack-icon--divi {
  color: #8c43e6;
  filter:
    drop-shadow(0 0 6px rgba(140, 67, 230, 0.28))
    drop-shadow(0 0 12px rgba(140, 67, 230, 0.12));
}

.stack-icon--canva {
  color: #2b8cee;
  filter:
    drop-shadow(0 0 6px rgba(43, 140, 238, 0.3))
    drop-shadow(0 0 12px rgba(43, 140, 238, 0.12));
}

.stack-plus {
  display: block;
  font-size: clamp(4.5rem, 8vw, 5.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.35),
    0 0 36px rgba(255, 255, 255, 0.12);
}

.stack-card-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 0 10px color-mix(in srgb, var(--stack-accent) 18%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .stack-deck:hover .stack-card,
  .stack-deck:focus-within .stack-card {
    transform:
      translateX(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-step)))
      rotate(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-tilt)))
      translateY(calc((var(--card-index) - var(--fan-offset)) * (var(--card-index) - var(--fan-offset)) * var(--stack-fan-arc)));
  }

  .stack-card:hover,
  .stack-card:focus-visible {
    transform:
      translateX(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-step)))
      rotate(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-tilt)))
      translateY(-22px) !important;
    z-index: 99 !important;
    filter:
      drop-shadow(0 0 12px color-mix(in srgb, var(--stack-accent) 22%, transparent))
      drop-shadow(0 0 8px rgba(244, 207, 158, 0.08));
  }

  .stack-card:hover .stack-card-face,
  .stack-card:focus-visible .stack-card-face {
    transform: scale(1.02);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -28px 56px color-mix(in srgb, var(--stack-accent) 12%, transparent);
  }
}

.stack-deck.is-expanded .stack-card {
  transform:
    translateX(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-step)))
    rotate(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-tilt)))
    translateY(calc((var(--card-index) - var(--fan-offset)) * (var(--card-index) - var(--fan-offset)) * var(--stack-fan-arc)));
}

/* Mobile / tablet: keep the fan (no grid). Tap expands via .is-expanded */
@media (max-width: 1024px) {
  .stack-section {
    --stack-card-w: 150px;
    --stack-card-h: 185px;
    --stack-glow-pad: 12px;
    --stack-fan-step: 34px;
    --stack-fan-tilt: 4deg;
    --stack-fan-arc: 1.2px;
    /* Méně černého místa pod vějířem před další sekcí */
    padding-bottom: clamp(1.1rem, 3.5vw, 1.75rem);
  }

  .stack-header {
    /* Víc vzduchu mezi nadpisem a kartami */
    margin-bottom: clamp(3.5rem, 9vw, 5rem);
  }

  .stack-deck {
    width: min(100%, 100vw);
    max-width: 100%;
    height: calc(var(--stack-card-h) + var(--stack-glow-pad) * 2 + 0.35rem);
    padding: var(--stack-glow-pad) 0.5rem;
    cursor: pointer;
  }

  .stack-deck.is-expanded {
    height: calc(var(--stack-card-h) + var(--stack-glow-pad) * 2 + 4.25rem);
  }

  .stack-card-label {
    font-size: 0.68rem;
  }

  .stack-card-icon--duo {
    gap: 0.45rem;
  }

  .stack-icon {
    width: min(48px, 36%);
  }

  .stack-card-icon--duo .stack-icon {
    width: min(38px, 30%);
  }

  /* Tap a card → lift above the fan so label/icons are readable */
  .stack-deck.is-expanded .stack-card.is-active {
    transform:
      translateX(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-step) * 0.35))
      rotate(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-tilt) * 0.2))
      translateY(-42px) !important;
    z-index: 99 !important;
    filter:
      drop-shadow(0 0 14px color-mix(in srgb, var(--stack-accent) 28%, transparent))
      drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  }

  .stack-deck.is-expanded .stack-card.is-active .stack-card-face {
    transform: scale(1.06);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -28px 56px color-mix(in srgb, var(--stack-accent) 14%, transparent);
  }

  .stack-deck.is-expanded .stack-card:focus-visible {
    transform:
      translateX(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-step)))
      rotate(calc((var(--card-index) - var(--fan-offset)) * var(--stack-fan-tilt)))
      translateY(-14px) !important;
    z-index: 99 !important;
  }
}

@media (max-width: 479px) {
  .stack-section {
    --stack-card-w: 132px;
    --stack-card-h: 162px;
    --stack-fan-step: 28px;
    --stack-fan-tilt: 3.6deg;
    padding-bottom: 1rem;
  }

  .stack-header {
    margin-bottom: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-card {
    transition: none;
  }

  .stack-card-beam::before {
    animation: none;
  }

  .stack-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    width: 100%;
    height: auto;
    padding: var(--stack-glow-pad) 0;
  }

  .stack-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 220 / 270;
    margin-inline: auto;
    margin-left: auto;
    transform: none !important;
  }
}

/* ── Testimonials — marquee cards (3 visible, auto-scroll + drag) ── */
.refs-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(88, 48, 150, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 70%, rgba(244, 207, 158, 0.07), transparent 55%),
    #07060d;
}

.refs-showcase-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  padding:
    calc(var(--nav-height) + 0.75rem)
    0
    2.5rem;
}

.refs-showcase-top {
  flex: 0 0 auto;
  width: min(var(--max), 100%);
  margin-inline: auto;
  margin-bottom: 1.5rem;
  padding-inline: var(--page-gutter);
}

.refs-showcase-top .section-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.refs-marquee {
  --refs-visible: 3;
  --refs-gap: 1.25rem;
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  padding: 1.5rem 0 2rem;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.refs-marquee.is-dragging {
  cursor: grabbing;
}

.refs-marquee-track {
  display: flex;
  align-items: stretch;
  gap: var(--refs-gap);
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.refs-card {
  --refs-card-w: calc(
    (100vw - (var(--refs-visible) - 1) * var(--refs-gap) - 3.5rem) / var(--refs-visible)
  );
  flex: 0 0 var(--refs-card-w);
  width: var(--refs-card-w);
  display: flex;
  flex-direction: column;
  min-height: 24rem;
  margin-top: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background:
    linear-gradient(160deg, rgba(24, 18, 42, 0.98) 0%, rgba(10, 8, 18, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.refs-card-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.4rem 1.25rem;
}

.refs-card-stars {
  display: flex;
  gap: 0.2rem;
}

.refs-card-stars span {
  width: 0.95rem;
  height: 0.95rem;
  background: var(--accent-3);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.refs-card-quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.refs-card-quote p {
  margin: 0;
  color: rgba(230, 230, 240, 0.9);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.refs-card-quote strong {
  color: #fff;
  font-weight: 700;
}

.refs-card-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 5.25rem;
  padding: 1rem 1.15rem;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(168, 130, 255, 0.18);
}

.refs-card-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 16, 0.62) 0%, rgba(8, 6, 16, 0.88) 100%),
    var(--refs-footer-img) center / cover no-repeat;
  z-index: 0;
}

.refs-card-footer--brand::before {
  background:
    linear-gradient(180deg, rgba(8, 6, 16, 0.45) 0%, rgba(8, 6, 16, 0.78) 100%),
    var(--refs-footer-img) center / contain no-repeat;
  background-color: #f7f7f9;
}

.refs-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.refs-card-meta strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.refs-card-meta span {
  color: rgba(244, 207, 158, 0.88);
  font-size: 0.82rem;
  line-height: 1.3;
}

.refs-card-avatar {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, #6b4bb8, #2a1a4a);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 899px) {
  .refs-marquee {
    --refs-visible: 1.25;
    --refs-gap: 0.9rem;
    padding: 0.75rem 0 1.5rem;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  }

  .refs-card {
    min-height: 22rem;
  }

  .refs-showcase-pin {
    /* Bez zbytečné mezery pod tech stackem (nav-height tu na mobilu není potřeba) */
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .refs-marquee {
    --refs-visible: 2.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refs-marquee {
    cursor: default;
  }
}

/* legacy testimonial hooks kept for older breakpoints */
.testimonials-grid {
  display: grid;
  gap: 1rem;
}

.testimonial-card {
  margin: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-card);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

.pricing-grid--duo {
  width: min(100%, 820px);
  margin-inline: auto;
}

.pricing-grid--quad {
  width: 100%;
}

.pricing-grid--quad .price-card,
.pricing-grid--quad .price-card-inner {
  min-height: 100%;
}

.pricing-grid--quad .price-value {
  font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.45rem);
  margin-bottom: 0;
  line-height: 1.25;
}

.pricing-grid--quad .price-options {
  margin-bottom: 1.35rem;
}

.pricing-grid--quad .price-options .price-value {
  margin-bottom: 0.3rem;
}

.pricing-grid--quad .btn,
.pricing-grid--quad .btn-nav-inline {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  justify-content: center;
}

.price-scope {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pricing-packages {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.pricing-packages[hidden] {
  display: none;
}

.pricing-packages-head {
  margin-bottom: 1.25rem;
  text-align: center;
}

.pricing-packages-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pricing-packages-grid {
  display: grid;
  gap: 1.25rem;
}

.price-pack {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-card);
}

.price-pack-featured {
  border-color: color-mix(in srgb, #9b6ff0 45%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, #9b6ff0 18%, transparent);
}

.price-pack-name {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #c4b5fd);
}

.price-pack-price {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-pack-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-pack-for {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.price-pack .price-list {
  margin: 0 0 1.25rem;
  flex: 1;
}

.price-pack .btn {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  justify-content: center;
}

.pricing-budget-note {
  margin: 1.5rem 0 0;
  padding: 0.95rem 1.15rem;
  border: 1px solid color-mix(in srgb, #f0c674 35%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, #f0c674 8%, transparent);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem 1.6rem;
  border: 1px solid color-mix(in srgb, #ffffff 8%, var(--border));
  border-radius: 22px;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, #1a1a24 92%, #9b6ff0) 0%,
    #12121a 48%,
    #0e0e16 100%
  );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.price-card-popular {
  --price-beam-accent: #9b6ff0;
  --price-beam-accent-2: #c4b5fd;
  padding: 1.5px;
  border: none;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 0 28px color-mix(in srgb, #9b6ff0 22%, transparent);
}

.price-card-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.price-card-beam::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 8deg,
    color-mix(in srgb, var(--price-beam-accent-2) 0%, transparent) 10deg,
    var(--price-beam-accent-2) 16deg,
    var(--price-beam-accent) 28deg,
    color-mix(in srgb, var(--price-beam-accent) 0%, transparent) 34deg,
    transparent 36deg,
    transparent 188deg,
    color-mix(in srgb, var(--price-beam-accent) 0%, transparent) 190deg,
    var(--price-beam-accent) 198deg,
    var(--price-beam-accent-2) 210deg,
    color-mix(in srgb, var(--price-beam-accent-2) 0%, transparent) 216deg,
    transparent 218deg,
    transparent 360deg
  );
  filter: blur(0.4px);
  animation: price-beam-spin 3.2s linear infinite;
}

.price-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 20.5px;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, #1a1a24 92%, #9b6ff0) 0%,
    #12121a 48%,
    #0e0e16 100%
  );
}

.price-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.price-card-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding-top: 0.1rem;
}

.price-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  background: color-mix(in srgb, #9b6ff0 14%, #16141f);
  border: 1px solid color-mix(in srgb, #9b6ff0 22%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 6%, transparent);
}

.price-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.price-kicker {
  margin: 0;
  color: #b8a0f0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.25;
}

.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 2rem;
  z-index: 2;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #0a0a0f;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes price-beam-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-card-beam::before {
    animation: none;
  }
}

.price-card h3,
.price-card-heading h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.price-desc {
  margin: 0 0 1.15rem;
  color: #9a9aad;
  font-size: 0.9rem;
  line-height: 1.55;
}

.price-for {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.price-options {
  margin: 0 0 1.5rem;
}

.price-options .price-value {
  margin: 0;
}

.price-value {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price-value--soft {
  font-size: 1.45rem;
  letter-spacing: 0;
  color: var(--text-soft);
}

.price-card .price-value span,
.price-card-inner .price-value span {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.price-alt {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #8b8b9c;
  line-height: 1.45;
}

.price-alt span {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.price-list {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.62rem;
  color: #a8a8b8;
  font-size: 0.9rem;
  flex-grow: 1;
}

.price-list li {
  padding-left: 1.45rem;
  position: relative;
  line-height: 1.4;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-price {
  background: linear-gradient(90deg, #8b5cf6 0%, #c084fc 42%, #f0b89a 100%);
  color: #0a0a0f;
  box-shadow: 0 10px 24px color-mix(in srgb, #9b6ff0 28%, transparent);
}

.btn-price:hover,
.btn-price:focus-visible {
  box-shadow: 0 14px 30px color-mix(in srgb, #9b6ff0 36%, transparent);
}

/* ── About ── */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-solo {
  max-width: 42rem;
}

.about-solo .section-title {
  max-width: 28ch;
}

.about-photo {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1024 / 874;
}

.about-text {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.about-text p {
  margin: 0 0 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text);
}

.contact-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--text);
  font-weight: 600;
}

/* ── FAQ ── */
.accordion {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
  margin-inline: auto;
}

.accordion-item {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
}

.accordion-beam {
  display: none;
}

.accordion-item-inner {
  position: relative;
  z-index: 1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--bg) 88%, #16122a);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.accordion-item:hover,
.accordion-item:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 0 16px rgba(155, 111, 240, 0.55),
    0 0 36px rgba(155, 111, 240, 0.32),
    0 0 56px rgba(139, 108, 246, 0.18),
    0 10px 32px rgba(139, 108, 246, 0.45);
}

.accordion-item:hover .accordion-item-inner,
.accordion-item:focus-within .accordion-item-inner {
  background: color-mix(in srgb, var(--accent) 24%, rgba(18, 14, 32, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(155, 111, 240, 0.35),
    0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .accordion-item:hover,
  .accordion-item:focus-within {
    transform: none;
  }
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.accordion-trigger h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition:
    transform 0.2s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.accordion-item:hover .accordion-icon,
.accordion-item:focus-within .accordion-icon {
  border-color: rgba(155, 111, 240, 0.55);
  color: #c4b5fd;
  box-shadow: 0 0 12px rgba(155, 111, 240, 0.35);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
}

.accordion-content {
  padding: 0 1.35rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Form ── */
.form-card {
  position: relative;
  isolation: isolate;
  max-width: 640px;
  margin-inline: auto;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.form-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: 180%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg 8deg,
    #c4b5fd 12deg,
    #9b6ff0 18deg,
    transparent 24deg 188deg,
    #c4b5fd 192deg,
    #9b6ff0 198deg,
    transparent 204deg 360deg
  );
  filter: blur(0.4px);
  animation: form-beam-spin 3.2s linear infinite;
}

.form-card::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  border-radius: calc(var(--radius) + 2.5px);
  background: var(--bg-card);
}

.form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.form-services {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-services legend {
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.form-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.form-services-toggle:hover,
.form-services-toggle:focus-visible {
  border-color: color-mix(in srgb, #9b6ff0 45%, var(--border));
}

.form-services-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.form-services.is-open .form-services-chevron {
  transform: rotate(-135deg);
}

.form-services:not(.is-open) .form-check:not(:has(input:checked)) {
  display: none;
}

.form-services-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.7rem 1rem;
  border: 1px solid color-mix(in srgb, #9b6ff0 40%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, #9b6ff0 14%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.form-services-done[hidden] {
  display: none;
}

.form-hint {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.form-checkboxes {
  display: grid;
  gap: 0.45rem;
}

.form-checkboxes--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-packs {
  margin: 0.15rem 0 0.35rem;
  padding: 0.75rem 0.85rem 0.85rem;
  border: 1px solid color-mix(in srgb, #9b6ff0 28%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, #9b6ff0 8%, transparent);
  min-width: 0;
}

.form-packs[hidden] {
  display: none;
}

.form-packs legend {
  padding: 0 0.25rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

@media (max-width: 520px) {
  .form-checkboxes--compact {
    grid-template-columns: 1fr;
  }
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.form-check:hover {
  border-color: color-mix(in srgb, #9b6ff0 35%, var(--border));
}

.form-check:has(input:checked) {
  border-color: color-mix(in srgb, #9b6ff0 55%, var(--border));
  background: color-mix(in srgb, #9b6ff0 12%, transparent);
}

.form-check:has(input:focus-visible) {
  outline: 2px solid color-mix(in srgb, #9b6ff0 70%, white);
  outline-offset: 1px;
}

.form-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  flex-shrink: 0;
  accent-color: #9b6ff0;
  cursor: pointer;
}

.form-check span {
  line-height: 1.35;
}

@keyframes form-beam-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-card::before {
    animation: none;
  }
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-soft);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.form-status[data-type="error"] {
  color: #f87171;
}

/* ── Footer ── */
.site-footer {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(10rem, auto) minmax(0, 1fr) minmax(14rem, auto);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-col {
  min-width: 10rem;
}

.footer-brand {
  justify-self: center;
  display: grid;
  place-items: center;
  line-height: 0;
}

.footer-logo.container-loga {
  width: clamp(220px, 28vw, 360px);
  height: clamp(220px, 28vw, 360px);
}

.footer-label {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-list a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--text);
}

.footer-list a:hover::after,
.footer-list a:focus-visible::after {
  transform: scaleX(1);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  justify-self: end;
  text-align: left;
}

.footer-contact-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  gap: 1.25rem 1.75rem;
  align-items: baseline;
}

.footer-contact-row .footer-label {
  margin: 0;
}

.footer-phone {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: var(--accent-3);
}

.footer-email {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--accent-3);
}

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .btn-nav {
    display: inline-flex;
  }

  .menu-btn {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid--duo {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid--quad {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (min-width: 1100px) {
  .pricing-grid--quad {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Mobile & tablet polish ── */
@media (max-width: 479px) {
  :root {
    --nav-height: 64px;
  }

  .brand {
    max-width: calc(100% - 9.5rem);
  }

  .brand-logo {
    height: calc(var(--nav-height) - 22px);
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .btn-hero-orbit {
    width: 100%;
  }

  .btn-orbit-inner {
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
  }

  .hero-quote-rotator,
  .hero-quote {
    max-width: none;
    align-self: stretch;
  }

  .footer-email {
    font-size: clamp(0.88rem, 4.2vw, 1.05rem);
  }

  .form-card,
  .form-grid {
    min-width: 0;
    max-width: 100%;
  }

  .form-checkboxes,
  .form-packs {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 359px) {
  /* Extra-narrow phones: language lives in the hamburger menu. */
  .nav-actions .lang-switch {
    display: none;
  }

  .brand {
    max-width: calc(100% - 3.75rem);
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-packages-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid > .service-card {
    grid-column: auto;
  }

  .service-card-wide,
  .service-card-full {
    grid-column: span 2;
  }

  /* 7 karet / 2 sloupce: poslední = stejná velikost, vycentrovaná */
  .services-grid > .service-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    max-width: calc((100% - 24px) / 2);
    width: 100%;
    justify-self: center;
  }

  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 10rem);
  }

  .brand-logo {
    max-width: 100%;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .testimonial-card,
  .price-card,
  .form-card {
    padding: 1.35rem;
  }

  .price-card-popular {
    padding: 1.5px;
  }

  .price-card-inner {
    padding: 1.35rem;
  }

  .service-content {
    padding: 1.15rem 1.2rem 1.25rem;
  }

  .service-content h3 {
    font-size: 1.05rem;
  }

  .footer-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .footer-brand {
    order: -1;
    align-self: center;
  }

  .footer-logo.container-loga {
    width: min(200px, 58vw);
    height: min(200px, 58vw);
  }

  .footer-contact {
    justify-self: start;
    width: 100%;
  }

  .footer-contact-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .accordion-trigger {
    padding: 1rem 1.1rem;
  }

  .accordion-trigger h3 {
    font-size: 0.98rem;
  }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.22s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.34s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.46s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.58s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.7s; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Case studies page ── */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
}

.page-hero .section-title {
  max-width: 18ch;
}

.case-list {
  display: grid;
  gap: 1.5rem;
}

.case-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-card);
}

.case-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.work-index {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-soft);
}

.case-card .work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.case-card .work-tags span {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  color: rgba(230, 230, 240, 0.7);
}

.case-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.case-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.case-results {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-results li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--text-muted);
}

.case-results li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.case-results strong {
  color: var(--text);
}

@media (min-width: 768px) {
  .case-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

/* ── 404 page ── */
.error-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--nav-height) - 12rem);
  padding: clamp(4rem, 12vw, 7rem) 0;
  overflow: hidden;
}

.error-page-glow {
  position: absolute;
  inset: 10% 15% auto;
  height: min(420px, 55vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 58%),
    radial-gradient(circle at 70% 55%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 55%),
    radial-gradient(circle at 50% 80%, color-mix(in srgb, var(--accent-3) 12%, transparent), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.error-page-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
}

.error-code {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(5.5rem, 18vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  background: var(--gradient-text-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.error-title {
  max-width: 14ch;
}

.error-text {
  margin-top: 1rem;
  max-width: 34rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

@media (max-width: 479px) {
  .error-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .error-actions .btn {
    justify-content: center;
    text-align: center;
  }
}

/* ── Cursor logo trail ── */
.cursor-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform, opacity;
  transition: opacity 0.35s ease;
}

.cursor-logo.is-visible {
  opacity: 0.9;
}

.cursor-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  /* Menší ikona působí pomaleji — kratší doba ≈ stejný dojem jako footer (15s) */
  animation: rotaceLoga 3.75s linear infinite;
  filter: drop-shadow(0 0 10px rgba(155, 111, 240, 0.35));
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-logo {
    display: none !important;
  }
}