/* ── Fonty (vlastní hosting, žádné volání Googlu) ───────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Barvy: modrou stačí změnit tady ───────────────────────── */
:root {
  --brand: #1d3fd6;        /* hlavní modrá (doladit podle loga) */
  --brand-deep: #10247f;   /* tmavší modrá: patička, hlavičky reportu */
  --brand-tint: #ebf0ff;   /* světle modrá: pozadí sekcí */
  --brand-line: #c9d5fb;
  --orange: #ff5a1f;       /* tlačítka a akcenty (DOSTAL.) */
  --orange-hover: #e8480f;
  --orange-ink: #c63d0b;
  --ink: #0f1a3a;
  --ink-2: #4a5677;
  --paper: #f4f6fb;
  --card: #ffffff;
  --line: #dce2ee;
  --good: #12805a;
  --mid: #b07800;
  --bad: #cc2236;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-optical-sizing: auto; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── tlačítka a pole ───────────────────────────────────────── */
.btn {
  font: inherit; font-weight: 700; font-size: 17px; padding: 15px 24px; border-radius: var(--radius-sm);
  border: 2px solid var(--orange); background: var(--orange); color: #fff; cursor: pointer; white-space: nowrap;
  text-decoration: none; display: inline-block; line-height: 1.2;
}
.btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.alt:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.small { padding: 9px 14px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.field {
  font: inherit; font-size: 18px; padding: 15px 18px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); min-width: 0; width: 100%;
}
.field:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(29, 63, 214, 0.2); }
.field::placeholder { color: #8b95ae; }
.form-error { color: var(--bad); font-weight: 600; margin: 12px 0 0; }

/* ── hlavička ──────────────────────────────────────────────── */
.top { background: var(--brand); color: #fff; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; }
.show-sm { display: none; }
.brand { white-space: nowrap; font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -0.01em; color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; color: #dfe6ff; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; }
.nav .btn { color: #fff; text-decoration: none; }

/* ── hero ──────────────────────────────────────────────────── */
.hero { background: var(--brand); color: #fff; padding: 40px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); font-variation-settings: "wdth" 78; line-height: 0.95; letter-spacing: -0.03em; }
.lead { font-size: 21px; color: #dfe6ff; max-width: 36ch; margin: 22px 0 30px; }
.scan-form { display: flex; gap: 10px; max-width: 580px; }
.scan-form .field { border-color: #fff; font-size: 19px; }
.hero .form-note { font-size: 14px; color: #c3cff7; margin-top: 12px; }
.hero .form-error { color: #ffd2c2; }

.sample { background: var(--card); color: var(--ink); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: 0 30px 60px -30px rgba(5, 15, 60, 0.6); transform: rotate(1.5deg); }
.sample-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 8px; gap: 12px; }
.sample-head strong { font-size: 19px; }
.sample-head span { font-size: 14px; color: var(--ink-2); }
.subject { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16px; gap: 12px; }
.subject:last-child { border-bottom: 0; }

.mark { --c: var(--ink); width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c); color: var(--c); display: inline-grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.mark[data-m="1"], .mark[data-m="2"] { --c: var(--good); }
.mark[data-m="3"] { --c: var(--mid); }
.mark[data-m="4"], .mark[data-m="5"] { --c: var(--bad); }

/* ── sekce ─────────────────────────────────────────────────── */
.band { padding: 80px 0; }
.band.tint { background: var(--brand-tint); }
.band.white { background: #fff; }
.band h2 { font-size: clamp(30px, 4vw, 46px); max-width: 22ch; }
.band .intro { color: var(--ink-2); max-width: var(--measure); margin: 14px 0 40px; font-size: 18px; }

/* AI chat: na co se díváme */
.chat { max-width: 860px; display: grid; gap: 18px; }
.msg { display: flex; gap: 14px; align-items: flex-end; }
.msg.user { justify-content: flex-end; }
.bubble { padding: 16px 20px; border-radius: 20px; max-width: 640px; }
.msg.user .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 6px; font-weight: 600; font-size: 18px; }
.msg.ai .bubble { background: #fff; border: 1px solid var(--brand-line); border-bottom-left-radius: 6px; }
.msg.ai .bubble h3 { font-size: 19px; margin-bottom: 6px; }
.msg.ai .bubble p { margin: 0; color: var(--ink-2); }
.avatar { width: 42px; height: 42px; flex: none; }
.msg.ai + .msg.user { margin-top: 14px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin: 12px 0 0; max-width: var(--measure); }

.blog-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.blog-teaser a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.3; }
.blog-teaser a:hover { border-color: var(--brand); color: var(--brand); }
.more { margin-top: 22px; display: inline-block; font-weight: 700; color: var(--brand); }

/* ── patička ───────────────────────────────────────────────── */
.foot { background: var(--brand-deep); color: #c9d3f5; padding: 56px 0 40px; font-size: 15px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.foot h2 { font-size: 15px; color: #fff; margin-bottom: 12px; letter-spacing: 0; font-weight: 700; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot p { margin: 0 0 8px; }
.foot .by { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; text-decoration: none; color: #c9d3f5; }
.foot .by img { height: 15px; width: auto; display: block; }
.foot .by:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ── průběh kontroly ───────────────────────────────────────── */
.progress { padding: 56px 0 120px; }
.progress h2 { font-size: clamp(30px, 4.5vw, 52px); font-variation-settings: "wdth" 80; }
.progress .domain { color: var(--brand); }
.steplog { list-style: none; padding: 0; margin: 32px 0 0; max-width: 560px; }
.steplog li { display: flex; gap: 14px; align-items: center; padding: 11px 0; font-size: 18px; color: #9aa4bd; border-bottom: 1px solid var(--line); }
.steplog .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.steplog li.on, .steplog li.done { color: var(--ink); }
.steplog li.on .dot { border-color: var(--orange); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.steplog li.done .dot { background: var(--good); border-color: var(--good); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── report ────────────────────────────────────────────────── */
.report { padding: 28px 0 96px; }
.card { background: var(--card); border-radius: var(--radius-lg); padding: 32px 36px; margin-bottom: 22px; border: 1px solid var(--line); }
.card > h2 { font-size: 28px; margin-bottom: 6px; }
.card > .sub { color: var(--ink-2); margin: 0 0 22px; max-width: var(--measure); }
.cert { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.cert-kicker { color: var(--ink-2); font-size: 16px; margin: 0 0 4px; }
.cert h1 { font-size: clamp(30px, 4vw, 46px); font-variation-settings: "wdth" 82; word-break: break-word; }
.cert .verdict { font-size: 19px; max-width: 48ch; margin: 12px 0 0; }
.stamp { width: 168px; height: 168px; border-radius: 50%; border: 5px solid var(--c, var(--ink)); color: var(--c, var(--ink)); display: grid; place-content: center; text-align: center; transform: rotate(-8deg); }
.stamp[data-m="1"], .stamp[data-m="2"] { --c: var(--good); }
.stamp[data-m="3"] { --c: var(--mid); }
.stamp[data-m="4"], .stamp[data-m="5"] { --c: var(--bad); }
.stamp .num { font-size: 92px; font-weight: 800; line-height: 0.85; font-variation-settings: "wdth" 75; }
.stamp .lbl { font-size: 15px; font-weight: 700; margin-top: 6px; }
.stamp.land { animation: land 0.55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes land { from { transform: rotate(-24deg) scale(1.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.scoreline { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 16px; color: var(--ink-2); }
.scoreline strong { color: var(--ink); font-size: 22px; }
.scoreline .up strong { color: var(--good); }

.ai-says { border-left: 4px solid var(--orange); padding: 4px 0 4px 22px; margin: 4px 0 18px; }
.ai-says q { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; line-height: 1.35; quotes: "„" "“"; display: block; max-width: 52ch; }
.ai-says .missing { font-size: 20px; font-weight: 600; color: var(--bad); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); }
.chip.no { background: #fde8eb; color: var(--bad); }

.cat { display: grid; grid-template-columns: 1fr 220px 40px; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cat:last-child { border-bottom: 0; }
.cat .n { font-weight: 700; font-size: 18px; }
.cat .s { font-size: 15px; color: var(--ink-2); }
.bar { height: 8px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c, var(--ink)); border-radius: 99px; }

.counts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.count { padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; }
.count.critical { background: #fde8eb; color: var(--bad); }
.count.important { background: #fff3db; color: #8a5d00; }
.count.minor { background: var(--paper); color: var(--ink-2); }

.issue { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 10px; }
.issue-head { display: flex; gap: 14px; align-items: flex-start; }
.sev { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--ink-2); }
.sev.critical { background: var(--bad); }
.sev.important { background: var(--mid); }
.sev.pass { background: var(--good); }
.issue h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.issue .detail { color: var(--ink-2); margin: 4px 0 0; font-size: 16px; word-break: break-word; }
.issue .gain { margin-left: auto; font-weight: 700; color: var(--good); white-space: nowrap; font-size: 15px; }
.issue details { margin-top: 10px; padding-left: 26px; }
.issue summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--brand); }
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; font-size: 16px; }
.explain h4 { margin: 0 0 4px; font-size: 15px; }
.explain p { margin: 0; color: var(--ink-2); }
.issue.featured { border: 2px solid var(--brand); }
.issue.featured .explain { padding-left: 26px; }
.flag { font-size: 13px; font-weight: 700; color: var(--bad); }
.locked-list { margin-top: 14px; }
.locked-row { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.locked-row .fake { filter: blur(6px); user-select: none; color: var(--ink-2); }
.cat-group { margin-top: 28px; }
.cat-group > h3 { font-size: 20px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.passed summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.passed .issue { border-style: dashed; padding: 12px 18px; }

.gate { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 32px 36px; margin: 22px 0; }
.gate h2 { font-size: clamp(26px, 3vw, 34px); max-width: 24ch; }
.gate .sub { color: #dbe3ff; margin: 10px 0 18px; max-width: 60ch; }
.gate ul { margin: 0 0 22px; padding-left: 20px; color: #eef2ff; }
.gate li { margin: 4px 0; }
.gate form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: start; }
.gate form.one { grid-template-columns: 1fr auto; max-width: 580px; }
.gate form.three { grid-template-columns: 1fr 1fr 1fr auto; }
.phone-hint { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #ffd9c9; }
.gate .field { border-color: #fff; font-size: 17px; padding: 13px 16px; }
.gate .field[aria-invalid="true"] { border-color: var(--orange); }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #dbe3ff; }
.check input { margin-top: 3px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.check a { color: #fff; }
.check.strong { font-size: 16px; color: #fff; font-weight: 600; }
.gate .form-error { color: #ffd2c2; grid-column: 1 / -1; margin: 0; }
.hp { position: absolute; left: -5000px; }

.prompt { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.prompt q { font-weight: 600; font-size: 18px; quotes: "„" "“"; }
.prompt p { margin: 0; color: var(--ink-2); font-size: 15px; grid-column: 1; }
.prompt .acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.plan-group { margin-bottom: 22px; }
.plan-group h3 { font-size: 21px; display: flex; justify-content: space-between; gap: 16px; }
.plan-group h3 span { color: var(--good); }
.plan-group > p { color: var(--ink-2); margin: 4px 0 10px; }
.plan-group ol { margin: 0; padding-left: 22px; }
.plan-group li { padding: 5px 0; }
.plan-group li span { color: var(--good); font-weight: 700; margin-left: 8px; font-size: 15px; }
.kit { margin-bottom: 26px; }
.kit h3 { font-size: 20px; margin-bottom: 4px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.kit p { color: var(--ink-2); margin: 0 0 10px; }
pre.code { background: var(--ink); color: #e8eef7; padding: 18px 20px; border-radius: 12px; overflow: auto; font-size: 13.5px; line-height: 1.5; max-height: 360px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; margin: 0; }
.tag { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff3db; color: #8a5d00; }
.tag.ok { background: #e1f4ec; color: var(--good); }
.tag.opt { background: var(--paper); color: var(--ink-2); }

.compare-form { display: flex; gap: 10px; max-width: 620px; margin-bottom: 18px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
table.cmp th, table.cmp td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); }
table.cmp th { font-size: 15px; color: var(--ink-2); font-weight: 600; }
table.cmp td.num { font-weight: 700; }
table.cmp .win { color: var(--good); }
table.cmp .lose { color: var(--bad); }
.cmp-wrap { overflow-x: auto; }

.cta-final { background: var(--brand-deep); color: #fff; border-radius: var(--radius-lg); padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-final h2 { font-size: clamp(26px, 3vw, 36px); max-width: 22ch; }
.cta-final p { margin: 8px 0 0; max-width: 52ch; color: #dbe3ff; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 600; z-index: 60; }
.demo-banner { background: #fff3db; color: #6b4a00; text-align: center; padding: 8px 16px; font-size: 14px; }

/* ── blog ──────────────────────────────────────────────────── */
.page-head { background: var(--brand); color: #fff; padding: 40px 0 64px; }
.page-head h1 { font-size: clamp(36px, 5.5vw, 64px); font-variation-settings: "wdth" 80; max-width: 20ch; }
.page-head p { color: #dfe6ff; font-size: 19px; max-width: 58ch; margin: 16px 0 0; }
.crumbs { font-size: 14px; color: #c3cff7; margin-bottom: 16px; }
.crumbs a { color: #fff; }
.blog-cat { margin-bottom: 48px; }
.blog-cat > h2 { font-size: 26px; margin-bottom: 16px; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; height: 100%; }
.post-list a:hover { border-color: var(--brand); }
.post-list strong { display: block; font-size: 18px; line-height: 1.3; }
.post-list span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 6px; }

.article { padding: 48px 0 72px; background: #fff; }
.article .answer { background: var(--brand-tint); border-left: 4px solid var(--orange); border-radius: 0 14px 14px 0; padding: 20px 24px; font-size: 19px; margin: 0 0 36px; }
.article .answer strong { display: block; font-size: 14px; color: var(--brand-deep); margin-bottom: 6px; }
.article h2 { font-size: 28px; margin: 40px 0 12px; }
.article h3 { font-size: 21px; margin: 28px 0 8px; }
.article p, .article li { font-size: 18px; line-height: 1.65; }
.article li { margin: 6px 0; }
.article .meta { color: var(--ink-2); font-size: 15px; margin-top: 18px; }
.sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.sources h2 { font-size: 18px; margin: 0 0 8px; }
.sources li { font-size: 15px; }
.cta-box { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 28px 30px; margin: 44px 0 0; }
.cta-box h2 { font-size: 26px; margin: 0 0 8px; color: #fff; }
.cta-box p { color: #dfe6ff; margin: 0 0 16px; font-size: 17px; }
.cta-box form { display: flex; gap: 10px; }
.cta-box .field { border-color: #fff; }
.related { margin-top: 44px; }
.related h2 { font-size: 22px; margin: 0 0 12px; }
.related ul { padding-left: 20px; }

.legal { padding: 48px 0 80px; background: #fff; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 17px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 16px; }
.legal td, .legal th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }

/* ── responzivita ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .sample { transform: none; }
  .cert { grid-template-columns: 1fr; gap: 20px; }
  .stamp { width: 132px; height: 132px; }
  .stamp .num { font-size: 72px; }
  .gate form, .gate form.one, .gate form.three { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .blog-teaser { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .hide-sm { display: none; }
  .nav .show-sm { display: inline; }
  .nav { gap: 14px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .scan-form, .compare-form, .cta-box form { flex-direction: column; }
  .card, .gate { padding: 24px 20px; }
  .cat { grid-template-columns: 1fr 34px; }
  .cat .bar { grid-column: 1 / -1; grid-row: 2; }
  .explain { grid-template-columns: 1fr; }
  .prompt { grid-template-columns: 1fr; }
  .prompt .acts { grid-row: auto; grid-column: 1; justify-content: flex-start; }
  .issue .gain { display: none; }
  .post-list, .blog-teaser, .foot-grid { grid-template-columns: 1fr; }
  .avatar { width: 34px; height: 34px; }
  .msg.user .bubble { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
#print-root { display: none; }
/* náhled PDF na obrazovce */
#print-root.open { display: block; position: fixed; inset: 0; z-index: 50; background: #4d566c; overflow: auto; padding: 0 12px 60px; color: #0f1a3a; font-size: 10pt; line-height: 1.45; }
#print-root.open .pp { background: #fff; width: min(210mm, 100%); margin: 0 auto 18px; padding: 14mm; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.ptools { position: sticky; top: 0; z-index: 2; display: flex; gap: 10px; justify-content: center; align-items: center; padding: 14px 0; margin-bottom: 6px; background: #4d566c; color: #fff; font-size: 15px; flex-wrap: wrap; }
.ptools .btn.alt { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.ptools .btn.alt:hover { color: #fff; border-color: #fff; }
  .pp h2 { font-size: 17pt; margin: 0 0 4pt; }
.pp h3 { font-size: 12pt; margin: 14pt 0 6pt; display: flex; align-items: center; gap: 6pt; break-after: avoid; }
.pp p { margin: 3pt 0; }
.pintro { color: #4a5677; margin-bottom: 8pt !important; }
.ph { display: flex; align-items: center; gap: 8pt; background: #1d3fd6; color: #fff; padding: 10pt 14pt; border-radius: 10pt; font-size: 13pt; }
.ph img { width: 26pt; height: 26pt; }
.pill { margin-left: auto; font-size: 9pt; font-weight: 700; background: #ff5a1f; color: #fff; padding: 3pt 9pt; border-radius: 99pt; }
.pill.ok { background: #fff; color: #10247f; }
.pk { color: #4a5677; margin: 18pt 0 0 !important; }
.cover h1 { font-size: 30pt; font-variation-settings: "wdth" 80; margin: 2pt 0 12pt; word-break: break-word; }
.phero { display: flex; gap: 20pt; align-items: center; margin-bottom: 14pt; }
.pstamp { --c: #b07800; width: 92pt; height: 92pt; flex: none; border-radius: 50%; border: 3.5pt solid var(--c); color: var(--c); display: grid; place-content: center; text-align: center; transform: rotate(-8deg); }
.pstamp[data-m="1"], .pstamp[data-m="2"] { --c: #12805a; } .pstamp[data-m="4"], .pstamp[data-m="5"] { --c: #cc2236; }
.pstamp span { font-size: 50pt; font-weight: 800; line-height: .85; font-variation-settings: "wdth" 75; }
.pstamp small { font-size: 9pt; font-weight: 700; }
.pverdict { font-size: 13pt; }
.pnums { color: #4a5677; } .pnums b { color: #0f1a3a; font-size: 13pt; } .g, .pg { color: #12805a; }
.psay { background: #ebf0ff; border-left: 3pt solid #ff5a1f; padding: 10pt 12pt; border-radius: 0 8pt 8pt 0; font-size: 12pt; font-weight: 600; margin: 6pt 0 16pt; }
.psay small { display: block; font-size: 8pt; font-weight: 700; color: #10247f; margin-bottom: 3pt; }
.pchips { font-size: 9pt; font-weight: 400; color: #4a5677; margin-top: 4pt; }
.pt { width: 100%; border-collapse: collapse; margin-top: 6pt; }
.pt td, .pt th { border-bottom: 0.5pt solid #dce2ee; padding: 5pt 4pt; text-align: left; vertical-align: middle; }
.pt small { color: #4a5677; } .pt .r { text-align: right; white-space: nowrap; }
.pbar { width: 32%; } .pbar i { display: block; height: 5pt; background: #1d3fd6; border-radius: 9pt; }
.pm { --c: #b07800; display: inline-grid; place-items: center; width: 17pt; height: 17pt; border-radius: 50%; border: 1.3pt solid var(--c); color: var(--c); font-weight: 800; font-size: 9pt; }
.pm[data-m="1"], .pm[data-m="2"] { --c: #12805a; } .pm[data-m="4"], .pm[data-m="5"] { --c: #cc2236; }
.pcounts { margin-top: 10pt !important; color: #4a5677; }
.pi { border: 0.5pt solid #dce2ee; border-radius: 6pt; padding: 7pt 9pt; margin-bottom: 6pt; break-inside: avoid; }
.pih { display: flex; gap: 6pt; align-items: center; } .pih .pg { margin-left: auto; font-weight: 700; }
.pdot { width: 7pt; height: 7pt; border-radius: 50%; background: #4a5677; flex: none; } .pdot.critical { background: #cc2236; } .pdot.important { background: #b07800; }
.pd { color: #4a5677; }
.pok { color: #12805a; } .plist { color: #4a5677; font-size: 9pt; }
.pp ol { margin: 0; padding-left: 16pt; } .pp li { margin: 2pt 0; }
.pp pre { background: #f3f5f8; border-radius: 6pt; padding: 8pt; font-size: 7.5pt; white-space: pre-wrap; word-break: break-word; break-inside: avoid; }
.plock { border: 1pt dashed #1d3fd6; border-radius: 8pt; padding: 10pt 12pt; margin-bottom: 10pt; break-inside: avoid; }
.plock b { display: block; font-size: 12pt; } .plock span { color: #4a5677; }
.plock b::before { content: "Zamčeno · "; color: #ff5a1f; }
.pfake { margin-top: 8pt; display: grid; gap: 5pt; } .pfake i { display: block; height: 7pt; background: #dce2ee; border-radius: 9pt; }
.pfake.code { background: #0f1a3a; padding: 8pt; border-radius: 6pt; } .pfake.code i { background: #3a4a6e; height: 5pt; }
.pcta { background: #1d3fd6; color: #fff; border-radius: 10pt; padding: 14pt 16pt; margin-top: 14pt; display: grid; gap: 3pt; }
.pcta b { font-size: 15pt; } .pcta .url { text-decoration: none; font-size: 13pt; font-weight: 700; color: #fff; background: #ff5a1f; justify-self: start; padding: 4pt 10pt; border-radius: 6pt; margin-top: 4pt; }
.pq li { font-size: 11pt; margin: 5pt 0; }
.pend { margin-top: 22pt; background: #10247f; color: #fff; border-radius: 10pt; padding: 14pt 16pt; display: grid; gap: 3pt; }
.pend b { font-size: 15pt; } .pend .by { color: #ff8a5c; font-weight: 700; margin-top: 4pt; }

@media print {
  @page { size: A4; margin: 14mm 14mm 16mm;
    @bottom-left { content: "AI vysvědčení · aivysvedceni.cz"; font-family: "Bricolage Grotesque", sans-serif; font-size: 8pt; color: #4a5677; }
    @bottom-right { content: counter(page) " / " counter(pages); font-family: "Bricolage Grotesque", sans-serif; font-size: 8pt; color: #4a5677; } }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body > *:not(#print-root) { display: none !important; }
  #print-root, #print-root.open { display: block; position: static; background: none; padding: 0; overflow: visible; font-size: 10pt; line-height: 1.45; color: #0f1a3a; }
  #print-root .pp, #print-root.open .pp { break-before: page; width: auto; margin: 0; padding: 0; box-shadow: none; }
  #print-root .pp:first-of-type { break-before: auto; }
  .ptools { display: none !important; }
}
