/* ==========================================================================
   Hosting Podbrdy – hlavní styly
   Bez build kroku. Sekce: fonty → tokeny → základ → komponenty → sekce
   → efekty → scroll-driven animace → reduced motion.
   ========================================================================== */

/* --- Fonty (lokálně, kvůli GDPR) ----------------------------------------- */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Animovatelný úhel pro rotující okraj ------------------------------ */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* --- Tokeny ------------------------------------------------------------- */
:root {
  /* Paleta */
  --ink: #0E1A13;
  --forest: #17301F;
  --forest-2: #244A31;
  --moss: #3F6B4A;
  --sage: #9DBF94;
  --sage-light: #E8EFE3;
  --sage-pale: #CFE0C8;
  --paper: #F5F3EE;
  --sand: #E7E0D1;
  --accent: #F0A33A;
  --mist: #C2CDBF;
  --mist-2: #A9B7A5;
  --mist-3: #D8E2D3;

  /* Významové barvy (světlý motiv) */
  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-2: var(--sage-light);
  --surface-3: var(--sand);
  --surface-inset: var(--paper);
  --text: var(--ink);
  --text-2: #3E4A41;
  --text-3: #56615A;
  --text-4: #6A736B;
  --line: #E3DED3;
  --line-2: #D8D2C4;
  --eyebrow: var(--moss);
  --heading-accent: var(--moss);
  --focus: var(--forest);
  --error: #B3261E;
  --spot: rgba(240, 163, 58, 0.13);
  --mock-bg: #FFFFFF;
  --mock-el: #F0EDE5;
  --mock-hero: var(--sage-pale);
  --mock-dot: #D9D3C4;

  /* Rozměry a pohyb */
  --container: 1240px;
  --gutter: 24px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

/* Tmavý motiv („noc v Brdech“) – přepíná jen světlé plochy */
:root[data-theme="dark"] {
  --bg: #0A130E;
  --surface: #112018;
  --surface-2: #163022;
  --surface-3: #1D2B20;
  --surface-inset: #0D1912;
  --text: var(--paper);
  --text-2: #C9D3C6;
  --text-3: #A9B7A5;
  --text-4: #93A291;
  --line: rgba(245, 243, 238, 0.10);
  --line-2: rgba(245, 243, 238, 0.20);
  --eyebrow: var(--sage);
  --heading-accent: var(--sage);
  --focus: var(--accent);
  --error: #FF9C8F;
  --spot: rgba(157, 191, 148, 0.12);
  --mock-bg: #0E1A13;
  --mock-el: #1C3325;
  --mock-hero: #244A31;
  --mock-dot: #2F4A38;
  color-scheme: dark;
}

/* Tmavé plochy (hero, balíčky, patička, tmavé karty) – vždy stejné */
.on-dark {
  --text: var(--paper);
  --text-2: var(--mist);
  --text-3: var(--mist-2);
  --text-4: var(--mist-2);
  --line: rgba(245, 243, 238, 0.14);
  --line-2: rgba(245, 243, 238, 0.28);
  --eyebrow: var(--sage);
  --heading-accent: var(--sage);
  --focus: var(--accent);
  --error: #FF9C8F;
  --spot: rgba(157, 191, 148, 0.16);
  color: var(--text);
}

/* Světlá plocha uvnitř tmavé (doporučený balíček) */
.on-light {
  --text: var(--ink);
  --text-2: #3E4A41;
  --text-3: #56615A;
  --line: #E3DED3;
  --line-2: #D8D2C4;
  --eyebrow: var(--moss);
  --focus: var(--forest);
  color: var(--text);
}

/* --- Základ ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-moss { color: var(--heading-accent); }
.text-muted { color: var(--text-3); }

/* --- Typografie --------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.eyebrow::after {
  content: '';
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform-origin: left center;
}

.h2 {
  margin-top: 14px;
  font-weight: 600;
  font-size: clamp(34px, 3.2vw + 12px, 56px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 13em;
  text-wrap: balance;
}
.h2--narrow { max-width: 14em; }

.h3 {
  font-weight: 600;
  font-size: clamp(24px, 1.2vw + 16px, 32px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 40em;
}

/* --- Tlačítka ----------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  padding: 14px 22px;
  min-height: 48px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.45s var(--ease-out);
}
.btn__label { position: relative; }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover {
  box-shadow: 0 0 0 6px rgba(240, 163, 58, 0.18), 0 14px 44px -6px rgba(240, 163, 58, 0.6);
}
.btn--ghost { color: var(--paper); border-color: rgba(245, 243, 238, 0.28); }
.btn--ghost:hover { background: rgba(245, 243, 238, 0.08); border-color: rgba(245, 243, 238, 0.5); }
.btn--outline { color: var(--text); border-color: rgba(245, 243, 238, 0.4); }
.btn--outline:hover { background: rgba(245, 243, 238, 0.08); border-color: var(--paper); }
.btn--outline-dark { color: var(--text); border-color: var(--line-2); }
.btn--outline-dark:hover { border-color: var(--text); }

.btn--sm { padding: 10px 18px; min-height: 42px; font-size: 15px; }
.btn--lg { padding: 18px 28px; min-height: 62px; font-size: 18px; }
.btn--lg:has(.btn__arrow) { padding: 12px 12px 12px 28px; }
.btn--block { width: 100%; }

.btn__arrow {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out);
}
.btn__arrow svg { stroke-width: 2.4; }
.btn:hover .btn__arrow { transform: scale(1.08) rotate(0.001deg); }
.btn:hover .btn__arrow svg { animation: arrow-swap 0.6s var(--ease-out); }
@keyframes arrow-swap {
  0% { transform: none; }
  45% { transform: translate(160%, -160%); }
  46% { transform: translate(-160%, 160%); }
  100% { transform: none; }
}

/* Magnetické tlačítko – posun nastavuje JS */
[data-magnetic] {
  transform: translate3d(var(--mag-x, 0), var(--mag-y, 0), 0);
  transition: transform 0.6s var(--ease-spring), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.45s var(--ease-out);
}
[data-magnetic].is-magnet { transition: transform 0.15s linear, box-shadow 0.45s var(--ease-out); }
[data-magnetic] .btn__label { transform: translate3d(calc(var(--mag-x, 0) * 0.25), calc(var(--mag-y, 0) * 0.25), 0); transition: transform 0.6s var(--ease-spring); }

/* Odesílání */
.btn__spinner {
  display: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(14, 26, 19, 0.25);
  border-top-color: var(--ink);
  animation: spin-simple 0.8s linear infinite;
}
.is-sending .btn__spinner { display: block; }
.is-sending .form__submit .btn__arrow { display: none; }
@keyframes spin-simple { to { transform: rotate(360deg); } }

/* --- Štítky, tečky ------------------------------------------------------ */
.pill-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-pale);
  border: 1px solid rgba(207, 224, 200, 0.25);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(14, 26, 19, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.dot--live { animation: live-amber 2.2s ease-out infinite; }
@keyframes live-amber {
  0% { box-shadow: 0 0 0 0 rgba(240, 163, 58, 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(240, 163, 58, 0); }
}
.badge {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   Navigace
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(14, 26, 19, 0.5);
  border: 1px solid rgba(245, 243, 238, 0.12);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(245, 243, 238, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: max-width 0.6s var(--ease-out), padding 0.5s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
  --focus: var(--accent);
}
.is-scrolled .nav-pill {
  max-width: 960px;
  padding: 5px 5px 5px 16px;
  background: rgba(14, 26, 19, 0.78);
  box-shadow: 0 16px 50px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(245, 243, 238, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  flex: none;
}
.brand .logo { transition: transform 0.6s var(--ease-spring); }
.brand:hover .logo { transform: translateY(-2px) rotate(-4deg); }
.brand__name { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.is-scrolled .brand__name { font-size: 17px; }

.nav { position: relative; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.nav__link {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--mist-3);
  text-decoration: none;
  transition: color 0.3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--paper); }
.nav__indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 40px;
  width: var(--ind-w, 0);
  border-radius: 999px;
  background: rgba(245, 243, 238, 0.1);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.08);
  transform: translate(var(--ind-x, 0), -50%);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), opacity 0.3s;
  pointer-events: none;
}
.nav__indicator::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  opacity: var(--ind-dot, 0);
  transition: opacity 0.3s;
}
.nav.has-indicator .nav__indicator { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 42px; height: 42px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 243, 238, 0.14);
  background: rgba(245, 243, 238, 0.06);
  color: var(--paper);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s, transform 0.4s var(--ease-spring);
}
.icon-btn:hover { background: rgba(245, 243, 238, 0.14); }

