/* ERANUL – sdílené komponenty všech stránek (homepage, sekce platformy, detaily služeb).
   Vzhled vychází z komponent původní šablony (pilulka, karta, jantar), interakce z motion jazyka „Jedna buňka“.
    */

/* Public Sans: stejný variabilní font jako původní šablona (lokálně, přednačítá se); WOFF2 podmnožina všech znaků webu (latinka vč. češtiny, interpunkce, šipky; 30 KB místo 104 KB), původní TTF jako záloha */
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/PublicSans-wght-latin.woff2') format('woff2'), url('../original/fonts/Public_Sans/PublicSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* JetBrains Mono 500 (popisky, kódy): lokálně, dva rozsahy znaků (čeština je v latin-ext) */
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; 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 {
  --e-navy: #072245;
  --e-navy-deep: #020e1d;
  --e-amber: #e3a22e;
  --e-amber-dark: #aa720e;
  --e-cream: #f5e9d3;
  --e-sub: #ebebeb;
  --e-card-bg: #cfa64e33;                 /* plocha karty originálu (jantar 20 % přes navy) */
  --e-card-bd: rgb(var(--tint) / .2);     /* rámeček 2 px originálu */
  --e-radius: 20px;
  --e-ease-out: cubic-bezier(.22, 1, .36, 1);
  --e-ease-lock: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- tlačítko-pilulka ---------- */
.e-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .55rem min(1.75rem, 28px); border: 2px solid var(--fg-strong); border-radius: var(--r-pill);   /* okraj se strop v px: velký text ho nezvětší */
  font: 800 clamp(1rem, 1.3vw, 1.25rem)/1.2 "Public Sans", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .01em;
  color: var(--fg-strong); background: transparent; text-decoration: none; cursor: pointer;
  transition: background-color .22s, color .22s, translate .22s var(--e-ease-lock), box-shadow .22s, scale 80ms;
}
.e-btn--solid { background: var(--e-amber); color: var(--e-navy); }       /* navy text: 7,24 : 1 (bílá 2,19 : 1 neprojde WCAG) */
.e-btn--solid:hover { background: var(--signal-hover, #f0bb55); color: var(--e-navy); }   /* IMP-002: navy na amber-400 9,0 : 1 (dřív bílá na amber-dark 4,10 : 1) */
.e-btn--ghost:hover { background: rgb(var(--tint) / .08); color: var(--fg-strong); }
.e-btn--sm { min-height: 40px; padding: .4rem min(1.1rem, 17.6px); font-size: .875rem; }
.e-btn .icon { width: 1.1em; height: 1.1em; transition: translate .22s var(--e-ease-lock); }
/* lesk přes tlačítko */
.e-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(var(--tint) / .35) 50%, transparent 65%);
  translate: -120% 0;
}
@media (hover: hover) and (pointer: fine) {
  .e-btn:hover { translate: 0 -2px; box-shadow: 0 10px 24px -10px rgb(var(--shadow-rgb) / calc(.6 * var(--shadow-k))); }
  .e-btn:hover::after { translate: 120% 0; transition: translate .7s var(--e-ease-out); }
  .e-btn:hover .icon { translate: 6px 0; }
}
.e-btn:active { translate: 0 0; scale: .98; }
.e-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

/* ---------- karta ---------- */
.e-card {
  position: relative; isolation: isolate;
  background: var(--e-card-bg); border: 2px solid var(--e-card-bd); border-radius: var(--e-radius);
  color: var(--fg-strong);
  transition: translate .3s var(--e-ease-lock), box-shadow .3s, background-color .3s;
}
/* jantarové podtržení pod titulkem (60 × 2 px) */
.e-uline { position: relative; padding-bottom: 14px; margin-bottom: 18px; }
.e-uline::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 60px; height: 2px; margin-left: -30px;
  background: var(--e-amber); border-radius: 2px;
}
.e-uline--left::after { left: 0; margin-left: 0; }
/* kroužek s ikonou (původní ikony kontaktů a sociálních sítí) */
.e-ring { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 2.5px solid var(--fg-strong); border-radius: 50%; color: var(--fg-strong); transition: border-color .2s, color .2s; }
.e-ring img { width: 100%; height: 100%; }

/* ---------- přepínač „Omezit pohyb“ (obě stránky) ---------- */
.motion-toggle {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding: .45rem .9rem .45rem .55rem;
  background: transparent; color: rgb(var(--tint) / .75); border: 2px solid rgb(var(--tint) / .25); border-radius: var(--r-pill);
  font: 600 .875rem/1 "Public Sans", sans-serif; cursor: pointer; transition: color .2s, border-color .2s;
}
.motion-toggle:hover { color: var(--fg-strong); border-color: rgb(var(--tint) / .6); }
.motion-toggle:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.motion-toggle__switch { position: relative; width: 34px; height: 20px; border-radius: var(--r-pill); background: var(--switch-off); transition: background-color .2s; }
.motion-toggle__switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: translate .2s var(--e-ease-lock); }
.motion-toggle[aria-pressed="true"] { color: var(--fg-strong); }
.motion-toggle[aria-pressed="true"] .motion-toggle__switch { background: var(--e-amber); }
.motion-toggle[aria-pressed="true"] .motion-toggle__switch::after { translate: 14px 0; background: var(--e-navy); }

/* ==========================================================================
   Hlavička, menu a formulář – SPOLEČNÉ VŠEM STRÁNKÁM.
   Markup je v index.php šablony.
   Potřebuje design-system/tokens.css. Třídy mají předponu e-.
   ========================================================================== */
