/* =========================================================================
   GroupcZ – hlavní styly
   Paleta: #18182b dominantní · #cd7342 akcent/logo · #6a69ae doplňková · #cbcbd0 texty
   Font: Red Hat Display (shodný s původním webem)
   ========================================================================= */

/* ---------- Písma (hostovaná lokálně – bez Google Fonts, OFL 1.1) ---------- */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/RedHatDisplay-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/RedHatDisplay-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/RedHatMono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/RedHatMono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #18182b;
  --bg-deep: #131324;
  --surface: #1f1f38;
  --surface-2: #26264a;
  --accent: #cd7342;
  --accent-hover: #db8556;
  --violet: #6a69ae;
  --violet-light: #9b9ad9;
  --text: #cbcbd0;
  --text-dim: #9a9aab;
  --white: #f4f4f7;
  --line: rgba(106, 105, 174, 0.22);
  --line-strong: rgba(155, 154, 217, 0.4);

  --font: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--white); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--white); line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(27px, 3.6vw, 46px); text-transform: uppercase; letter-spacing: .01em; line-height: 1.12; }
h3 { font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--white); }

.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: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 30px -10px rgba(205, 115, 66, .7); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: rgba(31, 31, 56, .6); border-color: var(--line-strong); color: var(--white); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--violet-light); color: var(--white); background: rgba(106, 105, 174, .2); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }

.grad { color: var(--accent); }
.nowrap { white-space: nowrap; }
/* Označení sekce – název normálním písmem (bez čísel a čárek) */
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 16px; font-weight: 600; color: var(--violet-light); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); max-width: 64ch; }

