/* ==========================================================================
   PEBMedia Protect
   Vychází z design systému pebmedia.cz: teplá offwhite plocha, inkoustově černý text
   a hlavní akce, jeden hluboký teal jako akcent. Space Grotesk / Inter / IBM Plex Mono.
   Signaturní prvek PEBMedia: rohové "technické" závorky, tady kolem zkoumané zprávy.
   Stejně jako hlavní web jen ve světlém provedení.
   ========================================================================== */

:root {
  --bg: #F6F6F3;
  --surface: #FFFFFF;
  --ink: #14181B;
  --ink-soft: #565F66;
  --ink-faint: #656C72;
  --border: #E3E3DE;
  --border-strong: #8E8E87;
  --accent: #0B6E63;
  --accent-ink: #063E38;
  --accent-tint: #E6EFEC;
  --accent-bright: #7EE0C3;
  --danger: #B23B3B;
  --danger-tint: #F7E7E5;
  --warn: #8F5B00;
  --warn-tint: #F6ECD8;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 16px;
  --shadow-s: 0 1px 2px rgba(20, 24, 27, 0.04), 0 1px 1px rgba(20, 24, 27, 0.03);
  --shadow-m: 0 12px 32px rgba(20, 24, 27, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
svg { flex: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 760px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 520px) { .container { padding-inline: 16px; } }

/* Malé technické popisky jako na pebmedia.cz */
.mono-label, .eyebrow {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.dot-red { background: var(--danger); }

/* ---------------------------------- Hlavička ---------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(246, 246, 243, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
@media (max-width: 520px) { .header-inner { padding: 0 16px; height: 64px; } }
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 24px; height: 24px; display: inline-flex; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-tag {
  font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 100px; margin-left: 2px;
}
.main-nav {
  display: flex; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 100px;
  background: rgba(255, 255, 255, 0.6);
}
.main-nav a {
  padding: 7px 14px; border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap; transition: color .25s var(--ease), background .25s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--accent-tint); }
.main-nav .short { display: none; }
@media (max-width: 860px) {
  .main-nav .long { display: none; }
  .main-nav .short { display: inline; }
}
@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 10px; }
  .main-nav { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .main-nav a { text-align: center; padding: 8px 6px; font-size: 13.5px; }
}

/* ---------------------------------- Úvod ---------------------------------- */
.hero { padding-block: 64px 24px; }
.hero-sm { padding-bottom: 28px; }
.hero h1 {
  font-size: clamp(44px, 9vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600;
  margin-top: 18px;
}
.hero-text { color: var(--ink-soft); font-size: 18px; max-width: 34em; margin-top: 16px; }
@media (max-width: 520px) { .hero { padding-top: 40px; } .hero-text { font-size: 16.5px; } }

/* Pole pro zprávu s technickými rohy */
.composer {
  position: relative; margin-top: 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m); transition: border-color .2s var(--ease);
}
.composer:focus-within, .composer.over { border-color: var(--ink); }
.composer.over { background: var(--accent-tint); }
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--accent); pointer-events: none; }
.corner.tl { top: -7px; left: -7px; border-top: 2px solid; border-left: 2px solid; }
.corner.br { bottom: -7px; right: -7px; border-bottom: 2px solid; border-right: 2px solid; }
.composer textarea {
  display: block; width: 100%; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; line-height: 1.55; padding: 20px 22px 10px; resize: vertical; min-height: 150px;
}
.composer textarea:focus { outline: none; }
.composer textarea::placeholder { color: var(--ink-soft); opacity: 1; }
::placeholder { color: var(--ink-soft); opacity: 1; }
.composer-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 10px 10px 12px; border-top: 1px solid var(--border);
}

/* Tlačítka podle pebmedia.cz */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; min-height: 48px; border-radius: var(--radius-s); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em; cursor: pointer; white-space: nowrap;
  transition: transform .14s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; border-radius: var(--radius-s);
  background: none; color: var(--ink-soft); font-weight: 500; font-size: 14.5px; cursor: pointer;
}
.btn-ghost svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.btn-ghost:hover { color: var(--ink); background: var(--bg); }
.link {
  font: inherit; color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.link:hover { color: var(--ink); }

.facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }

.try { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); }
.try-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 8px 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.chip:hover { border-color: var(--accent); background: var(--accent-tint); }

.ocr { display: flex; gap: 12px; align-items: center; margin: 4px 22px 12px; }
.ocr img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--border); }
.ocr-body { flex: 1; min-width: 0; }
.ocr-body p { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ocr-note { margin: 0 22px 12px; font-size: 14px; color: var(--ink-soft); }
.progress { height: 4px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s var(--ease); }

/* ---------------------------------- Výsledek ---------------------------------- */
#result { padding-block: 32px 0; }
.back { margin-bottom: 20px; }

/* Verdikt jako tmavý box z kalkulačky na pebmedia.cz */
.verdict { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 26px 28px 24px; }
.verdict-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.verdict .mono-label { color: rgba(255, 255, 255, 0.55); }
.risk {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.risk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.risk.high { background: #FBE3E0; color: var(--danger); }
.risk.mid { background: #F8EDD6; color: var(--warn); }
.risk.low { background: var(--accent-tint); color: var(--accent); }
.verdict h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; margin-top: 18px; }
.verdict p { color: rgba(255, 255, 255, 0.78); font-size: 16.5px; margin-top: 10px; max-width: 34em; }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 22px; }
.meter i { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.meter.low i:nth-child(-n+1) { background: var(--accent-bright); }
.meter.mid i:nth-child(-n+2) { background: #F2B451; }
.meter.high i { background: #FF8A80; }
.meter-legend { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.meter-legend span:nth-child(2) { text-align: center; }
.meter-legend span:nth-child(3) { text-align: right; }

.block { margin-top: 44px; }
.block h2 { font-size: clamp(24px, 4vw, 30px); margin-top: 10px; }
.block-text { color: var(--ink-soft); margin-top: 8px; margin-bottom: 18px; max-width: 36em; }
.block > .mono-label + .specimen, .block > .mono-label + .reasons { margin-top: 14px; }

/* Zkoumaná zpráva v technickém rámu */
.specimen {
  position: relative; margin-top: 14px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  font-size: 17px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 380px; overflow: auto;
}
.specimen-wrap { position: relative; }
.specimen-wrap .corner { z-index: 1; }
.hl { background: none; color: inherit; border-radius: 3px; padding: 1px 2px; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hl.high { background: var(--danger-tint); text-decoration-color: var(--danger); }
.hl.mid { background: var(--warn-tint); text-decoration-color: var(--warn); }
.hl.low, .hl.info { text-decoration-color: var(--border-strong); text-decoration-style: dotted; }
.hl.ok { background: var(--accent-tint); text-decoration-color: var(--accent); }
.hl sup {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 3px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; line-height: 1; vertical-align: 0.5em;
  background: var(--ink); color: #fff;
}
.hl.high sup { background: var(--danger); }
.hl.mid sup { background: var(--warn); }
.hl.ok sup { background: var(--accent); }
.hl.low sup, .hl.info sup { background: var(--ink-faint); }
.fake { background: var(--danger); color: #fff; border-radius: 3px; padding: 0 1px; }

/* Seznam důvodů jako řádky služeb na pebmedia.cz */
.reasons { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--border); }
.reason { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.reason > div { min-width: 0; }
.reason .num { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink-faint); padding-top: 2px; }
.reason.high .num { color: var(--danger); }
.reason.mid .num { color: var(--warn); }
.reason.ok .num { color: var(--accent); }
.reason h3 { font-size: 19px; }
.reason p { color: var(--ink-soft); font-size: 15.5px; margin-top: 4px; }
.domain {
  display: block; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-s);
  background: var(--bg); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere;
}
.domain .dim { color: var(--ink-faint); }
.domain .main { color: var(--ink); font-weight: 600; }
.domain-note { font-size: 14px !important; }
.domain-note code { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.more { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.more li {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 3px 10px;
}
.none { color: var(--ink-soft); margin-top: 16px; }

/* Otázky ve stylu kalkulačky */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); }
.quiz { margin-top: 14px; overflow: hidden; }
.quiz-head { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--border); }
.quiz-head .mono-label { white-space: nowrap; }
.quiz-head .progress { flex: 1; max-width: 220px; }
.quiz-body { padding: 22px 22px 22px; }
.quiz-q { font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.25; letter-spacing: -0.015em; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin-top: 16px; }
.opt {
  font: inherit; font-weight: 500; font-size: 15px; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--radius-m); padding: 14px 16px; min-height: 52px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.opt:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.answered { list-style: none; margin: 0; padding: 0 22px; }
.answered li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.answered .q { color: var(--ink-soft); }
.answered .a { font-weight: 600; }
.answered .note {
  flex-basis: 100%; margin-top: 8px; padding: 10px 14px; border-radius: var(--radius-m);
  background: var(--accent-tint); color: var(--ink); font-size: 14.5px;
}
.quiz-done { padding: 18px 22px; color: var(--ink-soft); font-size: 15px; }

.steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: s; border-top: 1px solid var(--border); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 1px; }

.callout {
  margin-top: 24px; padding: 18px 20px; border-radius: var(--radius-l);
  background: var(--danger-tint); border: 1px solid rgba(178, 59, 59, 0.22);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.callout p { font-weight: 600; flex: 1 1 240px; }
.disclaimer { font-size: 14.5px; color: var(--ink-soft); margin-top: 28px; }

/* ---------------------------------- Pomoc ---------------------------------- */
.alarm {
  display: grid; gap: 8px; padding: 22px 24px; border-radius: var(--radius-l);
  background: var(--danger-tint); border: 1px solid rgba(178, 59, 59, 0.22);
}
.alarm .mono-label { color: var(--danger); }
.alarm p { font-size: 16.5px; }
.big-num { font-family: var(--font-display); font-size: 22px; color: var(--danger); margin-left: 4px; }

.acc { margin-top: 18px; border-top: 1px solid var(--border); }
.acc details { border-bottom: 1px solid var(--border); }
.acc summary {
  cursor: pointer; list-style: none; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface);
  font-family: var(--font-body); font-size: 18px; font-weight: 400; color: var(--ink); transition: transform .3s var(--ease);
}
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .inner { padding: 0 4px 22px; }
.acc ol { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.acc li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.acc li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 3px; }
.acc li b { display: block; font-weight: 600; }
.acc li span { color: var(--ink-soft); font-size: 15px; }
.acc .tip { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; color: var(--ink-soft); }

.report { display: grid; gap: 18px; padding: 24px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } .report { padding: 18px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .checks legend { font-size: 14px; font-weight: 600; }
input[type="text"], select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-s); padding: 11px 13px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; }
input:focus, select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.checks { border: 0; margin: 0; padding: 0; display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.checks legend { margin-bottom: 8px; padding: 0; }
.check {
  display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 11px 13px; font-size: 14.5px;
  border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.check:hover { border-color: var(--border-strong); }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.out { display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 18px; }
.out pre {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 13px; line-height: 1.65;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 16px; max-height: 420px; overflow: auto;
}
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.copied { color: var(--accent); font-weight: 600; font-size: 14px; }
.note { font-size: 14px; color: var(--ink-soft); }


/* ---------------------------------- Dotaz na nahlášení ---------------------------------- */
.report-ask {
  margin-top: 16px; padding: 20px 22px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-s);
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
}
.report-ask > div:first-child { flex: 1 1 300px; min-width: 0; }
.report-ask-q { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-top: 6px; }
.report-ask-sub { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.report-ask-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.report-ask.is-done { background: var(--accent-tint); border-color: rgba(11, 110, 99, 0.2); box-shadow: none; }
.report-ask.is-done p { flex: 1 1 300px; font-size: 15px; }

/* ---------------------------------- Nahlásit pokus ---------------------------------- */
.police-cta {
  margin-top: 8px; padding: 28px; border-radius: var(--radius-l); background: var(--ink); color: #F6F6F3;
  display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between;
}
#view-help .police-cta { margin-top: 44px; }
.police-cta > div { flex: 1 1 320px; min-width: 0; }
.police-cta .mono-label { color: var(--accent-bright); }
.police-cta h2 { font-size: clamp(24px, 4vw, 30px); margin-top: 10px; }
.police-cta p:not(.mono-label) { color: rgba(246, 246, 243, 0.72); margin-top: 8px; max-width: 34em; }
.btn-light { background: #F6F6F3; color: var(--ink); text-decoration: none; }
.btn-light:hover { background: #fff; color: var(--ink); }

.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 600px) { .ways { grid-template-columns: 1fr; } }
.way {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.way-tag { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.way h3 { font-size: 19px; }
.way p:not(.way-tag) { color: var(--ink-soft); font-size: 15px; }
.way code, .send code { font-family: var(--font-mono); font-size: 13px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; color: var(--ink); }
.num-big { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.way-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14.5px; color: var(--accent); text-decoration: none; }
.way-link:hover { color: var(--accent-ink); text-decoration: underline; }
.note-src { font-size: 14px; color: var(--ink-faint); margin-top: 16px; max-width: 46em; }

/* ---------------------------------- Okno s oznámením ---------------------------------- */
.modal {
  width: min(720px, calc(100% - 24px)); max-height: min(92vh, 900px); padding: 0; border: 0;
  border-radius: 20px; background: var(--bg); color: var(--ink); box-shadow: 0 24px 80px rgba(20, 24, 27, 0.35);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .35s var(--ease); }
.modal::backdrop { background: rgba(20, 24, 27, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 20px 22px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 24px; margin-top: 6px; }
.modal-close {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink);
  transition: background .2s var(--ease), transform .3s var(--ease);
}
.modal-close:hover { background: var(--bg); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal-body { overflow-y: auto; padding: 20px 22px 26px; display: grid; gap: 22px; }
.modal-intro { color: var(--ink-soft); font-size: 15px; }
.step { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.step legend { padding: 0; margin-bottom: 12px; font-family: var(--font-display); font-weight: 600; font-size: 19px; display: flex; align-items: baseline; gap: 10px; }
.step-num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.hint { font-size: 14px; color: var(--ink-soft); }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .field-wide { grid-column: auto; } .modal-body, .modal-head { padding-inline: 16px; } }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr; } }
.seg-opt {
  display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 12px 14px; font-size: 14.5px; font-weight: 500;
  border: 1.5px solid var(--border); border-radius: var(--radius-m); background: var(--surface);
}
.seg-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.seg-opt input { accent-color: var(--accent); margin: 0; width: 18px; height: 18px; }
.checks-title { grid-column: 1 / -1; font-size: 14px; font-weight: 600; }
.modal-actions { display: flex; }
.modal .out { gap: 12px; }
.send-title { margin-top: 10px; }
.send { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.send li {
  counter-increment: s; display: grid; gap: 4px; padding: 14px 16px 14px 52px; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); font-size: 14.5px;
}
.send li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 15px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.send li > span { color: var(--ink-soft); }
.send .addr { overflow-wrap: anywhere; }
.send .way-link { padding-top: 4px; }
.small-note { font-size: 14px; color: var(--ink-soft); }


/* ---------------------------------- Přehodnocení ---------------------------------- */
.quiz-head .live { margin-left: auto; font-size: 12px; padding: 3px 9px; }
.reeval { margin: 4px 22px 22px; padding: 18px 20px; border-radius: var(--radius-m); background: var(--bg); border: 1px solid var(--border); display: grid; gap: 8px; animation: reeval-in .5s var(--ease); }
.reeval.high { background: var(--danger-tint); border-color: rgba(178, 59, 59, 0.22); }
.reeval.mid { background: var(--warn-tint); border-color: rgba(143, 91, 0, 0.2); }
.reeval.low { background: var(--accent-tint); border-color: rgba(11, 110, 99, 0.2); }
.reeval-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reeval .is-old { opacity: .55; text-decoration: line-through; }
.reeval-arrow { font-size: 18px; color: var(--ink-soft); }
.reeval-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.reeval-text { color: var(--ink-soft); font-size: 15px; }
.reeval .link { justify-self: start; }
@keyframes reeval-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verdict.is-updated { animation: verdict-flash 1.2s var(--ease); }
@keyframes verdict-flash { 0% { box-shadow: 0 0 0 0 rgba(126, 224, 195, 0.7); } 100% { box-shadow: 0 0 0 14px rgba(126, 224, 195, 0); } }

/* E-book za výsledkem */
.ebook-card {
  margin-top: 40px; display: flex; gap: 20px; align-items: center; padding: 18px 20px 18px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ebook-card:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.ebook-card img { flex: none; width: 88px; height: auto; aspect-ratio: 900 / 1277; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 20px rgba(20, 24, 27, 0.25); transform: rotate(-3deg); transition: transform .3s var(--ease); }
.ebook-card:hover img { transform: rotate(0deg); }
.ebook-card-text { display: grid; gap: 4px; min-width: 0; }
.ebook-card-text b { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.ebook-card-text > span:not(.mono-label):not(.ebook-card-cta) { color: var(--ink-soft); font-size: 14.5px; }
.ebook-card-cta { color: var(--accent); font-weight: 600; font-size: 14.5px; margin-top: 4px; }
.ebook-card .arrow { display: inline-block; transition: transform .2s var(--ease); }
.ebook-card:hover .arrow { transform: translateX(3px); }
@media (max-width: 440px) { .ebook-card { align-items: flex-start; gap: 14px; } .ebook-card img { width: 68px; } }


/* ---------- Stavy OCR, chyby formuláře, upozornění (audit 2026-10) ---------- */
.ocr-detail { font-size: 14px; color: var(--ink-soft); margin: -2px 0 8px; font-weight: 400; }
.ocr-note { margin: 0 22px 14px; font-size: 15px; color: var(--ink-soft); }
.ocr-note.is-error { color: var(--danger); background: var(--danger-tint); border-radius: var(--radius-m); padding: 12px 14px; font-weight: 500; }
.ocr-banner {
  margin-top: 16px; padding: 18px 20px; border-radius: var(--radius-l); display: grid; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
}
.ocr-banner.is-uncertain { border-left-color: var(--warn); background: var(--warn-tint); }
.ocr-banner p:not(.mono-label) { font-size: 15.5px; }
.ocr-banner textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-s); padding: 11px 13px; resize: vertical;
}
.ocr-banner .btn { justify-self: start; }
.field-err { color: var(--danger); font-size: 14.5px; font-weight: 500; }
.not-sent { padding: 14px 16px; border-radius: var(--radius-m); background: var(--warn-tint); border: 1px solid rgba(143, 91, 0, 0.25); font-size: 15.5px; }
.urgent-tag {
  flex: none; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--danger); background: var(--danger-tint); border-radius: 100px; padding: 3px 9px;
}
.acc summary { display: grid; grid-template-columns: 1fr 32px; column-gap: 14px; row-gap: 6px; align-items: center; }
.acc summary .urgent-tag { grid-column: 1; justify-self: start; }
.acc summary .sum-title { grid-column: 1; }
.acc summary::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
#verdict-title:focus, #quiz-q:focus, #reeval:focus, #report-out-title:focus { outline: none; }
#quiz-q:focus-visible, #reeval:focus-visible, #report-out-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#verdict-title:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }

/* ---------------------------------- Patička ---------------------------------- */
/* Hluboká zelená PEBMedia, světlé písmo, svěží zelená jen jako akcent. */
.site-footer {
  --f-bg: #073F39; --f-ink: #F6F6F3; --f-soft: rgba(246, 246, 243, 0.78); --f-faint: rgba(246, 246, 243, 0.66); --f-line: rgba(246, 246, 243, 0.14);
  margin-top: 96px; background: var(--f-bg); color: var(--f-ink);
  border-radius: 28px 28px 0 0; overflow: hidden;
}
.site-footer .container { max-width: 1100px; }
.site-footer .mono-label { color: var(--accent-bright); }

.footer-cta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding-block: 64px 48px; border-bottom: 1px solid var(--f-line);
}
.footer-claim {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(34px, 7vw, 68px); margin-top: 14px; text-wrap: balance;
}
.footer-claim span { color: var(--accent-bright); }
.site-footer .btn-light { flex: none; }

/* Všechny sloupce začínají na stejné lince: nadpis sloupce má stejnou výšku jako logo. */
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px 36px; align-items: start; padding-block: 48px; border-bottom: 1px solid var(--f-line);
}
.site-footer .logo { color: var(--f-ink); min-height: 44px; margin-block: -8px; }
.site-footer .logo:hover { color: #fff; }
.footer-brand p { color: var(--f-soft); font-size: 14.5px; max-width: 290px; margin-top: 12px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col-title {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-bright); height: 28px; display: flex; align-items: center; margin: 0 0 6px;
}
.footer-col a, .footer-col > span { display: block; font-size: 14.5px; color: var(--f-soft); padding: 6px 0; text-decoration: none; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col > span b { color: #FFB4AB; font-family: var(--font-display); font-size: 16px; margin-left: 4px; }

/* Upoutávka na e-book */
.footer-col .footer-book {
  display: flex; gap: 16px; align-items: center; width: 100%; padding: 14px; margin-top: 6px; border-radius: var(--radius-l);
  background: rgba(246, 246, 243, 0.07); border: 1px solid var(--f-line); color: var(--f-ink);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.footer-col .footer-book:hover { background: rgba(246, 246, 243, 0.11); border-color: rgba(126, 224, 195, 0.45); color: var(--f-ink); transform: translateY(-2px); }
.footer-book-cover {
  flex: none; width: 64px; height: auto; aspect-ratio: 900 / 1277; object-fit: cover; border-radius: 3px 6px 6px 3px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg); transition: transform .3s var(--ease);
}
.footer-book:hover .footer-book-cover { transform: rotate(0deg) scale(1.03); }
.footer-book-text { display: grid; gap: 6px; min-width: 0; }
.footer-book-text b { color: var(--f-ink); font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.footer-book-link { font-size: 14px; color: var(--accent-bright); }
.footer-book .arrow { display: inline-block; transition: transform .2s var(--ease); }
.footer-book:hover .arrow { transform: translateX(3px); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 40px; flex-wrap: wrap;
  padding-block: 20px 32px; font-size: 13px; color: var(--f-faint);
}
.footer-bottom p { max-width: 46em; flex: 1 1 320px; }
.footer-legal { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--f-soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--accent-bright); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .site-footer { margin-top: 64px; border-radius: 22px 22px 0 0; }
  .footer-cta { padding-block: 44px 36px; }
  .site-footer .footer-cta .btn-light { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom p { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------------------------------- Režimy kontroly ---------------------------------- */
.modes-label { margin-top: 32px; }
.modes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 10px; padding: 4px;
  border: 1px solid var(--border); border-radius: var(--radius-m); background: rgba(255, 255, 255, 0.6);
}
.mode {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-soft); cursor: pointer; min-height: 44px;
  background: none; border: 0; border-radius: 8px; padding: 8px 6px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.mode:hover { color: var(--ink); }
.mode[aria-selected="true"] { background: var(--ink); color: #fff; }
.modes + [role="tabpanel"] .composer, [role="tabpanel"] > .composer { margin-top: 20px; }
@media (max-width: 400px) { .mode { font-size: 14px; padding-inline: 2px; } }

.form-card .form-pad { padding: 20px 22px 16px; display: grid; gap: 12px; }
.form-card .field textarea { min-height: 0; font-size: 15.5px; padding: 11px 13px; resize: vertical; }
.form-card .field textarea:focus { outline: none; border-color: var(--ink); }
.form-card .cols { gap: 12px; }
.more-fields summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); min-height: 44px; display: flex; align-items: center; }
.more-fields summary:hover { color: var(--ink); }
.more-fields[open] summary { margin-bottom: 6px; }
.more-fields .hint { margin-top: 8px; }
@media (max-width: 520px) { .form-card .form-pad { padding: 16px; } }

/* Rozbor odkazu a odesílatele */
.breakdown, .sender { margin-top: 14px; padding: 20px 22px; }
.breakdown + .breakdown { margin-top: 12px; }
.bd-domain { font-size: 18px; margin: 0 0 14px; overflow-wrap: anywhere; }
.breakdown dl, .sender dl { margin: 0; border-top: 1px solid var(--border); }
.bd-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bd-row dt { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.bd-row dd { margin: 0; overflow-wrap: anywhere; font-size: 15.5px; }
.bd-row code { font-family: var(--font-mono); font-size: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.bd-note { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.breakdown .small-note, .sender .small-note { margin-top: 12px; }
.sender + .specimen-wrap .specimen { margin-top: 12px; }
@media (max-width: 520px) { .bd-row { grid-template-columns: 1fr; } .breakdown, .sender { padding: 16px; } }

/* ---------------------------------- Telefonát ---------------------------------- */
.call { margin-top: 20px; }
.call-result { padding: 20px 22px 22px; display: grid; gap: 10px; }
.call-result:focus { outline: none; }
.call-result:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.call-result .verdict-top .mono-label { color: var(--ink-soft); }
.call-title { font-size: 24px; line-height: 1.2; }
.call-result > p { color: var(--ink-soft); }
.call-result .reasons, .call-result .steps { margin-top: 4px; }
.call-result .callout { margin-top: 6px; }
.call-steps-label { margin-top: 10px; }
.call-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.call-result .disclaimer { margin-top: 6px; }
#call-q:focus, #tr-focus:focus { outline: none; }
#call-q:focus-visible, #tr-focus:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------------------------------- Nouzový plán ---------------------------------- */
.sit-list { margin-top: 4px; }
.plan { margin-top: 24px; display: grid; gap: 16px; }
.plan-empty { color: var(--ink-soft); padding: 18px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-m); }
.phase { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 18px 22px 8px; }
.phase-now { border-color: rgba(178, 59, 59, 0.35); box-shadow: inset 4px 0 0 var(--danger); }
.phase-hour { box-shadow: inset 4px 0 0 var(--warn); }
.phase-later { box-shadow: inset 4px 0 0 var(--accent); }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.phase-num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.phase-head h3 { font-size: 20px; }
.phase-note { font-size: 14px; color: var(--ink-soft); }
.plan-steps { list-style: none; margin: 0; padding: 0; }
.plan-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.plan-steps li:last-child { border-bottom: 0; }
.plan-n { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 3px; }
.plan-steps b { display: block; font-weight: 600; }
.plan-steps span:not(.plan-n) { color: var(--ink-soft); font-size: 15px; }
.plan .tip { padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; color: var(--ink-soft); }
.prep { padding: 20px 22px; border-radius: var(--radius-l); background: var(--accent-tint); border: 1px solid rgba(11, 110, 99, 0.2); display: grid; gap: 10px; justify-items: start; }
.prep .mono-label { color: var(--accent-ink); }
.prep h3 { font-size: 20px; }
.prep ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 520px) { .phase, .prep { padding-inline: 16px; } }

/* ---------------------------------- Naučit se ---------------------------------- */
.training .quiz-body { display: grid; gap: 14px; }
.tr-msg { margin-top: 0; max-height: none; font-size: 16.5px; line-height: 1.7; }
.tr-score { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.tr-feedback { padding: 16px 18px; border-radius: var(--radius-m); display: grid; gap: 6px; }
.tr-feedback.is-right { background: var(--accent-tint); border: 1px solid rgba(11, 110, 99, 0.25); }
.tr-feedback.is-wrong { background: var(--warn-tint); border: 1px solid rgba(143, 91, 0, 0.25); }
.tr-verdict { font-weight: 700; }
.tr-sum { color: var(--ink-soft); }
.training .btn { justify-self: start; }

.lib summary { display: grid; grid-template-columns: 1fr 32px; column-gap: 14px; row-gap: 4px; align-items: center; }
.lib-tag { grid-column: 1; justify-self: start; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.lib .inner { display: grid; gap: 12px; }
.lib-desc { color: var(--ink); }
.lib-label { margin-bottom: -4px; }
.lib-ex {
  margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  font-size: 15.5px; overflow-wrap: anywhere;
}
.lib-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lib-h { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.lib-cols ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; color: var(--ink-soft); }
.lib-cols li { display: list-item; counter-increment: none; }
.lib-cols li::before { content: none; }
.lib-btn { justify-self: start; }
.lib-meta { font-size: 14px; color: var(--ink-soft); margin-top: 16px; }
@media (max-width: 560px) { .lib-cols { grid-template-columns: 1fr; } }

/* Hlavní menu se čtyřmi položkami */
@media (max-width: 700px) { .main-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } .main-nav a { padding-inline: 2px; font-size: 13px; } }
@media (max-width: 380px) { .main-nav a { font-size: 12px; } }

/* Logo v hlavičce vede zpět na pebmedia.cz: při najetí zmizí štítek Protect a zůstane jen PEBMedia */
.logo-home .logo-tag {
  display: inline-block; max-width: 90px; overflow: hidden; white-space: nowrap;
  transition: max-width .3s var(--ease), opacity .2s var(--ease), padding .3s var(--ease), margin .3s var(--ease);
}
.logo-home:hover .logo-tag, .logo-home:focus-visible .logo-tag { max-width: 0; opacity: 0; padding-inline: 0; margin-left: -8px; }
.logo-home:hover > span:not(.logo-tag):not(.logo-mark) { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .logo-home .logo-tag { transition: none; } }

/* Odchod na pebmedia.cz: stránka sjede dolů a zespodu vyjede plocha PEBMedia */
body.is-leaving { overflow: hidden; }
body.is-leaving > *:not(.leave-curtain) {
  transition: transform .6s cubic-bezier(0.7, 0, 0.84, 0), opacity .5s ease-in;
  transform: translateY(60vh); opacity: 0;
}
.leave-curtain {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: grid; place-items: center; transform: translateY(100%);
  transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1) .25s;
  border-top: 3px solid var(--accent); box-shadow: 0 -24px 60px rgba(20, 24, 27, 0.14);
}
.leave-curtain.is-in { transform: translateY(0); }
.leave-brand {
  display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(14px);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 7vw, 56px); letter-spacing: -0.02em; color: var(--ink);
  transition: opacity .4s ease .65s, transform .5s var(--ease) .65s;
}
.leave-brand .logo-mark { width: 1em; height: 1em; }
.leave-curtain.is-in .leave-brand { opacity: 1; transform: none; }

/* Úvod bez štítku nad nadpisem */
.hero h1:first-child { margin-top: 0; }

/* Malé a otočené telefony */
.plan > *, .lib .inner > *, .phase, .prep { min-width: 0; }
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; }
  .lib-btn, .prep .btn, .call-actions .btn { width: 100%; }
}
@media (max-width: 340px) {
  .container { padding-inline: 12px; }
  .header-inner { padding-inline: 12px; }
  .hero h1 { font-size: 40px; }
  .mode { font-size: 13px; }
  .phase, .prep, .breakdown, .sender, .call-result { padding-inline: 14px; }
  .quiz-body, .quiz-head { padding-inline: 14px; }
  .main-nav a { font-size: 11.5px; }
}
/* Telefon na šířku: hlavička nezabírá třetinu obrazovky */
@media (max-height: 500px) and (orientation: landscape) { .site-header { position: static; } }

/* ---------------------------------- Právní informace ---------------------------------- */
.legal-back { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.legal-back:hover { color: var(--ink); }
.legal { padding-block: 48px 72px; max-width: 760px; }
.legal h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.legal-date { color: var(--ink-soft); margin-top: 10px; font-family: var(--font-mono); font-size: 13px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.legal-toc a { font-size: 14px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; }
.legal-toc a:hover { border-color: var(--accent); background: var(--accent-tint); }
.legal section { margin-top: 44px; scroll-margin-top: 90px; }
.legal h2 { font-size: clamp(22px, 4vw, 28px); padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.legal h3 { font-size: 17px; margin-top: 22px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; }
.legal p { margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal code { font-family: var(--font-mono); font-size: 13.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#clear-msg { color: var(--accent-ink); font-size: 14.5px; }
.legal-footer { border-top: 1px solid var(--border); padding-block: 24px 40px; font-size: 13.5px; color: var(--ink-soft); }
.legal-footer p + p { margin-top: 8px; }
.legal-footer a { color: var(--ink-soft); }
.footer-bottom .footer-operator { flex: 1 1 100%; max-width: none; font-size: 12.5px; color: var(--f-faint); padding-top: 12px; border-top: 1px solid var(--f-line); }
.footer-bottom .footer-operator a { color: var(--f-soft); }