/* SVG sprite s ikonami (blok shared:sprite) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono-label {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
}

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.2em;
}

.link-quiet { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }

.link-quiet:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-line); }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--signal-ok); box-shadow: 0 0 0 0 rgb(63 208 138 / .5);
  animation: live 1.6s var(--ease-out) 3;
}
@keyframes live { to { box-shadow: 0 0 0 8px rgb(63 208 138 / 0); } }

/* stav načítání (formulář) */
.btn__loading { display: none; gap: 5px; }
.btn__loading i { width: 7px; height: 8px; background: currentColor; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); animation: dots .9s var(--ease-in-out) infinite; }
.btn__loading i:nth-child(2) { animation-delay: .15s; }
.btn__loading i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.e-btn[aria-busy="true"] { pointer-events: none; }
.e-btn[aria-busy="true"] .btn__label { opacity: 0; }
.e-btn[aria-busy="true"] .btn__loading { display: inline-flex; position: absolute; }
#formSubmit { position: relative; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--fg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.icon-btn:hover { background: rgb(var(--tint) / .06); border-color: var(--accent-line); }
.icon-btn:active { transform: scale(.96); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- přechod mezi stránkami: obsah se prolne, hlavička zůstává (Chrome/Edge 126+, jinde běžné načtení).
   Samotné zapnutí (@view-transition) vkládá assets/shared/eranul-boot.js jen přes http(s). ---------- */
.e-header { view-transition-name: e-header; }
::view-transition-old(root) { animation: e-vt-out .16s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: e-vt-in .34s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes e-vt-out { to { opacity: 0; } }
@keyframes e-vt-in { from { opacity: 0; transform: translateY(10px); } }
[data-motion="reduced"]::view-transition-group(*), [data-motion="reduced"]::view-transition-old(*), [data-motion="reduced"]::view-transition-new(*) { animation: none !important; }

/* ---------- hlavička „command center“: živá značka · menu · hledání + platforma (jeden řádek, všechny stránky) ---------- */
/* výška hlavičky roste s velikostí textu (text 200 %); při výchozí velikosti 16 px přesně 72 px */
:root { --top-h: 0px; --nav-h: calc(72px + (1rem - 16px) * 1.25); }
.e-header {
  position: fixed; inset: 0 0 auto; z-index: 1030; height: var(--nav-h);
  background: rgb(var(--header-rgb) / .78); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.e-header.is-compact { background: rgb(var(--chrome-rgb) / .9); box-shadow: 0 14px 34px -20px rgb(var(--shadow-rgb) / calc(.9 * var(--shadow-k))); }
/* lišta v rámu aplikace (--frame-max, na širším okně vystředěný): značka u levého okraje rámu, menu uprostřed, akce vpravo.
   Stejná na všech stránkách, aby při přechodu mezi nimi hlavička neposkočila. */
.e-header .e-header__bar { height: 100%; max-width: var(--frame-max); padding-inline: var(--frame-pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 2.5vw, 3rem); }
@media (max-width: 991.98px) { .e-header .e-header__bar { grid-template-columns: auto 1fr auto; gap: .75rem; } }
.e-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; }
/* zvětšený text (200 %): když se menu s akcemi nevejde (pod 50 em; desktop potřebuje ~47 em), hlavička přejde
   do varianty pro menší displeje – menu pod tlačítkem (offcanvas), hledání, motiv a platforma zůstávají v liště.
   Při běžném písmu má hlavička od 992 px ≥ 58 em, takže desktop beze změny. !important kvůli utilitám Bootstrapu (d-lg-*). */
.e-header { container-type: inline-size; }
@container (max-width: 50em) {
  .e-header .e-header__bar { grid-template-columns: auto 1fr auto; gap: .75rem; }
  .e-header .e-nav { display: none !important; }
}
/* tlačítko menu jen od 768 px; pod tím je menu ve spodní liště (hlavička ho skrývá, viz mobilní varianta níže) */
@media (min-width: 768px) {
  @container (max-width: 50em) { .e-header .e-header__actions .icon-btn.d-lg-none { display: inline-grid !important; } }
}

/* začátek lišty: značka + decentní kontakt (kontakt jen na širokých displejích, na mobilu je v menu) */
.e-header__start { display: flex; align-items: center; gap: 1.1rem; justify-self: start; min-width: 0; }
.e-header__contact { display: none; margin: 0; padding-left: 1.1rem; border-left: 1px solid var(--line); font-size: .75rem; line-height: 1.45; font-variant-numeric: tabular-nums; white-space: nowrap; }
.e-header__contact a { display: block; color: var(--fg-muted); text-decoration: none; transition: color var(--dur-fast); }
.e-header__contact a:hover { color: var(--fg-strong); }
.e-header__contact a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 3px; }
@media (min-width: 1600px) { .e-header__contact { display: block; } }

/* živá značka: buňka ve tvaru loga dýchá, svítí a vysílá puls sítě; hover ji „překreslí“ */
.e-brand { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; color: var(--fg-strong); text-decoration: none; border-radius: var(--r-control); }
.e-brand__mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.e-brand__cell { width: 40px; height: 40px; --sw: 4.4; color: var(--fg-strong); transition: filter .45s var(--e-ease-out), scale .5s var(--e-ease-lock); }
.e-brand__cell path { stroke-dasharray: 1 1; }
.e-brand__cell .c-accent { transition: translate .5s var(--e-ease-lock); }
.e-brand__word { display: block; height: 32px; width: auto; transition: opacity .3s; }
.e-brand__word--light, [data-theme="light"] .e-brand__word--dark { display: none; }
[data-theme="light"] .e-brand__word--light { display: block; }
.e-brand__pulse { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(227 162 46 / .6); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduced"]) .e-brand__cell { animation: e-brand-breathe 6s var(--ease-in-out) infinite; }
  :root:not([data-motion="reduced"]) .e-brand__pulse { animation: e-brand-pulse 6s var(--e-ease-out) infinite; }
  :root:not([data-motion="reduced"]) .e-brand:is(:hover, :focus-visible) .c-shell { animation: e-brand-draw .9s var(--e-ease-out); }
}
@keyframes e-brand-breathe {
  0%, 100% { scale: 1; filter: drop-shadow(0 0 0 rgb(227 162 46 / 0)); }
  50% { scale: 1.04; filter: drop-shadow(0 0 7px rgb(227 162 46 / .4)); }
}
@keyframes e-brand-pulse { 0%, 50% { opacity: 0; scale: .75; } 58% { opacity: .85; } 100% { opacity: 0; scale: 1.9; } }
@keyframes e-brand-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.e-brand:is(:hover, :focus-visible) .e-brand__cell { filter: drop-shadow(0 0 10px rgb(227 162 46 / .75)); }
.e-brand:is(:hover, :focus-visible) .e-brand__cell .c-accent { translate: 0 -2.5px; }
@media (max-width: 380px), (min-width: 992px) and (max-width: 1199.98px) { .e-brand__word { height: 26px; } }

/* hledání (otevírá paletu příkazů) */
.e-search-trigger {
  display: inline-flex; align-items: center; gap: .55rem; height: 42px; padding: 0 .5rem 0 .85rem;
  border: 1px solid rgb(var(--tint) / .18); border-radius: var(--r-pill); background: rgb(var(--tint) / .05);
  color: rgb(var(--tint) / .82); font: 600 .875rem/1 "Public Sans", sans-serif; cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-base) var(--e-ease-out);
}
.e-search-trigger:hover { color: var(--fg-strong); border-color: rgb(227 162 46 / .65); background: rgb(var(--tint) / .08); box-shadow: 0 0 0 4px rgb(227 162 46 / .1); }
.e-search-trigger:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.e-search-trigger .icon { width: 18px; height: 18px; }
.e-kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; padding: .18rem .4rem;
  border: 1px solid rgb(var(--tint) / .2); border-bottom-width: 2px; border-radius: 6px; background: rgb(var(--tint) / .06);
  color: rgb(var(--tint) / .78); font: 600 .6875rem/1.2 var(--font-mono); letter-spacing: .02em; white-space: nowrap;
}
/* přepínač motivu: měsíc | slunce, jezdec ukazuje zvolený */
.e-theme {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; flex: none; width: 76px; height: 42px; padding: 3px;
  border: 1px solid rgb(var(--tint) / .18); border-radius: var(--r-pill); background: rgb(var(--tint) / .05); color: rgb(var(--tint) / .6); cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-base) var(--e-ease-out);
}
.e-theme:hover { border-color: rgb(227 162 46 / .65); box-shadow: 0 0 0 4px rgb(227 162 46 / .1); }
.e-theme:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.e-theme .icon { position: relative; justify-self: center; width: 17px; height: 17px; transition: color var(--dur-base), rotate .5s var(--e-ease-lock); }
.e-theme__thumb { position: absolute; left: 3px; top: 3px; width: 34px; height: 34px; border-radius: 50%; background: var(--e-amber); box-shadow: 0 4px 10px -4px rgb(var(--shadow-rgb) / .6); transition: translate .45s var(--e-ease-lock); }
.e-theme[aria-pressed="true"] .e-theme__thumb { translate: 34px 0; }
.e-theme[aria-pressed="false"] .e-theme__moon, .e-theme[aria-pressed="true"] .e-theme__sun { color: var(--e-navy); }
.e-theme[aria-pressed="true"] .e-theme__sun { rotate: 90deg; }
html.no-js :is(.e-theme, .e-theme-m, .mobile-nav__theme) { display: none; }   /* bez JS nejde přepnout */
/* mobilní hlavička (≤ 767 px): rychlý telefon a e-mail + jedna ikona motivu, jen ikony (číslo je v aria-label a v tel:).
   Pravá skupina má pevnou šířku --e-actions-w (3 × --e-qb, viz mobilní blok níže); titulek sekce na stránkách s cockpitem (.ck-bar v cockpit.css)
   i logo se přizpůsobují zbylé šířce a do skupiny nikdy nezasáhnou. Od 768 px ji skrývá Bootstrap (d-md-none), platí dosavadní .e-theme. */
