@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/atkinson-next-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/atkinson-next-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-next-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-next-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/atkinson-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/atkinson-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* SVÚ Olomouc 2026. Barvy z loga (modrá + žlutá), písmo Atkinson Hyperlegible (vlastní hostování). */
:root {
  --bg: #ffffff; --bg-2: #f2f5f9; --bg-3: #e6ecf4;
  --ink: #0e1b30; --ink-2: #3f4b61; --ink-3: #56627a;
  --line: #d3dae5; --line-2: #aab6c8;
  --blue: #1b48a0; --blue-2: #133a86; --blue-tint: #e8effc; --on-blue: #ffffff;
  --yellow: #f5c21b; --yellow-tint: #fff4c7; --on-yellow: #1d1600;
  --band: #0c2a63; --band-2: #0a2250; --band-ink: #f1f5fc; --band-ink-2: #c3d0ea;
  --ok: #146b44; --ok-tint: #e2f3ea;
  --focus-1: #0c2a63; --focus-2: #f5c21b;
  --map-land: #e7edf5; --map-edge: #a9b5c7; --map-label: #56627a; --map-dot: #0c2a63; --map-halo: #ffffff;
  --l-fialova: #8a39aa; --l-zelena: #12825a; --l-indigo: #3342a6; --l-rez: #b0512a; --l-jantar: #a56f00; --l-cervena: #c93636;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, "Segoe UI", Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --maxw: 1240px; --r: 10px; --r-sm: 6px;
  --gut: clamp(16px, 4vw, 40px);
  --t-xs: .9375rem; --t-sm: 1rem; --t-base: 1.125rem; --t-md: 1.3125rem; --t-lg: 1.625rem; --t-xl: clamp(1.75rem, 3vw, 2.25rem); --t-2xl: clamp(2.25rem, 4.4vw, 3.4rem);
}
/* tmavý režim jen na výslovnou volbu návštěvníka (tlačítka v patičce); výchozí je vždy světlý */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1322; --bg-2: #101b2e; --bg-3: #16233a;
  --ink: #eaf0f8; --ink-2: #bcc7d8; --ink-3: #9eabbf;
  --line: #26344e; --line-2: #3a4b69;
  --blue: #93b6ff; --blue-2: #b4ccff; --blue-tint: #172a4d; --on-blue: #06142e;
  --yellow: #f5c21b; --yellow-tint: #3a300b; --on-yellow: #1d1600;
  --band: #060d1a; --band-2: #050b16; --band-ink: #eaf0f8; --band-ink-2: #a9b8d2;
  --ok: #62d49c; --ok-tint: #10301f;
  --focus-1: #f5c21b; --focus-2: #0b1322;
  --map-land: #15233b; --map-edge: #34466a; --map-label: #9eabbf; --map-dot: #dfe8f7; --map-halo: #0b1322;
  --l-fialova: #c78ce3; --l-zelena: #4fc795; --l-indigo: #93a1ff; --l-rez: #e8905f; --l-jantar: #f0b93a; --l-cervena: #ff8080;
}

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-base)/1.6 var(--font); font-feature-settings: "kern"; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: var(--t-2xl); letter-spacing: -.02em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-md); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: .8em; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; color: var(--blue-2); }
:focus-visible { outline: 3px solid var(--focus-1); outline-offset: 2px; box-shadow: 0 0 0 7px var(--focus-2); border-radius: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.lead { font-size: var(--t-md); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-xs); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- tlačítka, čipy ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .55em 1.15em; border-radius: var(--r-sm); border: 2px solid var(--blue); background: var(--blue); color: var(--on-blue); font-weight: 700; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); color: var(--on-blue); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue-tint); color: var(--blue-2); }
.btn.small { min-height: 40px; padding: .35em .85em; font-size: var(--t-sm); }
.chip { display: inline-flex; align-items: center; gap: .35em; padding: .2em .65em; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); background: var(--bg); white-space: nowrap; }
.chip.on { background: var(--yellow-tint); border-color: var(--yellow); color: var(--ink); }
a.chip { text-decoration: none; color: var(--ink); }
a.chip:hover { border-color: var(--blue); color: var(--blue); }
.badge { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15em .55em; border-radius: 4px; background: var(--bg-3); color: var(--ink-2); }
.badge.ref { background: var(--band); color: var(--band-ink); }
.linkarrow { font-weight: 700; text-decoration: none; }
.linkarrow::after { content: " →"; }
.linkarrow:hover { text-decoration: underline; }
.copy { border: 1px solid var(--line-2); background: var(--bg); border-radius: 4px; font-size: .8125rem; padding: .1em .5em; color: var(--ink-2); min-height: 28px; }
.copy:hover { border-color: var(--blue); color: var(--blue); }

