/* DKnetik s.r.o. – styly webu. Bez externích zdrojů, bez JavaScriptu. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #4338ca;
  --accent-strong: #3730a3;
  --accent-2: #0e7490;
  --accent-soft: #eef0ff;
  --on-accent: #ffffff;
  --glow-1: rgba(99, 102, 241, 0.16);
  --glow-2: rgba(6, 182, 212, 0.14);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #10172b;
    --surface: #131b31;
    --text: #e7eaf3;
    --muted: #a6b0c5;
    --border: #253050;
    --accent: #a5b4fc;
    --accent-strong: #c7d2fe;
    --accent-2: #67e8f9;
    --accent-soft: #1b2346;
    --on-accent: #0b1020;
    --glow-1: rgba(99, 102, 241, 0.22);
    --glow-2: rgba(6, 182, 212, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Hlavička */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span b { color: var(--accent); font-weight: 800; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 550;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px);
  background:
    radial-gradient(600px 320px at 85% 10%, var(--glow-2), transparent 70%),
    radial-gradient(700px 380px at 10% 0%, var(--glow-1), transparent 70%);
}
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 5px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
}
.hero h1 { max-width: 16ch; }
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* Sekce */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.kicker { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); margin: 12px 0 0; padding-left: 1.1em; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 26px; height: 26px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-weight: 800; font-size: 1.5rem; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps p { color: var(--muted); margin: 0; }

.about { display: grid; gap: 40px; grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 3px; }

.contact { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.contact .big-link { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 750; word-break: break-word; }
dl.company { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dl.company dt { color: var(--muted); }
dl.company dd { margin: 0; }
@media (max-width: 420px) {
  dl.company { grid-template-columns: 1fr; gap: 0; }
  dl.company dd { margin-bottom: 8px; }
}

/* Právní a textové stránky */
.page-head { padding-top: clamp(48px, 8vw, 80px); padding-bottom: 24px; }
.page-head p { color: var(--muted); }
.prose { padding-bottom: 80px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: 0.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose .note {
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin: 0 0 1.5em;
}
.prose .note p:last-child { margin-bottom: 0; }
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin: 8px 0 24px; }
.toc ol { margin: 6px 0 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-soft); font-weight: 650; }
.meta { color: var(--muted); font-size: 0.95rem; }

/* Patička */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 40px 0 32px; font-size: 0.93rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-grid p { margin: 0 0 6px; }
.footer-grid strong { color: var(--text); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Tisk */
@media print {
  .site-header, .skip-link, .actions { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; }
}