.e-quick { display: flex; align-items: center; flex: none; }
.e-quick__a, .e-theme-m {
  display: grid; place-items: center; flex: none; width: var(--e-qb, 40px); height: 44px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--fg); font: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.e-quick__a .icon, .e-theme-m .icon { width: 20px; height: 20px; }
.e-quick__t { display: none; }   /* text kontaktu: jen když se vejde (html[data-e-contact], eranul-kit.js › contacts()) */
.e-theme-m { color: var(--accent-fg); }
.e-quick__a:is(:hover, :active), .e-theme-m:is(:hover, :active) { background: rgb(var(--tint) / .08); }
.e-quick__a:focus-visible, .e-theme-m:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }
.e-theme-m__moon { display: none; }
[data-theme="light"] .e-theme-m__sun { display: none; }
[data-theme="light"] .e-theme-m__moon { display: block; }
/* segmentový přepínač (mobilní menu) */
.mobile-nav__theme { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--fg-muted); }
.e-seg { display: inline-flex; padding: 3px; border: 1px solid rgb(var(--tint) / .18); border-radius: var(--r-pill); background: rgb(var(--tint) / .05); }
.e-seg button { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 1rem; border: 0; border-radius: var(--r-pill); background: none; color: rgb(var(--tint) / .75); font: 700 .875rem/1 "Public Sans", sans-serif; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.e-seg button .icon { width: 16px; height: 16px; }
.e-seg button[aria-pressed="true"] { background: var(--e-amber); color: var(--e-navy); }
.e-seg button:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
/* vstup do platformy: obrysově s jantarovou linkou – jediné plné jantarové tlačítko je Nezávazná konzultace */
.e-launch { white-space: nowrap; border-color: var(--accent-line); }
.e-launch .icon { width: 1.05em; height: 1.05em; color: var(--accent-fg); }
.e-launch:hover { border-color: var(--accent-line); background: rgb(227 162 46 / .12); }
.e-launch__s { display: none; }
/* stupně podle šířky: hledání s popiskem od 1440 px, plný popisek platformy od 1760 px, ikona platformy pod 1280 px */
@media (max-width: 1439.98px) {
  .e-search-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .e-search-trigger__label, .e-search-trigger .e-kbd { display: none; }
}
@media (max-width: 1759.98px) { .e-launch__l { display: none; } .e-launch__s { display: inline; } }
/* mobil: vstup do platformy zůstává v hlavičce jako klíč (název pro čtečky zachován) */
/* totéž na užším desktopu (992–1279 px): menu potřebuje místo, jinak se značka lepí na první položku */
@media (max-width: 575.98px), (min-width: 992px) and (max-width: 1279.98px) {
  .e-launch { width: 44px; min-height: 44px; padding: 0; gap: 0; }
  .e-launch .icon { width: 20px; height: 20px; }
  .e-launch__s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.e-nav { position: relative; height: 100%; justify-self: center; }
.e-nav ul { height: 100%; align-items: center; gap: clamp(0px, (100vw - 1360px) / 36, 1.5rem); }
.nav-link-e {
  display: block; padding: .5rem clamp(.5rem, 1.1vw, 1.15rem);
  color: var(--fg-strong); text-decoration: none; font-weight: 700; font-size: clamp(.9rem, 1vw, 1.05rem); letter-spacing: .04em; text-transform: uppercase;
  transition: color var(--dur-fast);
}
@media (max-width: 1099.98px) { .nav-link-e { padding-inline: .4rem; font-size: .84rem; letter-spacing: .02em; } }
.nav-link-e:hover, .nav-link-e[aria-current] { color: var(--accent-fg); }

.mobile-nav { --bs-offcanvas-bg: var(--bg); --bs-offcanvas-width: min(420px, 100vw); color: var(--fg-strong); }
.mobile-nav .offcanvas-header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.mobile-nav .offcanvas-title { color: var(--fg-muted); }
.mobile-nav__list li + li { border-top: 1px solid var(--line); }
.mobile-nav__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: 1rem .25rem; color: var(--fg-strong);
  text-decoration: none; font-size: 1.375rem; font-weight: 800; text-transform: uppercase;
}
.mobile-nav__list a .mono-label { color: var(--fg-muted); }
.mobile-nav__list a:hover, .mobile-nav__list a[aria-current] { color: var(--accent-fg); }
.mobile-nav__contact { margin-top: 1.5rem; color: var(--fg-muted); line-height: 2; }

.cell {
  display: block; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: var(--sw, 2);
  stroke-linecap: round; stroke-linejoin: round;
}

.cell .c-accent { stroke: var(--accent-line); }

.cell--logo { --sw: 5.2; }

.cell--form { width: 40px; height: 40px; --sw: 2.6; color: var(--fg-muted); }


.form-e { padding: clamp(1.5rem, 3vw, 2.5rem); padding-top: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-float); }
.form-e__seal { position: absolute; right: 1.25rem; top: 1.25rem; }
.form-e.is-sent .cell--form { color: var(--fg); }
.form-label { font-weight: 500; font-size: 1rem; margin-bottom: .45rem; color: var(--e-sub); }
.field-e:focus-within .form-label { color: var(--accent-fg); }
.req { color: var(--accent-fg); }
.form-control, .form-select {
  --bs-body-bg: transparent;
  background-color: rgb(var(--tint) / .1); color: var(--fg-strong);                 /* původní pole: bílá 10 %, rádius 10 px */
  border: 2px solid transparent; border-radius: var(--r-control); padding: .8rem 1rem; font-size: 1rem; min-height: 50px;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-size .4s var(--ease-out), background-color var(--dur-fast);
}
.form-select {
  background-image: linear-gradient(var(--signal), var(--signal)), var(--bs-form-select-bg-img);
  background-position: 0 100%, right .9rem center; background-size: 0 2px, 16px 12px;
}
.form-control::placeholder { color: var(--fg-muted); opacity: 1; }   /* IMP-003: plná role motivu (≥ 4,5 : 1), tlumenější než zadaná hodnota (--fg-strong) */
.form-select option, .form-select optgroup { color: #111; }
.form-control:hover, .form-select:hover { background-color: rgb(var(--tint) / .14); }
.form-control:focus, .form-select:focus {
  background-color: rgb(var(--tint) / .14); color: var(--fg-strong); border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgb(227 162 46 / .2); background-size: 100% 2px;
}
.form-select:focus { background-size: 100% 2px, 16px 12px; }
.form-control[aria-invalid="true"] { border-color: var(--signal-high); box-shadow: 0 0 0 3px rgb(255 107 107 / .18); }
.form-control:disabled, .form-select:disabled { opacity: .5; }
.field-e__error { display: flex; align-items: center; gap: .4rem; margin: .45rem 0 0; color: var(--danger-fg); font-size: .875rem; }
.field-e__error:not([hidden]) { animation: fade-in var(--dur-fast) var(--ease-out); }
.field-e__error .icon { width: 16px; height: 16px; }
@keyframes fade-in { from { opacity: 0; } }
.form-e__note { color: var(--fg-muted); font-size: .875rem; flex: 1 1 14rem; }
.form-e__status:empty { display: none; }
.form-e__status {
  display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.25rem; padding: .9rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--line-strong); font-size: .9375rem; animation: fade-in var(--dur-base) var(--ease-out);
}
.form-e__status .icon { width: 20px; height: 20px; margin-top: .1rem; }
.form-e__status.is-ok { border-color: rgb(63 208 138 / .5); background: rgb(63 208 138 / .07); }
.form-e__status.is-ok .icon { color: var(--signal-ok); }
.form-e__status.is-error { border-color: rgb(255 107 107 / .5); background: rgb(255 107 107 / .07); }
.form-e__status.is-error .icon { color: var(--signal-high); }
.form-e__status p { margin: 0; }

