:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #13201d;
  --ink-2: #33433f;
  --muted: #5e6d69;
  --line: #e1e6e2;
  --line-2: #cdd5d0;
  --accent: #0e6b63;
  --accent-ink: #0a4a45;
  --accent-soft: #e5f2ef;
  --gold: #a96a12;
  --gold-soft: #fbf1e1;
  --red: #b42318;
  --red-soft: #fcebe9;
  --blue: #2f5f9e;
  --blue-soft: #e9f0fa;
  --ok: #1f7a3d;
  --ok-soft: #e7f4eb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(19, 32, 29, .06), 0 4px 16px rgba(19, 32, 29, .05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.hidden { display: none !important; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand svg { width: 26px; height: 26px; }
.brand span b { color: var(--accent); }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav form { margin: 0; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 12px; } .nav a { font-size: .9rem; } }
@media (max-width: 420px) { .brand span { display: none; } }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { font-family: var(--mono); font-size: .85rem; }
@media (max-width: 640px) { .table th, .table td { padding: 8px 9px; font-size: .88rem; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 .95rem var(--font);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-sm { padding: 6px 12px; font-size: .86rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.btn-ok { border-color: #b7dcc3; color: var(--ok); }
.btn-ok:hover, .btn-ok.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-no { border-color: #efc5c0; color: var(--red); }
.btn-no:hover, .btn-no.on { background: var(--red); border-color: var(--red); color: #fff; }

/* landing */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, #dcefe9 0%, rgba(220, 239, 233, 0) 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; }
.hero-card .row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card q { display: block; font-size: .88rem; color: var(--muted); quotes: "„" "“"; margin-top: 3px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 44px 0 36px; } }
section.band { padding: 64px 0; }
section.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 6px 0 6px 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price { font-size: 2rem; font-weight: 750; letter-spacing: -0.02em; }
.price small { font-size: .95rem; font-weight: 500; }
.note { font-size: .88rem; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* forms */
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(14, 107, 99, .25); border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 16px; }
.field .hint { font-size: .84rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.check input { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .94rem; }
.alert-err { background: var(--red-soft); color: #7a1b13; border: 1px solid #f0c6c1; }
.alert-ok { background: var(--ok-soft); color: #164f2a; border: 1px solid #bfe0c9; }
.alert-info { background: var(--blue-soft); color: #1f3f69; border: 1px solid #c9d8ee; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 18px; background: #fbfcfb; }
.drop input[type=file] { width: 100%; }
.auth { max-width: 420px; margin: 56px auto; }

/* app */
.page-head { display: flex; align-items: flex-end; gap: 16px; justify-content: space-between; margin: 32px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.7rem; margin: 0; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfa; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.pill-nevykazano { background: var(--accent-soft); color: var(--accent-ink); }
.pill-nedolozeno { background: var(--gold-soft); color: #7a4b0b; }
.pill-pravidlo { background: var(--blue-soft); color: #23497b; }
.pill-hotovo { background: var(--ok-soft); color: var(--ok); }
.pill-chyba { background: var(--red-soft); color: var(--red); }
.pill-bezi, .pill-ceka, .pill-nahrava { background: var(--blue-soft); color: var(--blue); }
.pill-smazano { background: #eee; color: #666; }
.pill-potvrzeno { background: var(--ok-soft); color: var(--ok); }
.pill-zamitnuto { background: #f0f0f0; color: #666; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.stat { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-top: 4px solid var(--line-2); }
.stat:hover { border-color: var(--line-2); }
.stat.on { box-shadow: 0 0 0 2px var(--accent) inset; }
.stat .k { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.stat .v { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; margin: 2px 0; }
.stat .s { font-size: .86rem; color: var(--muted); }
.stat-nevykazano { border-top-color: var(--accent); }
.stat-nedolozeno { border-top-color: var(--gold); }
.stat-pravidlo { border-top-color: var(--blue); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.tabs { display: flex; gap: 4px; background: #eceeeb; padding: 3px; border-radius: 9px; }
.tabs a { padding: 6px 12px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-size: .9rem; }
.tabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-weight: 600; }
.toolbar .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.finding { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; }
.finding.t-nevykazano { border-left-color: var(--accent); }
.finding.t-nedolozeno { border-left-color: var(--gold); }
.finding.t-pravidlo { border-left-color: var(--blue); }
.finding.s-zamitnuto { opacity: .55; }
.finding.s-potvrzeno { background: #fbfdfb; }
.finding .head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.finding .code { font-family: var(--mono); font-weight: 700; }
.finding .name { font-weight: 600; }
.finding .meta { font-size: .86rem; color: var(--muted); }
.finding .amount { text-align: right; font-weight: 750; font-size: 1.15rem; white-space: nowrap; }
.finding .amount small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.finding blockquote { margin: 6px 0 2px; padding: 8px 12px; background: #f7f9f8; border-left: 3px solid var(--line-2); border-radius: 0 6px 6px 0; font-size: .92rem; color: var(--ink-2); }
.finding .why { font-size: .9rem; color: var(--ink-2); }
.finding .acts { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px; }
.finding .acts form { margin: 0; display: flex; gap: 8px; }
.finding .acts .spacer { flex: 1; }
.conf { display: inline-flex; gap: 2px; vertical-align: middle; }
.conf i { width: 6px; height: 10px; border-radius: 2px; background: var(--line-2); }
.conf i.f { background: var(--accent); }
@media (max-width: 640px) { .finding { grid-template-columns: 1fr; } .finding .amount { text-align: left; } }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: 85vh; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(19, 32, 29, .45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.dlg-body { padding: 18px; overflow: auto; }
.note-text { white-space: pre-wrap; font-family: var(--mono); font-size: .9rem; background: #fafbfa; border: 1px solid var(--line); border-radius: 8px; padding: 14px; line-height: 1.6; }
mark { background: #fde9a8; padding: 1px 0; border-radius: 2px; }
.reveal { font-weight: 600; }

progress { width: 100%; height: 12px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }

.demo-bar { background: var(--gold-soft); border-bottom: 1px solid #efd9b5; font-size: .9rem; padding: 8px 0; color: #6b450c; }
.demo-bar .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.demo-bar a.btn { margin-left: auto; }

footer.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 40px; margin-top: 64px; font-size: .9rem; color: var(--muted); }
footer.foot .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
footer.foot a { color: var(--muted); }
footer.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }

.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin: 32px auto; }
.prose h1 { font-size: 1.8rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.prose li { margin: 3px 0; }
@media (max-width: 640px) { .prose { padding: 18px; } }

@media print {
  .top, .foot, .toolbar, .acts, .no-print, .demo-bar { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .finding { break-inside: avoid; box-shadow: none; }
  .stat { break-inside: avoid; }
}
.pill-ai { background: #f1effa; color: #4b3c8f; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.mono { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.finding .acts form { flex-wrap: wrap; }
@media (max-width: 640px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .table.cards td { border: 0; padding: 4px 12px; }
  .table.cards td.num { text-align: left; }
  .nowrap { white-space: normal; overflow-wrap: anywhere; }
}
