/* ═══════════════════════════════════════════════════════════════════
   Intranet MěÚ Litoměřice — návrh vzhledu (21. 10. 2026)

   Vychází z Heimdallu: tokeny jsou opsané z Kontaktů (seznam/css/app.css)
   a rozcestníku (rozcestnik.css) — papírové neutrály, námořnická modř,
   zlatá linka, písma Bitter (nadpisy) a Source Sans 3 (text), ilustrace
   města z grafického manuálu v pozadí. Nové jsou jen věci, které
   současné aplikace nepotřebovaly: navigace mezi sekcemi, příspěvky
   Nástěnky, časová osa nepřítomností a obsazenost vozidel.
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Bitter'; font-weight: 600 700; font-display: swap; src: url(pisma/bitter-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bitter'; font-weight: 600 700; font-display: swap; src: url(pisma/bitter-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-display: swap; src: url(pisma/source-sans-3-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-display: swap; src: url(pisma/source-sans-3-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-weight: 600 700; font-display: swap; src: url(pisma/source-sans-3-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-weight: 600 700; font-display: swap; src: url(pisma/source-sans-3-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Tokeny ───────────────────────────────────────────────────────── */
:root {
  /* Heimdall */
  --navy: #173271; --navy-dk: #0f2252; --navy-lt: #1e3f8a; --navy-pale: #e7ecf7;
  --paper: #FBFAF7; --surf: #F1EFE9; --border: #E4E0D6; --border-karta: #D9D3C5;
  --text: #15192B; --muted: #6A6E7E; --muted-lt: #8a8f9c;
  --gold: #A97608; --gold-lt: #C88B0B; --gold-pale: #F6EBCF; --gold-text: #8a5f03;
  --red: #c0392b; --red-pale: #FBE9E4;
  /* barvy ikon z rozcestníku — barva nese příslušnost k sekci */
  --modra-p: #E7ECF7;  --modra: #173271;
  --zlata-p: #FBF0D6;  --zlata: #8A5F03;
  --tyrkys-p: #E0F2EE; --tyrkys: #136B5C;
  --korala-p: #FBE9E4; --korala: #A6402B;
  --zelena-p: #E4F0EA; --zelena: #1C5C42;
  --seda-p: #ECEEF3; --seda: #5B6070;
  --fialova-p: #EEE8F6; --fialova: #5B3F8C;  /* nová: jen pro typ nepřítomnosti */
  --cervena-p: #FBE4E2; --cervena: #B3261E;  /* kategorie Ultra důležité */

  --r: 10px; --r-volba: 6px; --r-pill: 999px;
  --sh: 0 4px 24px rgba(23,50,113,.10);
  --sh-sm: 0 2px 8px rgba(23,50,113,.07);
  --sh-zved: 0 2px 4px rgba(23,50,113,.08), 0 16px 32px -12px rgba(23,50,113,.34);
  --font-h: 'Bitter', Georgia, serif;
  --font-b: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* mezery: 4 · 8 · 12 · 16 · 20 · 24 · 32 · 48 */
  --hlavicka: 116px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hlavicka) + 16px); }   /* skok na kotvu nezajede pod lepicí hlavičku */
