:root {
  --brand: #01427d;
  --brand-dark: #01315e;
  --brand-bright: #0a5fd0;
  --brand-soft: #e6eef8;
  --accent: #22a06b;
  --accent-soft: #e3f5ec;
  --danger: #c23a3a;
  --danger-soft: #fbeaea;
  --warn-soft: #fff6e0;
  --ink: #0b1a2e;
  --muted: #5f6787;
  --line: #e2e6f0;
  --bg: #f4f6fb;
  --card: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 70, .05), 0 6px 24px rgba(20, 30, 70, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55;
}
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }
.medium { max-width: 820px; }

/* ---------- hlavička ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { height: 52px; width: auto; display: block; }
.brand-sub { font-size: .82rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 16px; max-width: 220px; line-height: 1.35; }
.nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a.active { background: var(--brand-soft); color: var(--brand); }
main { padding: 36px 0 64px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .85rem; background: #fff; }
.site-footer .container { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* ---------- prvky ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card + .card { margin-top: 20px; }
.grid > .card { margin-top: 0; }
.grid + .card, .card + .grid { margin-top: 20px; }
.card-tight { padding: 18px 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 22px; font: inherit; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--brand); border: 1px solid #c9d3ee; }
.btn-secondary:hover { background: var(--brand-soft); }
.btn-success { background: var(--accent); }
.btn-success:hover { background: #1b8a5b; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #efc5c5; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem; border: 1px solid transparent; }
.flash-success { background: var(--accent-soft); border-color: #bfe6d2; }
.flash-error { background: var(--danger-soft); border-color: #f0c9c9; }
.flash-info { background: var(--brand-soft); border-color: #cbd7f5; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef0f6; color: var(--muted); white-space: nowrap; }
.badge-active, .badge-finished, .badge-ok, .badge-ready { background: var(--accent-soft); color: #17784f; }
.badge-draft, .badge-processing, .badge-pending, .badge-test, .badge-presentation, .badge-presentation_done, .badge-registered { background: var(--warn-soft); color: #8a5a00; }
.badge-inactive, .badge-suspended, .badge-failed, .badge-expired, .badge-bad { background: var(--danger-soft); color: var(--danger); }

/* ---------- formuláre ---------- */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.req::after { content: " *"; color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=url], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfd5e4; border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(1, 66, 125, .18); border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.error-text { color: var(--danger); font-size: .85rem; margin-top: 4px; }
.has-error input, .has-error select { border-color: var(--danger); }
.hint { color: var(--muted); font-size: .84rem; margin-top: 4px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 20px; background: #fff; }
legend { font-weight: 800; padding: 0 8px; }

/* ---------- tabuľky ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* ---------- štatistiky ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.8rem; color: var(--brand); }
.stat span { color: var(--muted); font-size: .88rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--brand); border-color: var(--brand); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, monospace; font-size: .9rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.thumbs figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.thumbs img { display: block; width: 100%; }
.thumbs figcaption { font-size: .8rem; color: var(--muted); padding: 6px 10px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0 6px 28px; position: relative; }
.checklist li::before { content: "○"; position: absolute; left: 4px; color: var(--muted); }
.checklist li.done::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- verejný web ---------- */
.hero { padding: 40px 0 20px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; }
.hero .lead { font-size: 1.15rem; color: var(--muted); }
.hero-card { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-bright) 100%); color: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.hero-card ol { padding-left: 20px; margin: 0; }
.hero-card li { margin: 8px 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.feature h3 { color: var(--brand); }

/* ---------- tok zamestnanca ---------- */
.phase-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.phase-head h1 { margin: 0; }
.counter { font-weight: 700; color: var(--muted); white-space: nowrap; }
.progress { height: 7px; background: #dfe4ef; border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.progress span { display: block; height: 100%; background: var(--brand-bright); border-radius: 999px; }
.slide-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.slide-frame img { display: block; width: 100%; height: auto; border-radius: 6px; background: #eef1f7; }
.slide-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.slide-foot p { margin: 0; color: var(--muted); font-size: .92rem; }
.done-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 2.2rem; margin: 18px auto; }
.facts { display: flex; justify-content: center; gap: 56px; margin: 26px 0; flex-wrap: wrap; }
.facts b { display: block; font-size: 1.7rem; color: var(--brand-dark); text-align: center; }
.facts span { color: var(--muted); font-size: .85rem; }
.note { background: var(--bg); border-radius: 10px; padding: 14px 18px; color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--brand-dark); background: var(--brand-soft); padding: 6px 12px; border-radius: 8px; }
.timer.low { background: var(--danger-soft); color: var(--danger); }
.question-text { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }
.options { display: grid; gap: 12px; margin-bottom: 24px; }
.option { display: flex; align-items: center; gap: 14px; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 500; background: #fff; margin: 0; }
.option:hover { border-color: #b8c5ea; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .letter { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.option:has(input:checked) { border-color: var(--brand); background: #f5f8ff; }
.option:has(input:checked) .letter { background: var(--brand); color: #fff; }
.option:has(input:focus-visible) { outline: 3px solid rgba(1, 66, 125, .3); }
.result-big { font-size: 3rem; font-weight: 800; margin: 10px 0; }
.result-ok { color: var(--accent); }
.result-bad { color: var(--danger); }
.answer-ok { color: #17784f; font-weight: 700; }
.answer-bad { color: var(--danger); font-weight: 700; }

@media (max-width: 860px) {
  .hero, .features, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 2rem; }
  .card { padding: 20px; }
  .facts { gap: 28px; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .phase-head { flex-direction: column; align-items: flex-start; }
  .slide-foot .actions, .slide-foot .btn { width: 100%; }
  .nav { margin-left: -10px; gap: 0; }
  .nav a { padding: 6px 10px; }
  .site-header .container { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 42px; }
  .brand-sub { display: none; }
  .hide-sm { display: none; }
  th, td { padding: 10px 6px; }
}

/* ---------- lišta súhlasu s cookies ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(10, 25, 50, .18);
  padding: 18px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .9rem; color: var(--muted); flex: 1 1 320px; }

/* ---------- časté otázky ---------- */
.faq { margin-top: 48px; max-width: 820px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 0 0 16px; }

/* ---------- päta verejného webu ---------- */
.footer-grid { display: grid !important; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer-grid ul { list-style: none; padding: 0; margin: 8px 0 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid strong { color: var(--ink); }
.footer-grid p { margin-top: 8px; }

/* ---------- stránky typov školení ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.topic-hero { max-width: 820px; margin-bottom: 32px; }
.topic-hero .lead { font-size: 1.12rem; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.law { border-left: 4px solid var(--brand-bright); background: var(--brand-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-bottom: 12px; }
.law p { margin: 4px 0 0; color: var(--ink); }
.sample .option { cursor: default; padding: 10px 14px; }
.sample .option.correct { border-color: var(--accent); background: var(--accent-soft); }
.cta { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-bright) 100%); color: #fff; border-radius: 20px; padding: 32px; margin-top: 40px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #dbe7fb; }
.cta .btn { background: #fff; color: var(--brand); }
.topic-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.topic-card:hover { border-color: #b8c8e6; transform: translateY(-2px); }
.topic-card h3 { color: var(--brand); }
.topic-card p { color: var(--muted); margin: 0; font-size: .93rem; }
.note-small { font-size: .82rem; color: var(--muted); margin-top: 24px; }
@media (max-width: 860px) {
  .footer-grid, .topic-grid, .topic-cards { grid-template-columns: 1fr; }
}
.topic-cards > .card { margin-top: 0; }
