/* ERANUL 2027 – styly homepage („command center“, třídy cc-*) a společné prvky obsahu (typografie, štítky, kontakt).
   Bootstrap 5.3.8 řeší grid, utility a offcanvas. Sdílené komponenty (hlavička, paleta, formulář, patička) jsou
   v assets/shared/eranul-ui.css, třísloupcové sekce v assets/css/cockpit.css. Tokeny: design-system/tokens.css.
   Výchozí stav = konečný stav (bez JS, reduced motion). */

/* Bootstrap 5.3.8 ← tokeny */
:root {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--fg);
  --bs-body-font-family: var(--font-sans);
  --bs-body-font-size: var(--fs-body);
  --bs-body-line-height: var(--lh-body);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius);
  --bs-link-color: var(--signal);
  --bs-link-hover-color: var(--signal-hover);
  --bs-emphasis-color: var(--fg);
  --bs-secondary-color: var(--fg-muted);
  --bs-focus-ring-color: var(--ring);
}

@property --draw { syntax: "<number>"; inherits: true; initial-value: 0; }

:root { interpolate-size: allow-keywords; }
html { scroll-padding-top: calc(84px + (1rem - 16px) * 1.25); }   /* roste s hlavičkou při velkém textu */
@media (max-width: 991.98px) { html { scroll-padding-top: calc(116px + (1rem - 16px) * 2.5); } }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber-500); color: var(--navy-900); }
main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
p { text-wrap: pretty; }
img, svg { max-width: 100%; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 1100;
  background: var(--signal); color: var(--on-signal); font-weight: 700;
  padding: .75rem 1rem; border-radius: var(--radius); text-decoration: none;
  max-width: calc(100vw - 2rem);   /* 200 % textu na 375 px: odkaz se zalomí, nerozšíří stránku */
}
.skip-link:focus { top: 1rem; }

/* kontejner: větší boční okraj */
.container-xxl { padding-inline: var(--gutter); }
@media (min-width: 1200px) {
  .container-xxl { padding-inline: max(var(--gutter), calc(96px - max(0px, (100vw - 1320px) / 2))); }
}

/* ---------- typografie ---------- */
.display-e {
  font-size: clamp(2.4rem, 5vw, 4.375rem); font-weight: 800; line-height: 1.04;
  letter-spacing: 0; text-transform: uppercase; text-wrap: balance; margin-bottom: 1.25rem;
  text-shadow: 0 4px 30px rgb(var(--shadow-rgb) / calc(.45 * var(--shadow-k)));                 /* původní .lp-hero__title */
}

.h3-e { font-size: var(--fs-h3); font-weight: 800; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; margin-bottom: .5rem; }

.tag {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .55rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--fg-muted);
}
/* štítek ukázky: povinný, ale tichý (bez čárkovaného rámečku) */
.tag--demo { border-color: transparent; background: rgb(var(--tint) / .07); color: var(--fg-muted); letter-spacing: .06em; }