.vzhled { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.vzhled .vz-l { font-size: var(--t-xs); margin-right: .15rem; }
.vzhled button { background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 999px; padding: .1em .7em; font-size: var(--t-xs); font-weight: 700; min-height: 32px; }
.vzhled button[aria-pressed="true"] { background: var(--vz-on-bg); color: var(--vz-on-ink); border-color: var(--vz-on-bg); }
.foot .vzhled { --vz-on-bg: var(--band-ink); --vz-on-ink: var(--band); color: var(--band-ink); }
/* ---------- hlavička ---------- */
.util { background: var(--band); color: var(--band-ink-2); font-size: var(--t-xs); }
.util .wrap { display: flex; flex-wrap: wrap; gap: .25em 1.6em; padding-block: .5em; }
.util b { color: var(--band-ink); font-weight: 700; }
.util a { color: var(--band-ink); }
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.mast .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 38px; height: auto; }
.brand span { display: grid; line-height: 1.05; }
.brand small { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.brand strong { font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; color: var(--blue); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .55em .7em; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--t-sm); position: relative; }
.nav a:hover { background: var(--bg-2); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .7em; right: .7em; bottom: .1em; height: 4px; border-radius: 2px; background: var(--yellow); }
.navbtn { display: none; margin-left: auto; min-height: 44px; padding: .3em .9em; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--bg); font-weight: 700; }
@media (max-width: 1080px) {
  .navbtn { display: inline-flex; align-items: center; gap: .4em; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem var(--gut) 1rem; }
  .nav a { padding: .8em .6em; font-size: var(--t-base); }
  .nav a[aria-current="page"]::after { left: 0; right: auto; top: .6em; bottom: .6em; width: 4px; height: auto; }
}

/* ---------- úvod: hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(36px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-grid .okno img { aspect-ratio: 5 / 4; }
.hero h1 { max-width: 21ch; font-size: clamp(2.2rem, 3.9vw, 3.05rem); }
.hero .lead { margin-top: 1.1rem; }
.hledat { margin-top: 1.8rem; position: relative; max-width: 640px; }
.hledat label { display: block; font-weight: 800; font-size: var(--t-md); margin-bottom: .5rem; }
.hledat-row { display: flex; gap: .5rem; }
.hledat input { flex: 1; width: 0; min-width: 0; min-height: 60px; padding: .5em 1em; font-size: var(--t-md); border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--bg); }
.hledat input::placeholder { color: var(--ink-3); opacity: 1; }
.hledat .btn { min-height: 60px; padding-inline: 1.4em; font-size: var(--t-md); }
.hint { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.hint > span { font-size: var(--t-xs); color: var(--ink-3); margin-right: .2rem; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: .35rem; list-style: none; background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r-sm); box-shadow: 0 18px 40px rgba(12,42,99,.18); max-height: 380px; overflow: auto; }
.suggest li { display: flex; justify-content: space-between; gap: 1rem; padding: .55em .7em; border-radius: 4px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--blue-tint); }
.suggest li small { color: var(--ink-3); white-space: nowrap; }
.suggest li.all { border-top: 1px solid var(--line); margin-top: .25rem; font-weight: 700; color: var(--blue); }
mark { background: var(--yellow-tint); color: inherit; border-bottom: 2px solid var(--yellow); padding: 0 .05em; }

/* „okno“ – fotka se žlutým ostěním jako okna budovy SVÚ */
.okno { display: grid; grid-template-columns: clamp(22px, 3.2vw, 44px) 1fr; border-radius: var(--r); overflow: hidden; background: var(--bg-3); }
.okno::before { content: ""; background: var(--yellow); }
.okno img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.okno-cap { margin-top: .6rem; font-size: var(--t-xs); color: var(--ink-3); padding-left: clamp(22px, 3.2vw, 44px); }

/* ---------- sekce ---------- */
.sec { padding-block: clamp(48px, 7vw, 96px); }
.sec.tint { background: var(--bg-2); }
.sec-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(24px, 3.5vw, 40px); }
.sec-h p { margin-top: .6rem; color: var(--ink-2); max-width: 60ch; }

/* průběh vyšetření: 3 kroky */
.kroky { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: k; }
.kroky li { counter-increment: k; }
.kroky a { display: grid; grid-template-rows: auto auto 1fr auto; gap: .55rem; height: 100%; padding: 1.4rem 1.4rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); text-decoration: none; }
.kroky a:hover { border-color: var(--blue); }
.kroky a::before { content: counter(k); font: 800 2.4rem/1 var(--mono); color: var(--blue); padding-bottom: .5rem; border-bottom: 4px solid var(--yellow); width: fit-content; }
.kroky h3 { font-size: var(--t-lg); }
.kroky p { color: var(--ink-2); }
.kroky .go { color: var(--blue); font-weight: 700; }