/* ---------- Hlavička ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(19, 19, 36, .82); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner .main-nav { margin-left: auto; }
@media (max-width: 960px) { .header-inner { gap: 12px; } .lang-switch { margin-left: auto; } }
.brand img { width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.nav-cta { white-space: nowrap; }
@media (max-width: 1200px) and (min-width: 961px) { .nav-cta { display: none; } }
.main-nav ul { list-style: none; display: flex; gap: 22px; }
.main-nav ul a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .1em; position: relative; padding: 6px 0; }
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--white); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }

/* ---------- Přepínač jazyků CZ / EN – dvě bubliny, aktivní oranžová ---------- */
.lang-switch {
  position: relative; display: inline-flex; gap: 2px; padding: 3px; flex: none;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(31, 31, 56, .65); backdrop-filter: blur(8px);
}
.lang-switch a {
  position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 30px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--text); text-decoration: none;
  transition: color .35s var(--ease);
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a.is-active { color: var(--white); }
.lang-pill {
  /* Bublina přes celý přepínač; viditelná část se řídí ořezem (bez animace šířky = bez přepočtu layoutu) */
  position: absolute; top: 3px; left: 3px; right: 3px; height: 30px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(135deg, #db8556, var(--accent));
  clip-path: inset(0 calc(100% - var(--x, 0px) - var(--w, 40px)) 0 var(--x, 0px) round 999px);
  transition: clip-path .5s var(--ease);
  filter: drop-shadow(0 0 9px rgba(205, 115, 66, .55));
}
/* Při přepnutí: bublina „odletí“ k cíli a rozzáří se */
.lang-switch.is-switching .lang-pill { filter: drop-shadow(0 0 14px rgba(205, 115, 66, .85)); }
.lang-switch.is-switching::after {
  content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 1px solid var(--accent);
  animation: langRing .5s var(--ease) forwards;
}
@keyframes langRing { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

/* ---------- Burger – kulatá oranžová bublina (sladěná s přepínačem jazyků) ---------- */
.nav-toggle {
  display: none; position: relative; z-index: 3; flex: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 0; background: linear-gradient(135deg, #db8556, var(--accent));
  box-shadow: 0 6px 20px -8px rgba(205, 115, 66, .9);
  transition: transform .5s var(--ease), box-shadow .3s;
}
.nav-toggle:hover { transform: scale(1.06); }
.nav-toggle span:not(.sr-only) {
  position: absolute; left: 13px; width: 18px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .45s var(--ease), opacity .25s;
}
.nav-toggle span:nth-of-type(2) { top: 15px; }
.nav-toggle span:nth-of-type(3) { top: 21px; width: 12px; }
.nav-toggle span:nth-of-type(4) { top: 27px; }
.nav-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; transform: translateX(-6px); }
.nav-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
.nav-visual { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  /* Menu se „rozlije“ kruhem z místa tlačítka */
  .main-nav {
    position: fixed; inset: 0; z-index: 2; height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 22px; overflow-y: auto;
    padding: calc(var(--header-h) + 18px) var(--gutter) 28px;
    background: radial-gradient(120% 70% at 100% 0%, rgba(106, 105, 174, .28), transparent 60%), rgba(19, 19, 36, .98);
    clip-path: circle(0 at calc(100% - var(--gutter) - 22px) calc(var(--header-h) / 2));
    visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .main-nav.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) calc(var(--header-h) / 2)); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { opacity: 0; transform: translateX(-24px); transition: opacity .4s, transform .5s var(--ease); }
  .main-nav.is-open ul li { opacity: 1; transform: none; }
  .main-nav.is-open ul li:nth-child(1) { transition-delay: .12s; }
  .main-nav.is-open ul li:nth-child(2) { transition-delay: .17s; }
  .main-nav.is-open ul li:nth-child(3) { transition-delay: .22s; }
  .main-nav.is-open ul li:nth-child(4) { transition-delay: .27s; }
  .main-nav.is-open ul li:nth-child(5) { transition-delay: .32s; }
  .main-nav.is-open ul li:nth-child(6) { transition-delay: .37s; }
  .main-nav.is-open ul li:nth-child(7) { transition-delay: .42s; }
  .main-nav ul a {
    display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
    font-size: clamp(22px, 6.4vw, 30px); font-weight: 800; letter-spacing: .02em; color: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .main-nav ul a::after { display: block; left: 0; right: auto; width: 100%; bottom: -1px; height: 1px; }
  .main-nav ul a.is-active { color: var(--accent); }
  .main-nav .nav-cta { align-self: flex-start; opacity: 0; transform: translateY(12px); transition: opacity .4s .45s, transform .5s var(--ease) .45s; }
  .main-nav.is-open .nav-cta { opacity: 1; transform: none; }
  .nav-visual { display: block; position: relative; flex: 1; min-height: 160px; max-height: 260px; margin: 0 calc(-1 * var(--gutter)); opacity: 0; transition: opacity .6s .35s; }
  .main-nav.is-open .nav-visual { opacity: 1; }
  .nav-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .site-header.menu-open { background: transparent; box-shadow: none; backdrop-filter: none; }
  .site-header .brand, .site-header .lang-switch { position: relative; z-index: 3; }
  html.menu-lock { overflow: hidden; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .main-nav, .main-nav.is-open { transition: none; }
}

/* ---------- HERO / INTRO ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1200px;
  overflow: hidden; background: var(--bg-deep); isolation: isolate;
}
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.intro-ui {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + 10px); padding-bottom: clamp(20px, 4vh, 44px);
  pointer-events: none;
}
.intro-ui > * { pointer-events: auto; }
.intro-side { display: grid; gap: 16px; margin-top: 18px; }
.hero-h1 {
  margin: 0; max-width: 460px; font-size: 12.5px; font-weight: 600; line-height: 1.55;
  font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
}
.hero-h1 span { color: var(--accent); }

.intro-caption {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: auto; max-width: 640px; padding: 20px 26px 26px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(205, 115, 66, .14), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(106, 105, 174, .18), transparent 60%),
    linear-gradient(135deg, rgba(24, 24, 43, .86), rgba(31, 31, 56, .7));
  border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(18px) scale(.98); transform-origin: left bottom;
  transition: opacity .45s var(--ease), transform .7s cubic-bezier(.16, 1, .3, 1);
}
/* Obíhající světlo po okraji (stejné jako u dlaždic a formuláře) */
.intro-caption::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--spin), transparent 0 70%, var(--violet-light) 82%, var(--accent) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: statSpin 6s linear infinite;
}
/* Jemná mřížka v pozadí okna */
.intro-caption::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 60%); mask-image: linear-gradient(120deg, #000, transparent 60%);
}
.intro-caption.is-in { opacity: 1; transform: none; }
/* Titulek naskočí po částech */
.intro-title > span { display: inline; opacity: 0; filter: blur(4px); }
.intro-caption.is-in .intro-title > span { animation: capPart .7s cubic-bezier(.16, 1, .3, 1) forwards; }
.intro-caption.is-in .intro-title > span:nth-of-type(2) { animation-delay: .12s; }
.intro-caption.is-in .intro-title > span:nth-of-type(3) { animation-delay: .24s; }
@keyframes capPart { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }
.intro-caption.is-in .intro-sub { animation: capPart .7s cubic-bezier(.16, 1, .3, 1) .3s both; }
/* Průběh kapitoly */
.intro-cap-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--violet-light), var(--accent));
}
.intro-caption.is-final .intro-cap-progress { display: none; }
.intro-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.intro-kicker svg {
  width: 30px; height: 30px; padding: 6px; border-radius: 50%; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(205, 115, 66, .14); box-shadow: inset 0 0 0 1px rgba(205, 115, 66, .45);
}
.intro-kicker svg.is-logo { fill: var(--accent); stroke: none; padding: 3px; }
.intro-caption.is-in .intro-kicker svg { animation: kickerIcon .8s cubic-bezier(.16, 1, .3, 1); }
@keyframes kickerIcon { from { transform: rotate(-90deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.intro-title .intro-accent { color: var(--accent); }
.intro-title { color: var(--white); font-size: clamp(20px, 2.3vw, 30px); font-weight: 800; line-height: 1.22; margin: 0; letter-spacing: -.01em; }
.intro-sub { margin: 10px 0 0; font-size: clamp(15px, 1.3vw, 18px); color: var(--text); }
.intro-cta { display: none; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.intro-caption.is-final .intro-cta { display: flex; }

.intro-controls { display: flex; align-items: center; gap: 12px; }
.intro-btn {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(31, 31, 56, .7); border: 1px solid var(--line-strong); transition: border-color .2s, background-color .2s;
}
.intro-btn:hover { border-color: var(--accent); background: rgba(205, 115, 66, .15); }
.intro-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.intro-play .i-play { display: none; fill: var(--white); }
.intro-play.is-paused .i-play { display: block; }
.intro-play.is-paused .i-pause { display: none; }
.intro-bar {
  position: relative; flex: 1; height: 26px; cursor: pointer; display: flex; align-items: center;
}
.intro-bar::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(155, 154, 217, .22); }
.intro-fill {
  position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet-light), var(--accent));
}
.intro-chapters { position: absolute; inset: 0; }
.intro-chapter {
  position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--bg); border: 2px solid var(--violet-light); transition: transform .2s, border-color .2s;
}
.intro-chapter:hover { transform: scale(1.35); border-color: var(--accent); }
.intro-skip {
  flex: none; background: none; border: 0; color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 8px 4px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px;
}
.intro-skip:hover { color: var(--accent); }
.hero.is-finale .intro-skip { visibility: hidden; }

