/* Docházka 3000 - mobilní web */
:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #dc2626;
  --brand-dark: #b91c1c;
  --head: #0f172a;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Hlavička ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--head);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.brand:hover { text-decoration: none; }

.brand .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  flex: 0 0 auto;
}

.brand small {
  font-weight: 400;
  color: #cbd5e1;
  font-size: .72rem;
  margin-left: 2px;
}

.burger {
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 10px;
  width: 42px; height: 42px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.burger:active { background: rgba(255,255,255,.12); }

/* ===== Menu ===== */
.nav {
  display: none;
  background: #1e293b;
  border-top: 1px solid rgba(255,255,255,.08);
}

.nav.open { display: block; }

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  padding: 13px 18px;
  font-size: .98rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; }

.nav a.active { color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }

.nav .ico { width: 22px; text-align: center; flex: 0 0 auto; opacity: .9; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #7f1d1d 130%);
  color: #fff;
  padding: 40px 0 44px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: .2px;
}

.hero p.sub {
  margin: 0 0 22px;
  color: #cbd5e1;
  max-width: 640px;
  font-size: 1rem;
}

.hero .price-tag {
  display: inline-block;
  background: rgba(220,38,38,.18);
  border: 1px solid rgba(220,38,38,.55);
  color: #fecaca;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: .92rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .98rem;
  text-align: center;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ===== Sekce ===== */
section.block { padding: 30px 0; }

h2.sec-title {
  font-size: 1.4rem;
  margin: 0 0 6px;
}

p.sec-sub {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: .95rem;
}

/* ===== Karty ===== */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.card h3 { margin: 0 0 6px; font-size: 1.05rem; }

.card p.desc { color: var(--muted); font-size: .92rem; margin: 0 0 14px; flex: 1 1 auto; }

.card .price {
  font-size: 1.35rem;
  font-weight: 800;
}

.card .price small { font-size: .8rem; color: var(--muted); font-weight: 400; }

.badge {
  display: inline-block;
  background: #fee2e2;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 8px;
  align-self: flex-start;
}

.badge.blue { background: #dbeafe; color: #1d4ed8; }
.badge.green { background: #dcfce7; color: #15803d; }

.set-mini {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.set-mini img { height: 152px; width: auto; max-width: 100%; object-fit: contain; }

.hero-img { margin-top: 26px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.hero-img img { display: block; width: auto; max-width: 100%; height: auto; border-radius: 8px; }

.sec-img { margin: 6px 0 22px; text-align: center; }
.sec-img img { max-width: 420px; width: 100%; height: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }

.card-img { margin: -8px 0 14px; text-align: center; }
.card-img img { max-width: 200px; width: 100%; height: auto; background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 6px; }

/* ===== Terminál karty ===== */
.term-card { padding: 0; overflow: hidden; }

.photo-box {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  justify-content: center;
}

.term-photo {
  width: auto;
  max-width: 100%;
  height: auto;
}

.term-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }

.term-features { list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.term-features li { display: flex; gap: 7px; align-items: baseline; }
.term-features li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: 0 0 auto; }

.term-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.btn-buy {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 9px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.btn-buy:hover { background: var(--brand-dark); text-decoration: none; }

/* ===== Tabulka srovnání ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

table.cmp { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .82rem; }
table.cmp th, table.cmp td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.cmp thead th { background: var(--head); color: #fff; position: sticky; top: 0; }
table.cmp tbody th { text-align: left; font-weight: 600; background: #f8fafc; min-width: 130px; }
table.cmp .yes { color: var(--ok); font-weight: 700; font-size: 1.45em; line-height: 1; -webkit-text-stroke: .6px currentColor; }
table.cmp .no { color: #cbd5e1; }
table.cmp tbody tr:hover td, table.cmp tbody tr:hover th { background: #fef2f2; }

/* ===== Ceníková tabulka ===== */
.tbl { border-collapse: collapse; width: 100%; font-size: .85rem; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.tbl thead th { background: var(--head); color: #fff; white-space: nowrap; }
.tbl .price { white-space: nowrap; font-weight: 700; }

/* ===== Seznamy / FAQ ===== */
.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.faq-item h3 { margin: 0 0 8px; font-size: 1rem; }
.faq-item p, .faq-item li { color: #334155; font-size: .93rem; }
.faq-item ul { margin: 6px 0 0; padding-left: 20px; }

details.acc {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  overflow: hidden;
}

details.acc summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

details.acc summary::-webkit-details-marker { display: none; }

details.acc summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 700;
}

details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 18px 16px; color: #334155; font-size: .93rem; }

/* ===== Sety (řádky produktů) ===== */
.set-nav { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; }
.set-nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #f0f9ff; border: 1.5px dashed #38bdf8; border-radius: 12px; padding: 10px 12px; }
.set-nav-title { flex-basis: 100%; font-weight: 800; font-size: .9rem; margin-bottom: 2px; }
.set-nav-note { color: var(--muted); font-size: .85rem; }
.set-nav a {
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.set-nav a:hover { border-color: var(--brand); color: var(--brand); }

.set-block { margin-bottom: 26px; scroll-margin-top: 76px; }

.set-block > h3 {
  background: #fef9c3;
  border-left: 5px solid #eab308;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 13px 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.set-row .set-thumb { width: 130px; height: 130px; object-fit: contain; flex: 0 0 auto; background: #f8fafc; border-radius: 8px; }
.set-row .set-name { flex: 1 1 240px; font-size: .95rem; }
.set-row .set-price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.set-row .btn-buy { padding: 8px 13px; }

/* ===== Reference ===== */
.ref-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
.ref-item { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 14px; font-size: .9rem; }

/* ===== Novinky ===== */
.news-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.news-ver { font-weight: 800; }
.news-date { color: var(--muted); font-size: .85rem; margin-left: 8px; }
.news-item p { margin: 6px 0 0; color: #334155; font-size: .93rem; }

/* ===== Dokumentace ===== */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list li {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 13px 16px;
}
.doc-list a { display: block; color: var(--ink); font-size: .95rem; text-decoration: none; }
.doc-list a:hover { color: var(--brand); }
.doc-desc { margin: 6px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.doc-h { margin: 26px 0 12px; font-size: 1.05rem; color: var(--ink); border-left: 4px solid var(--brand); padding-left: 10px; }
.doc-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800; color: #fff; }
.doc-ico.pdf { background: var(--brand); }
.doc-ico.xls { background: var(--ok); }
.doc-ico.zip { background: #7c3aed; }

/* ===== Kontakt ===== */
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-row:last-child { margin-bottom: 0; }
.c-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #fee2e2;
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex: 0 0 auto;
}
.contact-row b { display: block; margin-bottom: 2px; }
.contact-row span, .contact-row a { color: #334155; font-size: .95rem; word-break: break-word; }

/* ===== Pata ===== */
footer {
  background: var(--head);
  color: #94a3b8;
  padding: 26px 0 34px;
  margin-top: 36px;
  font-size: .85rem;
}

footer a { color: #cbd5e1; }
.foot-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 18px; }
.foot-grid h4 { color: #fff; margin: 0 0 8px; font-size: .95rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 6px; }

/* ===== Různé ===== */
.note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .9rem;
  margin: 14px 0;
}

.center { text-align: center; }
.mt { margin-top: 18px; }
.muted { color: var(--muted); }

/* ===== Tablet / desktop ===== */
@media (min-width: 640px) {
  .grid-2, .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.3rem; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  section.block { padding: 42px 0; }
  .set-block { scroll-margin-top: 125px; }

  /* na širších displejích menu vždy viditelné, v normálním toku */
  .burger { display: none; }
  .nav { display: flex; flex-wrap: wrap; justify-content: center; background: #1e293b; border-top: 1px solid rgba(255,255,255,.08); }
  .topbar-inner { justify-content: center; }
  .nav a { padding: 11px 14px; font-size: .9rem; border-bottom: none; }
  .nav a.active { box-shadow: inset 0 -3px 0 var(--brand); }
}

/* ===== Software – ukázky programu ===== */
.sw-chunk {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.sw-chunk p { margin: 0 0 12px; color: #334155; font-size: .95rem; }
.sw-chunk img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 12px auto; background: #f8fafc; }

/* konverze legacy tabulek (např. GDPR záhlaví) */
.sw-chunk .ltr { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw-chunk .ltd { flex: 1 1 auto; min-width: 140px; }

/* nativní seznamy (AI sekce) */
.sw-chunk ul:not(.checklist) { margin: 8px 0 12px; padding-left: 20px; color: #334155; font-size: .95rem; }
.sw-chunk ul:not(.checklist) li { margin-bottom: 8px; }

/* checklisty (úvod, funkce GDPR) */
.checklist { list-style: none; margin: 0 0 6px; padding: 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 9px; color: #334155; font-size: .95rem; line-height: 1.5; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }

/* náhledy screenshotů */
.sw-chunk .shots-title { margin: 16px 0 4px; font-size: .95rem; color: var(--ink); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 8px; }
.shots a, .shots .shot-tile { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; display: block; color: var(--ink); }
.shots a:hover { text-decoration: none; border-color: var(--brand); }
.shots img { width: 100%; max-width: none; height: auto; border-radius: 8px; margin: 0 0 6px; background: #fff; display: block; }
.shots span { font-size: .78rem; color: var(--muted); display: block; line-height: 1.35; }