body { margin: 0; font: 400 1rem/1.5 var(--font-b); background: var(--paper); color: var(--text); }
a { color: var(--navy); }
a:hover { color: var(--navy-dk); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i-s { width: 16px; height: 16px; }
.vlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ilustrace města v pozadí, rozmístění jako v Kontaktech (varianta A). */
/* Ilustrace města v pozadí: jen jednou, pevně přes celou šířku okna u spodního okraje. */
body.s-ilustraci::before {
  content: ""; position: fixed; z-index: -1; left: 0; right: 0; bottom: 0;
  aspect-ratio: 841.89 / 595.28;
  background: url(ilustrace-mesta.svg) no-repeat left bottom / 100% auto; opacity: .45; pointer-events: none;
}

.obal { width: min(1320px, 92%); margin: 0 auto; }

/* ── Hlavička: plochá navy jako v Kontaktech + řada sekcí ─────────── */
.hl { position: sticky; top: 0; z-index: 20; background: var(--navy-dk); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
/* Jemná silueta města v hlavičce (návrh E). z-index -1 ji dá pod obsah, ale nad navy pozadí.
   Ilustrace má šířku okna, tedy výšku 70,7 vw; vlnky řeky (spodní okraj pásu ve 92 % výšky
   = 65 vw) posuneme doprostřed hlavičky, ať jsou vidět na jakkoli širokém monitoru. */
.hl::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(ilustrace-mesta.svg) no-repeat left 0 top calc(62px - 65vw) / 100vw auto;
  filter: brightness(0) invert(1); opacity: .06;
}
/* Sněžení v hlavičce (prosinec až 6. 1., zapíná sablony/hlavicka.php). Dvě vrstvy vloček
   s různou rychlostí; posun je vždy o celé dlaždice, aby smyčka nebyla vidět. */
.hl-snih { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hl-snih::before, .hl-snih::after { content: ""; position: absolute; inset: 0; }
.hl-snih::before {
  background-image:
    radial-gradient(circle at 20px 30px, rgba(255,255,255,.75) 1.4px, transparent 2.2px),
    radial-gradient(circle at 95px 70px, rgba(255,255,255,.6) 1.8px, transparent 2.6px),
    radial-gradient(circle at 55px 115px, rgba(255,255,255,.7) 1.2px, transparent 2px),
    radial-gradient(circle at 125px 15px, rgba(255,255,255,.5) 1.5px, transparent 2.3px);
  background-size: 140px 140px;
  animation: hl-snih-1 14s linear infinite;
}
.hl-snih::after {
  background-image:
    radial-gradient(circle at 10px 60px, rgba(255,255,255,.4) 1px, transparent 1.6px),
    radial-gradient(circle at 50px 20px, rgba(255,255,255,.35) .9px, transparent 1.5px),
    radial-gradient(circle at 75px 80px, rgba(255,255,255,.45) 1px, transparent 1.6px);
  background-size: 90px 90px;
  animation: hl-snih-2 22s linear infinite;
}
@keyframes hl-snih-1 { to { background-position: 140px 280px; } }
@keyframes hl-snih-2 { to { background-position: -90px 270px; } }
@media (prefers-reduced-motion: reduce) { .hl-snih::before, .hl-snih::after { animation: none; } }
.hl-radek { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 12px; padding-right: 20px; border-right: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.logo-znacka { width: 42px; height: 42px; border-radius: var(--r); background: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.logo-znacka svg { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-nazev { font: 700 1.25rem/1.15 var(--font-h); }
/* Intranet² – horní index v okrové z rámečku loga. */
.logo-dvojka { position: relative; top: -.1em; margin-left: 1px; font: 900 .62em/0 var(--font-h); color: #a7741b; vertical-align: super; }
.logo-sub { font-size: .69rem; font-weight: 600; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .04em; }
.hledat { position: relative; flex: 1 1 320px; max-width: 560px; }
.hledat > svg { position: absolute; left: 14px; top: 12px; color: var(--muted); }
.hledat input { width: 100%; height: 44px; padding: 0 48px 0 42px; border: 0; border-radius: 8px; background: #fff; color: var(--text); font-size: .94rem; }
.hledat input::placeholder { color: var(--muted); }
.kbd { position: absolute; right: 12px; top: 11px; min-width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 4px; background: var(--surf); color: var(--muted); font-size: .75rem; font-weight: 600; }
.hl-akce { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hl-ikona { position: relative; width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 0; text-decoration: none; }
.hl-ikona:hover { background: rgba(255,255,255,.16); color: #fff; }
.hl-ikona .tecka { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-lt); box-shadow: 0 0 0 2px var(--navy-dk); }
.ja { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 8px; color: #fff; text-decoration: none; }
.ja:hover { background: rgba(255,255,255,.08); color: #fff; }
.ja-text { display: flex; flex-direction: column; line-height: 1.2; font-size: .875rem; font-weight: 600; white-space: nowrap; }   /* jméno na tabletu na výšku nezalamovat (10. 11. 2026) */
.ja-text small { font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.7); }

.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 12px; color: rgba(255,255,255,.78); font-size: .94rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav a.je-aktivni { color: #fff; }
.nav a.je-aktivni::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold-lt); }
/* Můj odbor vždy vidět: když se menu nevejde a jde posouvat, zůstane přišpendlený vpravo. */
.nav .nav-odbor { margin-left: auto; color: #fff; position: sticky; right: 0; flex-shrink: 0; padding-left: 24px; }   /* bez pozadí, ať vypadá jako ostatní položky (na pokyn 9. 11. 2026) */
.nav .pocet { padding: 0 7px; border-radius: var(--r-pill); background: var(--gold-lt); color: var(--navy-dk); font-size: .72rem; font-weight: 700; }

/* Spodní lišta jen na telefonu */
.tab { display: none; }

/* ── Obsah stránky ────────────────────────────────────────────────── */
.main { padding: 28px 0 56px; display: flex; flex-direction: column; gap: 24px; }
.titulek { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.h1 { margin: 4px 0 0; font: 700 1.875rem/1.2 var(--font-h); letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.perex { margin: 6px 0 0; color: var(--muted); font-size: .97rem; max-width: 62ch; }
.drobek { display: flex; gap: 6px; align-items: center; font-size: .81rem; color: var(--muted); }
.drobek a { color: var(--muted); text-decoration: none; }
.drobek a:hover { color: var(--navy); text-decoration: underline; }

.mrizka-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.mrizka-1-3 { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.sloupec { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ── Panel (bílá karta se stínem, jako .sez-panel) ────────────────── */
.panel { background: #fff; border-radius: var(--r); box-shadow: var(--sh-sm); overflow: hidden; }
.panel-hlava { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.panel-hlava h2 { margin: 0; font: 700 1.125rem/1.3 var(--font-h); color: var(--navy); }
.panel-hlava .vpravo { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel-telo { padding: 18px; }
.panel-pata { padding: 12px 18px; border-top: 1px solid var(--surf); font-size: .875rem; font-weight: 700; }
.panel-pata a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.panel-pata a:hover { text-decoration: underline; }

/* ── Štítky a počty ───────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--navy-pale); color: var(--navy); font-size: .78rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stitek { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: .78rem; font-weight: 600; background: var(--surf); color: var(--muted); white-space: nowrap; }
.b-modra  { background: var(--modra-p);  color: var(--modra); }
.b-zlata  { background: var(--zlata-p);  color: var(--zlata); }
.b-tyrkys { background: var(--tyrkys-p); color: var(--tyrkys); }
.b-korala { background: var(--korala-p); color: var(--korala); }
.b-zelena { background: var(--zelena-p); color: var(--zelena); }
.b-fialova{ background: var(--fialova-p);color: var(--fialova); }
.b-cervena{ background: var(--cervena-p);color: var(--cervena); }

/* ── Tlačítka ─────────────────────────────────────────────────────── */
.btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r-volba); background: #fff; color: var(--navy); font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn-hlavni { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-hlavni:hover { background: var(--navy-dk); color: #fff; }
.btn-zlate { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-zlate:hover { background: var(--gold-text); color: #fff; border-color: var(--gold-text); }
.btn-tiche { border-color: transparent; background: var(--surf); }
.btn-male { height: 34px; padding: 0 12px; font-size: .81rem; }
.btn-ikona { width: 40px; padding: 0; }

/* Přepínač pohledů (jako .sez-pohled) */
.prepinac { display: inline-flex; gap: 4px; padding: 4px; background: var(--surf); border-radius: 8px; }
.prepinac a, .prepinac button { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: var(--r-volba); background: transparent; color: var(--text); font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.prepinac .je-aktivni { background: #fff; color: var(--navy); box-shadow: var(--sh-sm); }
.prepinac a, .prepinac button { transition: background-color .15s, color .15s; }
.prepinac a:not(.je-aktivni):hover, .prepinac button:not(.je-aktivni):hover { background: rgba(23, 50, 113, .12); color: var(--navy); }

.filtry { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-sm); }
.filtr { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-volba); background: #fff; font-size: .875rem; color: var(--text); }
.filtr svg { color: var(--muted); }
.filtr.je-aktivni { border-color: var(--navy); background: var(--navy-pale); color: var(--navy); font-weight: 600; }
.filtry .vpravo { margin-left: auto; display: flex; gap: 8px; }

/* ── Formulář ─────────────────────────────────────────────────────── */
.pole { display: flex; flex-direction: column; gap: 6px; }
.pole label, .pole .popisek { font-size: .81rem; font-weight: 700; color: var(--text); }
.pole .napoveda { font-size: .78rem; color: var(--muted); }
.vstup { height: 42px; width: 100%; padding: 0 12px; border: 1px solid var(--border-karta); border-radius: var(--r-volba); background: #fff; font-size: .94rem; display: flex; align-items: center; gap: 8px; color: var(--text); }
.vstup.je-prazdny { color: var(--muted-lt); }
textarea.vstup { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.vstup:focus, .vstup.je-fokus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-pale); }
.radek-poli { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.formular { display: flex; flex-direction: column; gap: 16px; }
.volby { display: flex; flex-wrap: wrap; gap: 8px; }
.volba { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--border-karta); border-radius: var(--r-volba); background: #fff; font-size: .875rem; font-weight: 600; }
.volba.je-aktivni { border-color: var(--navy); background: var(--navy-pale); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.upozorneni { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; font-size: .875rem; background: var(--zelena-p); color: var(--zelena); }
.upozorneni.info { background: var(--navy-pale); color: var(--navy); }
.upozorneni.pozor { background: var(--gold-pale); color: var(--gold-text); }
.upozorneni svg { margin-top: 1px; }

/* ── Dlaždice statistik (jako .sez-stat / .tel-stat-tile) ─────────── */
.staty { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-sm); text-decoration: none; color: inherit; border: 1.5px solid transparent; }
.stat:hover { border-color: var(--navy); color: inherit; }
.stat-ikona { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.stat-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.stat-hodnota { font: 700 1.6rem/1.1 var(--font-h); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-popis { font-size: .84rem; font-weight: 600; color: var(--muted); }

/* ── Avatar s iniciálami (jako .sez-radek-avatar) ─────────────────── */
.av { width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--navy-pale); color: var(--navy); font: 700 .78rem/1 var(--font-h); }
.av-m { width: 28px; height: 28px; border-radius: 6px; font-size: .68rem; }
.av-v { width: 64px; height: 64px; border-radius: var(--r); font-size: 1.3rem; background: var(--navy); color: #fff; }
.av.zlata { background: var(--gold-pale); color: var(--gold-text); }
.hl .av { background: var(--gold); color: #fff; }

/* ── Řádky seznamu ────────────────────────────────────────────────── */
.radky { list-style: none; margin: 0; padding: 0; }
.radek { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--surf); color: inherit; text-decoration: none; }
.radky > li:first-child .radek, .radky > .radek:first-child { border-top: 0; }
a.radek:hover { background: var(--surf); color: inherit; }
.radek-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.radek-hlavni { font-weight: 700; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radek-vedlejsi { font-size: .81rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Příspěvek Nástěnky ───────────────────────────────────────────── */
.prispevky { display: flex; flex-direction: column; gap: 14px; }
.prispevek { position: relative; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 6px 20px; padding: 18px 20px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-sm); border: 1px solid transparent; color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
a.prispevek:hover { border-color: #C9D2E8; box-shadow: var(--sh-zved); color: inherit; }
.prispevek-meta { grid-column: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .81rem; color: var(--muted); }
.prispevek h3 { grid-column: 1; margin: 2px 0 0; font: 700 1.2rem/1.3 var(--font-h); color: var(--navy); text-wrap: balance; }
.prispevek p { grid-column: 1; margin: 0; color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prispevek-obrazek { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 148px; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--surf) center / cover; }
.prispevek-pata { grid-column: 1; display: flex; gap: 14px; align-items: center; margin-top: 6px; font-size: .81rem; color: var(--muted); }
.prispevek-pata span { display: inline-flex; gap: 5px; align-items: center; }
.prispevek.je-pripnuty { border-color: #f0dfb1; box-shadow: inset 4px 0 0 var(--gold), var(--sh-sm); }
/* Ultra důležité: vždy červený rámeček (i když je zároveň připnutý). */
.prispevek.je-ultra, .prispevek.je-ultra.je-pripnuty { border: 2px solid var(--cervena); box-shadow: inset 4px 0 0 var(--cervena), 0 6px 20px -8px rgba(179,38,30,.35); }
/* Neotevřený příspěvek (posledních 14 dní, lib/nastenka.php sqlNeprectenych): výrazný štítek a modrá tečka u nadpisu. */
.prispevek.je-novy h3::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; vertical-align: 3px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.prispevek.je-novy h3::after { content: "nepřečtené"; margin-left: 10px; vertical-align: 3px; padding: 1px 8px; border-radius: var(--r-pill); background: #dbe7ff; color: #1d4ed8; font: 700 .68rem/1.4 var(--font-b); text-transform: uppercase; letter-spacing: .05em; }
.prispevek-hlavni { grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.prispevek-hlavni .foto { grid-column: 1; grid-row: 1 / span 4; min-height: 240px; background: var(--surf) center / cover; position: relative; overflow: hidden; }
.prispevek-hlavni .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }.prispevek-hlavni > :not(.foto) { grid-column: 2; padding: 0 24px; }
.prispevek-hlavni .prispevek-meta { padding-top: 22px; }
.prispevek-hlavni h3 { font-size: 1.5rem; }
.prispevek-hlavni p { -webkit-line-clamp: 4; }
.prispevek-hlavni .prispevek-pata { padding-bottom: 22px; }

/* Archiv po letech */
.archiv { list-style: none; margin: 0; padding: 6px; }
.archiv a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: var(--r-volba); color: var(--text); text-decoration: none; font-size: .9rem; }
.archiv a:hover { background: var(--surf); }
.archiv a.je-aktivni { background: var(--navy-pale); color: var(--navy); font-weight: 700; }
.archiv .rok { padding: 10px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Článek */
.clanek { padding: 36px 44px 40px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-sm); }
.clanek h1 { margin: 10px 0 14px; font: 700 2.1rem/1.2 var(--font-h); color: var(--navy); text-wrap: balance; }
.clanek .autor { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 2px solid var(--gold); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.clanek .text { font-size: 1.06rem; line-height: 1.65; }   /* přes celou šířku karty (10. 11. 2026, dřív max 68ch) */
.clanek .text h2 { font: 700 1.3rem/1.3 var(--font-h); color: var(--navy); margin: 28px 0 8px; }
.clanek .foto { aspect-ratio: 16 / 7; border-radius: var(--r); background: var(--surf) center / cover; margin: 0 0 24px; }
.priloha { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r); text-decoration: none; color: var(--text); }
.priloha:hover { border-color: var(--navy); color: var(--text); }
.priloha .typ { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }

/* ── Nepřítomnosti: časová osa lidé × dny ─────────────────────────── */
.osa { display: grid; grid-template-columns: 240px repeat(5, minmax(0, 1fr)); font-size: .84rem; }
.osa > div { border-top: 1px solid var(--surf); min-height: 52px; }
.osa .hlava { min-height: 0; padding: 10px 8px; border-top: 0; border-bottom: 1px solid var(--border); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: center; }
.osa .hlava.dnes { color: var(--navy); background: var(--navy-pale); }
.osa .hlava:first-child { text-align: left; padding-left: 18px; }
.osa .clovek { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 18px; }
.osa .den { position: relative; border-left: 1px solid var(--surf); }
.osa .den.dnes { background: rgba(231,236,247,.45); }
.osa .skupina-odboru { grid-column: 1 / -1; min-height: 0; padding: 8px 18px; background: var(--paper); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); }
.usek { position: absolute; top: 10px; bottom: 10px; left: 4px; right: 4px; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 6px; font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; }
.usek.pul-r { right: 50%; } .usek.pul-o { left: 50%; }
.legenda { display: flex; flex-wrap: wrap; gap: 14px; font-size: .81rem; color: var(--muted); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ── Rezervace: obsazenost vozidla × dny ──────────────────────────── */
.obsazenost { display: grid; grid-template-columns: 230px repeat(5, minmax(0, 1fr)); font-size: .82rem; }
.obsazenost > div { border-top: 1px solid var(--surf); min-height: 60px; }
.obsazenost .hlava { min-height: 0; padding: 10px 8px; border-top: 0; border-bottom: 1px solid var(--border); text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); }
.obsazenost .hlava b { display: block; font: 700 1rem/1.2 var(--font-h); color: var(--text); }
.obsazenost .hlava.dnes { background: var(--navy-pale); color: var(--navy); }
.obsazenost .hlava.dnes b { color: var(--navy); }
.obsazenost .hlava:first-child { text-align: left; padding-left: 18px; }
.vozidlo { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 18px; }
.vozidlo-ikona { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--surf); color: var(--navy); flex-shrink: 0; }
.vozidlo b { display: block; font-size: .9rem; line-height: 1.2; }
.vozidlo small { color: var(--muted); font-size: .76rem; }
.obsazenost .den { position: relative; border-left: 1px solid var(--surf); background-image: linear-gradient(to right, transparent calc(50% - .5px), var(--surf) calc(50% - .5px), var(--surf) calc(50% + .5px), transparent calc(50% + .5px)); }
.obsazenost .den.dnes { background-color: rgba(231,236,247,.45); }
.jizda { position: absolute; top: 8px; bottom: 8px; z-index: 1; padding: 4px 8px; border-radius: 6px; background: var(--navy-pale); border-left: 3px solid var(--navy); color: var(--navy); font-size: .74rem; line-height: 1.25; overflow: hidden; white-space: nowrap; }
.jizda b { display: block; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.jizda.moje { background: var(--gold-pale); border-color: var(--gold); color: var(--gold-text); }
.jizda.blokace { background: repeating-linear-gradient(-45deg, var(--korala-p) 0 8px, #fff 8px 14px); border-color: var(--korala); color: var(--korala); }
.cas-osa { position: absolute; top: 2px; left: 6px; font-size: .66rem; color: var(--muted-lt); }

/* ── Karty sekcí / aplikací (jako .karta rozcestníku) ─────────────── */
.karty { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.karta { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--border-karta); border-radius: var(--r); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.karta:hover { border-color: #C9D2E8; box-shadow: var(--sh-zved); transform: translateY(-2px); color: inherit; }
.karta .ikona { grid-row: span 2; width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; }
.karta h3 { margin: 0; font: 700 1.05rem/1.25 var(--font-h); color: var(--navy); padding-right: 18px; }
.karta p { margin: 0; color: var(--muted); font-size: .88rem; }
.karta .ven { position: absolute; top: 16px; right: 14px; color: var(--muted-lt); }
.karta-velka { grid-template-columns: 1fr; padding: 22px; }
.karta-velka .ikona { grid-row: auto; margin-bottom: 10px; width: 52px; height: 52px; }
.karta-velka h3 { font-size: 1.25rem; }
.karta.je-zvolena { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--navy-pale); }

.odkazy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 8px; }
.odkaz { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.odkaz:hover { background: var(--surf); color: var(--text); }
.odkaz .ikona { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.odkaz .ikona svg { width: 18px; height: 18px; }

/* Hlavička intranetu odboru */
.odbor-pas { position: relative; overflow: hidden; padding: 24px 28px; border-radius: var(--r); color: #fff;
  /* Modré sklo jako přihlašovací stránka: měkká modrá světla na tmavé modři, světlý okraj a lesk nahoře. */
  background-color: #0F2252;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 42%, rgba(255,255,255,0) 60%),
    radial-gradient(circle at 12% 20%, rgba(96,165,250,.45) 0, rgba(96,165,250,0) 32%),
    radial-gradient(circle at 88% 85%, rgba(59,130,246,.60) 0, rgba(59,130,246,0) 38%),
    radial-gradient(circle at 65% 0%, rgba(125,211,252,.30) 0, rgba(125,211,252,0) 30%),
    linear-gradient(155deg, #0F2252 0%, #173271 52%, #1E3F8A 100%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 18px 40px -16px rgba(5,14,40,.45), inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.04);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.odbor-pas .znak { width: 60px; height: 60px; border-radius: var(--r); background: var(--gold); display: grid; place-items: center; font: 700 1.2rem/1 var(--font-h); flex-shrink: 0; }
.odbor-pas .znak .fa-ikona { font-size: 28px; }
.odbor-pas h1 { margin: 2px 0 0; font: 700 1.75rem/1.2 var(--font-h); }
.odbor-pas .eyebrow { color: #F0D9A0; }
.odbor-pas .stitek { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.odbor-pas .vpravo { margin-left: auto; position: relative; z-index: 1; display: flex; gap: 8px; }
.odbor-pas .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.zalozky { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.zalozky a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; font-size: .94rem; text-decoration: none; }
.zalozky a.je-aktivni { color: var(--navy); border-color: var(--gold); }

/* Kroky */
.kroky { display: flex; gap: 8px; counter-reset: krok; flex-wrap: wrap; }
.kroky span { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.kroky span::before { counter-increment: krok; content: counter(krok); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surf); font-size: .75rem; }
.kroky span.je-hotovo::before { content: "✓"; background: var(--zelena-p); color: var(--zelena); }
.kroky span.je-aktivni { color: var(--navy); }
.kroky span.je-aktivni::before { background: var(--navy); color: #fff; }
.kroky i { width: 28px; height: 1px; background: var(--border); align-self: center; }

.foto-nahrat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border: 1.5px dashed var(--border-karta); border-radius: var(--r); background: var(--paper); color: var(--muted); font-size: .875rem; text-align: center; }

/* ── Patička ──────────────────────────────────────────────────────── */
.pata { padding: 18px 0 32px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .84rem; color: var(--muted); }
.pata a { color: var(--muted); }

/* ── Telefon ──────────────────────────────────────────────────────── */
.jen-mobil { display: none; }
@media (max-width: 1080px) {
  .mrizka-2-1, .mrizka-1-3 { grid-template-columns: 1fr; }
  .staty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --hlavicka: 120px; }
  .obal { width: auto; margin: 0 16px; }
  .hl-radek { flex-wrap: wrap; gap: 10px 12px; padding: 10px 0 12px; }
  .logo { border: 0; padding: 0; }
  .logo-znacka { width: 38px; height: 38px; }
  .hledat { order: 3; flex: 1 1 100%; max-width: none; }
  .kbd, .ja-text, .nav, .bez-mobilu { display: none !important; }
  .jen-mobil { display: revert; }
  body { padding-bottom: 72px; }
  .tab { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(23,50,113,.08); }
  .tab a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: .7rem; font-weight: 700; text-decoration: none; }
  .tab a svg { width: 24px; height: 24px; }
  .tab a.je-aktivni { color: var(--navy); }
  .tab a.je-aktivni svg { background: var(--navy-pale); border-radius: 12px; padding: 2px 10px; box-sizing: content-box; }
  .main { padding: 18px 0 28px; gap: 18px; }
  .h1 { font-size: 1.5rem; }
  .titulek .btn { width: 100%; }
  .staty { gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat-ikona { width: 36px; height: 36px; }
  .stat-hodnota { font-size: 1.35rem; }
  .prispevek { grid-template-columns: 1fr; padding: 16px; }
  .prispevek-obrazek { display: none; }
  .prispevek-hlavni { grid-template-columns: 1fr; padding: 0; }
  .prispevek-hlavni .foto { grid-column: 1; grid-row: auto; min-height: 160px; }  .prispevek-hlavni > :not(.foto) { grid-column: 1; padding: 0 16px; }
  .prispevek-hlavni .prispevek-meta { padding-top: 14px; }
  .prispevek-hlavni .prispevek-pata { padding-bottom: 16px; }
  .prispevek-hlavni h3 { font-size: 1.25rem; }
  .filtry { padding: 10px; }
  .filtry .vpravo { margin-left: 0; }
  .clanek { padding: 22px 18px; }
  .clanek h1 { font-size: 1.5rem; }
  .odkazy { grid-template-columns: 1fr 1fr; }
  .odbor-pas { padding: 18px; }
  .odbor-pas .vpravo { margin-left: 0; }
  .karty { grid-template-columns: 1fr; }
  .mobil-skryt-osu { display: none; }
  .titulek > div:last-child:not(:first-child) { width: 100%; }
  .titulek > div:last-child .btn { flex: 1; }
}

/* Rezervace typu Dovolená v mřížce (servis používá styl blokace). */
.jizda.dovolena { background: repeating-linear-gradient(-45deg, #eceef3 0 8px, #fff 8px 14px); border-color: var(--muted); color: #4a4f60; }

/* Menu na užších monitorech: kratší popisky a menší mezery, ať se vejde i Můj odbor. */
.nav-kratke { display: none; }
@media (max-width: 1440px) {
  .nav a { padding: 10px 10px 12px; gap: 6px; }
  .nav a.je-aktivni::after { left: 10px; right: 10px; }
  .nav-dlouhe { display: none; }
  .nav-kratke { display: inline; }
}
/* Ještě užší: bez ikon (kromě Můj odbor), ať se vejde celé menu. */
@media (max-width: 1180px) {
  .nav a:not(.nav-odbor) > .fa-ikona:first-child { display: none; }
  .nav a { padding: 10px 8px 12px; }
}
/* Tablet: Můj odbor bez ikony a těsnější mezery, jinak přišpendlený vpravo překrýval Aplikace (10. 11. 2026). */
@media (max-width: 960px) {
  .nav .nav-odbor > .fa-ikona:first-child { display: none; }
  .nav a { padding: 10px 6px 12px; }
  .nav a.je-aktivni::after { left: 6px; right: 6px; }
  .nav .nav-odbor { padding-left: 10px; }
}
@media (max-width: 860px) {
  .nav a { font-size: .86rem; padding: 10px 5px 12px; }
}

/* ── Megamenu „Aplikace“ (rozcestník ze starého intranetu, lib/rozcestnik.php) ── */
.mm-sipka { font-size: 10px; margin-left: 2px; opacity: .7; transition: transform .15s; }
.nav a[aria-expanded="true"] { color: #fff; }
.nav a[aria-expanded="true"] .mm-sipka { transform: rotate(180deg); }
.megamenu { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; color: var(--text); border-top: 3px solid var(--gold-lt); box-shadow: 0 18px 40px rgba(15,34,82,.22); max-height: calc(100vh - 140px); overflow-y: auto; }
.megamenu[hidden] { display: none; }
.mm-mrizka { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px 28px; padding: 22px 0 10px; }
.mm-nadpis { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.mm-seznam { display: flex; flex-direction: column; gap: 2px; }
.mm-siroka .mm-seznam { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.mm-odkaz { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.mm-odkaz:hover, .mm-odkaz:focus-visible { background: var(--surf); }
.mm-ikona { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-pale); color: var(--gold); font-size: 14px; }
.mm-odkaz:hover .mm-ikona { background: var(--navy); color: #fff; }
.mm-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mm-nazev { font-weight: 600; font-size: .9rem; color: var(--navy); }
.mm-popis { font-size: .78rem; color: var(--muted); }
.mm-ven { font-size: .62rem; color: var(--muted-lt); margin-left: 3px; vertical-align: 1px; }
.mm-pata { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0 16px; border-top: 1px solid var(--border); font-size: .85rem; }
.mm-pata a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; }
.mm-pata a:hover { text-decoration: underline; }
.mm-pata .fa-ikona { color: var(--gold); }
@media (max-width: 1100px) { .mm-mrizka { grid-template-columns: 1fr 1fr; } .mm-siroka { grid-column: 1 / -1; } }

/* Rozcestník ve „Více“ (telefon) */
.vice-rozcestnik .mm-seznam { padding: 4px 8px 10px; }
.vice-rozcestnik .panel-hlava h2 { font-size: 1rem; }

/* ── Zvonek: občas „cinkne“, když jsou nová upozornění; po kliknutí panel s posledními ── */
.zvonek { position: relative; }
.zvonek-pocet { position: absolute; top: -6px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--gold-lt); color: var(--navy-dk); font-size: .68rem; font-weight: 800; box-shadow: 0 0 0 2px var(--navy-dk); }
.hl-ikona.cinka .fa-ikona { transform-origin: 50% 2px; animation: zvonek-cink 9s ease-in-out infinite; }
@keyframes zvonek-cink {
  0%, 9%, 100% { transform: rotate(0); }
  1% { transform: rotate(16deg); } 2% { transform: rotate(-14deg); } 3% { transform: rotate(11deg); }
  4% { transform: rotate(-8deg); } 5% { transform: rotate(5deg); } 6% { transform: rotate(-3deg); } 7% { transform: rotate(1deg); }
}
/* Kdo má v systému vypnuté animace, nevidí houpání — zvonek aspoň zezlátne. */
@media (prefers-reduced-motion: reduce) { .hl-ikona.cinka .fa-ikona { animation: none; color: var(--gold-lt); } }
.zvonek-panel { position: absolute; right: -8px; top: calc(100% + 10px); z-index: 40; width: 400px; max-width: calc(100vw - 24px); background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 18px 48px rgba(15,34,82,.28); overflow: hidden; animation: zvonek-panel-in .14s ease-out; }
.zvonek-panel[hidden] { display: none; }
.zvonek-panel::before { content: ""; position: absolute; top: -7px; right: 22px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
@keyframes zvonek-panel-in { from { opacity: 0; transform: translateY(-6px); } }
.zvonek-hlava { position: relative; display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.zvonek-hlava b { font: 700 1.05rem var(--font-h); color: var(--navy); }
.zvonek-hlava form { margin: 0 0 0 auto; }
.zvonek-seznam { list-style: none; margin: 0; padding: 6px; max-height: min(60vh, 440px); overflow-y: auto; }
.zvonek-seznam a { display: flex; gap: 12px; padding: 10px; border-radius: 10px; color: var(--muted); text-decoration: none; }
.zvonek-seznam a:hover { background: var(--surf); }
.zvonek-seznam a.je-nove { color: var(--text); background: var(--zlata-p); }
.zvonek-seznam a.je-nove:hover { background: #f3e2b8; }
.zvonek-ikona { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surf); color: var(--muted); font-size: 14px; }
.zvonek-seznam a.je-nove .zvonek-ikona { background: var(--gold-lt); color: #fff; }
.zvonek-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; line-height: 1.35; }
.zvonek-seznam a.je-nove .zvonek-text > span { font-weight: 600; }
.zvonek-text small { font-size: .75rem; color: var(--muted); }
.zvonek-prazdne { padding: 28px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.zvonek-prazdne .fa-ikona { font-size: 24px; color: var(--border-karta); }
.zvonek-pata { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-top: 1px solid var(--border); font-size: .85rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.zvonek-pata:hover { background: var(--surf); }
@media (max-width: 600px) { .zvonek-panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } .zvonek-panel::before { display: none; } }

/* Plynoucí vlny v hlavičce (mimo sněžení, zapíná sablony/hlavicka.php). Čtyři vrstvy plných vln,
   každá v trochu jiném tmavém odstínu modré, plynou různou rychlostí a směrem a jemně se houpou
   (Labe). Posun vždy o celou dlaždici, takže smyčka není vidět. Statická silueta s vlnami
   (.hl::before) se při nich schová. */
.hl.s-vlnami::before { display: none; }
.hl-vlny { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hl-vlny i { position: absolute; left: 0; background-repeat: repeat-x; opacity: .8; will-change: transform; }
.hl-vlny i:nth-child(1) { top: 12px; height: 72px; width: calc(100% + 240px); background-size: 240px 72px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20240%2072%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2025%20C%2030%2010%2090%2010%20120%2025%20S%20210%2040%20240%2025%20V%2072%20H%200%20Z%27%20fill%3D%27%2326468f%27%2F%3E%3C%2Fsvg%3E"); animation: hl-vlna-1 14s linear infinite, hl-houpani 3.3s ease-in-out -1.7s infinite alternate; }
@keyframes hl-vlna-1 { from { transform: translateX(0px); } to { transform: translateX(-240px); } }
.hl-vlny i:nth-child(2) { top: 26px; height: 64px; width: calc(100% + 200px); background-size: 200px 64px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20200%2064%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2022%20C%2025%209%2075%209%20100%2022%20S%20175%2035%20200%2022%20V%2064%20H%200%20Z%27%20fill%3D%27%231f3c80%27%2F%3E%3C%2Fsvg%3E"); animation: hl-vlna-2 11s linear infinite, hl-houpani 4s ease-in-out -3.4s infinite alternate; }
@keyframes hl-vlna-2 { from { transform: translateX(-200px); } to { transform: translateX(0px); } }
.hl-vlny i:nth-child(3) { top: 40px; height: 56px; width: calc(100% + 170px); background-size: 170px 56px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20170%2056%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2020%20C%2021.25%208%2063.75%208%2085%2020%20S%20148.75%2032%20170%2020%20V%2056%20H%200%20Z%27%20fill%3D%27%23193271%27%2F%3E%3C%2Fsvg%3E"); animation: hl-vlna-3 9s linear infinite, hl-houpani 4.7s ease-in-out -5.1s infinite alternate; }
@keyframes hl-vlna-3 { from { transform: translateX(0px); } to { transform: translateX(-170px); } }
.hl-vlny i:nth-child(4) { top: 54px; height: 48px; width: calc(100% + 140px); background-size: 140px 48px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20140%2048%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2017%20C%2017.5%207%2052.5%207%2070%2017%20S%20122.5%2027%20140%2017%20V%2048%20H%200%20Z%27%20fill%3D%27%23142961%27%2F%3E%3C%2Fsvg%3E"); animation: hl-vlna-4 7s linear infinite, hl-houpani 5.4s ease-in-out -6.8s infinite alternate; }
@keyframes hl-vlna-4 { from { transform: translateX(-140px); } to { transform: translateX(0px); } }
@keyframes hl-houpani { from { translate: 0 -5px; } to { translate: 0 5px; } }
@media (prefers-reduced-motion: reduce) { .hl-vlny i, .hl-vlny .hp-palma { animation: none; } }

/* Konfety, které po dešti o narozeninách/výročí dál padají v hlavičce (assets/js/konfety.js).
   Nad vlnami, pod obsahem hlavičky. */
.hl-konfety { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Dvě vrstvy: <i> padá svisle shora přes celou hlavičku (--h) pořád dokola (--d) a mírně se kývá
   do stran; <b> uvnitř je papírek, který se pootáčí a třepotá (natáčí se hranou). Otáčení je jen
   na <b>, takže směr pádu je vždy dolů. Kolečko se nepřeklápí. */
.hl-konfety i { position: absolute; top: -14px;
  animation: hk-pad var(--d) linear var(--z) infinite backwards, hk-kyv var(--k) ease-in-out var(--z) infinite alternate; }
.hl-konfety b { display: block; opacity: .9; rotate: var(--r);
  animation: hk-toc calc(var(--k) * 1.3) ease-in-out var(--z) infinite alternate, hk-trepot calc(var(--k) / 2) ease-in-out var(--z) infinite alternate; }
.hl-konfety .hk-kolecko b { border-radius: 50%; animation: none; }
@keyframes hk-pad { from { translate: 0 0; } to { translate: 0 var(--h); } }
@keyframes hk-kyv { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
@keyframes hk-toc { from { rotate: calc(var(--r) - 30deg); } to { rotate: calc(var(--r) + 30deg); } }
@keyframes hk-trepot { from { scale: 1 1; } to { scale: 1 .15; } }
@media (prefers-reduced-motion: reduce) { .hl-konfety { display: none; } }

/* Halloween (24.–31. 10., zapíná sablony/hlavicka.php): přes hlavičku poletují netopýři a svítící
   dýně, vpravo nahoře oranžová záře měsíce. Pohyb jde přes vlastnost translate, mávání a houpání
   přes scale/rotate, takže se animace nepřepisují. */
.hl-halloween { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hl-halloween::before { content: ""; position: absolute; right: 9%; top: -46px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 70, .38) 0, rgba(255, 140, 0, .12) 40%, rgba(255, 140, 0, 0) 68%); }
.hl-halloween i { position: absolute; left: 0; background-repeat: no-repeat; background-position: center; background-size: contain; will-change: translate; }
.hl-halloween .hw-netopyr { width: 34px; height: 16px; filter: drop-shadow(0 0 1.5px rgba(255, 190, 110, .85)) drop-shadow(0 0 5px rgba(255, 150, 60, .35)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 30'%3E%3Cpath fill='%2306091a' d='M32 9c-1-3-2-5-2-7l-1 4c-1 0-2 0-3 1C22 4 14 2 2 8c7 1 10 5 10 11 3-3 8-3 11 1 2-3 6-4 9 1 3-5 7-4 9-1 3-4 8-4 11-1 0-6 3-10 10-11C50 2 42 4 38 7c-1-1-2-1-3-1l-1-4c0 2-1 4-2 7z'/%3E%3Ccircle cx='29.6' cy='10' r='1' fill='%23ffb347'/%3E%3Ccircle cx='34.4' cy='10' r='1' fill='%23ffb347'/%3E%3C/svg%3E"); }
.hl-halloween .hw-dyne { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(255, 140, 30, .75)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 11c1-4 3-6 6-8' stroke='%233b5d22' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='12' cy='25' rx='9' ry='12' fill='%23d9661a'/%3E%3Cellipse cx='28' cy='25' rx='9' ry='12' fill='%23d9661a'/%3E%3Cellipse cx='20' cy='25' rx='9.5' ry='13' fill='%23f28b22'/%3E%3Cpath d='M11 22l4-4.5 3.5 4.5zM21.5 22l4-4.5 3.5 4.5zM11.5 29c4 4.5 13 4.5 17 0l-3 1-2-2.2-2 2.2-2-2.2-2 2.2-2-2.2z' fill='%23ffd76a'/%3E%3C/svg%3E"); }
.hl-halloween i:nth-child(1) { top: 8px;  animation: hl-let 15s linear -2s infinite, hl-mavani .17s ease-in-out infinite alternate; }
.hl-halloween i:nth-child(2) { top: 62px; animation: hl-let 31s linear -8s infinite reverse, hl-kyvani 2.6s ease-in-out infinite alternate; }
.hl-halloween i:nth-child(3) { top: 36px; width: 24px; height: 11px; animation: hl-let 19s linear -11s infinite reverse, hl-mavani .14s ease-in-out infinite alternate; }
.hl-halloween i:nth-child(4) { top: 74px; width: 28px; height: 13px; animation: hl-let 13s linear -6s infinite, hl-mavani .2s ease-in-out infinite alternate; }
.hl-halloween i:nth-child(5) { top: 16px; width: 20px; height: 20px; animation: hl-let 26s linear -19s infinite, hl-kyvani 3.1s ease-in-out -1s infinite alternate; }
.hl-halloween i:nth-child(6) { top: 50px; animation: hl-let 22s linear -15s infinite reverse, hl-mavani .16s ease-in-out infinite alternate; }
.hl-halloween i:nth-child(7) { top: 84px; width: 22px; height: 22px; animation: hl-let 36s linear -25s infinite, hl-kyvani 2.2s ease-in-out -.6s infinite alternate; }
/* Čarodějnice na koštěti (o Halloweenu jedna, 23.–30. 4. jen ony): přelétá zleva doprava a naklání se. */
.hl-halloween .hw-carodejnice { top: 14px; animation: hl-let 27s linear -4s infinite, hl-naklon 2.8s ease-in-out infinite alternate; }
.hl-carodejnice { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Pálení: tři ohně podél spodního okraje nepravidelně plápolají, nad nimi stoupají jiskry. */
.hl-carodejnice::before { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 170px; transform-origin: 50% 100%;
  background:
    radial-gradient(ellipse 22% 100% at 18% 100%, rgba(255, 120, 30, .75), rgba(255, 70, 10, .22) 50%, transparent 80%),
    radial-gradient(ellipse 20% 100% at 52% 100%, rgba(255, 150, 50, .7), rgba(255, 80, 20, .2) 50%, transparent 80%),
    radial-gradient(ellipse 22% 100% at 86% 100%, rgba(255, 110, 25, .7), rgba(255, 70, 10, .2) 50%, transparent 80%);
  animation: hl-plamen 2.3s linear infinite; }
.hl-carodejnice::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 210, 130, .95) 0 1.1px, transparent 1.8px), radial-gradient(circle, rgba(255, 160, 70, .85) 0 .9px, transparent 1.6px);
  background-size: 110px 70px, 73px 53px; background-position: 15px 0, 50px 20px;
  -webkit-mask-image: linear-gradient(to top, #000 0, rgba(0, 0, 0, .75) 60%, transparent 100%); mask-image: linear-gradient(to top, #000 0, rgba(0, 0, 0, .75) 60%, transparent 100%);
  animation: hl-jiskry 3.2s linear infinite; }
@keyframes hl-jiskry { to { background-position: 35px -140px, 30px -86px; } }
.hl-carodejnice i { position: absolute; left: 0; will-change: translate; }
.hl-carodejnice i:nth-child(1) { top: 6px; animation: hl-let 24s linear -3s infinite, hl-naklon 2.8s ease-in-out infinite alternate; }
.hl-carodejnice i:nth-child(2) { top: 44px; width: 48px; height: 32px; animation: hl-let 31s linear -17s infinite, hl-naklon 3.4s ease-in-out -1s infinite alternate; }
.hl-carodejnice i:nth-child(3) { top: 24px; width: 40px; height: 27px; animation: hl-let 37s linear -27s infinite, hl-naklon 2.4s ease-in-out -.5s infinite alternate; }
.hl-carodejnice i:nth-child(4) { top: 66px; width: 56px; height: 38px; animation: hl-let 21s linear -11s infinite, hl-naklon 3.1s ease-in-out -2s infinite alternate; }
/* Prázdniny (1. 7. – 31. 8.): v modrých tónech vlnek. Vpravo nahoře světlá záře slunce, po vlnách
   pomalu pluje plachetnice a houpe se, nad ní plachtí racci. */
.hl-prazdniny { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hl-prazdniny::before { content: ""; position: absolute; right: 12%; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(190, 215, 255, .32) 0, rgba(140, 180, 245, .12) 40%, rgba(140, 180, 245, 0) 68%); animation: hp-slunce 6s ease-in-out infinite alternate; }
.hl-prazdniny i { position: absolute; left: 0; background-repeat: no-repeat; background-position: center; background-size: contain; will-change: translate; }
.hl-prazdniny .hp-lod { top: 46px; width: 34px; height: 34px; animation: hl-pluti 70s linear -20s infinite, hp-houpani 3.2s ease-in-out infinite alternate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M19.5 3 V31' stroke='%2393aee6' stroke-width='1.2'/%3E%3Cpath d='M20.5 4 L20.5 30 L34 30 Z' fill='%236f8fd6'/%3E%3Cpath d='M18.5 9 L18.5 30 L8 30 Z' fill='%234f70bd'/%3E%3Cpath d='M4 31.5 H36 L31.5 37.5 H8.5 Z' fill='%232f4f9e'/%3E%3C/svg%3E"); }
.hl-prazdniny .hp-racek { width: 22px; height: 9px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M2 10 Q8 2 14 9 Q20 2 26 10' fill='none' stroke='%23b4c8f0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hl-prazdniny i:nth-child(2) { top: 12px; animation: hl-let 34s linear -6s infinite, hp-plachteni 2.4s ease-in-out infinite alternate; }
.hl-prazdniny i:nth-child(3) { top: 26px; width: 16px; height: 7px; animation: hl-let 42s linear -21s infinite reverse, hp-plachteni 3s ease-in-out -1s infinite alternate; }
.hl-prazdniny i:nth-child(4) { top: 8px; width: 18px; height: 8px; animation: hl-let 51s linear -38s infinite, hp-plachteni 2.7s ease-in-out -.4s infinite alternate; }
/* Další lodičky: menší a vzdálenější výš, jedna pluje opačně; ostrov s palmou stojí na vlnách. */
.hl-prazdniny .hp-lod-2 { top: 34px; width: 24px; height: 24px; opacity: .8; animation: hl-pluti 95s linear -60s infinite reverse, hp-houpani 3.8s ease-in-out -1.2s infinite alternate; }
.hl-prazdniny .hp-lod-3 { top: 58px; width: 40px; height: 40px; animation: hl-pluti 58s linear -41s infinite, hp-houpani 2.9s ease-in-out -.7s infinite alternate; }
/* Ostrov a palma jsou ve vrstvě vln (.hl-vlny), nad 1.–3. vlnou a pod 4. (spodní) vlnou. */
.hl-vlny i:nth-child(4) { z-index: 2; }
.hl-vlny .hp-ostrov, .hl-vlny .hp-palma { position: absolute; z-index: 1; background-repeat: no-repeat; background-position: center; background-size: contain; }
.hl-vlny .hp-ostrov { left: 64%; top: 60px; width: 84px; height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 26'%3E%3Cpath d='M2 24 C14 9 30 4 44 4 C58 4 72 10 82 24 Z' fill='%23365aa8'/%3E%3Cpath d='M12 24 C22 14 34 11 44 11 C56 11 66 15 74 24 Z' fill='%23426ab8'/%3E%3C/svg%3E"); }
.hl-vlny .hp-palma { left: calc(64% + 30px); top: 20px; width: 40px; height: 46px; will-change: rotate; transform-origin: 40% 100%; animation: hp-palma 4.5s ease-in-out infinite alternate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 46'%3E%3Cpath d='M15 46 C16 34 17 24 20 14' stroke='%235b7ec9' stroke-width='3.2' fill='none' stroke-linecap='round'/%3E%3Cg fill='%237f9fe0'%3E%3Cpath d='M20 14 C14 8 6 8 1 13 C8 11 14 12 20 14 Z'/%3E%3Cpath d='M20 14 C17 6 11 2 4 3 C11 6 16 9 20 14 Z'/%3E%3Cpath d='M20 14 C24 5 31 2 38 4 C30 6 25 9 20 14 Z'/%3E%3Cpath d='M20 14 C27 10 35 11 39 17 C32 14 26 14 20 14 Z'/%3E%3Cpath d='M20 14 C21 8 23 4 26 1 C24 6 22 10 20 14 Z'/%3E%3C/g%3E%3Ccircle cx='19' cy='16' r='1.6' fill='%235b7ec9'/%3E%3Ccircle cx='22' cy='16.5' r='1.5' fill='%235b7ec9'/%3E%3C/svg%3E"); }
@keyframes hp-palma { from { rotate: -4deg; } to { rotate: 3deg; } }
@media (max-width: 760px) { .hl-vlny .hp-ostrov, .hl-vlny .hp-palma { display: none; } }
@keyframes hl-pluti { from { translate: -50px 0; } to { translate: calc(100vw + 50px) 0; } }
@keyframes hp-houpani { from { rotate: -6deg; } to { rotate: 5deg; } }
@keyframes hp-plachteni { from { scale: 1 1; } to { scale: .92 .55; } }
@keyframes hp-slunce { from { opacity: .7; scale: .96; } to { opacity: 1; scale: 1.05; } }

/* Roční období (9. 11. 2026, zapíná sablony/hlavicka.php ve dnech bez jiného motivu): nad vlnami
   v modrých odstínech hlavičky. Prvky a jejich náhodné hodnoty (--s velikost, --d doba pádu, --z posun,
   --k kývání, --a rozkyv, --vx vítr, --r0/--r1 otočení, --c barva, --o průhlednost) generuje PHP.
   <i> padá a kývá se do stran, <b> uvnitř je tvar (maska vyplněná barvou --c), který se otáčí a překlápí.
   Pád a otáčení jsou na různých prvcích, takže směr pádu je vždy dolů. */
.hl-obdobi { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hl-obdobi i { position: absolute; width: var(--s); height: var(--s); opacity: var(--o); will-change: translate;
  animation: ho-pad var(--d) linear var(--z) infinite, ho-kyv var(--k) ease-in-out var(--z) infinite alternate; }
.hl-obdobi b { display: block; width: 100%; height: 100%; background: var(--c); rotate: var(--r0);
  -webkit-mask: var(--tvar) center / contain no-repeat; mask: var(--tvar) center / contain no-repeat;
  animation: ho-toc calc(var(--k) * 1.7) ease-in-out var(--z) infinite alternate; }
@keyframes ho-pad { from { translate: 0 0; } to { translate: var(--vx) 150px; } }
@keyframes ho-kyv { from { transform: translateX(calc(var(--a) * -1)); } to { transform: translateX(var(--a)); } }
@keyframes ho-toc { from { rotate: var(--r0); } to { rotate: var(--r1); } }
@keyframes ho-preklop { from { scale: 1 1; } to { scale: 1 .4; } }
/* Jaro: okvětní lístky se snášejí a větřík je nese doprava. */
.hl-jaro { --tvar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1C16 6 15.5 14.5 10 19C4.5 14.5 4 6 10 1Z M10 1L10 4' /%3E%3C/svg%3E"); }
.hl-jaro b { animation: ho-toc calc(var(--k) * 1.7) ease-in-out var(--z) infinite alternate, ho-preklop calc(var(--k) / 1.6) ease-in-out var(--z) infinite alternate; }
/* Podzim: zubaté listy padají, točí se a překlápějí – střídá se javor (cípy) a jírovec/kaštan (pět lístků
   ze stopky). Dřív hladký lístek se žilkou (změna 10. 11. 2026 na pokyn uživatele). */
.hl-podzim { --tvar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L13.6 5.4L16.2 4.2L15.4 8.6L19.6 6.8L18.4 10.2L22.5 11L18.8 13.2L20 15L15.4 14.6L15.8 17.4L12.6 15.6L12.6 23H11.4L11.4 15.6L8.2 17.4L8.6 14.6L4 15L5.2 13.2L1.5 11L5.6 10.2L4.4 6.8L8.6 8.6L7.8 4.2L10.4 5.4Z'/%3E%3C/svg%3E"); }
.hl-podzim i:nth-child(even) { --tvar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cpath id='l' d='M12 15L10.8 11.5L9.3 8L9.2 5L10.2 3L12 1.8L13.8 3L14.8 5L14.7 8L13.2 11.5Z'/%3E%3Cpath id='m' d='M12 15L11 12.2L9.9 9.6L9.9 7.4L10.7 5.9L12 5L13.3 5.9L14.1 7.4L14.1 9.6L13 12.2Z'/%3E%3C/defs%3E%3Cuse href='%23l'/%3E%3Cuse href='%23l' transform='rotate(-42 12 15)'/%3E%3Cuse href='%23l' transform='rotate(42 12 15)'/%3E%3Cuse href='%23m' transform='rotate(-82 12 15)'/%3E%3Cuse href='%23m' transform='rotate(82 12 15)'/%3E%3Cpath d='M11.4 14.5H12.6V23H11.4Z'/%3E%3C/svg%3E"); }
.hl-podzim b { animation: ho-toc calc(var(--k) * 1.4) ease-in-out var(--z) infinite alternate, ho-preklop calc(var(--k) / 2) ease-in-out var(--z) infinite alternate; }
/* Zima (po Třech králích): pomalé vločky nad vlnami (o Vánocích padá sníh místo vln). */
.hl-zima { --tvar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cg stroke='black' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath id='r' d='M0-9V9M-2.6-7L0-4.6L2.6-7M-2.6 7L0 4.6L2.6 7'/%3E%3Cuse href='%23r' transform='rotate(60)'/%3E%3Cuse href='%23r' transform='rotate(120)'/%3E%3C/g%3E%3C/svg%3E"); }
/* Léto (mimo prázdniny): záře slunce vpravo nahoře a třpyt na vlnách - jiskry nepadají, jen se rozsvěcují. */
.hl-leto { --tvar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C11 7 13 9 20 10C13 11 11 13 10 20C9 13 7 11 0 10C7 9 9 7 10 0Z'/%3E%3C/svg%3E"); }
.hl-leto::before { content: ""; position: absolute; right: 12%; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(190, 215, 255, .32) 0, rgba(140, 180, 245, .12) 40%, rgba(140, 180, 245, 0) 68%); animation: hp-slunce 6s ease-in-out infinite alternate; }
.hl-leto i { animation: ho-trpyt var(--d) ease-in-out var(--z) infinite; opacity: 0; }
.hl-leto b { animation: none; }
@keyframes ho-trpyt { 0%, 100% { opacity: 0; scale: .3; } 50% { opacity: var(--o); scale: 1; } }
/* Jarní louka (místo vln, sablony/hlavicka.php): čtyři vrstvy trávy v odstínech vln se vlní ve větru
   (zkosení od kořínků, každá vrstva jinak rychle), mezi 2. a 3. vrstvou vyrůstají kytky - vysunou se
   zpoza přední trávy, chvíli se kývají a zase zalezou. Kytky (--l poloha, --v výška, --d cyklus,
   --z posun, --k kývání) generuje PHP. */
.hl-trava { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hl-trava i { position: absolute; left: -24px; bottom: -2px; width: calc(100% + 48px); background-repeat: repeat-x; background-position: left bottom; transform-origin: 50% 100%; will-change: transform; }
.hl-trava i:nth-child(1) { height: 56px; background-size: 120px 56px; opacity: .85; animation: ht-vitr 4.2s ease-in-out -1s infinite alternate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50' preserveAspectRatio='none'%3E%3Cpath fill='%2326468f' d='M0 50L3 22L6 50L9 10L12 50L16 26L19 50L22 4L26 50L29 18L33 50L37 12L40 50L44 28L47 50L51 6L54 50L58 20L61 50L65 14L68 50L72 30L75 50L79 8L82 50L86 22L89 50L93 2L96 50L100 16L103 50L107 26L110 50L114 10L117 50Z'/%3E%3C/svg%3E"); }
.hl-trava i:nth-child(2) { height: 47px; background-size: 100px 47px; opacity: .9; animation: ht-vitr 3.3s ease-in-out -2.6s infinite alternate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50' preserveAspectRatio='none'%3E%3Cpath fill='%231f3c80' d='M0 50L4 16L7 50L11 28L14 50L18 6L21 50L25 22L28 50L32 10L35 50L39 30L42 50L46 14L49 50L53 24L56 50L60 4L63 50L67 20L70 50L74 12L77 50L81 26L84 50L88 8L91 50L95 18L98 50L102 28L105 50L109 6L112 50L116 20L119 50Z'/%3E%3C/svg%3E"); }
.hl-trava i:nth-child(3) { z-index: 2; height: 36px; background-size: 84px 36px; animation: ht-vitr 2.7s ease-in-out -.4s infinite alternate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50' preserveAspectRatio='none'%3E%3Cpath fill='%23193271' d='M0 50L3 20L6 50L10 6L13 50L17 24L20 50L24 12L27 50L31 2L34 50L38 18L41 50L45 8L48 50L52 26L55 50L59 10L62 50L66 0L69 50L73 16L76 50L80 6L83 50L87 22L90 50L94 4L97 50L101 14L104 50L108 24L111 50L115 8L118 50Z'/%3E%3C/svg%3E"); }
.hl-trava i:nth-child(4) { z-index: 2; height: 25px; background-size: 70px 25px; animation: ht-vitr 2.2s ease-in-out -1.9s infinite alternate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50' preserveAspectRatio='none'%3E%3Cpath fill='%23142961' d='M0 50L4 14L8 50L12 4L16 50L20 20L24 50L28 0L32 50L36 16L40 50L44 6L48 50L52 22L56 50L60 2L64 50L68 18L72 50L76 8L80 50L84 0L88 50L92 14L96 50L100 4L104 50L108 20L112 50L116 6L120 50Z'/%3E%3C/svg%3E"); }
/* Výrazné ohnutí (špičky stébel uhnou o ~15 px) s mírným posunem, ať je vlnění vidět. */
@keyframes ht-vitr { from { transform: translateX(-5px) skewX(-17deg); } to { transform: translateX(5px) skewX(13deg); } }
/* Výška kytky je v % výšky hlavičky (nejvyšší do 75 %), šířka poloviční. */
.hl-trava b { position: absolute; z-index: 1; left: var(--l); bottom: -2px; height: var(--v); aspect-ratio: 1 / 2; background: no-repeat center bottom / contain; transform-origin: 50% 100%;
  animation: ht-rust var(--d) ease-in-out var(--z) infinite, ht-kyv var(--k) ease-in-out var(--z) infinite alternate; }
@keyframes ht-rust { 0%, 8% { translate: 0 105%; } 24%, 72% { translate: 0 0; } 90%, 100% { translate: 0 105%; } }
@keyframes ht-kyv { from { rotate: -6deg; } to { rotate: 6deg; } }
.hl-trava .ht-kopretina { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 40'%3E%3Cpath d='M10 40Q9 28 10 14' stroke='%235b7ec9' stroke-width='1.6' fill='none'/%3E%3Cpath d='M10 31Q4 27 3 22Q8 24 10 29Z' fill='%235b7ec9'/%3E%3Cg fill='%23dbe6fb'%3E%3Ccircle cx='10' cy='5.5' r='3'/%3E%3Ccircle cx='13.9' cy='7.75' r='3'/%3E%3Ccircle cx='13.9' cy='12.25' r='3'/%3E%3Ccircle cx='10' cy='14.5' r='3'/%3E%3Ccircle cx='6.1' cy='12.25' r='3'/%3E%3Ccircle cx='6.1' cy='7.75' r='3'/%3E%3C/g%3E%3Ccircle cx='10' cy='10' r='2.6' fill='%238fb3ff'/%3E%3C/svg%3E"); }
.hl-trava .ht-tulipan { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 40'%3E%3Cpath d='M10 40V14' stroke='%235b7ec9' stroke-width='1.6'/%3E%3Cpath d='M10 36Q16 30 16 22Q12 26 10 33Z' fill='%235b7ec9'/%3E%3Cpath d='M5 5L7 14Q10 17.5 13 14L15 5L12.5 9L10 3L7.5 9Z' fill='%23b4c8f0'/%3E%3C/svg%3E"); }
.hl-trava .ht-zvonek { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 40'%3E%3Cpath d='M9 40Q9 16 14 8' stroke='%235b7ec9' stroke-width='1.5' fill='none'/%3E%3Cpath d='M9 33Q3 30 2 25Q7 27 9 31Z' fill='%235b7ec9'/%3E%3Cpath d='M11.5 8.5Q14 4 16.5 8.5L18 15Q15.5 13.5 14 15.5Q12.5 13.5 10 15Z' fill='%238fb3ff'/%3E%3C/svg%3E"); }
@media (max-width: 760px) { .hl-trava b:nth-of-type(n+7) { display: none; } }
@media (prefers-reduced-motion: reduce) { .hl-trava i, .hl-trava b { animation: none; } .hl-trava b { translate: 0 0; } }
/* Na telefonu stačí méně prvků. */
@media (max-width: 760px) { .hl-obdobi i:nth-child(n+9) { display: none; } }
@media (prefers-reduced-motion: reduce) { .hl-obdobi { display: none; } }
@keyframes hl-plamen {
  0% { opacity: .55; scale: 1 .92; } 12% { opacity: .95; scale: 1 1.08; } 25% { opacity: .7; scale: 1 .97; } 38% { opacity: 1; scale: 1 1.12; }
  52% { opacity: .6; scale: 1 .94; } 66% { opacity: .9; scale: 1 1.05; } 80% { opacity: .65; scale: 1 .96; } 100% { opacity: .55; scale: 1 .92; }
}
.hl-halloween .hw-carodejnice, .hl-carodejnice i { width: 64px; height: 43px; background-repeat: no-repeat; background-position: center; background-size: contain; filter: drop-shadow(0 0 1.5px rgba(255, 190, 110, .9)) drop-shadow(0 0 6px rgba(255, 150, 60, .4));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 54'%3E%3Cg fill='%2306091a'%3E%3Cpath d='M6 40 L76 32 L76.5 34 L6.5 42 Z'/%3E%3Cpath d='M0 36 L12 39 L12 44 L1 50 L5 43 Z'/%3E%3Cpath d='M41 20 C38 28 36 34 33 40 L56 38 C54 31 52 25 50 20 Z'/%3E%3Cpath d='M43 16 C36 18 30 17 24 21 C31 22 36 22 42 20 Z'/%3E%3Ccircle cx='47' cy='17' r='4'/%3E%3Cpath d='M50.5 16.5 L54.5 18.5 L50.5 19.2 Z'/%3E%3Cpath d='M37 14.5 Q47 11 58 13.5 Q47 16.5 37 14.5 Z'/%3E%3Cpath d='M42 13.5 L52 12.8 L45 1 L39 3 Z'/%3E%3Cpath d='M49 23 L61 32 L59 34.5 L47 27 Z'/%3E%3Cpath d='M50 36 L58 41.5 L62.5 40.5 L61.5 43.5 L56 44.5 L47.5 40 Z'/%3E%3C/g%3E%3Ccircle cx='48.6' cy='16.4' r='.8' fill='%23ffb347'/%3E%3C/svg%3E"); }
@keyframes hl-naklon { from { rotate: -7deg; } to { rotate: 4deg; } }
@keyframes hl-let {
  0% { translate: -60px 0; } 20% { translate: 20vw -10px; } 40% { translate: 40vw 8px; }
  60% { translate: 60vw -12px; } 80% { translate: 80vw 6px; } 100% { translate: calc(100vw + 60px) 0; }
}
@keyframes hl-mavani { from { scale: 1 1; } to { scale: .9 .35; } }
@keyframes hl-kyvani { from { rotate: -14deg; } to { rotate: 14deg; } }

/* Kostlivec vlevo od loga: jen tam, kde je vedle obsahu (.obal, max 1320 px) volné místo, tedy
   na širokém monitoru. Šířka = volný okraj; SVG se drží vpravo dole, ruce míří k logu. */
.hl-kostlivec, .hl-kocka { display: none; position: absolute; left: 0; bottom: 0; z-index: -1; height: 113px; width: calc((100% - min(1320px, 92%)) / 2 - 4px); max-width: 210px; overflow: visible; pointer-events: none; }
@media (min-width: 1480px) { .hl-kostlivec, .hl-kocka { display: block; } }
/* Černá kočka na čarodějnice (stejné místo jako kostlivec): vlní ocasem, mrká, cuká uchem. */
.hl-kocka .hc-telo { filter: drop-shadow(0 0 1.5px rgba(255, 180, 100, .8)) drop-shadow(0 0 6px rgba(255, 140, 60, .35)); }
.hl-kocka .hc-telo :is(path, circle, ellipse) { fill: #04060e; stroke: #04060e; stroke-linecap: round; stroke-linejoin: round; }
.hl-kocka .hc-telo .hc-ocas { fill: none; }
.hl-kocka .hc-telo .hc-duhovka { fill: #c6f04a; stroke: none; filter: drop-shadow(0 0 2px rgba(198, 240, 74, .9)); }
.hl-kocka .hc-telo .hc-zornice { fill: #04060e; stroke: none; }
.hl-kocka .hc-telo .hc-vousy { fill: none; stroke: rgba(255, 230, 190, .55); }
.hl-kocka g, .hl-kocka path { transform-box: view-box; }
.hc-ocas { transform-origin: 74px 106px; animation: hc-ocas 2.6s ease-in-out infinite alternate; }
.hc-hlava { transform-origin: 122px 76px; animation: hc-hlava 5s ease-in-out infinite alternate; }
.hc-ucho { transform-origin: 132px 52px; animation: hc-ucho 4.2s ease-in-out infinite; }
.hc-oko { transform-origin: 131px 59px; animation: hc-mrk 4.6s ease-in-out infinite; }
@keyframes hc-ocas { from { rotate: -10deg; } to { rotate: 14deg; } }
@keyframes hc-hlava { from { rotate: -4deg; } to { rotate: 5deg; } }
@keyframes hc-ucho { 0%, 82%, 100% { rotate: 0deg; } 86% { rotate: -14deg; } 90% { rotate: 4deg; } 94% { rotate: -8deg; } }
@keyframes hc-mrk { 0%, 90%, 100% { scale: 1 1; } 94% { scale: 1 .1; } }
.hl-kostlivec .hk-kost { filter: drop-shadow(0 0 5px rgba(0, 0, 0, .5)); }
.hl-kostlivec .hk-kost :is(path, circle, ellipse) { fill: #ebe5d3; stroke: #ebe5d3; stroke-linecap: round; stroke-linejoin: round; }
.hl-kostlivec .hk-kost path[fill="none"] { fill: none; }
.hl-kostlivec .hk-kost .hk-dira { fill: #0b1024; stroke: none; }
.hl-kostlivec .hk-kost .hk-oko { fill: #ff8a1f; stroke: none; animation: hk-svit 1.8s ease-in-out infinite alternate; }
.hl-kostlivec .hk-kost .hk-zuby { fill: none; stroke: #8f8772; }
.hl-kostlivec .hk-kost .hk-stin { fill: #d6cdb5; stroke: none; }
.hl-kostlivec .hk-kost .hk-linka { fill: none; stroke: #b3a98f; }
.hl-kostlivec g { transform-box: view-box; }
.hk-lebka { transform-origin: 30px 70px; animation: hk-hlava 4.2s ease-in-out infinite alternate; }
.hk-celist { transform-origin: 27px 57px; animation: hk-cvakani 2.6s steps(1) infinite; }
.hk-ruka-1 { transform-origin: 46px 92px; animation: hk-natah-1 3.2s ease-in-out infinite alternate; }
.hk-predlokti-1 { transform-origin: 92px 74px; animation: hk-loket 3.2s ease-in-out infinite alternate; }
.hk-prsty-1 { transform-origin: 143px 62px; animation: hk-prsty .45s ease-in-out infinite alternate; }
.hk-ruka-2 { transform-origin: 44px 104px; animation: hk-natah-2 4.1s ease-in-out -1.5s infinite alternate; }
.hk-predlokti-2 { transform-origin: 86px 102px; animation: hk-loket 4.1s ease-in-out -1.5s infinite alternate; }
.hk-prsty-2 { transform-origin: 129px 94px; animation: hk-prsty .55s ease-in-out -.2s infinite alternate; }
@keyframes hk-natah-1 { from { rotate: 9deg; } to { rotate: -6deg; } }
@keyframes hk-natah-2 { from { rotate: 4deg; } to { rotate: -5deg; } }
@keyframes hk-loket { from { rotate: 16deg; } to { rotate: -4deg; } }
@keyframes hk-prsty { from { rotate: -11deg; } to { rotate: 9deg; } }
@keyframes hk-hlava { from { rotate: -6deg; } to { rotate: 5deg; } }
@keyframes hk-cvakani { 0%, 55%, 100% { rotate: 0deg; } 60%, 70%, 80% { rotate: 9deg; } 65%, 75% { rotate: 0deg; } }
@keyframes hk-svit { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hl-halloween i, .hl-kostlivec *, .hl-kocka *, .hl-carodejnice i, .hl-carodejnice::before, .hl-carodejnice::after, .hl-prazdniny i, .hl-prazdniny::before { animation: none !important; }
  .hl-prazdniny .hp-lod { translate: 30vw 0; } .hl-prazdniny .hp-lod-2 { translate: 52vw 0; } .hl-prazdniny .hp-lod-3 { translate: 84vw 0; } .hl-prazdniny i:nth-child(2) { translate: 45vw 0; } .hl-prazdniny i:nth-child(3) { translate: 62vw 0; } .hl-prazdniny i:nth-child(4) { translate: 76vw 0; }
  .hl-carodejnice i:nth-child(1) { translate: 22vw 0; } .hl-carodejnice i:nth-child(2) { translate: 46vw 0; }
  .hl-carodejnice i:nth-child(3) { translate: 64vw 0; } .hl-carodejnice i:nth-child(4) { translate: 84vw 0; }
  .hl-halloween i { translate: calc(var(--x, 0) * 1vw) 0; }
  .hl-halloween i:nth-child(1) { --x: 18; } .hl-halloween i:nth-child(2) { --x: 34; } .hl-halloween i:nth-child(3) { --x: 47; }
  .hl-halloween i:nth-child(4) { --x: 58; } .hl-halloween i:nth-child(5) { --x: 69; } .hl-halloween i:nth-child(6) { --x: 80; } .hl-halloween i:nth-child(7) { --x: 90; }
}

/* Fotogalerie příspěvku: mřížka čtvercových náhledů, klik = prohlížeč s listováním (lib/nastenka.php fotogalerieHtml). */
.fotogalerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.fotogalerie > a, .fotogalerie > figure { position: relative; display: block; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surf); }
.fotogalerie img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.fotogalerie > a { cursor: zoom-in; }
.fotogalerie > a:hover img { transform: scale(1.04); }
.fotogalerie > a:focus-visible { outline: 3px solid var(--gold-lt); outline-offset: 2px; }
.fotogalerie-editor { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-top: 10px; }
.fotogalerie-odebrat { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; cursor: pointer; }
.fotogalerie-odebrat:hover { background: #b3261e; }
@media (max-width: 600px) { .fotogalerie { grid-template-columns: repeat(3, 1fr); gap: 4px; } .fotogalerie > a, .fotogalerie > figure { border-radius: 6px; } }

/* ── Animace v modré hlavičce widgetu počasí na Úvodu (lib/pocasi.php pocasiHlavickaHtml) podle
   aktuálního počasí v Litoměřicích. ?pocasi=dest|bourka|snih|vitr|slunce|hvezdy|mraky|mlha na zkoušku. ── */
.pc-ted { position: relative; isolation: isolate; overflow: hidden; }
.hl-pocasi { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hl-pocasi::before, .hl-pocasi::after { content: ""; position: absolute; inset: 0; }

/* Déšť: dvě vrstvy šikmých kapek, bližší rychlejší. */
.p-dest::before, .p-bourka::before {
  inset: -130px 0 0 -40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='130'%3E%3Cg stroke='%23bcd6ff' stroke-width='1.4' stroke-linecap='round' opacity='.6'%3E%3Cpath d='M10 8l-4 14M52 40l-4 14M95 18l-4 14M30 78l-4 14M78 96l-4 14M112 70l-4 14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 130px;
  animation: hl-dest .55s linear infinite;
}
.p-dest::after, .p-bourka::after {
  inset: -130px 0 0 -40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='130'%3E%3Cg stroke='%23dbe8ff' stroke-width='1' stroke-linecap='round' opacity='.35'%3E%3Cpath d='M20 20l-3 10M65 55l-3 10M40 100l-3 10M84 110l-3 10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px 130px;
  animation: hl-dest .9s linear infinite;
}
@keyframes hl-dest { to { transform: translate(-38px, 130px); } }
/* Bouřka: k dešti občas blesk. */
.p-bourka { animation: hl-blesk 7s infinite; }
@keyframes hl-blesk { 0%, 90%, 93%, 100% { background: transparent; } 91%, 94% { background: rgba(220,230,255,.28); } }

/* Sníh: stejně jako prosincové sněžení. */
.p-snih::before {
  background-image: radial-gradient(circle at 20px 30px, rgba(255,255,255,.8) 1.6px, transparent 2.4px), radial-gradient(circle at 95px 70px, rgba(255,255,255,.65) 2px, transparent 2.8px),
    radial-gradient(circle at 55px 115px, rgba(255,255,255,.75) 1.4px, transparent 2.2px), radial-gradient(circle at 125px 15px, rgba(255,255,255,.55) 1.7px, transparent 2.5px);
  background-size: 140px 140px; animation: hl-snih-1 12s linear infinite;
}
.p-snih::after {
  background-image: radial-gradient(circle at 10px 60px, rgba(255,255,255,.45) 1.1px, transparent 1.7px), radial-gradient(circle at 50px 20px, rgba(255,255,255,.4) 1px, transparent 1.6px),
    radial-gradient(circle at 75px 80px, rgba(255,255,255,.5) 1.1px, transparent 1.7px);
  background-size: 90px 90px; animation: hl-snih-2 19s linear infinite;
}

/* Vítr: podzimní listy přelétají zleva doprava a točí se. */
.p-vitr i { position: absolute; left: -40px; width: 18px; height: 18px; background: center / contain no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9952b' d='M4 20C4 9 11 4 21 3c-1 10-6 17-17 17z'/%3E%3Cpath d='M4 20L15 9' stroke='%23a9670f' stroke-width='1.3'/%3E%3C/svg%3E");
  animation: hl-list 9s linear infinite; opacity: .9; }
.p-vitr i:nth-child(2) { top: 18%; animation-duration: 7s; animation-delay: -2s; width: 14px; height: 14px; filter: hue-rotate(-25deg); }
.p-vitr i:nth-child(3) { top: 55%; animation-duration: 11s; animation-delay: -5s; }
.p-vitr i:nth-child(4) { top: 35%; animation-duration: 8s; animation-delay: -6.5s; width: 12px; height: 12px; filter: hue-rotate(20deg) brightness(1.1); }
.p-vitr i:nth-child(5) { top: 70%; animation-duration: 10s; animation-delay: -3.5s; width: 16px; height: 16px; filter: hue-rotate(-40deg); }
.p-vitr i:nth-child(6) { top: 8%; animation-duration: 12s; animation-delay: -8s; width: 13px; height: 13px; }
.p-vitr i:nth-child(7) { top: 45%; animation-duration: 6.5s; animation-delay: -1s; width: 15px; height: 15px; filter: hue-rotate(15deg); }
.p-vitr i:nth-child(1) { top: 28%; }
@keyframes hl-list {
  0% { left: -30px; transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(14px) rotate(160deg); }
  50% { transform: translateY(-8px) rotate(330deg); }
  75% { transform: translateY(16px) rotate(500deg); }
  100% { left: calc(100% + 30px); transform: translateY(4px) rotate(720deg); }
}

/* Slunce: hřejivá záře vpravo nahoře a pomalu se otáčející paprsky. */
.p-slunce::before { background: radial-gradient(circle at 90% -20%, rgba(255,214,107,.75) 0, rgba(255,190,60,.32) 110px, rgba(255,170,40,.1) 220px, transparent 320px); animation: hl-zare 6s ease-in-out infinite alternate; }
.p-slunce i { position: absolute; right: calc(8% - 220px); top: -230px; width: 440px; height: 440px; border-radius: 50%; opacity: .4;
  background: repeating-conic-gradient(from 0deg, rgba(255,220,120,.9) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 40px, #000 70px, transparent 220px); mask: radial-gradient(circle, transparent 40px, #000 70px, transparent 220px);
  animation: hl-paprsky 60s linear infinite; }
@keyframes hl-zare { from { opacity: .75; } to { opacity: 1; } }
@keyframes hl-paprsky { to { transform: rotate(360deg); } }

/* Jasná noc: blikající hvězdy. */
.p-hvezdy::before, .p-hvezdy::after {
  background-image: radial-gradient(circle at 15px 20px, #fff 1px, transparent 1.6px), radial-gradient(circle at 80px 55px, #fff .9px, transparent 1.5px),
    radial-gradient(circle at 140px 15px, #fff 1.2px, transparent 1.8px), radial-gradient(circle at 190px 70px, #fff .8px, transparent 1.4px);
  background-size: 230px 90px; opacity: .5; animation: hl-hvezdy 3.5s ease-in-out infinite alternate;
}
.p-hvezdy::after { background-position: 110px 40px; animation-delay: -1.7s; opacity: .35; }
@keyframes hl-hvezdy { from { opacity: .15; } to { opacity: .7; } }

/* Zataženo: plují mraky. */
.p-mraky i { position: absolute; left: -260px; width: 240px; height: 80px; opacity: .13; background: center / contain no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 80'%3E%3Cpath fill='%23fff' d='M40 70h160a30 30 0 0 0 0-60 40 40 0 0 0-72-6A34 34 0 0 0 70 30 22 22 0 0 0 40 70z'/%3E%3C/svg%3E");
  animation: hl-mrak 70s linear infinite; }
.p-mraky i:nth-child(1) { top: -10px; }
.p-mraky i:nth-child(2) { top: 30px; width: 180px; animation-duration: 95s; animation-delay: -40s; opacity: .1; }
.p-mraky i:nth-child(3) { top: 5px; width: 300px; height: 100px; animation-duration: 120s; animation-delay: -75s; opacity: .08; }
.p-mraky i:nth-child(4) { top: 50px; width: 200px; animation-duration: 85s; animation-delay: -20s; }
@keyframes hl-mrak { from { left: -310px; } to { left: 100%; } }

/* Mlha: pomalu se táhnoucí pruhy. */
.p-mlha i { position: absolute; left: -50%; width: 200%; height: 60px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,255,255,.16), transparent 70%); animation: hl-mlha 40s ease-in-out infinite alternate; }
.p-mlha i:nth-child(1) { top: 10px; }
.p-mlha i:nth-child(2) { top: 55px; animation-duration: 55s; animation-direction: alternate-reverse; }
@keyframes hl-mlha { from { transform: translateX(-10%); } to { transform: translateX(10%); } }

@media (prefers-reduced-motion: reduce) {
  .hl-pocasi, .hl-pocasi::before, .hl-pocasi::after, .hl-pocasi i { animation: none !important; }
  .p-vitr i, .p-mraky i { display: none; }
}