.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 14px; width: 26px; height: 40px; margin-left: -13px;
  border: 2px solid var(--line-strong); border-radius: 14px; display: none;
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (min-width: 900px) {
  .intro-ui { flex-direction: row; align-items: flex-end; gap: 40px; }
  .intro-caption { flex: 1 1 640px; max-width: 640px; }
  .intro-side { flex: 0 1 420px; margin: 0; }
}
@media (max-width: 899px) {
  .hero { min-height: 600px; }
  .intro-caption.is-final .intro-sub { display: none; }
  .intro-cta { margin-top: 14px; gap: 8px; }
  .intro-cta .btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
  .intro-side { gap: 10px; margin-top: 12px; }
  .hero-h1 { font-size: 11px; }
  .intro-caption { padding: 14px 16px 16px; }
  .intro-title { font-size: 19px; }
}

/* ---------- Sekce ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow-x: clip; }
.section--alt { background: linear-gradient(180deg, rgba(19, 19, 36, .78), rgba(24, 24, 43, .35)); border-block: 1px solid var(--line); }
.section--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.section > .container { position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }

/* ---------- Pilíře ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pillar {
  position: relative; padding: 32px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(38, 38, 74, .75), rgba(31, 31, 56, .45));
  border: 1px solid var(--line);
  transition: border-color .35s, transform .45s var(--ease), box-shadow .45s;
}
.pillar::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(106, 105, 174, .22), transparent 45%);
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.pillar:hover::before { opacity: 1; }
.pillar--key { border-color: rgba(205, 115, 66, .45); }
.pillar-visual {
  position: relative; height: 170px; margin: -32px -32px 26px; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, rgba(106, 105, 174, .16), transparent 70%), rgba(19, 19, 36, .45);
}
.pillar-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pillar-num { position: absolute; top: 14px; left: 18px; font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.pillar h3 { font-size: 21px; }
.pillar p { position: relative; }
.pillar-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); position: relative; }
.pillar-list li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55; color: var(--text-dim); }
.pillar-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--violet); }
.pillar-list strong { color: var(--white); font-weight: 700; }

.extra {
  margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  padding: 24px 32px; border-radius: var(--radius); border: 1px dashed var(--line-strong);
}
.extra-label { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-light); }
.extra-items { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.extra-item { display: flex; gap: 14px; align-items: flex-start; }
.extra-item svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.extra-item strong { display: block; color: var(--white); }
.extra-item span { font-size: 15px; color: var(--text-dim); line-height: 1.5; }

/* ---------- ERP ---------- */
.erp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.checks { list-style: none; display: grid; gap: 12px; margin: 28px 0 34px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(205, 115, 66, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cd7342' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid rgba(205, 115, 66, .5);
}
.erp-visual { position: relative; width: 100%; max-width: 600px; margin-inline: auto; }
.erp-canvas { display: block; width: 100%; aspect-ratio: 1; }

/* ---------- Postup ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; width: calc((100% - 66px) * .75 + 66px); height: 2px; background: linear-gradient(90deg, var(--violet), var(--accent)); opacity: .5; }
.step { position: relative; }
.step-n {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 22px;
  font-family: var(--mono); font-size: 15px; color: var(--white); background: var(--bg); border: 2px solid var(--violet-light);
}
.step:last-child .step-n { border-color: var(--accent); box-shadow: 0 0 24px -4px var(--accent); }
.step h3 { font-size: 16.5px; }
.step p { font-size: 15.5px; color: var(--text-dim); }

/* ---------- O nás ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.stat {
  position: relative; isolation: isolate; overflow: hidden; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(38, 38, 74, .7), rgba(24, 24, 43, .85));
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s;
}
/* Obíhající světelný okraj */
.stat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 70%, var(--violet-light) 82%, var(--accent) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .6s;
  animation: statSpin 6s linear infinite;
}
.stats.is-live .stat::before { opacity: .9; }
.stat:nth-child(2)::before { animation-delay: -1.5s; }
.stat:nth-child(3)::before { animation-delay: -3s; }
.stat:nth-child(4)::before { animation-delay: -4.5s; }
@keyframes statSpin { to { --spin: 360deg; } }
.stat:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.stat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.stat-label { position: relative; font-size: 14px; line-height: 1.4; color: var(--text-dim); max-width: 50%; }
.stat-value { position: relative; font-size: clamp(38px, 3.8vw, 52px); font-weight: 800; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat--accent .stat-value { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 920px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(31, 31, 56, .45); transition: border-color .25s, background-color .25s; }
.faq details[open] { border-color: var(--line-strong); background: rgba(31, 31, 56, .8); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; color: var(--white); font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--text); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; }
.contact-card { font-style: normal; margin: 28px 0 20px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(31, 31, 56, .5); line-height: 1.7; }
.contact-card strong { display: block; color: var(--white); font-size: 19px; margin-bottom: 4px; }
.contact-meta { list-style: none; display: grid; gap: 8px; }
.contact-meta li { display: flex; gap: 16px; }
.contact-meta span { width: 64px; flex: none; font-family: var(--mono); font-size: 13px; color: var(--violet-light); text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; }