/* o nás */
.onas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.onas .fotky { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.onas .fotky img { border-radius: var(--r); aspect-ratio: 1; object-fit: cover; width: 100%; }
.onas .fotky img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }
.cisla { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.cisla div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.cisla dt { font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; }
.cisla dd { margin: .2rem 0 0; font: 700 var(--t-lg)/1.2 var(--mono); color: var(--ink); }
.cisla dd small { display: block; font: 400 var(--t-xs)/1.4 var(--font); color: var(--ink-2); margin-top: .2rem; }

/* služby */
.sluzby { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.sluzba { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); background: var(--bg); display: grid; gap: .8rem; align-content: start; }
.sluzba h3 { font-size: var(--t-lg); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.sluzba h3 a { color: var(--ink); text-decoration: none; }
.sluzba h3 a:hover { color: var(--blue); text-decoration: underline; }
.sluzba h3 .num { font: 700 var(--t-sm) var(--mono); color: var(--ink-3); white-space: nowrap; }
.sluzba p { color: var(--ink-2); }
.sluzba ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }

/* oddělení – mřížka */
.odd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.odd { display: flex; flex-direction: column; padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.odd:hover { border-color: var(--blue); }
.odd h3 { color: var(--blue); }
.odd:hover h3 { text-decoration: underline; }
.odd p { font-size: var(--t-sm); color: var(--ink-2); }
/* karta oddělení: nadpis → popis → štítky NRL/RL → údaje dole za čarou (ve všech kartách stejně vysoko) */
.odd h2, .odd h3 { font-size: var(--t-md); color: var(--blue); }
.odd > h2, .odd > h3 { margin-bottom: .55rem; }
.odd > p { margin-bottom: 1rem; }
.odd .refs { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.odd .ref-r { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: .65rem; align-items: baseline; font-size: var(--t-xs); color: var(--ink); }
.odd .ref-r .badge { text-align: center; padding-inline: 0; }
.odd .meta { font-size: var(--t-xs); color: var(--ink-3); }
.odd > .meta { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; }
.odd-wide { grid-column: 1 / -1; flex-direction: row; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 2rem; }

/* svoz – upoutávka na úvodu */
.svoz-band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.svoz-band .mapa { max-width: 620px; }

/* aktuality */
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.nw { display: grid; grid-template-rows: auto auto 1fr auto; gap: .55rem; padding-top: 1rem; border-top: 4px solid var(--band); }
.nw time { font: 700 var(--t-xs) var(--mono); color: var(--ink-3); }
.nw h3 { font-size: var(--t-base); line-height: 1.3; }
.nw h3 a { color: var(--ink); text-decoration: none; }
.nw h3 a:hover { color: var(--blue); text-decoration: underline; }
.nw p { font-size: var(--t-sm); color: var(--ink-2); }

/* ---------- podstránky ---------- */
.page-h { padding-block: clamp(28px, 4.5vw, 56px) clamp(24px, 3.5vw, 40px); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.crumbs { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3em; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: .3em; color: var(--ink-3); }
.page-h .lead { margin-top: .9rem; }
.page-b { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); }

/* ---------- katalog vyšetření ---------- */
.kat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.filtry { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; display: grid; gap: 1.4rem; }
.filtry fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .15rem; }
.filtry legend { font-weight: 800; font-size: var(--t-sm); margin-bottom: .45rem; padding: 0; }
.opt { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem; border-radius: 4px; font-size: var(--t-sm); line-height: 1.3; cursor: pointer; }
.opt:hover { background: var(--bg-2); }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
.opt span { flex: 1; }
.opt .c { font: 400 .875rem var(--mono); color: var(--ink-3); flex: none; }
.opt.zero { color: var(--ink-3); }
.filtry .reset { justify-self: start; }
.kat-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-bottom: 1.2rem; }
.kat-q { display: flex; gap: .5rem; }
.kat-q input { flex: 1; width: 0; min-width: 0; min-height: 56px; padding: .45em .9em; font-size: var(--t-md); border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--bg); }
.kat-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.kat-info p { font-weight: 700; }
.aktivni { display: flex; flex-wrap: wrap; gap: .4rem; }
.aktivni button { border: 1px solid var(--yellow); background: var(--yellow-tint); border-radius: 999px; padding: .15em .7em; font-size: var(--t-xs); color: var(--ink); }
.aktivni button::after { content: " ×"; font-weight: 700; }
.fbtn { display: none; }
.vysl { display: grid; gap: 14px; }
.ex { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: .85rem 1.1rem .5rem; }
.vysl { gap: 10px; }
.ex-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .35rem; }
.ex-h h2, .ex-h h3 { font-size: var(--t-md); }
/* rozcestník skupin je záloha bez JS; s JS stejné volby nabízejí filtry vlevo */
.js .rozcestnik { display: none; }
.ex-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.ex-t { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.ex-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ex-head { display: grid; grid-template-columns: 34% 36% 1fr; padding: 0 calc(1.1rem + 1px) .4rem; font-size: .8125rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.ex-head span { padding-right: .8rem; }
.ex-t td { overflow-wrap: anywhere; padding: .45rem .8rem .45rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.ex-t td:first-child { width: 34%; }
.ex-t td:nth-child(2) { width: 36%; }
.ex-t code { display: inline-block; margin-top: .15rem; font-size: .8125rem; color: var(--ink-2); background: var(--bg-2); padding: .05em .4em; border-radius: 3px; }
.ex-t .x { display: block; color: var(--ink-3); font-size: var(--t-xs); margin-top: .15rem; }
.ex-t .kdo { display: block; font-size: var(--t-xs); color: var(--ink-2); margin-top: .15rem; }
.ex-t .kdo .mono { white-space: nowrap; }
.nic { padding: 2rem; border: 2px dashed var(--line-2); border-radius: var(--r); }
.vice { margin-top: 1.2rem; }
@media (max-width: 900px) {
  .kat { grid-template-columns: minmax(0, 1fr); }
  .fbtn { display: inline-flex; }
  .filtry { position: static; max-height: none; display: none; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); }
  .filtry.open { display: grid; }
}
@media (max-width: 620px) {
  .ex-head { display: none; }
  .ex-t, .ex-t tbody, .ex-t tr, .ex-t td { display: block; width: 100% !important; }
  .ex-t tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .ex-t tr:last-child { border-bottom: 0; }
  .ex-t td { border: 0; padding: .1rem 0; }
  .ex-t td::before { content: attr(data-l) ": "; font-weight: 700; color: var(--ink-3); font-size: var(--t-xs); }
}

/* ---------- detail oddělení ---------- */
.odd-d { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.odd-d section + section { margin-top: clamp(32px, 4vw, 48px); }
.odd-d h2 { font-size: var(--t-lg); margin-bottom: 1rem; }
.labs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.labs li { padding: .6rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .6rem; align-items: baseline; }
.labs li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--yellow); border-radius: 2px; transform: translateY(-1px); }
.bars { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 2.6rem; gap: .8rem; align-items: center; font-size: var(--t-sm); }
.bars .bar { height: 12px; background: var(--bg-3); border-radius: 6px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.bars .n { font-family: var(--mono); text-align: right; color: var(--ink-2); }
.stat-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.5rem; margin-bottom: 1.2rem; }
.stat-row strong { font: 800 2.6rem/1 var(--mono); color: var(--blue); }
.lide { display: grid; gap: 0; border-top: 1px solid var(--line); }
.clovek { padding: .85rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; font-size: var(--t-sm); }
.clovek b { font-size: var(--t-base); }
.clovek .role { color: var(--ink-2); font-size: var(--t-xs); }
.clovek .kontakt { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; margin-top: .15rem; }
.clovek .kontakt .mono { white-space: nowrap; }
.side-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; background: var(--bg); position: sticky; top: 96px; }
.side-card h2 { font-size: var(--t-md); margin-bottom: .6rem; }
.fotorada { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fotorada img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.balicky { display: grid; gap: .6rem; }
.balicky details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.balicky summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; list-style: none; }
.balicky summary::-webkit-details-marker { display: none; }
.balicky summary::after { content: "+"; font: 700 1.3rem/1 var(--mono); color: var(--blue); }
.balicky details[open] summary::after { content: "–"; }
.balicky summary small { font-weight: 400; color: var(--ink-3); margin-left: auto; }
.balicky table { width: calc(100% - 2rem); margin: 0 1rem 1rem; border-collapse: collapse; font-size: var(--t-sm); }
.balicky td, .balicky th { padding: .45rem 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.balicky th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); border-top: 0; }
.balicky td.cena { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 1rem; }
@media (max-width: 960px) { .odd-d { grid-template-columns: 1fr; } .side-card { position: static; } }