/* ---------- mobilní menu: akce ---------- */
.mobile-nav__actions { display: grid; gap: .6rem; }

/* ---------- paleta příkazů (Ctrl/⌘+K, „/“) ---------- */
.e-palette {
  width: min(680px, calc(100vw - 2rem)); max-height: min(580px, calc(100svh - 7rem)); margin: 11vh auto auto; padding: 0;
  border: 1px solid rgb(var(--tint) / .16); border-radius: var(--r-panel); overflow: hidden; color: var(--fg-strong);
  background: linear-gradient(180deg, rgb(var(--surface-rgb) / calc(.94 + var(--surface-boost))), rgb(var(--chrome-rgb) / .97));
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 40px 100px -30px rgb(var(--shadow-rgb) / calc(.95 * var(--shadow-k))), 0 0 0 1px rgb(227 162 46 / .08), inset 0 1px 0 rgb(var(--tint) / .08);
}
.e-palette[open] { display: flex; flex-direction: column; animation: e-pal-in .34s var(--e-ease-out) both; }
.e-palette.is-closing, .e-platform.is-closing { animation: e-pal-out .17s cubic-bezier(.4, 0, 1, 1) both; }
.e-palette::backdrop { background: rgb(var(--scrim-rgb) / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: e-fade .3s var(--e-ease-out) both; }
@keyframes e-pal-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes e-pal-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes e-fade { from { opacity: 0; } }
.e-palette__head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.e-palette__head > .icon { width: 20px; height: 20px; color: var(--accent-fg); }
.e-palette__input { flex: 1; min-width: 0; padding: 0; background: transparent; border: 0; outline: 0; color: var(--fg-strong); font: 500 1.125rem/1.4 "Public Sans", sans-serif; }
.e-palette__input::placeholder { color: var(--fg-muted); }   /* IMP-003 */
.e-palette__list { flex: 1; margin: 0; padding: .5rem; overflow: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; }
.e-palette__group { padding: .8rem .65rem .35rem; color: var(--accent-fg); font: 700 .6875rem/1 "Public Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.e-palette__item {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .8rem;
  padding: .6rem .7rem; border-radius: var(--r-control); cursor: pointer;
  animation: e-pal-item .42s var(--e-ease-out) both; animation-delay: calc(var(--n, 0) * 16ms);
  transition: background-color .15s;
}
@keyframes e-pal-item { from { opacity: 0; translate: 0 6px; } }
.e-palette__item[aria-selected="true"] { background: rgb(227 162 46 / .12); box-shadow: inset 0 0 0 1px rgb(227 162 46 / .35); }
.e-palette__item[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: .65rem; bottom: .65rem; width: 3px; border-radius: 3px; background: var(--e-amber); }
.e-palette__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-control); background: rgb(var(--tint) / .06); border: 1px solid rgb(var(--tint) / .1); color: var(--fg-strong); transition: background-color .2s, color .2s; }
.e-palette__ico .icon { width: 18px; height: 18px; }
[aria-selected="true"] > .e-palette__ico { background: var(--e-amber); border-color: transparent; color: var(--e-navy); }
.e-palette__txt { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.e-palette__t, .e-palette__s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-palette__t { font-weight: 700; font-size: .9375rem; }
.e-palette__t mark { padding: 0; background: none; color: var(--accent-fg); }
.e-palette__s { color: var(--fg-muted); font-size: .8125rem; }
.e-palette__tag { padding: .3rem .45rem; border: 0; border-radius: 4px; background: rgb(var(--tint) / .07); color: var(--fg-muted); font: 600 .6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.e-palette__go { color: var(--accent-fg); opacity: 0; translate: -4px 0; transition: opacity .2s, translate .25s var(--e-ease-lock); }
.e-palette__go .icon { width: 16px; height: 16px; }
[aria-selected="true"] > .e-palette__go { opacity: 1; translate: 0 0; }
.e-palette__empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--fg-muted); }
.e-palette__empty p { margin-bottom: 1rem; }
.e-palette__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; padding: .7rem 1.1rem; border-top: 1px solid var(--line); color: var(--fg-muted); font-size: .75rem; }
.e-palette__foot .e-kbd + .e-kbd { margin-left: .2rem; }
.e-palette__brand { margin-left: auto; color: rgb(var(--tint) / .55); font: 500 .6875rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
@keyframes e-sheet-in { from { transform: translateY(100%); } }
@keyframes e-sheet-out { to { transform: translateY(100%); } }
@media (max-width: 767.98px) {
  /* mobil: bottom sheet od spodního okraje (přebírá místo spodní lišty jako Menu), výška podle obsahu, výsledky scrollují uvnitř;
     nad softwarovou klávesnicí ho drží --e-kb a --e-vv-h (eranul-command.js › visualViewport) */
  .e-palette { position: fixed; inset: auto 0 var(--e-kb, 0px); width: 100%; max-width: 100%; height: auto; margin: 0;
    max-height: min(var(--e-sheet-max), calc(var(--e-vv-h, 100dvh) - .75rem)); padding-bottom: env(safe-area-inset-bottom);
    border: 0; border-top: 1px solid var(--line-strong); border-radius: var(--r-feature) var(--r-feature) 0 0; }
  html.e-kb-open .e-palette { max-height: calc(var(--e-vv-h) - .75rem); padding-bottom: 0; }   /* klávesnice otevřená: sheet využije celé volné místo nad ní */
  .e-palette[open] { animation: e-sheet-in .34s var(--e-ease-out) both; }
  .e-palette.is-closing { animation: e-sheet-out .17s cubic-bezier(.4, 0, 1, 1) both; }
  .e-palette__head { position: relative; padding: 1.5rem 1rem 1.1rem; }
  .e-palette__head::before { content: ""; position: absolute; top: .55rem; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: rgb(var(--tint) / .25); }
  .e-palette__head .e-kbd, .e-palette__foot { display: none; }
  .e-palette__list { overscroll-behavior: contain; }
  .e-palette__item { padding: .75rem .6rem; }
}

/* ---------- vstup do klientské platformy: ověření ---------- */
.e-platform {
  width: min(460px, calc(100vw - 2rem)); margin: auto; padding: 2.4rem 1.75rem 1.75rem; overflow: hidden; text-align: center; color: var(--fg-strong);
  border: 1px solid rgb(var(--tint) / .16); border-radius: var(--r-feature);
  background: radial-gradient(120% 80% at 50% 0%, rgb(var(--glow-rgb) / .95), rgb(var(--chrome-rgb) / .98) 70%);
  box-shadow: 0 40px 120px -30px rgb(var(--shadow-rgb) / calc(.95 * var(--shadow-k))), inset 0 1px 0 rgb(var(--tint) / .08);
}
.e-platform[open] { animation: e-plat-in .55s var(--e-ease-out) both; }
.e-platform::backdrop { background: rgb(var(--scrim-rgb) / .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: e-fade .35s var(--e-ease-out) both; }
@keyframes e-plat-in { from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(6px); } }
.e-platform__close { position: absolute; top: .9rem; right: .9rem; }
.e-platform__visual { position: relative; display: grid; place-items: center; width: 116px; height: 116px; margin: 0 auto 1.25rem; }
.e-platform__cell { position: relative; z-index: 1; width: 64px; height: 64px; --sw: 2.6; color: var(--fg-strong); filter: drop-shadow(0 0 12px rgb(227 162 46 / .35)); }
.e-platform__ring { position: absolute; inset: 0; border: 2px solid rgb(var(--tint) / .1); border-top-color: var(--accent-line); border-radius: 50%; animation: e-spin 1.15s cubic-bezier(.55, .15, .45, .85) infinite; }
.e-platform__ring--2 { inset: 13px; border-top-color: rgb(var(--tint) / .1); border-bottom-color: rgb(227 162 46 / .65); animation-duration: 1.7s; animation-direction: reverse; }
.e-platform.is-done .e-platform__ring { border-color: var(--accent-line); animation: e-ring-ok .7s var(--e-ease-out) both; }
.e-platform.is-done .e-platform__ring--2 { opacity: 0; transition: opacity .3s; }
@keyframes e-spin { to { rotate: 360deg; } }
@keyframes e-ring-ok { 0% { scale: .9; box-shadow: 0 0 0 0 rgb(227 162 46 / .5); } 60% { scale: 1.06; } 100% { scale: 1; box-shadow: 0 0 0 14px rgb(227 162 46 / 0); } }
.e-platform__kicker { margin: 0 0 .4rem; color: var(--accent-fg); }
.e-platform__title { margin: 0 0 1.3rem; color: var(--fg-strong); font: 800 1.6rem/1.2 "Public Sans", sans-serif; letter-spacing: 0; text-transform: none; }
.e-platform__result { animation: e-rise .5s var(--e-ease-out) both; }
.e-platform__result p { margin: 0 0 .5rem; color: var(--e-sub); font-size: .9375rem; line-height: 1.55; }
.e-platform__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.1rem; }
@keyframes e-rise { from { opacity: 0; translate: 0 10px; } }