.contact-form {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(38, 38, 74, .85), rgba(24, 24, 43, .75)); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
/* Záhlaví formuláře jako okno aplikace (stejně jako okno e-shopu v intru) */
.cf-head { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(38, 38, 74, .7); }
.cf-dots { display: flex; gap: 7px; }
.cf-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .85; }
.cf-dots i:nth-child(2) { background: var(--violet-light); }
.cf-dots i:nth-child(3) { background: var(--text); opacity: .5; }
.cf-title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.cf-secure { margin-left: 18px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent); }
.cf-secure svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #6fd49a; }
.cf-status i { width: 8px; height: 8px; border-radius: 50%; background: #6fd49a; box-shadow: 0 0 0 0 rgba(111, 212, 154, .6); animation: livePulse 2.2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(111, 212, 154, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(111, 212, 154, 0); } }
.cf-body { flex: 1; display: flex; flex-direction: column; padding: clamp(22px, 3.4vw, 34px); }
.field-grow { flex: 1; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { font-size: 14.5px; font-weight: 600; color: var(--white); }
.field label b, .field legend b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--accent); letter-spacing: .08em; margin-right: 10px; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--violet-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .25s; }

.input-wrap:focus-within svg { stroke: var(--accent); }
/* Světelná linka pod polem při psaní */
.input-wrap::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--violet-light), var(--accent), transparent) no-repeat;
  background-size: 50% 100%; transform: scaleX(0); transition: transform .45s var(--ease);
  animation: hairline 2.4s linear infinite;
}
.input-wrap:focus-within::after { transform: scaleX(1); }
.input-wrap--area { display: flex; height: calc(100% - 30px); }
.input-wrap--area textarea { flex: 1; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(203, 203, 208, .35); }