/* ---------- svoz vzorků ---------- */
.svoz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.svoz-ctl { display: grid; gap: .9rem; }
.svoz-ctl input { min-height: 56px; padding: .45em .9em; font-size: var(--t-md); border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--bg); width: 100%; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; margin: 0; padding: 0; }
.seg legend { font-weight: 700; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: .35rem; padding: 0; width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: .2em .9em; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--t-sm); background: var(--bg); cursor: pointer; }
.seg input:checked + span { background: var(--band); border-color: var(--band); color: var(--band-ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--focus-1); outline-offset: 2px; box-shadow: 0 0 0 7px var(--focus-2); }
/* position: relative = skryté texty pro čtečky (.sr, absolutně umístěné) zůstanou uvnitř posuvného seznamu a neprodlouží stránku */
.mista { position: relative; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-height: 640px; overflow: auto; }
.mista li { border-bottom: 1px solid var(--line); }
.mista button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; text-align: left; background: transparent; border: 0; padding: .7rem .5rem; border-radius: 4px; }
.mista button:hover { background: var(--bg-2); }
.mista button[aria-pressed="true"] { background: var(--blue-tint); box-shadow: inset 4px 0 0 var(--yellow); }
.mista .nm { font-weight: 700; }
.mista .typ { grid-column: 1; font-size: var(--t-xs); color: var(--ink-3); }
.dny { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 3px; }
.dny i { font: 700 .75rem/1 var(--mono); font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-3); }
.dny i.on { background: var(--band); border-color: var(--band); color: var(--band-ink); }
.dny i.tel { background: var(--bg); border: 1.5px dashed var(--band); color: var(--ink); }
.dny i.dnes { box-shadow: 0 0 0 2px var(--yellow); }
.misto { border: 2px solid var(--band); border-radius: var(--r); padding: 1.2rem 1.3rem; background: var(--bg); }
.misto h2 { font-size: var(--t-lg); }
.misto .kdy { margin: .9rem 0; padding: .8rem 1rem; background: var(--ok-tint); border-radius: var(--r-sm); color: var(--ink); }
.misto .kdy b { color: var(--ok); }
.misto table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.misto th, .misto td { text-align: left; padding: .45rem .6rem .45rem 0; border-bottom: 1px solid var(--line); }
.misto th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.misto td.cas { font-family: var(--mono); font-weight: 700; }
.mapa { width: 100%; height: auto; display: block; }
.mapa .zeme { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 1.5; }
.mapa .soused { fill: var(--map-label); font: 700 15px var(--font); letter-spacing: .18em; opacity: .7; }
.mapa .linka { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.mapa .bod { stroke: var(--map-halo); stroke-width: 2; fill: var(--map-dot); cursor: pointer; }
.mapa .bod.stop { fill: var(--blue); }
.mapa .bod.tel { fill: var(--map-halo); stroke: var(--map-dot); stroke-width: 1.8; }
.mapa .bod.sel { stroke: var(--yellow); stroke-width: 5; }
.mapa .bod.dim { opacity: .18; }
.mapa .mesto { font: 700 15px var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--map-halo); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.mapa .zaklad { fill: var(--yellow); stroke: var(--band); stroke-width: 2.5; }
.mapa-legenda { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .8rem; font-size: var(--t-xs); color: var(--ink-2); list-style: none; padding: 0; }
.mapa-legenda i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: .4rem; }
.ridici { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 1.5rem; list-style: none; padding: 0; margin: 0; }
.ridici li { padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem; font-size: var(--t-sm); }
.objednat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1.2rem; align-items: center; padding: 1.1rem 1.3rem; background: var(--band); color: var(--band-ink); border-radius: var(--r); }
.objednat a { color: var(--band-ink); }
.objednat .ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font: 800 1.4rem var(--mono); }
.objednat p { color: var(--band-ink-2); }
@media (max-width: 480px) { .objednat { gap: .5rem .75rem; padding: 1rem; } .objednat .ic { grid-row: auto; width: 34px; height: 34px; font-size: 1.05rem; } .objednat p + p { grid-column: 1 / -1; } }
.svoz .mapa-wrap { position: sticky; top: 96px; }
@media (max-width: 980px) { .svoz { grid-template-columns: 1fr; } .svoz .mapa-wrap { position: static; } .mista { max-height: 420px; } }

