/* ==========================================================
   Styl webu. Barvy a písmo se mění jen v :root.
   ========================================================== */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #eeece7;
  --text: #141a22;
  --muted: #586170;
  --line: #e0ddd6;
  --ink: #111720;           /* tmavé sekce */
  --ink-2: #1b2430;
  --ink-text: #eef1f5;
  --ink-muted: #a7b1bf;
  --accent: #d0161c;        /* hasičská červená */
  --accent-strong: #a40f13;
  --accent-soft: #fde4e1;
  --amber: #f07d12;         /* oheň, oranžová */
  --amber-soft: #fff0de;
  --hivis: #e4f21a;         /* reflexní žlutá */
  --hivis-deep: #c9d600;
  --silver: #c4c9cf;
  --flame-o: #ff9a2e;       /* oranžová na tmavém */
  --ok: #24724a;
  --ok-soft: #e2f1e8;
  --bar-muted: #c9cdd3;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(17,23,32,.04), 0 8px 24px rgba(17,23,32,.06);
  --max: 1140px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1218;
    --surface: #161c25;
    --surface-2: #1f2732;
    --text: #e9edf2;
    --muted: #a3adba;
    --line: #2a3340;
    --ink: #0a0d12;
    --ink-2: #121821;
    --accent: #ff4a3d;
    --accent-strong: #ff7366;
    --accent-soft: #3b1614;
    --amber: #ff9a2e;
    --amber-soft: #35220d;
    --ok: #6cc596;
    --ok-soft: #15291f;
    --bar-muted: #4a5564;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.022em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.7em; }