.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle__icon {
  position: absolute;
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--ease-spring), opacity 0.3s;
}
.theme-toggle__icon--sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .theme-toggle__icon--sun { transform: none; opacity: 1; }
[data-theme="dark"] .theme-toggle__icon--moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }

.menu-toggle { display: none; background: var(--paper); color: var(--ink); border: 0; }
.menu-toggle:hover { background: #fff; }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.3s;
}
.menu-toggle__bars i:first-child { top: 1px; }
.menu-toggle__bars i:last-child { top: 9px; }
.menu-open .menu-toggle__bars i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars i:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav, .nav__cta { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px 16px 0; }
  .nav-pill, .is-scrolled .nav-pill { padding: 6px 6px 6px 16px; }
  .brand__name, .is-scrolled .brand__name { font-size: 16px; }
  .brand .logo { width: 26px; height: 26px; }
  .icon-btn { width: 44px; height: 44px; }
}

/* --- Mobilní menu přes celou obrazovku --------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  clip-path: circle(0 at calc(100% - 44px) 40px);
  transition: clip-path 0.75s var(--ease-in-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); }
.mobile-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 104px 20px 0;
  background: radial-gradient(80% 50% at 80% 100%, rgba(240, 163, 58, 0.12), transparent 70%);
}
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list li,
.mobile-menu__foot {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s, transform 0.7s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__list li,
.mobile-menu.is-open .mobile-menu__foot {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.18s + var(--i) * 0.05s);
}
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245, 243, 238, 0.1);
  color: var(--paper);
  text-decoration: none;
}
.mobile-menu__num { font-family: var(--mono); font-size: 13px; color: var(--sage); }
.mobile-menu__label { font-size: clamp(28px, 8vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; }
.mobile-menu__list a:hover .mobile-menu__label { color: var(--accent); }
.mobile-menu__foot { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu__foot .btn { justify-content: space-between; padding: 10px 10px 10px 24px; }
.mobile-menu__contact { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 14px; }
.mobile-menu__contact a { color: var(--mist); text-decoration: none; padding: 6px 0; }
.mobile-menu__ridge { display: block; max-width: none; width: calc(100% + 40px); height: 120px; margin: auto -20px 0; padding-top: 24px; }
.menu-open { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  overflow: hidden;
}
.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: 50% 70%;
}
.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 45% at 70% 50%, rgba(240, 163, 58, 0.2), transparent 65%),
    radial-gradient(70% 50% at 12% 85%, rgba(63, 107, 74, 0.28), transparent 70%),
    linear-gradient(180deg, #0A140E 0%, #0E1A13 45%, #13281B 100%);
}
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1.4s ease;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero__canvas canvas { display: block; width: 100%; height: 100%; }
.hero.has-3d .hero__canvas { opacity: 1; }
.hero.has-3d .hero__fallback { opacity: 0; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 26, 19, 0.88) 0%, rgba(14, 26, 19, 0.6) 40%, rgba(14, 26, 19, 0.05) 78%),
    linear-gradient(180deg, rgba(14, 26, 19, 0.65) 0%, transparent 28%, transparent 62%, rgba(14, 26, 19, 0.55) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: clamp(124px, 17vh, 176px);
}
.hero__title {
  margin-top: 28px;
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12.5em;
}
.hero__title .w { display: inline-block; }
.hero__row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 72px;
}
.hero__lead {
  font-size: clamp(18px, 0.5vw + 15px, 21px);
  line-height: 1.5;
  color: var(--mist);
  max-width: 30em;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Lesk na „pod jednou střechou.“ */