/* ---------- kontakty ---------- */
.org { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.org > div { border-top: 4px solid var(--band); padding-top: .9rem; display: grid; gap: .25rem; align-content: start; font-size: var(--t-sm); }
.org h2 { font-size: var(--t-md); margin-bottom: .3rem; }
.adr-q { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: end; margin: clamp(32px, 4vw, 48px) 0 1.2rem; }
.adr-q > div { flex: 1 1 320px; }
.adr-q label { display: block; font-weight: 800; margin-bottom: .4rem; }
.adr-q input { width: 100%; min-height: 56px; padding: .45em .9em; font-size: var(--t-md); border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--bg); }
.utvar { margin-top: 2rem; }
.utvar h2 { font-size: var(--t-md); padding-bottom: .5rem; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.utvar h2 a { font-size: var(--t-xs); font-weight: 700; }
.adr { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.adr td { padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.adr td:first-child { width: 42%; }
.adr b { font-size: var(--t-base); display: block; }
.adr .role { color: var(--ink-2); font-size: var(--t-xs); }
.adr .mono { white-space: nowrap; }
@media (max-width: 760px) {
  .org { grid-template-columns: 1fr; }
  .adr, .adr tbody, .adr tr, .adr td { display: block; width: 100% !important; }
  .adr tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .adr td { border: 0; padding: .1rem 0; }
}

/* ---------- objednávky ---------- */
.formy { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.formy li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.formy .fmt { font: 800 .8125rem var(--mono); letter-spacing: .06em; text-align: center; padding: .5rem 0; border-radius: 4px; background: var(--bg-3); color: var(--ink-2); }
.formy .fmt.pdf { background: var(--band); color: var(--band-ink); }

/* ---------- patička ---------- */
.foot { background: var(--band); color: var(--band-ink-2); font-size: var(--t-sm); padding-block: clamp(40px, 5vw, 64px) 1.5rem; }
.foot a { color: var(--band-ink); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.foot h2 { font-size: var(--t-sm); color: var(--band-ink); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot .logo { background: #fff; border-radius: var(--r-sm); padding: 8px 10px; width: fit-content; margin-bottom: 1rem; }
.foot .logo img { width: 124px; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: var(--t-xs); }

/* ---------- responzivita ---------- */
@media (max-width: 1080px) {
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .onas, .svoz-band { grid-template-columns: 1fr; }
  .hero-grid .okno-wrap { max-width: 560px; }
  .kroky, .odd-grid { grid-template-columns: 1fr 1fr; }
  .sluzby { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1.0625rem; }
  .chip { white-space: normal; }
  .kroky, .odd-grid, .news, .foot-grid, .labs, .fotorada { grid-template-columns: 1fr; }
  .hledat-row { flex-direction: column; }
  .hledat .btn { width: 100%; }
  .brand strong { font-size: 1.25rem; }
  .brand small { font-size: .7rem; }
  .util { display: none; }
  .hledat input { width: 100%; }
  .bars li { grid-template-columns: minmax(0, 1fr) 2.6rem; }
  .bars .bar { grid-column: 1 / -1; grid-row: 2; }
  .formy li { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .formy li a.btn { grid-column: 2; justify-self: start; }
}
@media (forced-colors: active) { .okno::before, .kroky a::before { forced-color-adjust: none; } .btn { border: 2px solid ButtonText; } }
.sec.tint { --map-fade: var(--bg-2); }

/* šipka zpět nahoru */
.nahoru { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(12, 42, 99, .14); }
.nahoru:hover { background: var(--band); color: var(--band-ink); border-color: var(--band); }
@media (min-width: 1080px) { .nahoru { right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }

/* certifikace (COP) */
.produkty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 1rem; }
.produkt { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; background: var(--bg); display: grid; gap: .45rem; align-content: start; }
.produkt .kod { font: 800 1.9rem/1 var(--mono); color: var(--blue); padding-bottom: .4rem; border-bottom: 4px solid var(--yellow); width: fit-content; }
.produkt p { color: var(--ink-2); font-size: var(--t-sm); }
.postup { list-style: none; margin: 0; padding: 0; counter-reset: pk; display: grid; gap: 1.1rem; }
.postup > li { counter-increment: pk; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .3rem 1rem; }
.postup > li::before { content: counter(pk); grid-row: span 3; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--band); color: var(--band-ink); display: grid; place-items: center; font: 800 1.1rem var(--mono); }
.postup h3 { font-size: var(--t-md); }
.postup p { color: var(--ink-2); }
@media (max-width: 620px) { .produkty { grid-template-columns: 1fr; } }

/* =================== ostrý web: doplňky =================== */
[hidden] { display: none !important; }
.foot-nazev { color: var(--band-ink); }
.nav a[aria-current="true"] { color: var(--blue); }
.nav a[aria-current="true"]::after { content: ""; position: absolute; left: .7em; right: .7em; bottom: .1em; height: 4px; border-radius: 2px; background: var(--yellow); opacity: .55; }
.brand[aria-current="page"] { cursor: default; }
a.tel { color: inherit; text-decoration: none; }
a.tel:hover { text-decoration: underline; color: var(--blue); }
.foot a.tel:hover, .util a.tel:hover { color: var(--band-ink); }
.util a.mono { color: var(--band-ink); font-weight: 700; text-decoration: none; }
.foot a.mono { text-decoration: none; }

/* menu na mobilu: sbalené jen se skriptem, bez něj zůstane rozbalené */
@media (max-width: 1080px) {
  .navbtn { display: none; }
  .mast .wrap { flex-wrap: wrap; }
  .nav { position: static; display: block; box-shadow: none; border: 0; width: 100%; margin-left: 0; }
  .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 .6rem; }
  .js .navbtn { display: inline-flex; }
  .js .mast .wrap { flex-wrap: nowrap; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; padding: .5rem var(--gut) 1rem; }
}

/* podmenu sekce + obsahové stránky */
.sekce { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sekce.bez-menu { grid-template-columns: minmax(0, 1fr); }
.subnav { position: sticky; top: 96px; }
.subnav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.subnav a { display: block; padding: .45em .9em; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); line-height: 1.35; }
.subnav a:hover { color: var(--blue); border-left-color: var(--line-2); }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-left: 4px solid var(--yellow); padding-left: calc(.9em - 2px); }
.subnav-h { display: none; font-weight: 800; font-size: var(--t-sm); margin-bottom: .5rem; }
@media (max-width: 900px) {
  .sekce { grid-template-columns: minmax(0, 1fr); }
  .subnav { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 1.2rem; }
  .subnav-h { display: block; }
}

.prose { max-width: 76ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: var(--t-lg); margin-top: clamp(2rem, 4vw, 2.8rem); }
.prose h3 { font-size: var(--t-md); margin-top: 1.8rem; }
.prose h2 + *, .prose h3 + * { margin-top: .7rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .35em; }
.prose li > ul, .prose li > ol { margin-top: .35em; }
.prose ul li::marker { color: var(--blue); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); border-bottom: 2px solid var(--line-2); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tab-wrap { overflow-x: auto; position: relative; }
.prose blockquote { margin: 0; padding: .2rem 0 .2rem 1.1rem; border-left: 4px solid var(--yellow); color: var(--ink-2); }
.prose .lead { max-width: none; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption, .galerie figcaption { font-size: var(--t-xs); color: var(--ink-3); margin-top: .4rem; }
.prose img { border-radius: var(--r); }
.page-b .wrap.uzky { max-width: 980px; }

/* informační box */
.box { border: 1px solid var(--line); border-left: 5px solid var(--band); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1rem 1.2rem; background: var(--bg-2); }
.box.zluty { border-left-color: var(--yellow); background: var(--yellow-tint); }
.box > * + * { margin-top: .6rem; }
.box h2, .box h3 { font-size: var(--t-md); margin: 0; }

/* dokumenty */
.formy .dok-t { display: grid; gap: .1rem; }
.formy .dok-t a { font-weight: 700; }
.dok-p { font-size: var(--t-xs); color: var(--ink-2); }
.dok-info { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.formy li { grid-template-columns: 4.2rem minmax(0, 1fr); }

/* galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.galerie.cele img { aspect-ratio: auto; object-fit: contain; background: var(--bg-2); }

/* referenční laboratoře */
.nrl { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.2rem 2.4rem; padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.nrl:first-of-type { border-top: 0; padding-top: 0; }
.nrl h2 { grid-column: 1 / -1; font-size: var(--t-lg); }
.nrl .odd-l { display: block; font: 700 var(--t-xs) var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.nrl img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nrl aside .clovek { border-top: 1px solid var(--line); }
@media (max-width: 800px) { .nrl { grid-template-columns: minmax(0, 1fr); } }

/* aktuality */
.clanky { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.clanky li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .35rem; }
.clanky time, .clanek-meta { font: 700 var(--t-xs) var(--mono); color: var(--ink-3); }
.clanky h3 { font-size: var(--t-md); }
.clanky h3 a { color: var(--ink); text-decoration: none; }
.clanky h3 a:hover { color: var(--blue); text-decoration: underline; }
.clanky p { color: var(--ink-2); max-width: 72ch; }
.rok { font-size: var(--t-lg); margin: 2.2rem 0 .6rem; }
.rok:first-child { margin-top: 0; }
.dalsi-clanky { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* povinné informace – číslované položky dle vyhlášky */
.povinne section { padding-block: 1.1rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .2rem 1rem; }
.povinne section > h2 { grid-column: 1 / -1; font-size: var(--t-md); display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1rem; margin: 0; }
.povinne section > h2 .c { font: 700 var(--t-base) var(--mono); color: var(--blue); }
.povinne section > div { grid-column: 2; }
.povinne section > div > * + * { margin-top: .6rem; }
.povinne h3 { font-size: var(--t-base); margin-top: 1rem; }
.povinne h3 .c { font-family: var(--mono); color: var(--ink-3); margin-right: .5rem; }
.povinne dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1.2rem; margin: 0; }
.povinne dt { color: var(--ink-3); font-size: var(--t-sm); }
.povinne dd { margin: 0; }
.doplnit { display: inline-block; background: var(--yellow-tint); border: 1px dashed var(--yellow); padding: .1em .5em; border-radius: 4px; font-size: var(--t-xs); }
@media (max-width: 620px) {
  .povinne section, .povinne section > h2 { grid-template-columns: minmax(0, 1fr); }
  .povinne section > div { grid-column: 1; }
  .povinne dl { grid-template-columns: minmax(0, 1fr); }
  .povinne dt { margin-top: .4rem; }
}

/* mapa stránek */
.mapa-stranek { columns: 2 320px; column-gap: 3rem; }
.mapa-stranek > li { break-inside: avoid; margin-bottom: 1.2rem; }
.mapa-stranek ul { margin-top: .3rem; }

/* dlaždice kategorií */
.dlazdice, .prose .dlazdice { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.prose * + .dlazdice { margin-top: 1rem; }
.prose .dlazdice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .prose .dlazdice { grid-template-columns: 1fr; } }
.dlazdice li, .prose .dlazdice li + li { display: flex; margin: 0; }
.dlazdice a { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 700; }
.dlazdice a:hover { border-color: var(--blue); color: var(--blue); }
.dlazdice .c { font: 400 var(--t-xs) var(--mono); color: var(--ink-3); white-space: nowrap; }
.kat-uvod { margin-bottom: clamp(24px, 3vw, 36px); }
.kat-uvod > * + * { margin-top: 1rem; }
.js .kat-bezjs { display: none; }

/* 404 */
.chyba-404 { max-width: 640px; }
.chyba-404 .kod { font: 800 clamp(3rem, 10vw, 6rem)/1 var(--mono); color: var(--blue); }

/* tisk */
@media print {
  .util, .mast, .foot, .nahoru, .skip, .subnav, .navbtn, .filtry, .kat-top, .vice, .hledat, .copy, .vzhled { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .page-h { background: none; border: 0; padding: 0 0 1rem; }
  .sekce { display: block; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
  .ex, .clovek, .nrl { break-inside: avoid; }
}

/* doplňky 2 */
.chips-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }
.udaje { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1.4rem; margin: 0; }
.udaje dt { color: var(--ink-3); font-size: var(--t-sm); }
.udaje dd { margin: 0; }
@media (max-width: 620px) { .udaje { grid-template-columns: minmax(0, 1fr); } .udaje dt { margin-top: .4rem; } }
.struktura, .struktura ul { list-style: none; padding-left: 0; }
.struktura ul { margin-top: .6rem; padding-left: 1.2rem; border-left: 3px solid var(--yellow); display: grid; gap: .55rem; }
.kat-oblast { font-size: var(--t-md); margin: 1.6rem 0 .7rem; }
.kat-oblast:first-child { margin-top: 0; }
.kat-oblast a { color: var(--ink); text-decoration: none; }
.kat-oblast a:hover { color: var(--blue); text-decoration: underline; }
.rozpis { border-collapse: collapse; font-size: var(--t-xs); min-width: 760px; width: 100%; }
.rozpis caption { text-align: left; font-weight: 700; padding: .4rem 0 .8rem; }
.rozpis th, .rozpis td { text-align: left; vertical-align: top; padding: .45rem .6rem .45rem 0; border-bottom: 1px solid var(--line); }
.rozpis thead th { color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; font-size: .75rem; }
.rozpis tbody th { font-weight: 700; }
.rozpis .x { display: block; font-weight: 400; color: var(--ink-3); }
.rozpis-det > summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: .5rem 0; }
.misto-typ { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.nw-meta { font: 700 var(--t-xs) var(--mono); color: var(--ink-3); }
.prose-sekce section + section { margin-top: clamp(32px, 4vw, 48px); }
.odd-obsah { margin-bottom: clamp(32px, 4vw, 48px); }
.odd-obsah h2 { font-size: var(--t-lg); }
.nrl-list { min-width: 0; }

/* úzké displeje */
.vysl { grid-template-columns: minmax(0, 1fr); }
.ex, .ex-h > * { min-width: 0; }
.ex-h h2, .ex-h h3 { overflow-wrap: anywhere; hyphens: auto; }
.brand { min-width: 0; }
@media (max-width: 400px) {
  .mast .wrap { gap: .75rem; }
  .brand { gap: .5rem; }
  .brand img { width: 30px; }
  .brand small { font-size: .6rem; letter-spacing: .03em; }
  .brand strong { font-size: 1.15rem; }
  .navbtn { padding: .3em .7em; }
}
@media (max-width: 980px) { .svoz { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .sluzby { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .kroky, .odd-grid, .news, .foot-grid, .labs, .fotorada { grid-template-columns: minmax(0, 1fr); } .sluzba, .svoz-ctl > * { min-width: 0; } }
@media (max-width: 400px) { .misto { padding: 1rem .9rem; } .misto th, .misto td { padding-right: .4rem; } .misto table { font-size: var(--t-xs); } }
/* úvod na telefonu: bez úvodního odstavce, aby bylo vyhledávání celé na první obrazovce (jeho obsah je na stránce i níž) */
@media (max-width: 600px) { .hero .lead { display: none; } .hero h1 { margin-bottom: 1.25rem; } }
/* původní logo ústavu (od ústavu, barvy z CDR: žlutá #f7cc30, modrá #3053a9; _tools/logo-pruhledne.mjs);
   v tmavém režimu varianta s bílými nápisy, schovaná verze se nečte (display: none) */
.brand img.logo { width: auto; height: 62px; }
.brand .logo-tmave { display: none; }
:root[data-theme="dark"] .brand .logo-svetle { display: none; }
:root[data-theme="dark"] .brand .logo-tmave { display: block; }
@media (max-width: 640px) { .brand img.logo { height: 50px; } }
/* seznamy alergenů v aktualitě: abecedně ve sloupcích, na mobilu dva/jeden */
.prose ul.alergeny { list-style: none; padding: .9rem 1.1rem; margin-top: .6rem; columns: 3 14rem; column-gap: 2rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); font-size: var(--t-sm); }
.prose ul.alergeny li { break-inside: avoid; margin: 0 0 .3rem; }
.prose ul.alergeny li + li { margin-top: 0; }
@media (max-width: 560px) { .prose ul.alergeny { columns: 2; column-gap: 1.1rem; padding: .8rem .9rem; } }