/* Výběr tématu – dlaždice podle pilířů */
.topic-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.topic-field legend { padding: 0; margin-bottom: 8px; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic span {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 10px 13px; text-align: center;
  font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.2;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(19, 19, 36, .6);
  transition: border-color .25s, background-color .25s, color .25s, transform .3s var(--ease), box-shadow .3s;
}
.topic span svg { width: 22px; height: 22px; fill: none; stroke: var(--violet-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s, transform .4s var(--ease); }
.topic:hover span { border-color: var(--violet-light); transform: translateY(-2px); }
.topic input:checked + span { border-color: var(--accent); background: rgba(205, 115, 66, .14); color: var(--white); box-shadow: 0 0 0 3px rgba(205, 115, 66, .12), 0 10px 24px -12px rgba(205, 115, 66, .6); }
.topic input:checked + span svg { stroke: var(--accent); transform: scale(1.12); }
.topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Fajfka v rohu zaškrtnuté dlaždice */
.topic span::after {
  content: ""; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat;
  transform: scale(0); transition: transform .3s var(--ease);
}
.topic input:checked + span::after { transform: scale(1); }
.topic--pack span { border-style: dashed; border-color: rgba(205, 115, 66, .55); }
.topic--pack span svg { stroke: var(--accent); }
.topic .opt, .topic-field .opt { font-weight: 500; }
.cf-recaptcha-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.cf-recaptcha-note a { color: var(--text); }
/* Plovoucí odznak reCAPTCHA skryt – nahrazen textovou zmínkou pod tlačítkem (povoleno podmínkami Google) */
.grecaptcha-badge { visibility: hidden; }

/* Tlačítko odeslat – paket, odesílání, hotovo */
.cf-submit { gap: 10px; }
.cf-send { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: transform .4s var(--ease); }
.cf-submit:hover .cf-send { transform: translate(3px, -3px); }
.contact-form.is-sending .cf-submit { pointer-events: none; background-image: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, .12) 14px 28px); background-size: 200% 100%; animation: sending .8s linear infinite; }
.contact-form.is-sending .cf-send { animation: sendFly .9s var(--ease) infinite; }
@keyframes sending { to { background-position: -56px 0; } }
@keyframes sendFly { 0% { transform: translate(0, 0); opacity: 1; } 60% { transform: translate(14px, -14px); opacity: 0; } 61% { transform: translate(-10px, 10px); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
.contact-form.is-sent .cf-submit { background: #3c6e52; box-shadow: 0 8px 30px -10px rgba(80, 160, 110, .6); }
.opt { color: var(--text-dim); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--white);
  background: rgba(19, 19, 36, .7); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cd7342' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.field textarea { resize: vertical; min-height: 130px; }
/* Místo pro ikonu – musí být až za obecným pravidlem .field input */
.field .input-wrap input { padding-left: 46px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(205, 115, 66, .2); }
.field .is-invalid, .field input:user-invalid, .field textarea:user-invalid { border-color: #e0605a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; font-size: 14.5px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.form-status { margin: 14px 0 0; font-size: 15px; min-height: 1.5em; }
.form-status.is-ok { color: #8fd6a8; }
.form-status.is-error { color: #f0938e; }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-claim { margin-top: 14px; color: var(--text-dim); max-width: 34ch; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 13.5px; }
.footer-bottom p { margin: 0; }

/* ---------- Cookies ---------- */
/* Plovoucí okénko „Dáte si sušenku?“ ve stylu animací webu */
.cookie-pop {
  position: fixed; z-index: 150; left: 20px; bottom: 20px; width: min(500px, calc(100% - 32px));
  display: grid; grid-template-columns: 116px 1fr; column-gap: 18px; row-gap: 14px; align-items: center;
  padding: 18px 20px 18px 14px; border-radius: var(--radius); isolation: isolate;
  background: linear-gradient(150deg, rgba(38, 38, 74, .97), rgba(24, 24, 43, .97));
  border: 1px solid var(--line-strong); backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(205, 115, 66, .08);
  opacity: 0; transform: translateY(40px) scale(.94) rotate(-1.5deg); transform-origin: left bottom;
  transition: opacity .5s var(--ease), transform .8s cubic-bezier(.16, 1, .3, 1);
}
.cookie-pop[hidden] { display: none; }
.cookie-pop.is-in { opacity: 1; transform: none; }
.cookie-pop.is-leaving { opacity: 0; transform: translateY(30px) scale(.9); transition-duration: .45s; transition-timing-function: var(--ease); }
/* Obíhající světelný okraj (stejně jako u dlaždic a formuláře) */
.cookie-pop::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--spin), transparent 0 65%, var(--violet-light) 80%, var(--accent) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: statSpin 5s linear infinite;
}
.cookie-pop-visual { position: relative; width: 116px; height: 116px; grid-row: span 2; align-self: start; }
.cookie-pop-visual canvas { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); }
.cookie-pop h2 { font-size: 20px; margin: 0 0 6px; }
.cookie-pop p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.cookie-pop .cookie-actions { grid-column: 2; align-items: center; flex-wrap: nowrap; gap: 8px; }
.cookie-pop .cookie-actions .btn { white-space: nowrap; padding: 0 16px; }
.cookie-pop .link-btn { white-space: nowrap; }
.cookie-pop .link-btn { font-size: 14px; margin-left: 4px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }

.cookie-modal {
  width: min(560px, calc(100% - 32px)); padding: 0; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text);
}
.cookie-modal::backdrop { background: rgba(10, 10, 22, .7); backdrop-filter: blur(4px); }
.cookie-modal-inner { padding: 28px; }
.cookie-modal h2 { font-size: 21px; }
.cookie-modal p { font-size: 15px; }
.cookie-cat { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.cookie-cat strong { display: block; color: var(--white); }
.cookie-cat span { font-size: 14px; color: var(--text-dim); }
.cookie-modal .cookie-actions { margin-top: 20px; justify-content: flex-end; }
.switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch input + span { position: absolute; inset: 0; border-radius: 999px; background: rgba(155, 154, 217, .25); transition: background-color .2s; }
.switch input + span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Právní stránky ---------- */
.legal-hero { padding: calc(var(--header-h) + 64px) 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.legal-hero h1 { font-size: clamp(28px, 4.4vw, 48px); text-transform: uppercase; }
.legal-hero p { color: var(--text-dim); margin: 0; }
.legal { padding: 56px 0 100px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14.5px; }
.legal-toc strong { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 12px; }
.legal-toc ol { list-style: none; display: grid; gap: 8px; border-left: 1px solid var(--line); padding-left: 16px; }
.legal-toc a { color: var(--text-dim); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }
.legal-body { max-width: 78ch; }
.legal-body h2 { font-size: 21px; margin-top: 44px; padding-top: 8px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 16px; margin-top: 24px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 1em; display: grid; gap: 6px; }
.legal-body li::marker { color: var(--accent); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { color: var(--white); font-weight: 700; background: rgba(31, 31, 56, .6); }
.legal-body .table-wrap { overflow-x: auto; }
.legal-note { padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid rgba(205, 115, 66, .35); background: rgba(205, 115, 66, .06); }

/* ---------- Reveal animace ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.d-1 { --d: 1; } .d-2 { --d: 2; } .d-3 { --d: 3; } .d-4 { --d: 4; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .pillars, .erp-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .extra, .extra-items { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pillar { padding: 24px; }
  .field-row, .steps, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { min-height: 160px; padding: 20px; }
  .cookie-pop { left: 16px; bottom: 16px; grid-template-columns: 76px 1fr; column-gap: 12px; padding: 16px; }
  .cookie-pop-visual { width: 76px; height: 76px; grid-row: auto; }
  .cookie-pop .cookie-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1; }
  .intro-skip { display: none; }
}

/* =========================================================================
   Motion vrstva webu – stejný vizuální jazyk jako úvodní video
   ========================================================================= */
.ambient-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Světelná linka mezi sekcemi (paket letící po hraně) */
/* Plynulý přechod z hera (intro) do stránky */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 24, 43, 0), var(--bg) 92%);
}
.hero + .section::after,
.section + .section::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--violet-light), var(--accent), transparent) no-repeat;
  background-size: 30% 100%; animation: hairline 9s linear infinite; opacity: .55;
}
@keyframes hairline { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* Nadpisy sekcí se „vykreslí“ jako v intru */
.reveal .eyebrow { opacity: 0; transform: translateX(-12px); transition: opacity .6s .15s, transform .8s var(--ease) .15s; }
.reveal.is-visible .eyebrow { opacity: 1; transform: none; }
.reveal h2 { clip-path: inset(-12% 100% -12% 0); transition: clip-path 1.1s var(--ease) .12s; }
.reveal.is-visible h2 { clip-path: inset(-12% -4% -12% 0); }

/* Jak pracujeme – paket jede po lince, krok se rozzáří */
.steps::after {
  content: ""; position: absolute; top: 23px; left: 24px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px 4px rgba(205, 115, 66, .55);
  animation: stepPacket 8s linear infinite;
}
@keyframes stepPacket {
  0% { left: 24px; opacity: 0; } 4% { opacity: 1; }
  75% { left: calc((100% - 66px) * .75 + 66px + 23px); opacity: 1; } 82%, 100% { left: calc((100% - 66px) * .75 + 66px + 23px); opacity: 0; }
}
.step-n::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--violet-light);
  opacity: 0; animation: stepPulse 8s ease-out infinite;
}
.step:nth-child(2) .step-n::after { animation-delay: 2s; }
.step:nth-child(3) .step-n::after { animation-delay: 4s; }
.step:nth-child(4) .step-n::after { animation-delay: 6s; border-color: var(--accent); }
@keyframes stepPulse { 0% { opacity: .9; transform: scale(1); } 14% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; transform: scale(1.7); } }
@media (max-width: 1080px) { .steps::after { display: none; } }