h3 { font-size: 1.18rem; margin-top: 1.3em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
.small { font-size: .88rem; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.ico { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hlavička ---------- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 6px; background: linear-gradient(var(--hivis) 0 2px, var(--silver) 2px 4px, var(--hivis) 4px 6px); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-weight: 750; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.nav li { margin: 0; }
.nav a { display: block; padding: 8px 11px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; margin: 0 0 14px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { border-radius: 10px; padding: 11px 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 520px at 85% 10%, rgba(215,22,28,.38), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(240,125,18,.14), transparent 60%), var(--ink); color: var(--ink-text); padding: 72px 0 0; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 40%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--hivis); }
.hero .lead { font-size: 1.2rem; color: #c9d1dc; max-width: 600px; }
.hero .eyebrow { color: var(--flame-o); }
.hero-art { justify-self: center; width: min(100%, 400px); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { width: min(70%, 300px); order: -1; } }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 1rem; transition: transform .15s, background .15s; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(215,22,28,.35); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-stats { position: relative; z-index: 1; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stats div { padding: 22px 20px 26px; border-right: 1px solid rgba(255,255,255,.1); }
.hero-stats div:last-child { border-right: none; }
.hero-stats b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats span { display: block; color: var(--ink-muted); font-size: .9rem; line-height: 1.4; margin-top: 4px; }
.hero-stats i { font-style: normal; display: block; color: #7f8a99; font-size: .78rem; margin-top: 6px; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: 1fr 1fr; } .hero-stats div:nth-child(2) { border-right: none; } .hero-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); } }

/* ---------- Hlavička podstránky ---------- */
.page-head { background: radial-gradient(800px 300px at 90% 0%, rgba(215,22,28,.3), transparent 65%), var(--ink); color: var(--ink-text); padding: 56px 0 52px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lead { font-size: 1.15rem; color: #c9d1dc; max-width: 720px; margin: 0; }
.page-head .head-row { display: flex; gap: 22px; align-items: flex-start; }
.page-head .head-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--flame-o); flex: none; }
.page-head .head-ico .ico { width: 32px; height: 32px; }
.page-head .eyebrow { color: var(--flame-o); }
@media (max-width: 600px) { .page-head .head-ico { display: none; } }

main { padding-bottom: 80px; }
section { margin-top: 56px; }
.section-head { max-width: 700px; margin-bottom: 26px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card .card-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
a.card { color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent); }
a.card .more { margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
a.card .more .ico { width: 18px; height: 18px; }

/* ---------- Infografika tří fází ---------- */
.phases { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: ph; }
.phases::before { content: ""; position: absolute; top: 46px; left: 16%; right: 16%; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px); opacity: .55; }
.ph { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px 24px; margin-top: 46px; box-shadow: var(--shadow); }
.ph-badge { width: 92px; height: 92px; margin: -46px auto 14px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px var(--bg), 0 10px 26px rgba(215,22,28,.35); position: relative; }
.ph-badge .ico { width: 40px; height: 40px; stroke-width: 1.6; }
.ph-badge::after { counter-increment: ph; content: counter(ph); position: absolute; top: -4px; right: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.ph-time { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; font-size: .88rem; margin-bottom: 10px; }
.ph-time .ico { width: 15px; height: 15px; }
.ph h3 { margin: 4px 0 12px; font-size: 1.25rem; }
.ph ul { list-style: none; padding: 0; margin: 0; text-align: left; font-size: .96rem; }
.ph li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ph li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 820px) {
  .phases { grid-template-columns: 1fr; gap: 8px; }
  .phases::before { top: 46px; bottom: 60px; left: 50%; right: auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 10px, transparent 10px 18px); }
}

/* ---------- Grafy ---------- */
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 18px; box-shadow: var(--shadow); }
.chart figcaption { margin-bottom: 18px; }
.chart figcaption strong { display: block; font-size: 1.05rem; }
.chart figcaption span { display: block; color: var(--muted); font-size: .9rem; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 12px; align-items: center; font-size: .94rem; border-radius: 6px; }
.bar-row:hover .bar { filter: brightness(1.1); }
.bar-row:hover .bar-label { color: var(--text); }
.bar-label { color: var(--muted); line-height: 1.3; }
.bar-track { position: relative; height: 22px; }
.bar { position: absolute; top: 0; bottom: 0; left: var(--x, 0%); width: var(--w); min-width: 3px; background: var(--bar-muted); border-radius: 0 4px 4px 0; transition: filter .15s; }
.bar.range { border-radius: 4px; }
.bar.hl { background: var(--accent); }
.bar.good { background: var(--ok); }
.bar-val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.bar-axis { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 12px; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.bar-axis .ticks { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 4px; }
.bar-axis .pad { min-width: 4.2em; }
.chart-src { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 520px) {
  .bar-row, .bar-axis { grid-template-columns: 1fr auto; }
  .bar-row .bar-label { grid-column: 1 / -1; margin-bottom: -6px; }
  .bar-axis > span:first-child { display: none; }
}

/* Před a po */
.ba { display: flex; align-items: flex-end; gap: 28px; height: 200px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.ba-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.ba-col b { font-size: 1.15rem; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.ba-col .col { width: min(100%, 90px); height: var(--h); background: var(--bar-muted); border-radius: 4px 4px 0 0; }
.ba-col .col.hl { background: var(--ok); }
.ba-labels { display: flex; gap: 28px; padding: 8px 8px 0; font-size: .88rem; color: var(--muted); text-align: center; }
.ba-labels span { flex: 1; }
.ba-delta { display: inline-block; margin-top: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 750; border-radius: 999px; padding: 3px 12px; }

/* Velké číslo */
.big-num { display: flex; gap: 20px; align-items: center; }
.big-num b { font-size: clamp(2.8rem, 7vw, 4.2rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.big-num p { margin: 0; }
.ring { width: 120px; height: 120px; flex: none; }
.ring circle { fill: none; stroke-width: 12; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: var(--ok); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { font-weight: 800; font-size: 26px; fill: var(--text); }

/* ---------- Zvýraznění ---------- */
.callout { display: flex; gap: 16px; background: var(--accent-soft); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.callout > .ico { color: var(--accent); width: 28px; height: 28px; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout.note { background: var(--amber-soft); }
.callout.note > .ico { color: var(--amber); }
.callout.good { background: var(--ok-soft); }
.callout.good > .ico { color: var(--ok); }
.callout.dark { background: var(--ink); color: var(--ink-text); }
.callout.dark strong { color: #fff; }
.callout.dark > .ico { color: var(--flame-o); }
.quote-band { background: var(--ink); color: var(--ink-text); border-radius: var(--radius); padding: 40px; position: relative; overflow: hidden; }
.quote-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(rgba(215,22,28,.45), transparent 70%); }
.quote-band p { position: relative; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.35; font-weight: 650; color: #fff; margin: 0; max-width: 820px; letter-spacing: -0.01em; }
.quote-band span { position: relative; display: block; margin-top: 12px; color: var(--ink-muted); }
@media (max-width: 520px) { .quote-band { padding: 28px 22px; } }

.label { display: inline-block; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.label.evid { background: var(--ok-soft); color: var(--ok); }
.label.reason { background: var(--amber-soft); color: #9a6410; }
@media (prefers-color-scheme: dark) { .label.reason { color: var(--amber); } }

/* ---------- Tabulky ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: none; }
td.bad { color: var(--accent-strong); font-weight: 650; }
td.goodc { color: var(--ok); font-weight: 650; }

/* Špatně / správně */
.dodont { display: grid; gap: 10px; }
.dd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dd { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; }
.dd .ico { width: 22px; height: 22px; margin-top: 2px; }
.dd.no .ico { color: var(--accent); }
.dd.yes .ico { color: var(--ok); }
.dd b { display: block; }
.dd small { color: var(--muted); font-size: .86rem; line-height: 1.4; display: block; }
.dd-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.dd-head span:first-child { color: var(--accent); } .dd-head span:last-child { color: var(--ok); }
@media (max-width: 560px) { .dd-row { grid-template-columns: 1fr; gap: 6px; margin-bottom: 10px; } .dd-head { display: none; } }

/* ---------- Kroky ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 0 58px; margin-bottom: 22px; min-height: 40px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { .steps > li::before { background: var(--accent); } }
.steps > li > strong:first-child { display: block; font-size: 1.04rem; }

.check { list-style: none; padding: 0; }
.check li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px; background: var(--ok-soft); }
.check li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 6px); width: 9px; height: 5px; border-left: 2.2px solid var(--ok); border-bottom: 2.2px solid var(--ok); transform: rotate(-45deg); }

/* Fáze nadpis */
.phase-title { display: flex; align-items: center; gap: 16px; margin-top: 2.2em; }
.phase-title .pt-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.phase-title .pt-ico .ico { width: 28px; height: 28px; }
.phase-title h2 { margin: 0; }
.phase-title small { display: block; font-size: .85rem; color: var(--accent); font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Postava ---------- */
.body-fig { display: grid; grid-template-columns: minmax(180px, 250px) 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .body-fig { grid-template-columns: 1fr; } .body-fig svg { max-width: 200px; margin: 0 auto; display: block; } }
.body-fig .silhouette { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; }
.body-fig .hot { fill: var(--accent); opacity: .9; }
.body-fig .warm { fill: var(--accent); opacity: .3; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); margin-right: 6px; vertical-align: -1px; }
.legend i.w { opacity: .3; }

/* ---------- Studie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 22px; }
.filters button { font: inherit; font-size: .9rem; font-weight: 550; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; cursor: pointer; }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); } }
.filters .count { color: var(--muted); font-size: .9rem; margin-left: 4px; }
.list { display: grid; gap: 14px; }
.study { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--bar-muted); border-radius: var(--radius-s); padding: 18px 22px; }
.study[data-cat~="decon"] { border-left-color: var(--ok); }
.study[data-cat~="real"] { border-left-color: var(--accent); }
.study[hidden] { display: none; }
.study-head { display: grid; gap: 2px; }
.study .year { font-weight: 800; color: var(--accent); font-size: .95rem; }
.study .authors { font-size: .86rem; color: var(--muted); }
.study .ttl { font-weight: 650; font-size: 1.02rem; line-height: 1.35; }
.study .cite { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag { font-size: .78rem; background: var(--surface-2); border-radius: 999px; padding: 2px 10px; }
.tag.decon, .tag.ppe { background: var(--ok-soft); color: var(--ok); }
.tag.real { background: var(--accent-soft); color: var(--accent-strong); }
.study dl { display: grid; grid-template-columns: 92px 1fr; gap: 6px 14px; margin: 0; font-size: .94rem; }
.study dt { font-weight: 650; color: var(--muted); }
.study dd { margin: 0; }
.study .key { background: var(--amber-soft); border-radius: 3px; padding: 0 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (max-width: 560px) { .study dl { grid-template-columns: 1fr; } .study dd { margin-bottom: 8px; } }
.refs { font-size: .92rem; }
.refs li { overflow-wrap: anywhere; }

.media-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.media-list li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; margin: 0; }
.media-list .ico { color: var(--accent); margin-top: 3px; }

/* ---------- Patička ---------- */
.site-footer { background: var(--ink); color: var(--ink-muted); padding: 48px 0 40px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .grid { gap: 28px; }
.site-footer strong { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }

/* Mobilní úpravy hlavičky a hero */
@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 60px; }
  .brand small { display: none; }
  .brand svg { width: 30px; height: 30px; }
  .hero { padding-top: 40px; }
  .hero-art { width: min(58%, 210px); }
}

/* Čtyři karty v řadě */
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Infografika se čtyřmi kroky */
.phases.p4 { grid-template-columns: repeat(4, 1fr); }
.phases.p4::before { left: 12%; right: 12%; }
@media (max-width: 1000px) and (min-width: 821px) { .phases.p4 .ph { padding: 0 16px 20px; } }
@media (max-width: 820px) { .phases.p4 { grid-template-columns: 1fr; } }

/* Mechanismus: 4 kroky */
.mech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mech-step { position: relative; padding: 22px 20px; border-right: 1px solid var(--line); }
.mech-step:last-child { border-right: none; }
.mech-step:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 38px; width: 16px; height: 16px; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); z-index: 1; }
.mech-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.mech-step:last-child .mech-ico { background: var(--accent); color: #fff; }
.mech-step b { display: block; margin-bottom: 4px; }
.mech-step p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) {
  .mech { grid-template-columns: 1fr 1fr; }
  .mech-step:nth-child(2) { border-right: none; }
  .mech-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mech-step::after { display: none; }
}
@media (max-width: 440px) { .mech { grid-template-columns: 1fr; } .mech-step { border-right: none; border-bottom: 1px solid var(--line); } .mech-step:last-child { border-bottom: none; } }

/* Navigace s 8 položkami */
@media (max-width: 1180px) and (min-width: 1101px) { .nav a { padding: 8px 8px; font-size: .88rem; } .brand small { display: none; } }
.grid.tight { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- Prostředky ---------- */
.prod-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }
.prod-tabs a { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.prod-tabs a:hover { border-color: var(--accent); transform: translateY(-2px); }
.prod-tabs a[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft, #e8f1fb); box-shadow: inset 0 -3px 0 var(--accent); }
.prod-tabs .ico { width: 34px; height: 34px; color: var(--accent); }
.prod-tabs b { display: block; font-size: 1.05rem; }
.prod-tabs small { color: var(--muted); }
.prod { margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 90px; }
.prod-head { display: flex; gap: 20px; align-items: center; padding: 30px 32px; background: radial-gradient(600px 220px at 100% 0%, rgba(215,22,28,.35), transparent 70%), var(--ink); color: var(--ink-text); }
.prod-head h2 { margin: 0 0 .2em; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.prod-head p { margin: 0; color: #c9d1dc; max-width: 640px; }
.prod-head .eyebrow { color: var(--flame-o); margin-bottom: 6px; }
.prod-ico { width: 72px; height: 72px; flex: none; border-radius: 20px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(215,22,28,.35); }
.prod-ico .ico { width: 38px; height: 38px; }
.prod-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; padding: 8px 32px 28px; }
.prod-body h3:first-child { margin-top: 1.2em; }
.prod-side { background: var(--surface-2); border-radius: var(--radius); padding: 22px; margin-top: 24px; align-self: start; }
.prod-fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prod-fact b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1.15; }
.prod-fact span { font-size: .92rem; }
.prod-side .small { margin-top: 10px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 8px; font-size: .92rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.prod-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 32px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.prod-foot .ico { color: var(--accent); width: 18px; height: 18px; }
@media (max-width: 860px) { .prod-body { grid-template-columns: 1fr; gap: 0; } }
.prod-body.single { grid-template-columns: minmax(0, 760px); }
@media (max-width: 520px) { .prod-head { flex-direction: column; align-items: flex-start; padding: 24px 20px; } .prod-body { padding: 4px 18px 22px; } .prod-foot { padding: 14px 18px; } .prod-ico { width: 56px; height: 56px; } }

/* 9 položek v menu */
@media (min-width: 1101px) { .nav ul { gap: 0; } .nav a { padding: 7px 7px; font-size: .87rem; } .brand small { display: none; } }
@media (max-width: 1220px) and (min-width: 1101px) { .nav a { padding: 6px 4px; font-size: .82rem; } .brand span { font-size: .95rem; } }

/* Fotky */
.photo { margin: 28px 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--surface-2); }
.photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.photo.side { float: right; width: min(44%, 340px); margin: 6px 0 18px 28px; }
.photo.band img { aspect-ratio: 21 / 9; object-fit: cover; }
.clear, main h2, .body-fig, .phase-title, .chart { clear: both; }
@media (max-width: 700px) { .photo.side { float: none; width: 100%; margin: 24px 0; } .photo.band img { aspect-ratio: 16 / 9; } }

/* ---------- Hasičské akcenty ---------- */
.page-head .lead a, .hero .lead a { color: var(--flame-o); }
.page-head .eyebrow::before, .hero .eyebrow::before { background: var(--hivis); }
.page-head .head-ico { border-color: rgba(228,242,26,.35); }
.site-footer { border-top: 6px solid transparent; border-image: linear-gradient(var(--hivis) 0 2px, var(--silver) 2px 4px, var(--hivis) 4px 6px) 6; }

/* ---------- Spodní hrana záhlaví: žhavý pruh ---------- */
.page-head, .hero { position: relative; }
.page-head::before, .hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 1; background: linear-gradient(90deg, var(--accent) 0%, #f07d12 50%, #ffc21a 100%); }

/* ---------- Fotka v záhlaví ---------- */
.page-head, .hero { background-color: var(--ink); background-image: linear-gradient(90deg, rgba(10,13,18,.94) 0%, rgba(10,13,18,.82) 40%, rgba(10,13,18,.35) 75%, rgba(10,13,18,.15) 100%), linear-gradient(0deg, rgba(10,13,18,.55), rgba(10,13,18,0) 45%), url("img/zahlavi.webp"); background-size: cover; background-position: center 30%; }
.hero::after { display: none; }
.hero-grid { grid-template-columns: 1fr; max-width: 720px; }
@media (max-width: 700px) { .page-head, .hero { background-image: linear-gradient(rgba(10,13,18,.78), rgba(10,13,18,.9)), url("img/zahlavi.webp"); background-position: 62% center; } }

/* ---------- Kontaktní formulář ---------- */
.contact { margin: 18px 0 8px; display: grid; gap: 16px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact input, .contact textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 11px 13px; width: 100%; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact textarea { resize: vertical; min-height: 140px; }
.contact .check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.contact .check-row input { width: auto; margin-top: 4px; }
.contact .btn { justify-self: start; border: 0; cursor: pointer; }
.contact .hp { position: absolute; left: -9999px; }
.form-note { margin: 0; padding: 12px 14px; border-radius: var(--radius-s); background: var(--amber-soft); font-size: .92rem; }

/* ---------- Fotka produktu ---------- */
.prod-shot { margin: 24px 0 8px; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.prod-shot img { display: block; width: 100%; height: auto; }

/* ==========================================================
   Barvy čistoty: světlý web, voda a modrá. (Hasičská verze je v style.fire.css ve zdrojích.)
   ========================================================== */
:root {
  --bg: #f5f9fc; --surface: #ffffff; --surface-2: #eaf2f8; --text: #102233; --muted: #536577; --line: #d9e5ee;
  --ink: #0f3557; --ink-2: #164a75; --ink-text: #eef6fc; --ink-muted: #b9d0e3;
  --accent: #0a6cb5; --accent-strong: #08548d; --accent-soft: #e1eefa;
  --clean: #19a7c9; --clean-soft: #e0f5fa; --flame-o: #8fdcf5; --hivis: #19a7c9; --silver: #bfe6f2;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1823; --surface: #12212f; --surface-2: #19293a; --text: #e8f1f8; --muted: #9fb3c6; --line: #24384b;
    --ink: #0a1a29; --accent: #4fa8ec; --accent-strong: #7cc0f3; --accent-soft: #15314a; }
}
.btn-primary { box-shadow: 0 6px 20px rgba(10,108,181,.3); }
.site-header::before { height: 4px; background: linear-gradient(90deg, var(--accent), var(--clean)); }
/* Záhlaví: světlé, fotka jen vpravo */
.page-head, .hero { color: var(--text); background-color: var(--surface-2);
  background-image: linear-gradient(90deg, rgba(245,249,252,.98) 0%, rgba(245,249,252,.94) 45%, rgba(245,249,252,.55) 72%, rgba(245,249,252,.1) 100%), url("img/zahlavi.webp"); }
.page-head h1, .hero h1 { color: var(--ink); }
.hero h1 em { color: var(--accent); }
.page-head .lead, .hero .lead { color: var(--muted); }
.page-head .lead a, .hero .lead a { color: var(--accent); }
.page-head .eyebrow, .hero .eyebrow { color: var(--accent); }
.page-head .eyebrow::before, .hero .eyebrow::before { background: var(--clean); }
.page-head .head-ico { background: #fff; border-color: var(--line); color: var(--accent); box-shadow: var(--shadow); }
.page-head::before, .hero::before { height: 4px; background: linear-gradient(90deg, var(--accent), var(--clean)); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; }
.hero-stats { border-top-color: var(--line); }
.hero-stats div { border-right-color: var(--line); }
.hero-stats b { color: var(--ink); }
.hero-stats span { color: var(--muted); }
.hero-stats i { color: #7d90a3; }
@media (max-width: 760px) { .hero-stats div:nth-child(-n+2) { border-bottom-color: var(--line); } }
@media (max-width: 700px) { .page-head, .hero { background-image: linear-gradient(rgba(245,249,252,.9), rgba(245,249,252,.95)), url("img/zahlavi.webp"); } }
/* Patička: světle modrá */
.site-footer { background: var(--surface-2); color: var(--muted); border-image: none; border-top: 4px solid var(--accent); }
.site-footer a, .site-footer strong, .site-footer .brand { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .page-head, .hero { background-image: linear-gradient(90deg, rgba(12,24,35,.97) 0%, rgba(12,24,35,.9) 45%, rgba(12,24,35,.5) 72%, rgba(12,24,35,.15) 100%), url("img/zahlavi.webp"); }
  .page-head h1, .hero h1, .hero-stats b, .site-footer a, .site-footer strong, .site-footer .brand { color: #fff; }
  .page-head .head-ico, .btn-ghost { background: var(--surface); }
  .btn-ghost { color: #fff; }
}
.hero-stats { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-color-scheme: dark) { .hero-stats { background: rgba(18,33,47,.9); } }

/* ---------- Patička s obrázkem ---------- */
.site-footer { background: #a51a23 url("img/zapati.webp") center 45% / cover no-repeat; color: rgba(255,255,255,.88); border-top: 0; padding: 64px 0 72px; }
.site-footer a, .site-footer strong, .site-footer .brand { color: #fff; }
.site-footer .wrap > div { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.site-footer .wrap.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--max); }
.site-footer .wrap.grid > div:last-child { max-width: 260px; }
@media (min-width: 900px) { .site-footer { min-height: 360px; display: flex; align-items: center; background-position: right center; } .site-footer .wrap.grid { width: 100%; grid-template-columns: 1fr 1fr; padding-right: 46%; } .site-footer .wrap.grid > div:last-child { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 899px) { .site-footer { background-image: linear-gradient(rgba(140,20,28,.82), rgba(140,20,28,.82)), url("img/zapati.webp"); } .site-footer .wrap.grid { grid-template-columns: 1fr; } .site-footer .wrap.grid > div:last-child { max-width: none; } }
@media (prefers-color-scheme: dark) { .site-footer a, .site-footer strong, .site-footer .brand { color: #fff; } }

/* Přepínač jazyků */
.lang-bar { background: var(--surface-2, #eef3f8); border-bottom: 1px solid var(--line, #dde5ee); font-size: .8rem; }
.lang-bar .wrap { display: flex; justify-content: flex-end; }
.lang-switch { display: flex; gap: 2px; padding: 3px 0; }
.lang-switch a { padding: 2px 8px; border-radius: 6px; color: var(--muted, #566); text-decoration: none; font-weight: 600; letter-spacing: .03em; }
.lang-switch a:hover { background: var(--surface, #fff); color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.flag { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15,35,60,.18); flex: none; display: block; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch .flag { width: 18px; height: 12px; }
.lang-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lang-pick a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.82); border: 1px solid var(--line, #dde5ee); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 600; backdrop-filter: blur(4px); }
.lang-pick a:hover { border-color: var(--accent, #0b6bcb); }
.lang-pick a[aria-current="true"] { border-color: var(--accent, #0b6bcb); box-shadow: 0 0 0 2px var(--accent-soft, #dbeafe); }
.brand-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 24px; display: flex; justify-content: center; margin-bottom: 20px; box-shadow: var(--shadow); }
.brand-logo img { width: min(440px, 100%); height: auto; }
/* Rozbalovací položka menu */
.nav .has-sub { position: relative; }
.sub-btn { display: flex; align-items: center; gap: 5px; padding: 8px 11px; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: .93rem; font-weight: 500; cursor: pointer; }
.sub-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-btn:hover { background: var(--surface-2); }
.has-sub.current > .sub-btn { background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }
.nav .sub { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 230px; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav .sub a { border-radius: 9px; padding: 9px 12px; white-space: nowrap; }
@media (min-width: 1101px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: flex; }
  .has-sub:hover > .sub-btn::after, .has-sub.open > .sub-btn::after { transform: translateY(1px) rotate(225deg); }
  .sub-btn { padding: 7px 7px; font-size: .87rem; }
}
@media (max-width: 1220px) and (min-width: 1101px) { .sub-btn { padding: 6px 4px; font-size: .82rem; } }
@media (max-width: 1100px) {
  .sub-btn { width: 100%; justify-content: space-between; border-radius: 10px; padding: 11px 12px; }
  .nav .sub { display: flex; position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 4px 14px; padding: 0 0 0 8px; min-width: 0; background: none; }
  .nav .sub::before { display: none; }
  .sub-btn::after { display: none; }
}
/* Seznam rizik: červený vykřičník místo fajfky */
.check.risk li::before { background: var(--accent-soft); }
.check.risk li::after { content: "!"; left: 0; top: .2em; width: 22px; height: 22px; border: 0; transform: none; color: var(--accent); font-weight: 800; font-size: .9rem; line-height: 22px; text-align: center; }
.copy-note { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); font-size: .82rem; opacity: .85; }
/* Ztížení kopírování: text nejde označit (formuláře a upravovaná pole ano) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"], [contenteditable="true"] * { -webkit-user-select: text; user-select: text; }
