/* ------------------------------------------------------------------
   Design tokeny převzaté z yardsolutions.cz
   Chceš-li přebarvit celý nástroj, stačí sáhnout do :root níž.
   ------------------------------------------------------------------ */

:root {
  --bg:            #f8f9ff;
  --surface:       #ffffff;
  --surface-soft:  #eef3fb;
  --text:          #121c2a;
  --muted:         #424751;
  --muted-2:       #6b7280;
  --primary:       #0c4f99;
  --primary-dark:  #093c76;
  --accent:        #40a9ff;
  --accent-soft:   rgba(12, 79, 153, 0.10);
  --border:        rgba(18, 28, 42, 0.08);

  --ok:            #0f7a52;
  --ok-soft:       rgba(15, 122, 82, 0.10);
  --warn:          #9a6200;
  --warn-soft:     rgba(154, 98, 0, 0.12);
  --danger:        #b3261e;
  --danger-soft:   rgba(179, 38, 30, 0.10);

  --brand-gradient: linear-gradient(135deg, #102460 0%, #1a52b8 35%, #2e78d8 65%, #4a9ae8 100%);

  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --shadow-sm:   0 1px 2px rgba(18, 28, 42, 0.04);
  --shadow:      0 1px 2px rgba(18, 28, 42, 0.04), 0 8px 24px rgba(18, 28, 42, 0.06);
  --shadow-lg:   0 2px 4px rgba(18, 28, 42, 0.04), 0 16px 40px rgba(18, 28, 42, 0.10);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Manrope', var(--font-body);

  --wrap: 1160px;
}

[data-theme='dark'] {
  --bg:           #0b1220;
  --surface:      #121c2e;
  --surface-soft: #1a2740;
  --text:         #eef2fa;
  --muted:        #a8b3c7;
  --muted-2:      #8b97ad;
  --primary:      #4a9ae8;
  --primary-dark: #2e78d8;
  --accent:       #6cc0ff;
  --accent-soft:  rgba(74, 154, 232, 0.16);
  --border:       rgba(255, 255, 255, 0.10);
  --ok:           #4ade9f;
  --ok-soft:      rgba(74, 222, 159, 0.12);
  --warn:         #f0b64d;
  --warn-soft:    rgba(240, 182, 77, 0.14);
  --danger:       #ff8b83;
  --danger-soft:  rgba(255, 139, 131, 0.12);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow:       0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg:    0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }

/* ------------------------------------------------------------ hlavička */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
}
.nav a:hover { background: var(--accent-soft); color: var(--primary); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--primary); }

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 15px;
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }

/* ------------------------------------------------------------ tlačítka */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-on-dark { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ------------------------------------------------------------ hero */

.hero {
  background: var(--brand-gradient);
  color: #fff;
  padding: 88px 0 96px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead {
  color: rgba(255,255,255,0.86);
  font-size: 1.125rem;
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(6px);
}
.hero-card label { color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 600; }
.hero-card .hint { color: rgba(255,255,255,0.65); font-size: 0.8rem; margin: 10px 0 0; }

/* ------------------------------------------------------------ sekce */

.section { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.icon-tile {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 20px;
}

.cta-band {
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 1.5rem; }

/* ------------------------------------------------------------ formuláře */

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }

input[type=text], input[type=email], input[type=search], input[type=file], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero-card input { background: rgba(255,255,255,0.95); color: #121c2a; border-color: transparent; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }

/* ------------------------------------------------------------ výsledek */

.verdict {
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.verdict .dot {
  width: 14px; height: 14px; border-radius: 50%;
  margin-top: 8px; flex: none;
}
.verdict h2 { margin-bottom: 4px; }
.verdict.ok     { border-left: 5px solid var(--ok); }
.verdict.warn   { border-left: 5px solid var(--warn); }
.verdict.danger { border-left: 5px solid var(--danger); }
.verdict.unknown{ border-left: 5px solid var(--muted-2); }
.verdict.ok .dot     { background: var(--ok); }
.verdict.warn .dot   { background: var(--warn); }
.verdict.danger .dot { background: var(--danger); }
.verdict.unknown .dot{ background: var(--muted-2); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.badge.ok      { background: var(--ok-soft);     color: var(--ok); }
.badge.warn    { background: var(--warn-soft);   color: var(--warn); }
.badge.danger  { background: var(--danger-soft); color: var(--danger); }
.badge.unknown { background: var(--surface-soft);color: var(--muted); }

.checklist { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.checklist .label { font-weight: 600; }
.checklist .detail { color: var(--muted); font-size: 0.9rem; }
.checklist .grow { flex: 1; }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 20px; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; }

/* ------------------------------------------------------------ tabulka */

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--surface-soft); }
tr:last-child td { border-bottom: none; }

.summary-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px; min-width: 130px;
}
.stat .n { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: 0.82rem; }

.notice {
  border-radius: var(--radius); padding: 14px 18px;
  border: 1px solid var(--border); background: var(--surface-soft);
  font-size: 0.9rem;
}
.notice.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.notice.err  { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.notice.ok   { background: var(--ok-soft); border-color: transparent; color: var(--ok); }

/* ------------------------------------------------------------ patička */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 72px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .copy { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.82rem; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .nav a { padding: 8px 10px; }
}