/* AI jako kolega */
.ai-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.ai-visual { position: relative; aspect-ratio: 1.15; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 80% 50%, rgba(106, 105, 174, .2), transparent 70%), rgba(19, 19, 36, .5); }
.ai-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 22px; }
.ai-list li { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(31, 31, 56, .55); transition: border-color .3s, transform .4s var(--ease); }
.ai-list li:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.ai-list strong { display: block; color: var(--white); text-transform: uppercase; letter-spacing: .06em; font-size: 14.5px; margin-bottom: 4px; }
.ai-list span { font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }
.ai-note { font-size: 15px; color: var(--text); padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(205, 115, 66, .35); background: rgba(205, 115, 66, .07); }

/* Kontakt – síť + světelný okraj formuláře při psaní */
.contact-visual { position: relative; flex: 1; min-height: 210px; margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: rgba(19, 19, 36, .45); }
.contact-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-form { position: relative; isolation: isolate; }
.contact-form::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 70%, var(--violet-light) 82%, var(--accent) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .35; animation: statSpin 7s linear infinite; transition: opacity .4s;
}
.contact-form:focus-within::before { opacity: 1; }

/* FAQ – číslování, hover a oranžové „obkroužení“ otevřené otázky */
.faq { counter-reset: q; }
.faq-item { position: relative; border-radius: var(--radius-sm); transition: transform .4s var(--ease); }
.faq-item:hover { transform: translateY(-2px); }
.faq details { transition: border-color .3s, background-color .3s, box-shadow .5s; }
.faq details:hover { border-color: var(--line-strong); }
.faq summary { display: flex; align-items: baseline; gap: 16px; }
.faq summary::before {
  counter-increment: q; content: counter(q, decimal-leading-zero);
  flex: none; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .08em;
}
.faq details[open] { border-color: transparent; box-shadow: 0 24px 60px -34px rgba(205, 115, 66, .55), inset 0 0 40px -20px rgba(205, 115, 66, .25); }
.faq-trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.faq-trace rect { fill: none; stroke-width: 1.5; }
.faq-trace .line { stroke: var(--accent); stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: opacity .3s; }
.faq-trace .head { stroke: #ffd3b8; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .035 .965; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 4px var(--accent)); }
.faq-item:has(> details[open]) .faq-trace .line { opacity: 1; animation: faqLine 1.15s cubic-bezier(.45, .05, .35, 1) forwards; }
.faq-item:has(> details[open]) .faq-trace .head { animation: faqHead 1.15s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes faqLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes faqHead { 0% { stroke-dashoffset: 1.035; opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: .035; opacity: 0; } }
.faq details p { padding-left: calc(24px + 16px + 2ch); }

/* FAQ – plynulé rozbalení */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Tlačítko – světelný přejezd */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

/* Patička – světlo běžící po horní hraně */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--violet-light), transparent) no-repeat;
  background-size: 35% 100%; animation: hairline 11s linear infinite;
}

@media (max-width: 900px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-visual { order: 2; }
}
@media (max-width: 560px) {
  .pillar-visual { margin: -24px -24px 22px; height: 150px; }
  .ai-list { grid-template-columns: 1fr; }
  .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-title { display: none; }
  .cf-secure span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cookie-pop, .hero, .legal-toc { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3 { color: #000; }
}

code { font-family: var(--mono); font-size: .9em; padding: 4px 9px; line-height: 1.9; border-radius: 6px; background: rgba(106, 105, 174, .18); color: var(--white); }
