:root {
    --bg: #f7f7fb;
    --surface: #ffffff;
    --text: #1c1b29;
    --muted: #615f75;
    --line: #ebeaf3;
    --line-strong: #d9d7e8;
    --accent: #4f3ff0;
    --accent-hover: #4031d6;
    --accent-soft: #efedff;
    --accent-ink: #3d2fd0;
    --on-accent: #ffffff;
    --side-text: #4a4860;
    --ok-bg: #e2f6ea;
    --ok-text: #14693f;
    --warn-bg: #fff3d6;
    --warn-text: #7a4f00;
    --bad-bg: #fde8e8;
    --bad-text: #a02323;
    --tag-bg: #f0effa;
    --tag-text: #4a4670;
    --info-text: #2e2599;
    --focus: #4f3ff0;
    --shadow: 0 1px 2px rgba(30, 25, 70, .05), 0 6px 18px rgba(30, 25, 70, .06);
    --radius: 16px;
    --radius-s: 11px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: Consolas, "SFMono-Regular", Menlo, monospace;
}

.site {
    --code-bg: #1c1b29;
    --code-fg: #e9e7ff;
    --pain-bg: #fff6f1;
    --pain-text: #8a3b12;
    --side: max(16px, calc((100% - 1040px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
a { color: var(--accent-ink); }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 12px; }

/* ---- hlavička ---- */
.nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 14px var(--side); background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.logo i { font-style: normal; color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; margin-left: auto; align-items: center; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--accent-ink); }
.links a.on { color: var(--accent-ink); font-weight: 700; }
.langs, .foot-langs { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; }
.langs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.langs a[aria-current="true"] { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-langs a[aria-current="true"] { color: var(--text); font-weight: 700; }

.btn { display: inline-block; border-radius: var(--radius-s); padding: 8px 16px; font-weight: 700; font-size: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.pri:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- oddíly ---- */
main { display: block; }
.sec { padding: 28px var(--side); display: flex; flex-direction: column; gap: 14px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec h2 { font-size: 21px; letter-spacing: -.01em; }
.sub { color: var(--muted); max-width: 70ch; }
.hero { padding: 40px var(--side) 32px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.hero h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.02em; }
.hero p { color: var(--muted); font-size: 16.5px; max-width: 52ch; }
.hero .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sec > h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; max-width: 24ch; }
.pill { border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600; align-self: flex-start; }
.pill.wait { background: var(--warn-bg); color: var(--warn-text); }

/* ilustrace obrazovky pořadatele */
.shot { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; font-size: 14px; min-width: 0; }
.shot .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.shot .row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.shot figcaption { color: var(--muted); font-size: 12.5px; }
.ok, .wt { border-radius: 99px; padding: 1px 10px; font-size: 12.5px; font-weight: 600; text-align: center; }
.ok { background: var(--ok-bg); color: var(--ok-text); }
.wt { background: var(--warn-bg); color: var(--warn-text); }

/* karty */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 3px rgba(28, 27, 41, .06); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card h3 { font-size: 15.5px; }
.card p { color: var(--muted); font-size: 14px; }
.card.pain { background: var(--pain-bg); box-shadow: none; }
.card.pain h3 { color: var(--pain-text); }
.steps { counter-reset: step; }
.steps > .card::before { counter-increment: step; content: counter(step); width: 28px; height: 28px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; }
.steps.one { grid-template-columns: minmax(0, 1fr); }

/* otázky, stav, ukázka */
.faq { display: flex; flex-direction: column; max-width: 84ch; }
.qa { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.qa:last-child { border-bottom: 0; }
.qa h3 { font-size: 15.5px; }
.qa p { color: var(--muted); }
.state { background: var(--accent-soft); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--info-text); max-width: 84ch; }
.state ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.sample { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sample .btn { align-self: flex-start; }
.note { color: var(--muted); font-size: 13.5px; }
pre { margin: 0; background: var(--code-bg); color: var(--code-fg); border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.5; overflow-x: auto; max-width: 100%; }

/* ---- popis rozhraní: tabulky operací a oznámení ---- */
.grp { font-size: 18px; margin-top: 10px; }
.tbl { background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(28, 27, 41, .06); overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.m { white-space: nowrap; width: 1%; }
td.m b { display: inline-block; min-width: 58px; text-align: center; border-radius: 6px; padding: 1px 8px; font-size: 12px; background: var(--tag-bg); color: var(--tag-text); }
td.p { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
td.p code { font-family: inherit; }
td.d { color: var(--text); min-width: 180px; }
#back { padding-top: 6px; }

/* ---- patička ---- */
.foot { padding: 18px var(--side); background: var(--surface); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.foot b { color: var(--text); }
.foot a { color: var(--accent-ink); }

@media (max-width: 720px) {
    .hero { grid-template-columns: minmax(0, 1fr); padding-top: 26px; }
    .hero h1 { font-size: 27px; }
    .sec > h1 { font-size: 24px; }
    .tbl table { min-width: 540px; }
    .links { margin-left: 0; width: 100%; }
}