/* ---------- buňka: úvodní kreslení (jen s pohybem) ---------- */
.cell--intro path { stroke-dasharray: 1 1; }
.cell--intro .c-shell { animation: cell-draw .8s var(--ease-out) .1s both; }
.cell--intro .c-detail { animation: cell-draw .5s var(--ease-out) .55s both; }
.cell--intro .c-accent { animation: cell-rise .5s var(--ease-lock) .85s both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes cell-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cell-rise { from { stroke-dashoffset: 0; transform: translateY(35%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- homepage „command center“: jedna obrazovka, scéna sítě pod dohledem ---------- */
.cc-body { background: var(--bg-deep); }
.cc-hero {
  position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; min-height: 100svh;
  padding-top: var(--nav-h); overflow: hidden;
  background:
    radial-gradient(60% 65% at 74% 48%, rgb(var(--glow-rgb) / .7), transparent 72%),
    radial-gradient(45% 40% at 8% 105%, rgb(227 162 46 / .07), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
}
.cc-hero > * { min-width: 0; }                                   /* grid: dlouhé řádky (nápovědy) nesmí roztáhnout stránku */
.cc-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* podklad scény: čistý (bez mřížky i plástve); identitu nese radar, síť a buňka. Pozadí = navy přechod a světlo v .cc-hero */
/* datové proudy: tenké svislé linky, po kterých občas proběhne signál */
.cc-streams { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 55%); mask-image: linear-gradient(90deg, transparent 30%, #000 55%); }
.cc-streams i { position: absolute; top: 0; bottom: 0; width: 1px; overflow: hidden; background: linear-gradient(transparent, rgb(var(--tint) / .035) 20%, rgb(var(--tint) / .035) 80%, transparent); }
.cc-streams i:nth-child(1) { left: 38%; --dur: 7s; --delay: -1s; }
.cc-streams i:nth-child(2) { left: 47%; --dur: 9s; --delay: -4s; }
.cc-streams i:nth-child(3) { left: 58%; --dur: 6.5s; --delay: -2.5s; }
.cc-streams i:nth-child(4) { left: 66%; --dur: 8.5s; --delay: -6s; }
.cc-streams i:nth-child(5) { left: 79%; --dur: 7.5s; --delay: -3s; }
.cc-streams i:nth-child(6) { left: 88%; --dur: 10s; --delay: -7s; }
.cc-streams i:nth-child(7) { left: 95%; --dur: 8s; --delay: -5s; }
.cc-streams i::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 18%; background: linear-gradient(transparent, rgb(227 162 46 / .55), transparent); translate: 0 -100%; opacity: 0; }
.cc-live .cc-streams i::before { opacity: 1; animation: cc-stream var(--dur) cubic-bezier(.55, .05, .35, .95) var(--delay) infinite; }
@keyframes cc-stream { from { translate: 0 -100%; } to { translate: 0 600%; } }

/* orbita: hex mřížka, radar, síť a jádro (přesun přes `translate`, transform patří paralaxe) */
.cc-orbit { position: absolute; top: 50%; right: max(-4vw, calc((100vw - 1640px) / 2)); width: min(60vw, 940px, 106svh); aspect-ratio: 1; translate: 0 -47%; }
.cc-orbit > svg, .cc-radar { position: absolute; inset: 0; width: 100%; height: 100%; }
.cc-net { overflow: visible; }
.cc-link { fill: none; stroke: rgb(var(--tint) / .13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cc-flow { fill: none; stroke: var(--accent-line); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: .06 1; stroke-dashoffset: .06; opacity: 0; vector-effect: non-scaling-stroke; }
.cc-live .cc-flow { opacity: .85; animation: cc-flow var(--dur) cubic-bezier(.45, .05, .3, 1) var(--delay) infinite; }
@keyframes cc-flow { from { stroke-dashoffset: .06; } to { stroke-dashoffset: -1; } }
.cc-node { fill: var(--surface); stroke: rgb(var(--tint) / .55); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; transition: fill .3s, stroke .3s; }
.cc-node.is-hot { stroke: var(--accent-line); }
.cc-live .cc-node.is-hot { animation: cc-blink 3.4s var(--ease-in-out) var(--delay) infinite; }
@keyframes cc-blink { 0%, 100% { fill: var(--surface); } 50% { fill: var(--e-amber); } }
.cc-node.is-ping { fill: var(--e-amber); stroke: var(--accent-line); animation: cc-ping 1.4s var(--e-ease-out); }
@keyframes cc-ping { 0% { scale: 1; } 18% { scale: 2.6; } 100% { scale: 1; } }
.cc-signal { fill: none; stroke: var(--accent-line); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .1 1; stroke-dashoffset: .1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgb(227 162 46 / .9)); animation: cc-signal 1.25s cubic-bezier(.6, .05, .3, 1) forwards; }
@keyframes cc-signal { to { stroke-dashoffset: -1; } }
.cc-radar__ring { position: absolute; inset: 0; border: 1px solid rgb(var(--tint) / .06); border-radius: 50%; }
.cc-radar__ring:nth-child(3) { inset: 17%; }
.cc-radar__ring:nth-child(4) { inset: 33%; border-style: dashed; border-color: rgb(227 162 46 / .14); }
.cc-radar__sweep {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg, rgb(227 162 46 / .1), rgb(227 162 46 / 0) 48deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 22%, #000 40%, #000 78%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 22%, #000 40%, #000 78%, transparent 100%);
}
.cc-live .cc-radar__sweep { opacity: 1; animation: cc-sweep 10s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes cc-sweep { to { rotate: 360deg; } }
.cc-core {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 24%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--glow-rgb) / .95), rgb(var(--surface-rgb) / calc(.6 + var(--surface-boost))) 70%, transparent);
  pointer-events: auto; cursor: pointer;
}
.cc-cell { position: relative; z-index: 1; width: 64%; height: auto; --sw: 3.2; color: var(--fg-strong); filter: drop-shadow(0 0 10px rgb(227 162 46 / .25)); transition: filter .5s var(--e-ease-out), scale .6s var(--e-ease-lock); }
.cc-core:hover .cc-cell, .cc-core.is-hit .cc-cell { filter: drop-shadow(0 0 18px rgb(227 162 46 / .8)); scale: 1.06; }
.cc-pulse { position: absolute; inset: 10%; border: 1px solid rgb(227 162 46 / .55); border-radius: 50%; opacity: 0; }
.cc-live .cc-pulse { animation: cc-pulse 5.4s var(--e-ease-out) infinite; }
.cc-live .cc-pulse:nth-child(2) { animation-delay: 1.8s; }
.cc-live .cc-pulse:nth-child(3) { animation-delay: 3.6s; }
@keyframes cc-pulse { 0% { opacity: .75; scale: .7; } 100% { opacity: 0; scale: 3; } }
.cc-state { position: absolute; left: 50%; top: 64%; margin: 0; translate: -50% 0; color: var(--fg-muted); white-space: nowrap; }
.cc-state.is-swap { animation: cc-swap .7s var(--e-ease-out); }
@keyframes cc-swap { from { opacity: 0; translate: -50% 8px; filter: blur(3px); } }

/* telemetrie (ilustrační, v UI označená) */

/* zpráva a vstupy */
.cc-hero__inner { position: relative; display: flex; align-items: center; padding-block: clamp(1.5rem, 5vh, 4rem); }
.cc-copy { flex: 1 1 auto; min-width: 0; max-width: min(1000px, 72%); }
/* dvě sdělení: vymezení (titulek, hlavní váha) a slogan pod ním (podpůrný, běžná velikost písmen); žádný další text */
/* jediný barevný důraz v heru: poslední věta sloganu */
.cc-slogan__key { color: var(--accent-fg); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.cc-slogan { margin: clamp(.95rem, 2.2vh, 1.5rem) 0 0; color: var(--fg-strong); font-size: clamp(1.1rem, .86vw + .72rem, 1.7rem); font-weight: 600; line-height: 1.3; }
.cc-title { font-size: clamp(1.8rem, 2.6vw + 7.5px, 3.3rem); line-height: 1.05; margin-bottom: 0; }   /* první řádek („Bezpečnostní & Technologický“ ≈ 18,3 em) se vejde před grafiku hera */
.cc-line { display: block; }
@media (min-width: 576px) { .cc-title .cc-line { white-space: nowrap; } }   /* od tabletu přesně dva řádky; na telefonu se první řádek přirozeně zalomí */
.cc-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.5rem, 3.4vh, 2.35rem); }
.cc-ask { max-width: 31rem; margin-top: 2rem; }
.cc-ask__field {
  display: flex; align-items: center; gap: .75rem; width: 100%; height: 56px; padding: 0 .7rem 0 1.1rem;
  border: 1px solid rgb(var(--tint) / .16); border-radius: var(--r-panel); background: rgb(var(--tint) / .05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgb(var(--tint) / .72); font: 500 1rem/1 var(--font-sans); text-align: left; cursor: text;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-base) var(--e-ease-out), color var(--dur-fast);
}
.cc-ask__field span { flex: 1; }
.cc-ask__field .icon { width: 20px; height: 20px; color: var(--accent-fg); }
.cc-ask__field:hover { color: var(--fg-strong); border-color: rgb(227 162 46 / .6); background: rgb(var(--tint) / .07); box-shadow: 0 0 0 4px rgb(227 162 46 / .1), 0 22px 44px -26px rgb(var(--shadow-rgb) / calc(.9 * var(--shadow-k))); }
.cc-ask__field:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.cc-ask__hints { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .9rem 0 0; color: var(--fg-muted); font-size: .8125rem; }
.cc-ask__label { margin-right: .25rem; font-weight: 700; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; }
.cc-ask__hints button {
  min-height: 32px; padding: .25rem .8rem; border: 1px solid rgb(var(--tint) / .16); border-radius: var(--r-pill); background: transparent;
  color: var(--fg-strong); font: 600 .8125rem/1 var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), translate var(--dur-base) var(--e-ease-lock);
}
.cc-ask__hints button:hover { border-color: rgb(227 162 46 / .7); background: rgb(227 162 46 / .1); translate: 0 -1px; }
.cc-ask__hints button:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* stavová lišta (místo patičky) */
.cc-bar { position: relative; border-top: 1px solid var(--line); background: rgb(var(--chrome-rgb) / .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cc-bar__inner { display: flex; align-items: center; gap: .75rem 2rem; min-height: 60px; }
.cc-bar p { margin: 0; }
.cc-bar__feed { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; overflow: hidden; }
.cc-bar__tag { flex: none; padding: .2rem .45rem; border: 1px dashed rgb(227 162 46 / .5); border-radius: 5px; color: var(--accent-fg-soft); font-size: .625rem; }
.cc-bar__feed { align-self: stretch; }
/* všechny odkazy jsou v HTML (procházení webu, bez JS první); JS jen střídá viditelný, pevná výška = žádný posun */
.cc-feed { position: relative; flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; list-style: none; }
.cc-feed > li { position: absolute; inset: 0; display: flex; align-items: center; visibility: hidden; }
.cc-feed > li.is-on { visibility: visible; }
.cc-feed a { display: flex; align-items: center; gap: .75rem; min-width: 0; min-height: 32px; color: var(--fg-muted); text-decoration: none; }
.cc-feed__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .06em; transition: color var(--dur-fast); }
.cc-feed a:hover .cc-feed__t, .cc-feed a:focus-visible .cc-feed__t { color: var(--fg-strong); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
.cc-feed > li.is-swap { animation: cc-swap-l .7s var(--e-ease-out); }
@keyframes cc-swap-l { from { opacity: 0; translate: 0 8px; filter: blur(3px); } }
.cc-bar__end { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 1.25rem; margin-left: auto; }   /* zvětšený text: zalomí se, nepřeteče */
.cc-bar__copy { color: rgb(var(--tint) / .62); font-size: .8125rem; white-space: nowrap; }

/* úvod: text (H1, slogan, tlačítka, hledání) se objeví CSS animací hned při prvním vykreslení, nečeká na skripty (LCP); odhalení scény
   (orbit, proudy) řídí home.js – skryté výchozí stavy jen s JS a plným pohybem, pojistka zobrazí obsah, i kdyby skript selhal */
@media (prefers-reduced-motion: no-preference) {
  html.js:not([data-motion="reduced"]):not(.cc-ready) :is(.cc-orbit, .cc-streams) { opacity: 0; animation: cc-failsafe 0s 2.5s forwards; }
  html.js:not([data-motion="reduced"]) .cc-in { animation: cc-rise 1.2s cubic-bezier(.16, 1, .3, 1) calc(.05s + var(--i, 0) * .075s) both; }   /* pořadí = dřívější stagger GSAP */
}
.cc-title .cc-line:nth-child(2) { --i: 1; }
.cc-slogan { --i: 2; }
.cc-actions { --i: 3; }
.cc-ask { --i: 4; }
.cc-bar { --i: 5; }
@keyframes cc-rise { from { opacity: 0; translate: 0 26px; } }
@keyframes cc-failsafe { to { opacity: 1; } }
/* skrytá karta nebo otevřený dialog: ambient stojí */
:is(.cc-paused, .palette-open, .platform-open) .cc-scene *,
:is(.cc-paused, .palette-open, .platform-open) .cc-scene *::before { animation-play-state: paused !important; }

@media (max-height: 780px) and (min-width: 992px) {
  .cc-title { font-size: clamp(1.65rem, min(2.6vw + 7.5px, 6.6vh), 3.3rem); }
  .cc-actions { margin-top: 1.25rem; }
  .cc-ask { margin-top: 1.25rem; }
}
/* mobil a tablet: zpráva nahoře, scéna jako „horizont“ pod ní, lišta jen se stavem a ovládáním */
@media (max-width: 991.98px) {
  .cc-hero__inner { align-items: flex-start; padding-block: 1.75rem 30vw; }
  .cc-copy { max-width: 40rem; }
  .cc-hero__inner > .cc-copy { width: 100%; }
  .cc-orbit { top: auto; bottom: -34vw; right: 50%; width: min(118vw, 760px); translate: 50% 0; opacity: .6; }
  .cc-streams, .cc-state { display: none; }
  .cc-ask__hints { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .cc-bar__feed { display: none; }
}
@media (max-width: 575.98px) {
  .cc-title { font-size: clamp(1.55rem, 7.5vw, 2.3rem); }
  .cc-actions { margin-top: 1.25rem; gap: .6rem; }
  .cc-ask { margin-top: 1.25rem; }
  .cc-ask__field { height: 52px; }
  .cc-actions .e-btn { flex: 1 1 auto; }
  .cc-bar__copy { display: none; }
  .cc-bar__inner { justify-content: space-between; }
}

.lattice { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lat-cell { fill: none; stroke: rgb(var(--tint) / var(--o, .08)); stroke-width: 1.25; transition: stroke .5s var(--ease-out); }

/* ---------- sdílené drobnosti obsahu sekcí (kontaktní karty, štítek „připravuje se“) ---------- */
/* služba bez detailu: tichý text, ne čip, který by vypadal jako vypnuté tlačítko */
.ck-soon { align-self: center; color: var(--fg-muted); font-size: .8125rem; font-style: italic; }
.contact-list { display: grid; gap: .75rem; margin: 2rem 0 0; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; color: var(--fg-strong); text-decoration: none;
}
.contact-item .e-ring .icon { width: 20px; height: 20px; color: var(--fg-strong); }
.contact-item strong { display: block; font-weight: 700; }
.contact-item small { display: block; color: var(--fg-muted); font-size: .875rem; }
a.contact-item:hover .e-ring { border-color: var(--accent-line); }
/* kontakt bez odkazu (SOC hotline, číslo zatím chybí – CONTACT-003): stejné místo, ale ne karta ani akce */
.contact-item--static { color: var(--fg-muted); }
.contact-item--static .e-ring { border-style: dashed; border-color: rgb(var(--tint) / .35); }
.contact-item--static .e-ring .icon { color: var(--fg-muted); }
.contact-item--static strong { color: var(--fg); }

/* ---------- omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .live-dot { animation: none !important; }
}
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after {
  animation-duration: 1ms !important; animation-iteration-count: 1 !important;
}
[data-motion="reduced"] .live-dot { animation: none !important; }

/* ---------- kontakt (sekce Společnost): místa a zástupné hodnoty ---------- */
.contact-list--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.place { height: 100%; display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.place__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; }
.place__head .h3-e { margin: 0; }
.place__data { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 0; }
.place__data dt { color: var(--fg-muted); font-weight: 500; }
.place__data dd { margin: 0; }
@media (max-width: 575.98px) { .place__data { grid-template-columns: 1fr; gap: 0; } .place__data dd { margin-bottom: .6rem; } }
/* karta užší než popisek + hodnota (např. 200% text, dvě karty vedle sebe): popisky nad hodnotami jako na mobilu
   ponytail: práh = naměřená potřeba „Datová schránka“ + mezera + nejdelší slovo hodnoty (14,3 em); při delších popiscích zvýšit */
.place { container-type: inline-size; }
@container (max-width: 14.5em) { .place__data { grid-template-columns: 1fr; gap: 0; } .place__data dd { margin-bottom: .6rem; } }
.ph { color: var(--fg-muted); font-style: italic; border-bottom: 1px dashed rgb(227 162 46 / .55); }   /* 🔶 placeholder */

/* nízké okno (notebook s lištami): nápověda hledání ustoupí, aby se obrazovka nezačala posouvat */
@media (max-height: 680px) and (min-width: 992px) { .cc-ask__hints { display: none; } }
@media (hover: none) { .cc-ask__field .e-kbd { display: none; } }   /* dotyk: klávesová zkratka nedává smysl */

/* homepage: stavová lišta přes celou šířku jako hlavička (rám obrazovky), obsah zůstává v kontejneru */
.cc-bar .cc-bar__inner { max-width: var(--frame-max); padding-inline: var(--frame-pad); }
/* širší kontejner na velkých displejích */
@media (min-width: 1680px) { .cc-hero .cc-hero__inner { max-width: 1560px; } }

/* ---------- světlý motiv: homepage ---------- */
[data-theme="light"] .cc-hero {
  background:
    radial-gradient(60% 65% at 74% 48%, #fff, transparent 72%),
    radial-gradient(45% 40% at 8% 105%, rgb(227 162 46 / .1), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
}
[data-theme="light"] .display-e { text-shadow: none; }
[data-theme="light"] .cc-link { stroke: rgb(var(--tint) / .2); }
[data-theme="light"] .lat-cell { stroke: rgb(var(--tint) / calc(var(--o, .08) * 1.6)); }
[data-theme="light"] .cc-radar__ring { border-color: rgb(var(--tint) / .09); }
[data-theme="light"] .cc-core { background: radial-gradient(closest-side, #fff, rgb(255 255 255 / .7) 70%, transparent); }
[data-theme="light"] .cc-ask__field { background: rgb(255 255 255 / .9); border-color: rgb(var(--tint) / .16); box-shadow: 0 1px 2px rgb(16 32 60 / .05), 0 14px 30px -20px rgb(16 32 60 / .3); }
[data-theme="light"] .cc-ask__hints button { background: rgb(255 255 255 / .7); }
[data-theme="light"] .cc-bar { background: rgb(255 255 255 / .8); }

/* ---------- mobil jako aplikace (≤ 767 px): homepage = nástěnka ----------
   hlavní sdělení + konzultace nahoře, pod tím novinky a klíčové služby; scéna, hledání (je ve spodní liště) a stavová lišta pryč.
   „Omezit pohyb“ je v menu. */
.cc-dash { display: none; }
@media (max-width: 767.98px) {
  .cc-hero { min-height: 0; }
  .cc-hero__inner { padding-block: 1.5rem 2rem; }
  .cc-orbit, .cc-ask, .cc-bar { display: none; }
  .cc-dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2.25rem; }   /* sloupec se smí zúžit */
  .cc-dash__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .75rem; }
  .cc-dash__t { display: inline-flex; align-items: center; gap: .5rem; margin: 0; color: var(--fg-muted); font: 700 .75rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; }
  .cc-dash__t .icon { width: 18px; height: 18px; color: var(--accent-fg); }
  .cc-dash__all { display: inline-flex; align-items: center; min-height: 40px; color: var(--accent-fg); font-weight: 700; font-size: .875rem; text-decoration: none; }
  .cc-dash__list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--bd-object); border-radius: var(--r-panel); overflow: hidden;
    background: rgb(var(--surface-rgb) / calc(.55 + var(--surface-boost))); }
  .cc-dash__list li + li { border-top: 1px solid var(--line); }
  .cc-dash__list a { display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: .8rem 1rem; color: var(--fg-strong); text-decoration: none; }
  .cc-dash__list a > span { flex: 1; min-width: 0; }
  /* štítek stavu se smí zalomit jen v úzkém seznamu vůči písmu (200% text); běžně má seznam ≥ 15 em → beze změny */
  .cc-dash__list { container-type: inline-size; }
  @container (max-width: 14em) { .cc-dash__list .st-mark { white-space: normal; } }
  .cc-dash__list small { display: block; margin-bottom: .2rem; color: var(--accent-fg); font: var(--label); letter-spacing: var(--label-track); text-transform: uppercase; }
  .cc-dash__list b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .9375rem; font-weight: 700; line-height: 1.35; }
  .cc-dash__list .icon, .cc-dash__tiles .icon { width: 18px; height: 18px; flex: none; color: var(--fg-muted); }
  .cc-dash__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
  .cc-dash__tiles a { display: flex; flex-direction: column; gap: .35rem; height: 100%; min-height: 118px; padding: 1rem; border: 1px solid var(--bd-object); border-radius: var(--r-panel);
    background: rgb(var(--surface-rgb) / calc(.55 + var(--surface-boost))); color: var(--fg-strong); text-decoration: none; }
  .cc-dash__ico { display: block; margin-bottom: .35rem; line-height: 0; }
  .cc-dash__tiles .cc-dash__ico .icon { width: 24px; height: 24px; color: var(--accent-fg); }
  .cc-dash__tiles b { font-size: .9375rem; line-height: 1.3; }
  .cc-dash__tiles small { margin-top: auto; color: var(--fg-muted); font: 600 .6875rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
  /* navigační čtveřice (Kontakt · Divize · Intelligence · Platforma): stejná dlaždice, nadpis verzálkami, bez dalšího posouvání */
  .cc-dash__tiles--nav b { font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .cc-dash__tiles--nav a { min-height: 124px; }
  :is(.cc-dash__list a, .cc-dash__tiles a, .cc-dash__all):focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
}
.cc-dash__list .nw-flag { margin-right: .45rem; padding: .05rem .4rem; border: 1px solid currentColor; border-radius: var(--r-pill); font-size: .5625rem; }
.cc-dash__list .nw-flag--featured { border-color: transparent; background: var(--e-amber); color: var(--e-navy); }
.cc-dash__list .nw-flag--new { color: var(--signal-ok); }

/* ---------- signály radaru: karta článku nad uzlem, který právě zachytil paprsek (home.js 5b) ----------
   radar zůstává beze změny; karty jsou samostatná vrstva nad scénou (scéna je aria-hidden a neklikatelná) */
.cc-sigs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cc-sigs ul { margin: 0; padding: 0; list-style: none; }
html:not(.cc-live) .cc-sigs { display: none; }
@media (max-width: 991.98px) { .cc-sigs { display: none; } }
.cc-sig { position: absolute; left: 0; top: 0; width: 248px; translate: var(--x, 0) var(--y, 0); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.96);
  transition: opacity .35s var(--e-ease-out), transform .5s var(--e-ease-out), visibility 0s .5s; }
.cc-sig.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--e-ease-out), transform .5s var(--e-ease-out), visibility 0s; pointer-events: auto; }
.cc-sig a { position: relative; display: grid; gap: .3rem; padding: .5rem .5rem .7rem; border: 1px solid rgb(227 162 46 / .45); border-radius: var(--r-panel);
  background: rgb(var(--surface-rgb) / calc(.74 + var(--surface-boost))); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 28px -10px rgb(227 162 46 / .45), 0 22px 50px -26px rgb(var(--shadow-rgb) / calc(.9 * var(--shadow-k)));
  color: var(--fg-strong); text-decoration: none; transition: border-color var(--dur-fast), translate var(--dur-base) var(--e-ease-out); }
.cc-sig a::after { content: ""; position: absolute; left: var(--tip, 50%); bottom: -7px; width: 12px; height: 12px; margin-left: -6px; rotate: 45deg;
  border: solid rgb(227 162 46 / .45); border-width: 0 1px 1px 0; background: rgb(var(--surface-rgb) / calc(.92 + var(--surface-boost))); }
/* špička míří na uzel podle strany, kde karta stojí (home.js: data-side) */
.cc-sig[data-side="bottom"] a::after { top: -7px; bottom: auto; rotate: 225deg; }
.cc-sig[data-side="right"] a::after, .cc-sig[data-side="left"] a::after { top: var(--tip, 50%); bottom: auto; margin: -6px 0 0; }
.cc-sig[data-side="right"] a::after { left: -7px; rotate: 135deg; }
.cc-sig[data-side="left"] a::after { left: auto; right: -7px; rotate: -45deg; }
.cc-sig[data-side="bottom"] { transform-origin: top; }
.cc-sig a:hover { border-color: var(--accent-line); translate: 0 -2px; }
.cc-sig a:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.cc-sig__img { display: block; aspect-ratio: 3 / 1; overflow: hidden; border-radius: var(--r-control); background: var(--bg-deep); }
.cc-sig__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cc-sig__k { display: flex; align-items: center; gap: .45rem; margin-top: .25rem; padding-inline: .2rem; color: var(--accent-fg); font: 600 .625rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.cc-sig__k i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--e-amber); box-shadow: 0 0 0 3px rgb(227 162 46 / .22); }
.cc-live .cc-sig.is-on .cc-sig__k i { animation: cc-sig-dot 1.6s var(--e-ease-out) infinite; }
@keyframes cc-sig-dot { 50% { box-shadow: 0 0 0 6px rgb(227 162 46 / 0); } }
.cc-sig b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; padding-inline: .2rem; font-size: .875rem; line-height: 1.3; }
.cc-sig small { padding-inline: .2rem; color: var(--fg-muted); font-size: .6875rem; }
@media (max-width: 1599.98px) { .cc-sig { width: 220px; } .cc-sig b { font-size: .8125rem; } }

/* RC2 A4: stav obsahu v řádcích homepage (signály, nástěnka, upoutávka) – tichý, ve stylu okolního textu */
.st-mark { white-space: nowrap; }

/* ---------- obrazovky homepage za tečkami: Divize, Novinky, Platforma, Intelligence (html/layouts/eranul/screens.php, home.js §10) ----------
   Výchozí = hlavní obrazovka. Další přijede zprava jen po aktivitě návštěvníka (spouštěč, tečky); obrazovky vlevo od aktuální
   stojí v -100 %, vpravo v +100 % (transformace, dokument se neposouvá). Všechny sdílí buňku mřížky .cc-hero, výšku dává
   aktuální (ostatní mají contain: size). Bez JS = běžné bloky pod obrazovkou.
   Délky přechodů jsou tokeny: s omezeným pohybem (systém i přepínač) jsou 0 → obrazovky se přepnou bez pohybu. */
@supports (overflow: clip) { .cc-hero { overflow: clip; } }   /* fokus ani scrollIntoView nesmí obsah heru odsunout do strany */
.js .cc-hero__inner, .js .dv { grid-area: 1 / 1; }
.js .cc-hero__inner { transition: transform var(--dur-slow) var(--ease-lock), opacity var(--dur-base) var(--ease-out), visibility 0s; }
.js .dv {
  contain: size; visibility: hidden; opacity: 0; transform: translate3d(100%, 0, 0);
  transition: transform var(--dur-slow) var(--ease-lock), opacity var(--dur-base) var(--ease-out), visibility 0s var(--dur-slow);
}
.cc-hero.is-dv-open .cc-hero__inner {
  contain: size; visibility: hidden; opacity: 0; transform: translate3d(-100%, 0, 0);
  transition: transform var(--dur-slow) var(--ease-lock), opacity var(--dur-base) var(--ease-out), visibility 0s var(--dur-slow);
}
.js .dv.is-before { transform: translate3d(-100%, 0, 0); }
.js .dv.is-current { contain: none; visibility: visible; opacity: 1; transform: none; transition: transform var(--dur-slow) var(--ease-lock), opacity var(--dur-base) var(--ease-out), visibility 0s; }
.cc-scene, .cc-sigs { transition: opacity var(--dur-slow) var(--ease-out); }
.cc-hero.is-dv-open .cc-scene { opacity: .3; }                    /* scéna ustoupí, buňka zůstává jako podklad */
.cc-hero.is-dv-open .cc-sigs { opacity: 0; }                      /* signály jsou zároveň inert (home.js) */


.dv { position: relative; z-index: 2; min-width: 0; display: flex; align-items: center; padding-block: clamp(.75rem, 3vh, 3rem); }
.dv__inner { min-width: 0; }
@media (min-width: 1680px) { .dv .dv__inner { max-width: 1560px; } }
.dv__head { display: grid; grid-template: "back back" auto "text ctrl" auto / minmax(0, 1fr) auto; align-items: end; gap: 1rem 1.5rem; margin-bottom: clamp(1rem, 3vh, 1.75rem); }
.dv__back { grid-area: back; justify-self: start; min-height: 44px; }
.dv__back .icon, .dv__step--prev .icon { scale: -1 1; }
@media (hover: hover) and (pointer: fine) { .dv__back:hover .icon { translate: -6px 0; } }
.dv__heading { grid-area: text; min-width: 0; }
.dv__title { margin: 0 0 .5rem; font-size: clamp(1.6rem, 1.6vw + 1rem, 2.6rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.dv__title:focus, .dv__title:focus-visible { outline: none; }   /* cíl fokusu po otevření, ne ovládací prvek */
.dv__intro { max-width: 40rem; margin: 0; color: var(--fg); }
.dv__ctrl { grid-area: ctrl; display: flex; gap: .5rem; }
.dv__step { color: var(--fg-strong); cursor: pointer; }
.dv__step:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.dv__step[aria-disabled="true"] { opacity: .35; cursor: default; background: transparent; border-color: var(--line-strong); }
.dv--fits .dv__ctrl { visibility: hidden; }

/* karty: nativní vodorovné posouvání se scroll snap (myš, trackpad, dotyk, klávesy), bez vlastního karuselu */
.dv__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(15rem, 19vw, 19rem); gap: 1rem;
  margin: 0 -6px; padding: 6px; list-style: none;                 /* 6px: místo pro rámeček fokusu */
  overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 6px;
  scroll-behavior: smooth; scrollbar-width: none;
}
.dv__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .dv__track { scroll-behavior: auto; } }
[data-motion="reduced"] .dv__track { scroll-behavior: auto; }
.dv-card { min-width: 0; scroll-snap-align: start; }
.dv-card__link {
  display: flex; flex-direction: column; gap: .45rem; height: 100%; padding: 1.25rem; border: 1px solid var(--bd-object); border-radius: var(--r-panel);
  background: rgb(var(--surface-rgb) / calc(.62 + var(--surface-boost))); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--fg-strong); text-decoration: none;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), translate var(--dur-base) var(--e-ease-lock);
}
.dv-card__media { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .35rem; border: 1px solid rgb(227 162 46 / .45); border-radius: var(--r-control); color: var(--accent-fg); }
.dv-card__media .icon { width: 24px; height: 24px; }
.dv-card__area { color: var(--fg-muted); font-size: .625rem; }
.dv-card__title { margin: 0; font-size: var(--fs-h3); font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.dv-card__name { color: var(--accent-fg); font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.dv-card__desc { margin: 0; color: var(--fg); font-size: .9375rem; line-height: 1.5; }
/* karta článku (Novinky): náhled nahoře přes celou šířku, název v běžném písmu (dlouhé titulky), datum a stav pod perexem */
.dv-card__img { display: block; aspect-ratio: 3 / 1; margin: -1.25rem -1.25rem .35rem; overflow: hidden; border-radius: var(--r-panel) var(--r-panel) 0 0; background: var(--bg-deep); }
.dv-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dv--articles .dv-card__title { font-size: 1.0625rem; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.dv-card__meta { color: var(--fg-muted); font-size: .8125rem; }
.dv-card__cta { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .5rem; font: 700 .75rem/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.dv-card__cta .icon { width: 16px; height: 16px; color: var(--accent-fg); transition: translate var(--dur-base) var(--e-ease-lock); }
.dv-card__link:hover { border-color: var(--accent-line); translate: 0 -2px; }
.dv-card__link:hover .dv-card__cta .icon { translate: 4px 0; }
.dv-card__link:active { translate: 0 0; }
.dv-card__link:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.dv__foot { margin-top: .5rem; }
.dv__all { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--accent-fg); font-weight: 700; font-size: .9375rem; text-decoration: none; }
.dv__all:hover { text-decoration: underline; text-underline-offset: 4px; }
.dv__all:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 575.98px) {
  .dv__head { grid-template: "back ctrl" auto "text text" auto / minmax(0, 1fr) auto; align-items: center; }
  .dv__track { grid-auto-columns: min(82vw, 20rem); }
}
/* nízké okno na počítači (notebook 768 px): Zpět a šipky v jednom řádku, hustší karty; pod 700 px ustoupí dekorativní
   náhled článku a ikona karty, pod 680 px úvodní věta (jako nápověda hledání) */
@media (max-height: 800px) and (min-width: 576px) {
  .dv__head { grid-template: "back ctrl" auto "text text" auto / minmax(0, 1fr) auto; align-items: center; gap: .6rem 1.5rem; margin-bottom: .9rem; }
  .dv-card__link { padding: 1rem; gap: .35rem; }
  .dv-card__img { margin: -1rem -1rem .2rem; aspect-ratio: 4 / 1; }
  .dv-card__media { width: 40px; height: 40px; margin-bottom: .15rem; }
}
@media (max-height: 700px) and (min-width: 576px) { .dv-card__img, .dv-card__media { display: none; } }
@media (max-height: 680px) and (min-width: 576px) { .dv { padding-block: .5rem; } .dv__intro { display: none; } }
/* tečky obrazovek (jako u karuselu): dole uprostřed společné buňky, mimo oba panely, takže fungují v obou stavech; jen s JS */
.cc-pager { display: none; }
.js .cc-pager { grid-area: 1 / 1; align-self: end; justify-self: center; z-index: 3; display: flex; }
@media (max-width: 767.98px) { .js .cc-pager { display: none; } }   /* mobil: svislá nástěnka Novinky → Kam dál, bez teček (vypadaly jako pager dlaždic); obrazovky homepage jsou na desktopu */
.cc-pager__dot { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; }
.cc-pager__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; translate: -50% -50%; border-radius: var(--r-pill);
  background: rgb(var(--tint) / .5); transition: width var(--dur-base) var(--ease-lock), background-color var(--dur-fast), scale var(--dur-fast);
}
.cc-pager__dot:hover::before { background: rgb(var(--tint) / .85); }
.cc-pager__dot[aria-current="true"]::before { width: 24px; background: var(--e-amber); }
.cc-pager__dot:active::before { scale: .8; }
.cc-pager__dot:focus-visible { outline: 3px solid var(--ring); outline-offset: -8px; }
@media (max-width: 767.98px) {
  .js .cc-pager { justify-self: end; margin-right: calc(var(--gutter) - 14px); }   /* vpravo: odkaz „Zobrazit všechny divize“ je vlevo */
  .js .cc-hero__inner, .js .dv { padding-bottom: 3.5rem; }
}
.dv-instant :is(.cc-hero__inner, .dv, .cc-scene, .cc-sigs) { transition: none !important; }   /* příchod s #divize-prehled: bez přejezdu */
/* bez JS: obyčejná mřížka pod hlavní obrazovkou (spouštěč na ni skočí kotvou), bez ovládání panelu */
.no-js .dv__back, .no-js .dv__ctrl { display: none; }
.no-js .dv__track { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); overflow: visible; }
[data-theme="light"] .dv-card__link { background: rgb(255 255 255 / .86); }