.shine .w { color: var(--sage); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .shine .w {
    background: linear-gradient(100deg, var(--sage) 0%, var(--sage) 38%, #F3F7EF 48%, #FFE2B0 52%, var(--sage) 62%, var(--sage) 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Čítače */
.stats {
  margin-top: auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(207, 224, 200, 0.18);
  position: relative;
  z-index: 2;
}
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid rgba(207, 224, 200, 0.18); }
.stat__num {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: 0.5em; font-weight: 500; color: var(--mist-2); letter-spacing: -0.01em; }
.stat__label {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mist-2);
}

/* Siluety Brd (parallax vrstvy) */
.hero__ridges {
  position: relative;
  z-index: 1;
  height: 200px;
  margin-top: -40px;
  pointer-events: none;
}
.ridge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ridge--back, .ridge--mid { will-change: transform; }

/* Úvodní animace hero (jen CSS, nezávisí na JS) */
.hero__tag, .hero__lead, .hero__ctas, .hero .stats {
  animation: hero-in 1s var(--ease-out) both;
}
.hero__tag { animation-delay: 0.1s; }
.hero__lead { animation-delay: 0.75s; }
.hero__ctas { animation-delay: 0.85s; }
.hero .stats { animation-delay: 1s; }
.hero__title .w {
  animation: word-in 1.1s var(--ease-out) both;
  animation-delay: calc(0.18s + var(--i) * 0.07s);
}
.shine .w {
  animation: word-in 1.1s var(--ease-out) both, shine 7s ease-in-out infinite;
  animation-delay: calc(0.18s + var(--i) * 0.07s), calc(2s + var(--i) * 0.12s);
}
@keyframes hero-in {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes word-in {
  from { opacity: 0; translate: 0 0.45em; filter: blur(14px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
@keyframes shine {
  0%, 55% { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 0; border-bottom: 1px solid rgba(207, 224, 200, 0.18); }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(207, 224, 200, 0.18); }
  .stat:nth-child(n+3) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .hero__content { padding-top: 104px; }
  .hero__title { margin-top: 22px; }
  .hero__row { margin-top: 20px; gap: 28px; }
  .hero__ctas { width: 100%; flex-direction: column; gap: 10px; }
  .hero__ctas .btn { width: 100%; }
  .hero__ctas .btn--accent { justify-content: space-between; padding: 10px 10px 10px 24px; }
  .hero__ctas .btn__arrow { width: 44px; height: 44px; }
  .hero__ctas .btn--ghost { min-height: 54px; padding: 14px 20px; font-size: 17px; }
  .pill-tag { font-size: 11px; padding: 6px 12px; gap: 8px; }
  .stat__num { font-size: 34px; }
  .stat__label { font-size: 11px; }
  .hero__row { margin-bottom: 40px; }
  .hero__ridges { height: 110px; margin-top: -20px; }
  .hero__scrim { background: linear-gradient(180deg, rgba(14, 26, 19, 0.7) 0%, rgba(14, 26, 19, 0.55) 50%, rgba(14, 26, 19, 0.7) 100%); }
  /* Na mobilu rychlejší start (LCP) */
  .hero__title .w, .shine .w { animation-duration: 0.7s; animation-delay: calc(0.05s + var(--i) * 0.04s); }
  .shine .w { animation-delay: calc(0.05s + var(--i) * 0.04s), calc(2s + var(--i) * 0.12s); }
}

/* ==========================================================================
   Sekce – obecně
   ========================================================================== */
.section { position: relative; padding-block: 112px; }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); }
#sluzby { padding-top: 72px; }

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-head__aside { max-width: 24em; color: var(--text-3); }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  #sluzby { padding-top: 32px; }
  .eyebrow { font-size: 12px; }
}

/* Reveal při najetí (IntersectionObserver přidá .is-in) */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in {
  animation: reveal 0.95s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 90ms);
}
@keyframes reveal {
  from { opacity: 0; translate: 0 32px; filter: blur(8px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
.no-anim [data-reveal] { opacity: 1 !important; animation: none !important; }

/* ==========================================================================
   Karty (bento) + tilt + spotlight
   ========================================================================== */
.bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
  will-change: transform;
}
.card--forest { background: var(--forest); }
.card--sage { background: var(--surface-2); }
.card--white { background: var(--surface); border: 1px solid var(--line); }
.card--sand { background: var(--surface-3); }

.card__col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.card__text { color: var(--text-2); }

/* Tilt – rotaci nastavuje JS přes proměnné */
[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
}
[data-tilt].is-tilting {
  transition: transform 0.12s linear, box-shadow 0.5s var(--ease-out);
  box-shadow: 0 30px 60px -28px rgba(14, 26, 19, 0.45);
}
[data-depth] {
  transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px), 0);
  transition: transform 0.6s var(--ease-out);
}
.is-tilting [data-depth] { transition: transform 0.12s linear; }

/* Spotlight – záře pod kurzorem */
[data-spotlight]::before,
[data-spotlight]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
[data-spotlight]::before {
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 62%);
}
[data-spotlight]::after {
  z-index: 3;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 163, 58, 0.75), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
[data-spotlight].is-lit::before,
[data-spotlight].is-lit::after { opacity: 1; }

/* Chipy */
.chips { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 14px;
  border: 1px solid rgba(245, 243, 238, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  transition: border-color 0.3s, background-color 0.3s;
}
.chips li:hover { border-color: var(--sage); background: rgba(157, 191, 148, 0.08); }

/* Hosting: karta s „živým“ terminálem */
.card--hosting { flex-direction: row; flex-wrap: wrap; gap: 32px; }
.term {
  flex: 1 1 280px;
  min-width: 0;
  align-self: center;
  background: var(--ink);
  border: 1px solid rgba(245, 243, 238, 0.1);
  border-radius: var(--radius-md);
  padding: 18px;
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(245, 243, 238, 0.06);
}
.term__head {
  display: flex;
  justify-content: space-between;
  color: var(--mist-2);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 243, 238, 0.1);
}
.term__status { display: inline-flex; align-items: center; gap: 8px; color: var(--sage); }
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  animation: live-sage 2s ease-out infinite;
}
@keyframes live-sage {
  0% { box-shadow: 0 0 0 0 rgba(157, 191, 148, 0.65); opacity: 1; }
  50% { opacity: 0.55; }
  70%, 100% { box-shadow: 0 0 0 8px rgba(157, 191, 148, 0); opacity: 1; }
}
.term__row { display: flex; justify-content: space-between; gap: 12px; }
.term__row span:first-child { color: var(--mist-2); }
.term__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 243, 238, 0.1);
}
.term__bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 2px;
  background: linear-gradient(to top, rgba(157, 191, 148, 0.25), rgba(157, 191, 148, 0.7));
  transform-origin: bottom;
  animation: bar 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.17s);
}
@keyframes bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}
.term__log {
  height: calc(3 * 1.7em);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  border-top: 1px solid rgba(245, 243, 238, 0.1);
  padding-top: 8px;
}
.term__line { line-height: 1.7; white-space: nowrap; overflow: hidden; transition: opacity 0.4s; }
.term__line.is-old { opacity: 0.45; }
.term__prompt { color: var(--accent); }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Weby: mini prohlížeč */
.browser {
  margin-top: auto;
  background: var(--mock-bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(14, 26, 19, 0.06), 0 24px 40px -26px rgba(14, 26, 19, 0.35);
}
.browser__bar { display: flex; align-items: center; gap: 5px; }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--mock-dot); }
.browser__url {
  flex: 1;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--mock-el);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
}
.browser__hero {
  position: relative;
  overflow: hidden;
  height: 58px;
  border-radius: 8px;
  background: var(--mock-hero);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}