/* ---------- omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  .e-btn, .e-card, .e-btn::after { transition: none !important; }
  .e-btn:hover { translate: none !important; }
  .e-btn::after { display: none; }
  :is(.e-palette, .e-palette__item, .e-platform, .e-platform__ring, .e-platform__result), :is(.e-palette, .e-platform)::backdrop { animation: none !important; }
}
[data-motion="reduced"] :is(.e-btn, .e-card) { transition: none !important; }
[data-motion="reduced"] :is(.e-palette, .e-palette__item, .e-platform, .e-platform__ring, .e-platform__result),
[data-motion="reduced"] :is(.e-palette, .e-platform)::backdrop { animation: none !important; }
[data-motion="reduced"] .e-btn:hover { translate: none !important; }
[data-motion="reduced"] .e-btn::after { display: none; }

/* ---------- světlý motiv: sdílené prvky (hlavička, tlačítka, formulář, paleta, dialog platformy) ---------- */
[data-theme="light"] .e-header { background: rgb(255 255 255 / .82); }
[data-theme="light"] .e-header.is-compact { background: rgb(255 255 255 / .94); box-shadow: 0 10px 30px -22px rgb(16 32 60 / .5); }
[data-theme="light"] .e-btn--solid { border-color: var(--e-navy); }
[data-theme="light"] .e-btn--ghost:hover { background: rgb(var(--tint) / .06); }
[data-theme="light"] .e-btn::after { background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%); }
[data-theme="light"] .e-card { box-shadow: var(--panel-shadow); }
[data-theme="light"] :is(.e-search-trigger, .e-theme, .e-seg) { background: #fff; }
[data-theme="light"] .e-kbd { background: #f4f6fa; }
[data-theme="light"] :is(.form-control, .form-select) { background-color: #fff; border-color: rgb(var(--tint) / .2); }
[data-theme="light"] :is(.form-control, .form-select):hover { background-color: #fff; border-color: rgb(var(--tint) / .35); }
[data-theme="light"] :is(.form-control, .form-select):focus { background-color: #fff; border-color: var(--accent-line); }
[data-theme="light"] .e-palette { background: linear-gradient(180deg, #fff, #f7f9fc); box-shadow: 0 40px 100px -30px rgb(16 32 60 / .5), 0 0 0 1px rgb(16 32 60 / .04); }
[data-theme="light"] .e-palette__item[aria-selected="true"] { background: rgb(227 162 46 / .16); box-shadow: inset 0 0 0 1px rgb(185 125 16 / .4); }
[data-theme="light"] .e-palette__ico { background: #f4f6fa; }
[data-theme="light"] .e-palette__tag { border-color: rgb(170 114 14 / .55); }
[data-theme="light"] .e-platform { background: radial-gradient(120% 80% at 50% 0%, #fff, #f1f4f9 70%); box-shadow: 0 40px 120px -30px rgb(16 32 60 / .55); }
[data-theme="light"] .form-e__status.is-ok { border-color: rgb(11 122 75 / .45); background: rgb(11 122 75 / .06); }
[data-theme="light"] .form-e__status.is-error { border-color: rgb(201 48 44 / .45); background: rgb(201 48 44 / .05); }
[data-theme="light"] .live-dot { box-shadow: 0 0 0 0 rgb(11 122 75 / .45); }

/* ---------- mobil jako aplikace (≤ 767 px, vzor Business Platform) ----------
   spodní lišta Domů · Novinky · Hledat · Intelligence · Menu, menu jako list zespodu, hlavička: značka, rychlý telefon a e-mail, ikona motivu */
.e-tabbar { display: none; }
@media (max-width: 767.98px) {
  :root { --tab-h: calc(62px + (1rem - 16px) * 2); }   /* 62 px při výchozím textu, roste se zvětšeným textem */
  /* strop výšky bottom sheetu (Menu, Hledání): ~60 % výšky okna; na nízkém okně (malý telefon, na šířku) se smí zvětšit až na 88 %, obsah pak scrolluje uvnitř */
  :root { --e-sheet-max: clamp(min(24rem, 88svh), 60svh, 88svh); }
  @supports (height: 1dvh) { :root { --e-sheet-max: clamp(min(24rem, 88dvh), 60dvh, 88dvh); } }
  html.palette-open { overflow: hidden; }   /* hledání je modální: stránka pod ním se neposouvá (poloha se po zavření nemění) */
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  /* fokus (Tab, .focus(), kotvy) se posouvá nad spodní lištu, nikdy pod ni (WCAG 2.4.11) */
  html { scroll-padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 1.5rem); }   /* 1,5 rem: plynulý posun Bootstrapu dojíždí o ~17 px kratší */
  .e-header .e-header__bar { padding-left: max(var(--frame-pad, 1rem), env(safe-area-inset-left)); padding-right: max(var(--frame-pad, 1rem), env(safe-area-inset-right)); }
  :root { --e-qb: 40px; --e-actions-w: calc(var(--e-qb) * 3); }   /* telefon + e-mail + motiv: pevně rezervovaná šířka pravé skupiny hlavičky */
  .e-header__actions { grid-column: 3; justify-self: end; flex: none; gap: 0; width: var(--e-actions-w); justify-content: flex-end; }   /* skupina vždy u pravého okraje, přesně rezervovaná šířka */
  /* adaptivní kontakty: je-li v hlavičce místo (měří eranul-kit.js › contacts()), telefon a/nebo e-mail se ukážou textem místo ikony; šířku skupiny pak nastaví skript (--e-actions-w) */
  html[data-e-contact~="tel"] .e-quick__a--tel, html[data-e-contact~="mail"] .e-quick__a--mail { width: auto; padding-inline: .5rem; }
  html[data-e-contact~="tel"] .e-quick__a--tel .icon, html[data-e-contact~="mail"] .e-quick__a--mail .icon { display: none; }
  html[data-e-contact~="tel"] .e-quick__a--tel .e-quick__t, html[data-e-contact~="mail"] .e-quick__a--mail .e-quick__t { display: block; font: 500 .875rem/1 var(--font-sans); white-space: nowrap; }
  .e-header :is(.e-search-trigger, .e-launch, .e-theme, [data-bs-target="#mobileNav"]) { display: none !important; }   /* dosavadní přepínač motivu nahrazuje .e-theme-m */
  .e-tabbar {
    position: fixed; inset: auto 0 0; z-index: 1035; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    border-top: 1px solid var(--line); background: rgb(var(--chrome-rgb) / .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .e-tabbar > * { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-width: 0; padding: 0; border: 0; background: none;
    color: var(--fg-muted); font: 600 .6875rem/1 var(--font-sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .e-tabbar .icon { width: 22px; height: 22px; transition: translate var(--dur-fast); }
  .e-tabbar > :active .icon { translate: 0 1px; }
  .e-tabbar [aria-current] { color: var(--fg-strong); }
  .e-tabbar [aria-current] .icon { color: var(--accent-fg); }
  .e-tabbar [aria-current]::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--e-amber); }
  .e-tabbar > :focus-visible { outline: 3px solid var(--ring); outline-offset: -4px; border-radius: var(--r-control); }
  /* menu = list zespodu nad lištou (úchyt, titulek, řádky, akce) */
  .mobile-nav.offcanvas { top: auto; right: 0; left: 0; bottom: 0; width: auto; height: auto; max-height: var(--e-sheet-max); border: 0; border-top: 1px solid var(--line-strong);
    border-radius: var(--r-feature) var(--r-feature) 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav.offcanvas.showing, .mobile-nav.offcanvas.show:not(.hiding) { transform: none; }
  .mobile-nav .offcanvas-header { position: relative; padding-top: 1.5rem; }
  .mobile-nav .offcanvas-header::before { content: ""; position: absolute; top: .55rem; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: rgb(var(--tint) / .25); }
  .mobile-nav__list a { padding: .8rem .25rem; font-size: 1.0625rem; font-weight: 700; text-transform: none; }
  .mobile-nav__theme { display: none; }                     /* motiv je v hlavičce */
  .mobile-nav__motion { width: 100%; justify-content: space-between; margin-bottom: 1rem; }
}

/* ---------- sociální sítě ve stavové liště (a v mobilním menu): monochromní, jantar při najetí ---------- */
.e-social { display: flex; align-items: center; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.e-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-control); color: rgb(var(--tint) / .75);
  transition: color var(--dur-fast), background-color var(--dur-fast), translate var(--dur-base) var(--e-ease-out); }
.e-social .icon { width: 22px; height: 22px; }
.e-social a:hover { color: var(--accent-fg); background: rgb(var(--tint) / .06); translate: 0 -2px; }
.e-social a:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
[data-motion="reduced"] .e-social a:hover { translate: none; }
@media (prefers-reduced-motion: reduce) { .e-social a:hover { translate: none; } }
.mobile-nav__social { justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.mobile-nav__social a { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-panel); }
/* profil bez ověřené adresy: ikona jen jako náhled (žádný odkaz, mimo Tab), tlumená */
.e-social__pending { display: grid; place-items: center; width: 38px; height: 38px; color: rgb(var(--tint) / .38); cursor: default; }
.mobile-nav__social .e-social__pending { width: 44px; height: 44px; border: 1px dashed var(--line); border-radius: var(--r-panel); }

/* paleta: druh řádku (Příkaz / Přejít) a krátké potvrzení akce */
.e-palette__kind { padding: .25rem .45rem; border-radius: 4px; background: rgb(var(--tint) / .07); color: var(--fg-muted); font: 600 .6875rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.e-toast { position: fixed; left: 50%; bottom: calc(1.5rem + var(--tab-h, 0px) + env(safe-area-inset-bottom)); z-index: 2000; margin: 0; padding: .7rem 1.1rem; translate: -50% 0;
  border: 1px solid var(--accent-line); border-radius: var(--r-control); background: rgb(var(--chrome-rgb) / .96); box-shadow: var(--panel-shadow); color: var(--fg-strong); font-weight: 600; font-size: .875rem;
  animation: e-toast 2.6s var(--e-ease-out) both; }
@keyframes e-toast { 0% { opacity: 0; translate: -50% 8px; } 10%, 85% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; } }
[data-motion="reduced"] .e-toast { animation: none; }

/* právní informace ve stavové liště (bez klasické patičky) */
.e-legal { display: inline-flex; align-items: center; min-height: 28px; color: rgb(var(--tint) / .62); font-size: .8125rem; text-decoration: none; white-space: nowrap; transition: color var(--dur-fast); }
.e-legal:hover { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 3px; }
.e-legal:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
.form-e__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- souhlas se soukromím (CookieConsent 3, #cc-main): barvy z rolí motivu → tmavý i světlý bez dalších pravidel ---------- */
#cc-main {
  --cc-font-family: 'Public Sans', system-ui, sans-serif;
  --cc-z-index: 2100;
  --cc-modal-margin: 1rem;
  --cc-modal-border-radius: var(--r-panel);
  --cc-btn-border-radius: var(--r-pill);
  --cc-pm-toggle-border-radius: var(--r-pill);
  --cc-bg: rgb(var(--chrome-rgb));
  --cc-primary-color: var(--fg-strong);
  --cc-secondary-color: var(--fg-muted);
  --cc-link-color: var(--accent-fg);
  --cc-btn-primary-bg: var(--e-amber);
  --cc-btn-primary-color: var(--e-navy);
  --cc-btn-primary-border-color: var(--e-amber);
  --cc-btn-primary-hover-bg: #f0b44a;
  --cc-btn-primary-hover-color: var(--e-navy);
  --cc-btn-primary-hover-border-color: #f0b44a;
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--fg-strong);
  --cc-btn-secondary-border-color: rgb(var(--tint) / .3);
  --cc-btn-secondary-hover-bg: rgb(var(--tint) / .07);
  --cc-btn-secondary-hover-color: var(--fg-strong);
  --cc-btn-secondary-hover-border-color: var(--accent-line);
  --cc-separator-border-color: var(--line);
  --cc-toggle-on-bg: var(--e-amber);
  --cc-toggle-off-bg: rgb(var(--tint) / .28);
  --cc-toggle-on-knob-bg: var(--e-navy);
  --cc-toggle-off-knob-bg: #fff;
  --cc-toggle-enabled-icon-color: var(--e-amber);
  --cc-toggle-disabled-icon-color: rgb(var(--tint) / .6);
  --cc-toggle-readonly-bg: rgb(var(--tint) / .18);
  --cc-toggle-readonly-knob-bg: var(--fg-muted);
  --cc-toggle-readonly-knob-icon-color: rgb(var(--chrome-rgb));
  --cc-section-category-border: var(--line);
  --cc-cookie-category-block-bg: rgb(var(--tint) / .04);
  --cc-cookie-category-block-border: var(--line);
  --cc-cookie-category-block-hover-bg: rgb(var(--tint) / .07);
  --cc-cookie-category-block-hover-border: var(--line-strong);
  --cc-cookie-category-expanded-block-bg: rgb(var(--tint) / .03);
  --cc-cookie-category-expanded-block-hover-bg: rgb(var(--tint) / .06);
  --cc-overlay-bg: rgb(var(--scrim-rgb) / .6);
  --cc-webkit-scrollbar-bg: rgb(var(--tint) / .2);
  --cc-webkit-scrollbar-hover-bg: rgb(var(--tint) / .35);
  --cc-footer-bg: rgb(var(--tint) / .04);
  --cc-footer-color: var(--fg-muted);
  --cc-footer-border-color: var(--line);
}
#cc-main :is(.cm, .pm) { border: 1px solid var(--line-strong); box-shadow: 0 30px 70px -30px rgb(var(--shadow-rgb) / calc(.9 * var(--shadow-k))); }
/* (jantarový proužek nad lištou souhlasu odebrán – dekorace bez významu) */
#cc-main :is(.cm__title, .pm__title) { font-weight: 800; letter-spacing: -.005em; }
#cc-main .cm__desc, #cc-main .pm__section-desc { line-height: 1.55; }
#cc-main :is(.cm__btn, .pm__btn) { min-height: 44px; font-weight: 800; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }
#cc-main :is(.cm__btn, .pm__btn, .pm__close-btn, .section__toggle):focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
#cc-main .pm__badge { background: rgb(var(--tint) / .1); color: var(--fg-muted); }
/* knihovna bere poloměr tlačítek i pro sekce kategorií: v těle nastavení poloměr panelu (pilulka ořezávala text v rozích) */
#cc-main .pm__body { --cc-btn-border-radius: var(--r-panel); }
[data-motion="reduced"] #cc-main { --cc-modal-transition-duration: 0s; }
/* mobil: nad spodní lištou aplikace */
@media (max-width: 767.98px) { #cc-main .cm.cm--bottom { bottom: calc(var(--tab-h, 0px) + env(safe-area-inset-bottom) + .5rem) !important; } }
/* „Soukromí“ ve stavové liště je tlačítko, které vypadá jako odkaz */
button.e-legal { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
.mobile-nav__cc { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
#cc-main :is(.cm__footer, .pm__section-desc) a { display: inline-flex; align-items: center; min-height: 28px; }

/* ---------- ERANUL plástev: podpis vizuálního jazyka (značka, radar, ekosystém) místo čtvercových mřížek ----------
   Dlaždice je maska, barva je role motivu → tmavý i světlý motiv bez dalších pravidel. Vždy jen tušená, nikdy tapeta:
   velmi nízká krytí (~4 %, vzdálená vrstva ~2,5 %), dvě měřítka, měkký náběh přes radiální masku. Žádné zvýraznění buněk.
   --hx-r = poloměr buňky (stejný používá build pro rozsvícené buňky, aby seděly do mřížky), --hx-o = krytí čar. */
:root { --hex-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.3205 30' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='black' stroke-width='.35' d='M0.00 -10.00L8.66 -5.00L8.66 5.00L0.00 10.00L-8.66 5.00L-8.66 -5.00ZM17.32 -10.00L25.98 -5.00L25.98 5.00L17.32 10.00L8.66 5.00L8.66 -5.00ZM8.66 5.00L17.32 10.00L17.32 20.00L8.66 25.00L0.00 20.00L0.00 10.00ZM0.00 20.00L8.66 25.00L8.66 35.00L0.00 40.00L-8.66 35.00L-8.66 25.00ZM17.32 20.00L25.98 25.00L25.98 35.00L17.32 40.00L8.66 35.00L8.66 25.00Z'/%3E%3C/svg%3E"); }
.hx { position: absolute; inset: 0; pointer-events: none; background: rgb(var(--tint) / var(--hx-o, .04));
  -webkit-mask: var(--hex-tile) 0 0 / calc(var(--hx-r, 36px) * 1.7320508) calc(var(--hx-r, 36px) * 3) repeat, radial-gradient(var(--hx-focus, 70% 70% at 55% 20%), #000 15%, transparent 80%);
  -webkit-mask-composite: source-in;
  mask: var(--hex-tile) 0 0 / calc(var(--hx-r, 36px) * 1.7320508) calc(var(--hx-r, 36px) * 3) repeat, radial-gradient(var(--hx-focus, 70% 70% at 55% 20%), #000 15%, transparent 80%);
  mask-composite: intersect; }
.hx--far { --hx-o: .025; --hx-focus: 55% 50% at 12% 95%; --hx-r: calc(var(--hx-r-far, 16px)); }
[data-theme="light"] .hx { background: rgb(var(--tint) / calc(var(--hx-o, .04) * .9)); }


/* ==========================================================================
   VELKÝ TEXT (WCAG 1.4.4 / 1.4.10): při výchozí velikosti písma beze změny vzhledu.
   Pravidla se uplatní, jen když text vzhledem k šířce nevyjde: vnitřní okraje tlačítek mají strop v px (nikdy
   nezmenšují písmo), dlouhá slova se zalomí místo useknutí, rozložení přepínají kontejnerové dotazy v em
   (šířka měřená ve velikosti písma – při 16 px se nikdy nespustí, při 200 % ano).
   ========================================================================== */
.e-btn { overflow-wrap: anywhere; hyphens: auto; min-width: 0; }
/* paleta: na úzkém displeji s velkým textem se titulek a popis zalomí (místo výpustky) */
.e-palette { container: e-palette / inline-size; }
@container e-palette (max-width: 20em) {
  .e-palette__t, .e-palette__s { white-space: normal; overflow-wrap: anywhere; }
  .e-palette__item { grid-template-columns: auto minmax(0, 1fr); }
  .e-palette__item > :is(.e-palette__tag, .e-palette__go) { display: none; }
}
@media (max-width: 767.98px) {
  /* spodní lišta: popisek se při velkém textu zalomí uvnitř své položky (lišta je vyšší, viz --tab-h), nikdy nepřesahuje */
  .e-tabbar { container: e-tabbar / inline-size; }
  .e-tabbar > * > span { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; text-align: center; }
}
@container e-tabbar (max-width: 20em) { .e-tabbar > * { letter-spacing: 0; } }
/* souhlas s cookies: tlačítka a text se zalomí, list roluje uvnitř okna */
#cc-main :is(.cm__btn, .pm__btn) { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 767.98px) { #cc-main .cm { max-height: calc(100svh - var(--nav-h) - var(--tab-h) - 1.5rem); overflow-y: auto; } }
/* formulář poptávky – stavy odeslání: „není zapojeno“ a „odesíláme“ neutrálně; past na roboty mimo obrazovku */
.form-e__status.is-info, .form-e__status.is-busy { border-color: var(--line-strong); background: rgb(var(--tint) / .04); }
.form-e__status.is-info .icon { color: var(--accent-fg); }
.form-e__status:focus { outline: none; }
.form-e__status:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.form-e__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* RC2 A6: neověřený profil sociální sítě – jen náhled, viditelně odlišený */
.e-social__preview { outline: 1px dashed var(--accent-line); outline-offset: 2px; }

/* Režim revize (ERANUL_REVIEW=mock, content/mock.mjs): jediný viditelný znak smyšlených dat. Mimo tok stránky
   (fixed, bez kliknutí), takže rozvržení kontrolovaných prvků je stejné jako se skutečnými daty. Jantar = stav. */
.e-review-badge { position: fixed; left: 12px; bottom: 58px; z-index: 1029; margin: 0; padding: .3rem .65rem; border-radius: var(--r-pill); background: var(--e-amber); color: var(--e-navy); font: 700 .6875rem/1.2 var(--font-mono); letter-spacing: .08em; pointer-events: none; box-shadow: 0 6px 18px -6px rgb(var(--shadow-rgb) / calc(.6 * var(--shadow-k))); }
@media (max-width: 767.98px) { .e-review-badge { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); } }