.browser__hero span { height: 6px; width: 58%; border-radius: 3px; background: rgba(14, 26, 19, 0.22); }
.browser__hero span + span { width: 34%; background: var(--accent); opacity: 0.9; }
.browser__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 4s ease-in-out infinite 1.5s;
}
@keyframes sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.browser__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.browser__grid i {
  height: 30px;
  border-radius: 6px;
  background: var(--mock-el);
  transition: transform 0.5s var(--ease-spring), background-color 0.3s;
}
.card--web:hover .browser__grid i:nth-child(1) { transform: translateY(-4px); transition-delay: 0s; }
.card--web:hover .browser__grid i:nth-child(2) { transform: translateY(-4px); transition-delay: 0.06s; }
.card--web:hover .browser__grid i:nth-child(3) { transform: translateY(-4px); transition-delay: 0.12s; }
.card--web.is-in .browser__grid i { animation: pop 0.7s var(--ease-spring) both; }
.card--web.is-in .browser__grid i:nth-child(2) { animation-delay: 0.1s; }
.card--web.is-in .browser__grid i:nth-child(3) { animation-delay: 0.2s; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Marketing: dlaždice */
.card--marketing { flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: center; }
.card--marketing .card__col { flex-basis: 380px; }
.tiles {
  flex: 1 1 420px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  position: relative;
  background: var(--surface-inset);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.tile strong { display: block; font-weight: 600; }
.tile span { font-size: 15px; color: var(--text-3); }
.tile::after {
  content: '';
  position: absolute;
  top: 20px; right: 20px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.4s var(--ease-spring);
}
.tile:hover { transform: translateY(-3px); background: var(--surface-2); }
.tile:hover::after { transform: scale(1); }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
}
@media (max-width: 640px) {
  .bento { margin-top: 28px; gap: 12px; }
  .card { padding: 24px; border-radius: 24px; gap: 12px; }
  .card--hosting, .card--marketing { gap: 16px; }
  .term { font-size: 12px; padding: 14px; flex-basis: 100%; }
  .card--hosting .term { order: 1; }
  .card--hosting .card__col { display: contents; }
  .card--hosting .card__eyebrow { order: 0; }
  .card--hosting .h3 { order: 0; }
  .card--hosting .card__text { display: none; }
  .card--hosting .chips { order: 2; margin-top: 0; padding-top: 0; }
  .chips li { font-size: 13px; padding: 5px 10px; }
  .card--web .browser { display: none; }
  .card__text { font-size: 15px; }
  .tiles { gap: 8px; flex-basis: 100%; }
  .tile { padding: 12px 14px; border-radius: var(--radius-sm); }
  .tile strong { font-size: 14px; }
  .tile span { display: none; }
}

/* ==========================================================================
   02 — Jak spolupracujeme: diagram + kroky
   ========================================================================== */
.collab {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}
.collab__title { flex: 1 1 460px; margin: 0; }
.collab__lead { margin-top: 24px; }

.flow { flex: 1 1 520px; margin: 0; }
.flow__inner { display: flex; align-items: center; }
.flow__node {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.flow__node--you { background: var(--surface-inset); border: 1px solid var(--line); }
.flow__node--hub {
  background: var(--ink);
  color: var(--paper);
  animation: hub-ping 3.2s ease-out infinite;
}
:root[data-theme="dark"] .flow__node--hub { background: var(--paper); color: var(--ink); }
.flow__targets { display: flex; flex-direction: column; gap: 8px; }
.flow__node--target {
  height: 44px;
  min-height: 0;
  padding: 0 18px;
  background: var(--surface-2);
  font-weight: 500;
  font-size: 15px;
  animation: target-glow 3.2s ease-out infinite;
}
.flow__link, .flow__fork { flex: none; overflow: visible; display: block; }
.flow__link--h { width: 64px; height: 20px; }
.flow__fork--h { width: 64px; height: 96px; }
.flow__link--v, .flow__fork--v { display: none; }
.flow__base { fill: none; stroke: var(--moss); stroke-width: 1.5; opacity: 0.55; }
:root[data-theme="dark"] .flow__base { stroke: var(--sage); }
.flow__pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.2 3;
  stroke-dashoffset: 0.24;
  filter: drop-shadow(0 0 3px rgba(240, 163, 58, 0.9));
}
.flow__pulse--a { animation: pulse-a 3.2s var(--ease-in-out) infinite; }
.flow__pulse--b { animation: pulse-b 3.2s var(--ease-in-out) infinite; }
@keyframes pulse-a {
  0% { stroke-dashoffset: 0.24; }
  36%, 100% { stroke-dashoffset: -1.04; }
}
@keyframes pulse-b {
  0%, 38% { stroke-dashoffset: 0.24; }
  76%, 100% { stroke-dashoffset: -1.04; }
}
@keyframes hub-ping {
  0%, 33% { box-shadow: 0 0 0 0 rgba(240, 163, 58, 0); }
  38% { box-shadow: 0 0 0 4px rgba(240, 163, 58, 0.5), 0 0 30px rgba(240, 163, 58, 0.35); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(240, 163, 58, 0), 0 0 0 rgba(240, 163, 58, 0); }
}
@keyframes target-glow {
  0%, 72% { box-shadow: 0 0 0 0 rgba(240, 163, 58, 0); }
  77% { box-shadow: 0 0 0 3px rgba(240, 163, 58, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(240, 163, 58, 0); }
}

@media (max-width: 720px) {
  .collab { gap: 24px; }
  .collab__title { flex-basis: 100%; }
  .flow { order: 2; flex-basis: 100%; }
  .collab__lead { margin-top: 16px; }
  .flow__inner {
    display: grid;
    grid-template-columns: 46px auto;
    grid-template-areas: "you you" "l1 ." "hub hub" "fork targets";
    justify-content: start;
  }
  .flow__node--you { grid-area: you; justify-self: start; min-height: 44px; font-size: 15px; padding: 0 18px; }
  .flow__node--hub { grid-area: hub; justify-self: start; min-height: 44px; font-size: 15px; padding: 0 18px; }
  .flow__link--h, .flow__fork--h { display: none; }
  .flow__link--v { display: block; grid-area: l1; width: 20px; height: 36px; margin-left: 10px; }
  .flow__fork--v { display: block; grid-area: fork; width: 36px; height: 96px; margin-left: 10px; }
  .flow__targets { grid-area: targets; }
  .flow__node--target { font-size: 14px; padding: 0 14px; }
}

/* Kroky s linkou kreslenou scrollem */
.steps { position: relative; margin-top: 56px; }
.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 16px;
}
.steps__rail { position: absolute; overflow: visible; pointer-events: none; }
.steps__rail--h { top: 0; left: 0; width: 100%; height: 2px; }
.steps__rail--v { display: none; }
.steps__track { fill: none; stroke: var(--line-2); stroke-width: 2; }
.steps__progress {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.js .steps__progress { stroke-dashoffset: 1; }

.step { position: relative; padding-top: 30px; }
.step__dot {
  position: absolute;
  top: -6px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(240, 163, 58, 0.18), 0 0 18px rgba(240, 163, 58, 0.6);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.6s var(--ease-out), transform 0.6s var(--ease-spring);
}
/* Nezapnutý krok: šedší (kontrast stále ≥ 4.5:1), tečka prázdná */
.js .step:not(.is-on) .step__dot { background: var(--surface); border-color: var(--line-2); box-shadow: none; transform: scale(0.8); }
.step__title, .step__text { transition: color 0.6s ease, translate 0.6s var(--ease-out); }
.js .step:not(.is-on) .step__title { color: var(--text-3); translate: 0 6px; }
.js .step:not(.is-on) .step__text { color: var(--text-3); translate: 0 6px; }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--eyebrow); }
.step__title { margin-top: 10px; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
.step__text { margin-top: 6px; color: var(--text-3); font-size: 16px; }

@media (max-width: 900px) {
  .steps { margin-top: 40px; }
  .steps__list { grid-template-columns: 1fr; gap: 28px; }
  .steps__rail--h { display: none; }
  .steps__rail--v { display: block; top: 0; left: 6px; width: 2px; height: 100%; }
  .step { padding: 0 0 0 40px; }
  .step__dot { top: 4px; }
  .step__title { margin-top: 2px; font-size: 18px; }
  .step__text { font-size: 15px; }
}

/* ==========================================================================
   03 — Proč my
   ========================================================================== */
.why-years { flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.why-years .card__text { max-width: 20em; }
.mega-num { font-size: clamp(80px, 8vw, 120px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.why-years__label { margin-top: 12px; font-weight: 600; font-size: 20px; }
.why-sites { justify-content: flex-end; gap: 4px; }
.big-num { font-size: clamp(44px, 5vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.why-sites__label { margin-top: 10px; font-weight: 600; font-size: 20px; }
.why-sites .card__text { font-size: 16px; }
.reason { padding: 32px; gap: 0; }
.reason__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--heading-accent);
  transition: transform 0.6s var(--ease-spring), background-color 0.3s;
}
.reason:hover .reason__icon { transform: rotate(-8deg) scale(1.08); }
.reason__title { margin-top: 20px; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.reason__text { margin-top: 6px; color: var(--text-3); font-size: 16px; }

@media (max-width: 900px) {
  .bento--why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento--why .span2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento--why { gap: 10px; }
  .why-years { flex-direction: column; align-items: flex-start; gap: 4px; }
  .why-years__label { font-size: 17px; margin-top: 10px; }
  .why-sites, .reason { padding: 20px; }
  .why-sites__label { font-size: 14px; line-height: 1.35; }
  .why-sites .card__text { display: none; }
  .reason__icon { width: 40px; height: 40px; border-radius: 12px; }
  .reason__icon svg { width: 24px; height: 24px; }
  .reason__title { margin-top: 12px; font-size: 15px; line-height: 1.35; }
  .reason__text { font-size: 14px; line-height: 1.45; }
}

/* ==========================================================================
   04 — Balíčky
   ========================================================================== */
.balicky { padding-top: 0; }
.balicky__ridge { display: block; width: 100%; height: 160px; margin-bottom: 32px; }
.pkgs {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.pkg {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  transition: transform 0.7s var(--ease-out);
}
.pkg__inner {
  height: 100%;
  position: relative;
  border: 1px solid rgba(245, 243, 238, 0.16);
  border-radius: inherit;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(245, 243, 238, 0.02);
  transition: box-shadow 0.7s var(--ease-out), border-color 0.4s, background-color 0.4s;
}
.pkg:hover { transform: translateY(-10px); }
.pkg:hover .pkg__inner {
  border-color: rgba(157, 191, 148, 0.4);
  background: rgba(245, 243, 238, 0.04);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.9), 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.pkg__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pkg__name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.pkg__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.pkg__from, .pkg__period { font-size: 15px; color: var(--text-3); }
.pkg__amount { font-size: 52px; font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; }
.pkg__lead { color: var(--text-2); font-size: 16px; }
.pkg__list {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  flex-grow: 1;
}
.pkg__list li { display: flex; gap: 10px; align-items: center; }
.pkg__list svg { flex: none; color: var(--eyebrow); stroke-width: 2.6; }

.pkg__amount { white-space: nowrap; }

/* Přepínač záložek balíčků (Tvorba webu / Provoz a péče) */
.pkg-tabs { margin-top: 48px; }
.pkg-tabs .pkgs { margin-top: 28px; }
.pkg-switch {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(245, 243, 238, 0.05);
  border: 1px solid rgba(245, 243, 238, 0.12);
  box-shadow: inset 0 1px 0 rgba(245, 243, 238, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pkg-switch__ind {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 0);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 226, 176, 0.4) inset, 0 8px 30px -6px rgba(240, 163, 58, 0.65);
  transform: translateX(var(--x, 0));
  opacity: 0;
}
.pkg-switch.is-ready .pkg-switch__ind {
  opacity: 1;
  transition: transform 0.6s var(--ease-spring), width 0.6s var(--ease-spring), opacity 0.3s;
}
.pkg-switch__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--mist-3);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.35s;
}
.pkg-switch__btn small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist-2);
  transition: color 0.35s;
}
.pkg-switch__btn:hover { color: var(--paper); }
.pkg-switch__btn[aria-selected="true"] { color: var(--ink); }
.pkg-switch__btn[aria-selected="true"] small { color: #3E4A41; }
.pkg-switch__btn:focus-visible { outline-offset: -2px; }

/* S JS jen aktivní záložka; bez JS obě pod sebou s nadpisem */
.js .pkgs__panel:not(.is-active) { display: none; }
.js .pkgs__title { display: none; }
html:not(.js) .pkg-switch { display: none; }
.pkgs__title { margin-top: 40px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.pkgs__title small { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--mist-2); }
.pkgs__note {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 16px 16px 24px;
  border: 1px dashed rgba(245, 243, 238, 0.2);
  border-radius: 20px;
  color: var(--mist);
}
.pkgs__note p { max-width: 46em; }
.pkgs__terms { margin-top: 14px; padding-left: 4px; font-size: 14px; color: var(--mist-2); }
.pkgs__terms a {
  color: var(--paper);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  transition: color 0.3s;
}
.pkgs__terms a:hover { color: var(--accent); }
.form__note span { margin: 0 4px; }

@media (max-width: 640px) {
  .pkg-tabs { margin-top: 28px; }
  .pkg-tabs .pkgs { margin-top: 16px; }
  .pkg-switch { display: flex; width: 100%; }
  .pkg-switch__btn { flex: 1; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; font-size: 15px; }
  .pkgs__note { padding: 16px; }
  .pkgs__note .btn { width: 100%; }
}

/* Doporučený balíček: světlá karta + rotující svítící okraj */
.pkg--featured .pkg__inner {
  --text: var(--ink);
  --text-2: #3E4A41;
  --text-3: #56615A;
  --line: #E3DED3;
  --eyebrow: var(--moss);
  --focus: var(--forest);
  color: var(--text);
  background: var(--paper);
  border-color: transparent;
}
.pkg--featured:hover .pkg__inner { background: var(--paper); border-color: transparent; }
.pkg--featured .pkg__name { color: var(--moss); }
.pkg--featured::before,
.pkg--featured::after {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 200deg, var(--accent) 270deg, #FFE2B0 300deg, var(--sage) 330deg, transparent 360deg);
  animation: border-spin 5s linear infinite;
}
.pkg--featured::after {
  inset: -8px;
  filter: blur(22px);
  opacity: 0.55;
}
@keyframes border-spin { to { --angle: 360deg; } }

@media (max-width: 900px) {
  .pkg--featured { order: -1; }
}
@media (max-width: 640px) {
  .balicky__ridge { height: 90px; margin-bottom: 8px; }
  .pkgs { margin-top: 28px; gap: 12px; grid-template-columns: 1fr; }
  .pkg__inner { padding: 24px; gap: 14px; border-radius: 24px; }
  .pkg__amount { font-size: 40px; }
  .pkg__list { padding-top: 14px; gap: 6px; font-size: 15px; }
  .pkg:hover { transform: none; }
}

/* ==========================================================================
   05 — Tým
   ========================================================================== */
.team {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.member__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-3);
  display: grid;
  place-items: center;
}
/* Vrstevnice Brd jako výplň zástupné fotky */
.member__photo::before {
  content: '';
  position: absolute;
  inset: -10%;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%236B5F48' stroke-opacity='.35' stroke-width='.8'%3E%3Cpath d='M20 150c30-40 60-60 90-50s50-30 70-40'/%3E%3Cpath d='M10 165c35-42 70-58 100-48s55-28 80-36'/%3E%3Cpath d='M0 180c40-44 80-56 110-46s60-26 90-32'/%3E%3Cpath d='M40 135c25-36 50-56 75-48s40-28 55-38'/%3E%3Cpath d='M62 118c18-28 36-44 55-38s28-22 38-30'/%3E%3Cpath d='M86 102c10-16 20-26 32-22s16-14 22-18'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
  transition: transform 1.2s var(--ease-out);
}
.member:hover .member__photo::before { transform: scale(1.08) rotate(-2deg); }
.member__placeholder { position: relative; font-family: var(--mono); font-size: 13px; color: #6B5F48; }
:root[data-theme="dark"] .member__placeholder { color: var(--text-3); }
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.member:hover .member__photo img { scale: 1.05; }
.member__cap { padding: 20px 12px 12px; }
.member__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.member__name { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.member__bio { margin-top: 4px; color: var(--text-3); font-size: 16px; }
.tag { font-size: 13px; font-weight: 500; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.tag--dev { background: var(--sage-light); color: var(--forest); }
.tag--marketing { background: #F7E3C4; color: #5A3A0E; }

@media (max-width: 640px) {
  .team { margin-top: 28px; gap: 10px; }
  .member { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 24px; }
  .member__photo { width: 92px; flex: none; border-radius: 16px; }
  .member__placeholder { font-size: 11px; text-align: center; }
  .member__cap { padding: 0; }
  .member__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .member__name { font-size: 18px; }
  .member__bio { font-size: 14px; line-height: 1.4; }
  .tag { font-size: 12px; padding: 3px 9px; order: 2; }
}

/* ==========================================================================
   06 — Reference: marquee + citace
   ========================================================================== */
.marquee {
  margin-top: 48px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__item {
  width: 260px;
  height: 112px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 13px;
}
.marquee__item img { max-width: 160px; max-height: 48px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.4s, opacity 0.4s; }
.marquee__item:hover img { filter: none; opacity: 1; }
.marquee__placeholder { transition: color 0.3s; }
.marquee__item:hover .marquee__placeholder { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

.quotes {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.quote {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-inset);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.quote__text { font-size: 21px; line-height: 1.4; letter-spacing: -0.015em; }
.quote__by { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; }
.quote__avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sage-pale); }

@media (max-width: 640px) {
  .marquee { margin-top: 28px; }
  .marquee__item { width: 180px; height: 80px; font-size: 12px; }
  .quotes { margin-top: 20px; gap: 10px; grid-template-columns: 1fr; }
  .quote { padding: 22px; gap: 18px; border-radius: 24px; }
  .quote__text { font-size: 18px; }
  .quote__by { font-size: 14px; }
  .quote__avatar { width: 34px; height: 34px; }
}

/* ==========================================================================
   07 — Kontakt + formulář
   ========================================================================== */
.kontakt__grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.kontakt__card {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px;
  border-radius: var(--radius-lg);
  background: var(--forest);
}
.kontakt__card .h2 { font-size: clamp(34px, 3vw + 10px, 52px); }
.kontakt__lead { margin-top: 18px; color: var(--text-2); max-width: 24em; }
.kontakt__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  font-size: 18px;
}
.kontakt__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(245, 243, 238, 0.14);
  font-weight: 600;
}
.kontakt__list li:last-child { border-bottom: 1px solid rgba(245, 243, 238, 0.14); }
.kontakt__key {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mist-2);
}
.kontakt__list a,
.site-footer__nav a,
.form__note a,
.prose a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.kontakt__list a:hover,
.site-footer__nav a:hover,
.form__note a:hover,
.prose a:hover { background-size: 100% 1px; }
.form__note a, .prose a { background-size: 100% 1px; }
.form__note a:hover, .prose a:hover { background-size: 0 1px; }
.kontakt__ridge { display: block; max-width: none; width: calc(100% + 88px); height: 110px; margin: auto -44px -44px; padding-top: 32px; }

.form-wrap {
  flex: 1 1 520px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
/* Indeterminate linka při odesílání */
.form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  opacity: 0;
}
.form-wrap.is-sending::before { opacity: 1; animation: loading-bar 1.1s var(--ease-in-out) infinite; }
@keyframes loading-bar { to { transform: translateX(260%); } }

.form {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: opacity 0.5s, filter 0.5s, transform 0.6s var(--ease-out);
}
.is-sending .form { opacity: 0.6; pointer-events: none; }
.is-sent .form { opacity: 0; filter: blur(8px); transform: scale(0.97); visibility: hidden; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 15px; }
.field__opt { color: var(--text-4); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 15px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.3s, background-color 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); opacity: 0.85; }
.field input:hover, .field textarea:hover { border-color: var(--text-4); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(240, 163, 58, 0.35);
  background: var(--surface);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.2); }
.field__error { font-size: 14px; color: var(--error); animation: hero-in 0.4s var(--ease-out) both; }
.field--set { margin: 0; padding: 0; border: 0; }
.field--set legend { padding: 0; margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s, background-color 0.25s, transform 0.4s var(--ease-spring);
}
.check:hover { border-color: var(--text-4); }
.check:active { transform: scale(0.97); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.check__box {
  width: 20px; height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  color: transparent;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.check__box svg { stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.35s var(--ease-out) 0.05s; }
.check input:checked + .check__box { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
:root[data-theme="dark"] .check input:checked + .check__box { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.check:has(input:checked) { background: var(--surface-2); border-color: var(--moss); }
.check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.form__submit { margin-top: 4px; }
.form__alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.25);
  color: var(--error);
  font-size: 15px;
}
.form__note { font-size: 14px; color: var(--text-4); }

/* Úspěch */
.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 44px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.6s 0.15s, transform 0.8s var(--ease-out) 0.15s, visibility 0s 0.75s;
}
.form-success p { color: var(--text-3); max-width: 26em; }
.form-success .btn { margin-top: 10px; }
html:not(.js) [data-form-again] { display: none; }
.is-sent .form-success { opacity: 1; visibility: visible; transform: none; transition-delay: 0.15s, 0.15s, 0s; }
.form-success__icon { width: 84px; height: 84px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form-success__icon circle { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 190; transform: rotate(-90deg); transform-origin: center; }
.form-success__icon path { stroke: var(--text); stroke-width: 4; stroke-dasharray: 50; stroke-dashoffset: 50; }
.is-sent .form-success__icon circle { animation: draw 0.9s var(--ease-out) 0.3s forwards; }
.is-sent .form-success__icon path { animation: draw 0.6s var(--ease-out) 0.9s forwards; }
.is-sent .form-success__icon { animation: glow-pop 1.2s var(--ease-out) 0.9s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow-pop {
  0% { filter: drop-shadow(0 0 0 rgba(240, 163, 58, 0)); }
  40% { filter: drop-shadow(0 0 18px rgba(240, 163, 58, 0.7)); }
  100% { filter: drop-shadow(0 0 0 rgba(240, 163, 58, 0)); }
}

@media (max-width: 640px) {
  .kontakt__card { padding: 28px 24px 0; border-radius: 24px; }
  .kontakt__list { margin-top: 24px; font-size: 15px; }
  .kontakt__list li { padding: 12px 0; gap: 12px; }
  .kontakt__key { font-size: 11px; padding-top: 3px; }
  .kontakt__ridge { width: calc(100% + 48px); height: 64px; margin: 8px -24px 0; padding-top: 0; }
  .kontakt__lead { display: none; }
  .form-wrap { border-radius: 24px; }
  .form { padding: 24px 20px; gap: 16px; }
  .form__row { gap: 16px; }
  .field label, .field legend { font-size: 14px; }
  .field input, .field textarea { font-size: 16px; padding: 14px; border-radius: 12px; }
  .check { font-size: 15px; padding: 8px 14px 8px 10px; }
}

/* ==========================================================================
   Patička s obřím nápisem
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--mist);
}
.site-footer__top {
  padding-top: 72px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  font-size: 16px;
}
.site-footer__claim { max-width: 24em; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__nav a { color: var(--paper); }
.site-footer__meta { font-family: var(--mono); font-size: 13px; color: var(--mist-2); }

.giant {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  padding-inline: var(--gutter);
  overflow: hidden;
  font-weight: 600;
  font-size: clamp(96px, 23vw, 330px);
  line-height: 0.8;
  letter-spacing: -0.07em;
  white-space: nowrap;
  user-select: none;
}
.giant span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(180deg, #2B5539 0%, var(--forest) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(14%);
}
.site-footer__ridge { position: relative; display: block; width: 100%; height: 80px; margin-top: -70px; }

@media (max-width: 640px) {
  .site-footer__top { padding-top: 48px; flex-direction: column; gap: 16px; font-size: 15px; }
  .site-footer__nav { gap: 0 20px; }
  .site-footer__nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer__meta { font-size: 12px; }
  .giant { margin-top: 32px; }
  .site-footer__ridge { height: 44px; margin-top: -34px; }
}

/* ==========================================================================
   Detaily: zrno, kurzor
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.cursor { display: none; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  pointer-events: none;
}
.cursor__ring, .cursor__dot {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor__ring {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border: 1.5px solid rgba(240, 163, 58, 0.85);
  translate: var(--cx, -100px) var(--cy, -100px);
  scale: 0.55;
  transition: scale 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor__dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
  translate: var(--dx, -100px) var(--dy, -100px);
  transition: opacity 0.3s;
}
.cursor.is-hover .cursor__ring { scale: 1; background: rgba(240, 163, 58, 0.12); }
.cursor.is-down .cursor__ring { scale: 0.4; }
.cursor.is-text .cursor__ring, .cursor.is-text .cursor__dot,
.cursor.is-out .cursor__ring, .cursor.is-out .cursor__dot { opacity: 0; }

/* ==========================================================================
   Podstránky: 404, dokument
   ========================================================================== */
.notfound {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}
.notfound .hero__sky { z-index: -1; }
.notfound__inner { padding-block: 140px 220px; }
.notfound__title {
  margin: 12px 0 8px;
  font-weight: 600;
  font-size: clamp(120px, 26vw, 340px);
  line-height: 0.85;
  letter-spacing: -0.07em;
  color: var(--sage);
  animation: word-in 1.2s var(--ease-out) both;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .notfound__title {
    background: linear-gradient(100deg, var(--sage) 30%, #FFE2B0 50%, var(--sage) 70%) 100% 0 / 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: word-in 1.2s var(--ease-out) both, shine 6s ease-in-out 1.5s infinite;
  }
}
.notfound__lead { max-width: 30em; font-size: 20px; color: var(--mist); margin-bottom: 32px; }
.notfound__ridges { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }

.doc__head { position: relative; background: var(--ink); padding-top: 150px; }
.doc__lead { margin-top: 16px; color: var(--mist); max-width: 34em; font-size: 19px; }
.doc__ridge { display: block; width: 100%; height: 120px; margin-top: 40px; }
.prose { padding-block: 48px 112px; }
.prose > * { max-width: 46em; }
.prose h2 { margin: 40px 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.prose p { color: var(--text-2); margin-bottom: 12px; }
.prose .btn { margin-top: 24px; }
.doc__updated { font-family: var(--mono); font-size: 14px; }

/* --- Sekce z redakčního systému: text, výzva k akci ---------------------- */
.section--text { padding-block: 64px; }
.section--text .prose { padding-block: 0; }
.page-sub main > .section--text:last-child { padding-bottom: 112px; }
.prose > .h2 { margin-bottom: 24px; }
.prose__body > * { max-width: 46em; }
.prose__body h2 { margin: 40px 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.prose__body h3 { margin: 28px 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.prose__body h2:first-child, .prose__body h3:first-child { margin-top: 0; }
.prose__body p, .prose__body ul, .prose__body ol { color: var(--text-2); margin-bottom: 12px; }
.prose__body ul, .prose__body ol { padding-left: 1.3em; }
.prose__body li { margin-bottom: 4px; }
.prose__body li::marker { color: var(--accent); }
.prose__body img { border-radius: var(--radius-md); margin: 16px 0; }
.prose__body blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 20px 0; color: var(--text); }
.prose__body a {
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease-out), color 0.3s;
}
.prose__body a:hover { color: var(--heading-accent); }

/* Obsah kapitol (sekce Text) */
.toc__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eyebrow); }
.toc__list { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--line); }
.toc__list a {
  display: flex;
  gap: 10px;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  background: none;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s;
}
.toc__list a:hover { color: var(--text); background: none; }
.toc__list a[aria-current="true"] { color: var(--text); font-weight: 500; border-left-color: var(--accent); }
.toc__num { flex: none; padding-top: 1px; font-family: var(--mono); font-size: 12px; color: var(--eyebrow); }
.toc__mobile {
  margin-bottom: 32px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.toc__mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
}
.toc__mobile summary::-webkit-details-marker { display: none; }
.toc__mobile summary::after {
  content: '';
  width: 8px; height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease-out);
}
.toc__mobile[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.toc__count { margin-left: auto; font-size: 13px; color: var(--text-3); }
.toc__mobile .toc__list { margin-bottom: 4px; }
.toc__desktop { display: none; }
@media (min-width: 1100px) {
  .prose--toc { display: grid; grid-template-columns: 240px minmax(0, 46em); column-gap: 72px; align-items: start; }
  .prose--toc > .h2 { grid-column: 1 / -1; }
  .prose--toc .toc { grid-column: 1; grid-row: span 2; position: sticky; top: 108px; max-height: calc(100vh - 132px); overflow-y: auto; }
  .prose--toc .prose__body { grid-column: 2; }
  .toc__mobile { display: none; }
  .toc__desktop { display: block; }
}

.section--cta { padding-block: 48px 112px; }
.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 56px 128px;
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 90% at 85% 10%, rgba(240, 163, 58, 0.14), transparent 60%), var(--forest);
}
.cta-card__text { max-width: 36em; }
.cta-card .h2 { max-width: 16em; }
.cta-card__lead { margin-top: 16px; color: var(--text-2); font-size: 19px; }
.cta-card .btn { position: relative; z-index: 1; }
.cta-card__ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; max-width: none; z-index: -1; }
@media (max-width: 640px) {
  .cta-card { padding: 32px 24px 96px; border-radius: 24px; }
  .cta-card .btn { width: 100%; justify-content: space-between; }
  .cta-card__ridge { height: 70px; }
}

/* --- Lišta pro přihlášeného správce ------------------------------------- */
.admin-bar {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(14, 26, 19, 0.82);
  border: 1px solid rgba(245, 243, 238, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.5);
  color: var(--paper);
  font-size: 14px;
  --focus: var(--accent);
}
.admin-bar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px rgba(157, 191, 148, 0.25); }
.admin-bar__who { margin-right: 6px; color: var(--mist); }
.admin-bar__link {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.admin-bar__link--ghost { background: rgba(245, 243, 238, 0.08); color: var(--paper); font-weight: 500; }
.admin-bar__link--ghost:hover { background: rgba(245, 243, 238, 0.16); }
@media (max-width: 640px) { .admin-bar__who { display: none; } }

/* ==========================================================================
   Scroll-driven animace (CSS), s JS fallbackem přes proměnné
   ========================================================================== */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Hero: obsah odjíždí a mizí, scéna se zanoří a rozostří */
    .hero__content { animation: hero-content-out linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
    .hero__stage { animation: hero-stage-out linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .ridge--back { animation: ridge-back linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .ridge--mid { animation: ridge-mid linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }

    /* Linka za číslem sekce */
    .eyebrow::after { animation: grow-x linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }

    /* Obří „Podbrdy“ – písmena vyjíždějí postupně */
    .giant span {
      animation: giant-rise linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i) * 7%) entry calc(55% + var(--i) * 6%);
    }

    /* Přechod do balíčků – kopce se lehce zvedají */
    .balicky__ridge { animation: ridge-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }

    /* Fotky týmu – jemné přiblížení */
    .member__photo img { animation: photo-in linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}

@keyframes hero-content-out { to { opacity: 0; transform: translateY(-80px); } }
@keyframes hero-stage-out { to { transform: scale(1.08) translateY(40px); filter: blur(6px); opacity: 0.35; } }
@keyframes ridge-back { to { transform: translateY(70px); } }
@keyframes ridge-mid { to { transform: translateY(30px); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes giant-rise { from { transform: translateY(105%); } to { transform: translateY(14%); } }
@keyframes ridge-rise { from { transform: translateY(30px) scaleY(0.7); transform-origin: bottom; } to { transform: none; transform-origin: bottom; } }
@keyframes photo-in { from { scale: 1.15; } to { scale: 1; } }

/* Fallback bez scroll-driven animací: JS nastavuje --hero-p (0–1) */
@supports not (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .hero__content { opacity: calc(1 - var(--hero-p, 0) * 1.15); transform: translateY(calc(var(--hero-p, 0) * -80px)); }
    .js .hero__stage { transform: scale(calc(1 + var(--hero-p, 0) * 0.08)) translateY(calc(var(--hero-p, 0) * 40px)); opacity: calc(1 - var(--hero-p, 0) * 0.65); }
    .js .ridge--back { transform: translateY(calc(var(--hero-p, 0) * 70px)); }
    .js .ridge--mid { transform: translateY(calc(var(--hero-p, 0) * 30px)); }
    .js .giant span { transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 0.07s); }
    .js .giant.is-in span { transform: translateY(14%); }
  }
}

/* ==========================================================================
   Omezený pohyb: žádné 3D, tilt, kurzor ani smyčky – jen jemné fade-iny
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal].is-in { animation: fade 0.6s ease both !important; animation-duration: 0.6s !important; }
  [data-tilt], [data-depth], [data-magnetic], [data-magnetic] .btn__label { transform: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
  .flow__pulse { display: none; }
  .caret { display: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Bez JS / když JS selže: všechno viditelné */
.no-anim .hero__title .w, .no-anim .hero__tag, .no-anim .hero__lead, .no-anim .hero__ctas, .no-anim .hero .stats { animation: none; opacity: 1; }

/* ==========================================================================
   View Transitions (přepnutí den/noc)
   ========================================================================== */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-new(root) { z-index: 2; }
