/* Písma hostovaná lokálně (IBM Plex, OFL) */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-sans-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-600.woff2) format('woff2'); }
/* Energy Infra Scan — technický, střídmý web.
   Layout: 1200px kontejner, jemné linky místo stínů, mono štítky s jednotkami, zelená jen jako akcent z loga. */
:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #eef0ec;
  --ink: #161a18;
  --muted: #59625d;
  --faint: #8a928d;
  --line: #dde1dc;
  --line-strong: #c7cdc6;
  --accent: #3f7a26;
  --accent-ink: #ffffff;
  --accent-soft: #e6efdc;
  --accent-bright: #8bbe3e;
  --logo-ink: #3c7425;
  --grid: rgba(22, 26, 24, 0.05);
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1210; --surface: #161a17; --surface-2: #1c211d; --ink: #e6e9e5; --muted: #a0a8a2; --faint: #75807a;
    --line: #2a302b; --line-strong: #3a423c; --accent: #8bbe3e; --accent-ink: #0f1210; --accent-soft: #1f2a17;
    --accent-bright: #a6d35a; --logo-ink: #d9e6cf; --grid: rgba(230, 233, 229, 0.045); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1210; --surface: #161a17; --surface-2: #1c211d; --ink: #e6e9e5; --muted: #a0a8a2; --faint: #75807a;
  --line: #2a302b; --line-strong: #3a423c; --accent: #8bbe3e; --accent-ink: #0f1210; --accent-soft: #1f2a17;
  --accent-bright: #a6d35a; --logo-ink: #d9e6cf; --grid: rgba(230, 233, 229, 0.045); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; }
p { margin: 0; }
.mono { font-family: var(--font-mono); }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 30px; height: 36px; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 1.02rem; line-height: 1.05; }
.brand-name span { display: block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav summary {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 8px 12px; border-radius: var(--radius);
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.nav summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav summary:hover { background: var(--surface-2); }
.nav a[aria-current="page"], .nav summary.current { color: var(--accent); }
.nav details { position: relative; }
.nav summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; width: 340px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px; display: grid; gap: 2px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.dropdown a:hover { background: var(--surface-2); }
.dropdown a small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin-top: 2px; }
.dropdown .all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: 500 0.95rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn .arr { font-family: var(--font-mono); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); width: 44px; height: 40px; color: var(--ink); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; } .menu-toggle span::after { position: absolute; top: 6px; }
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav > a, .nav summary { padding: 12px 8px; }
  .dropdown { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px 8px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- sections ---------- */
.section { padding-block: 88px; border-top: 1px solid var(--line); }
.section.tight { padding-block: 64px; }
.section.alt { background: var(--surface); }
@media (max-width: 720px) { .section { padding-block: 60px; } .section.tight { padding-block: 44px; } }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.section-head p { color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.prose p + p { margin-top: 14px; }
.prose { max-width: 68ch; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 72px 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 500; }
.hero-visual { position: relative; padding-bottom: 56px; }
.frame { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); overflow: hidden; box-shadow: 0 24px 60px -24px rgba(16, 24, 18, 0.28); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.frame-bar em { margin-left: 8px; font-style: normal; }
.frame-bar .live { margin-left: auto; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.frame-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 25%, transparent); }
.hero-inset { position: absolute; right: -12px; bottom: 0; width: 46%; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #111; box-shadow: 0 20px 40px -16px rgba(0,0,0,.45); }
.hero-inset figcaption { position: absolute; left: 8px; bottom: 8px; font-family: var(--font-mono); font-size: 0.68rem; color: #e8efe2; background: rgba(10,14,11,.72); padding: 3px 7px; border-radius: 4px; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero-inset { right: 0; } }
@media (max-width: 520px) { .hero { padding-block: 44px 56px; } .hero-inset { width: 58%; } }

.page-hero { padding-block: 64px 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent 90%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 22ch; margin-bottom: 18px; }
.page-hero .lead { margin-bottom: 28px; }
.crumbs { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.tier-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; color: var(--muted); background: var(--surface); }
.tier-tag b { color: var(--accent); font-weight: 600; }

/* ---------- obligation band ---------- */
.obligation { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.thresholds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.threshold { padding: 22px 20px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.threshold:first-child { border-left: 0; }
.threshold .lim { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }
.threshold .val { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.threshold .val small { font-size: 0.9rem; color: var(--muted); font-weight: 500; margin-left: 2px; }
.threshold .mwh { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); }
.threshold p { font-size: 0.93rem; color: var(--muted); }
.threshold.hl { background: var(--accent-soft); }
.threshold .duty { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.obligation .note { font-size: 0.82rem; color: var(--faint); margin-top: 14px; font-family: var(--font-mono); }
@media (max-width: 900px) { .obligation { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) { .thresholds { grid-template-columns: 1fr; } .threshold { border-left: 0; border-top: 1px solid var(--line); } .threshold:first-child { border-top: 0; } }

/* ---------- cards / services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--line); gap: 1px; }
.service { background: var(--surface); padding: 26px 24px 24px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; text-decoration: none; color: var(--ink); min-height: 230px; transition: background .15s; }
.service:hover { background: var(--surface-2); text-decoration: none; }
.service .kind { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.service p { color: var(--muted); font-size: 0.95rem; }
.service .go { font-size: 0.9rem; color: var(--accent); font-weight: 500; display: flex; gap: 8px; align-items: center; }
.service .go::after { content: "→"; font-family: var(--font-mono); transition: transform .15s; }
.service:hover .go::after { transform: translateX(3px); }
.levels { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.levels i { width: 14px; height: 6px; border-radius: 1px; background: var(--line-strong); }
.levels i.on { background: var(--accent); }
@media (max-width: 920px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); counter-reset: s; }
.steps li { counter-increment: s; padding: 20px 16px 0 0; position: relative; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); }
.steps h3 { font-size: 1rem; }
.steps p { font-size: 0.88rem; color: var(--muted); }
.steps.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps, .steps.cols-5, .steps.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } .steps.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 600px) {
  .steps, .steps.cols-4, .steps.cols-5, .steps.cols-6 { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); row-gap: 0; }
  .steps li { padding: 0 0 22px 22px; } .steps li::after { top: 6px; left: -4px; }
}

/* ---------- platform tabs ---------- */
.platform { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.tablist { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 26px; }
.tab { all: unset; cursor: pointer; display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.tab .ix { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); padding-top: 3px; }
.tab b { font-weight: 500; }
.tab small { grid-column: 2; color: var(--muted); font-size: 0.88rem; display: none; }
.tab[aria-selected="true"] { background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); padding-left: 12px; }
.tab[aria-selected="true"] small { display: block; }
.tab[aria-selected="true"] .ix { color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); }
.shot-btn { all: unset; cursor: zoom-in; display: block; width: 100%; }
.shot-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.features li { padding-left: 22px; position: relative; color: var(--ink); font-size: 0.97rem; }
.features li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 1.5px; background: var(--accent); }
.features li b { font-weight: 600; }
@media (max-width: 980px) { .platform { grid-template-columns: 1fr; } }

/* ---------- split / media ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.wide-media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.media-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.media-left > .media { order: -1; }
.split h2 { margin-bottom: 16px; }
.split .lead, .split p.muted { margin-bottom: 18px; }
@media (max-width: 920px) { .split, .split.wide-media, .split.media-left { grid-template-columns: 1fr; gap: 32px; } .split.media-left > .media { order: 0; } }
.caption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); margin-top: 10px; }
.muted { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

.scan-media { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); background: #0d100e; }
.scan-media video, .scan-media img { width: 100%; display: block; }
.scan-media .tagline { position: absolute; left: 12px; top: 12px; font-family: var(--font-mono); font-size: 0.7rem; color: #dfe9d6; background: rgba(10,14,11,.7); padding: 4px 8px; border-radius: 4px; letter-spacing: .06em; }

/* ---------- lists / grids ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why > div { border-top: 1px solid var(--line-strong); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.why .k { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.why p { color: var(--muted); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 24px; } }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.checklist li b { display: block; font-weight: 600; margin-bottom: 2px; }
.checklist li span { color: var(--muted); font-size: 0.95rem; }
.checklist.one { grid-template-columns: 1fr; }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 0.78rem; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 500; }
td.c, th.c { text-align: center; }
.yes, .no, .opt { display: inline-block; font-family: var(--font-mono); font-size: 0.8rem; }
.yes { color: var(--accent); } .yes::before { content: "●"; margin-right: 6px; font-size: .7em; vertical-align: 1px; }
.no { color: var(--faint); } .no::before { content: "—"; }
.opt { color: var(--muted); }
.compare th.c.tier { color: var(--ink); font-size: 0.78rem; }
.compare th.c.tier a { color: inherit; text-decoration: none; }
.spec th { width: 30%; color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .compare { min-width: 600px; } .spec th { width: 40%; } }

/* ---------- reference ---------- */
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.case .body { padding: 34px 32px; display: grid; gap: 14px; align-content: start; }
.case .who { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: .04em; }
.case .scope { display: flex; flex-wrap: wrap; gap: 6px; }
.case .media { border-left: 1px solid var(--line); background: #0d100e; display: flex; }
.case .media img { object-fit: cover; width: 100%; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case .media { border-left: 0; border-top: 1px solid var(--line); } }
.refs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.refs > div { background: var(--surface); padding: 22px 20px; display: grid; gap: 8px; align-content: start; }
.refs .k { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.refs p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 900px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .refs { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 72ch; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--bg); padding-block: 72px; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta h2 { color: var(--bg); max-width: 26ch; }
.cta p { color: color-mix(in srgb, var(--bg) 72%, transparent); margin-top: 12px; max-width: 58ch; }
.cta .btn { background: var(--accent-bright); border-color: var(--accent-bright); color: #10140f; }
.cta .btn.ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- forms / calculator ---------- */
.panel { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 28px; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .panel { padding: 20px; } }
label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; }
label .opt-l { color: var(--faint); font-weight: 400; }
input, select, textarea {
  font: 400 1rem/1.4 var(--font-sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 11px 12px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.form-note { font-size: 0.9rem; border-left: 2px solid var(--accent); padding: 10px 14px; background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.calc .in { padding: 28px; display: grid; gap: 18px; align-content: start; border-right: 1px solid var(--line); }
.calc .out { padding: 28px; display: grid; gap: 16px; align-content: start; background: var(--surface-2); }
.unit-input { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.meter { position: relative; height: 40px; margin-top: 6px; }
.meter .track { position: absolute; left: 0; right: 0; top: 12px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--line) 0 33.33%, color-mix(in srgb, var(--accent) 30%, var(--line)) 33.33% 66.66%, color-mix(in srgb, var(--accent) 60%, var(--line)) 66.66% 100%); }
.meter .tick { position: absolute; top: 4px; width: 1px; height: 24px; background: var(--ink); opacity: .4; }
.meter .tick span { position: absolute; top: 26px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.meter .pin { position: absolute; top: 6px; width: 4px; height: 20px; border-radius: 2px; background: var(--ink); transform: translateX(-2px); transition: left .25s; }
.result-k { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.result-title { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.015em; }
.result-conv { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.calc .out .btn { justify-self: start; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } .calc .in { border-right: 0; border-bottom: 1px solid var(--line); } .calc .in, .calc .out { padding: 22px; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.contact-card dd { margin: 2px 0 0; }
.copy { all: unset; cursor: pointer; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); margin-left: 8px; border-bottom: 1px dotted currentColor; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; background: var(--surface); font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.site-footer h3 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; } .site-footer a:hover { color: var(--accent); }
.site-footer .logo-full { width: 120px; margin-bottom: 14px; }
.site-footer .fine { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--faint); font-family: var(--font-mono); font-size: 0.74rem; }
.site-footer p { color: var(--muted); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); width: 100%; }
dialog.lightbox::backdrop { background: rgba(8, 10, 9, .82); }
dialog.lightbox img { width: 100%; border-radius: 6px; }
dialog.lightbox .close { position: absolute; top: 8px; right: 8px; background: rgba(10,14,11,.8); color: #fff; border: 0; border-radius: 4px; padding: 6px 10px; font: 500 0.85rem var(--font-mono); cursor: pointer; }
dialog.lightbox p { color: #dfe5dc; font-family: var(--font-mono); font-size: .78rem; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* produktové stránky: text + snímek vedle sebe */
.page-hero.with-media .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.page-hero.with-media h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
@media (max-width: 980px) { .page-hero.with-media .wrap { grid-template-columns: 1fr; gap: 36px; } }
.page-hero .hero-actions:empty { display: none; }
.skip:focus { left: 16px !important; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.panel h3 + p { margin-top: 6px; }
@media (max-width: 640px) { .panel[style*="grid-template-columns"] { grid-template-columns: 1fr !important; } }
.hero h1 { font-size: clamp(1.95rem, 3.2vw, 2.55rem); }
.hero .wrap { grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }
.site-footer svg.logo-full { height: auto; display: block; }

/* Co získáte: vedení × technici */
.audience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.aud { padding: 32px 32px 28px; display: grid; gap: 18px; align-content: start; }
.aud + .aud { border-left: 1px solid var(--line); }
.aud.lead-aud { background: var(--surface); }
.aud:not(.lead-aud) { background: var(--surface-2); }
.aud-k { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.aud dl { margin: 0; display: grid; gap: 0; }
.aud dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.aud dt { font-weight: 600; margin-bottom: 4px; }
.aud dd { margin: 0; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } .aud + .aud { border-left: 0; border-top: 1px solid var(--line); } .aud { padding: 24px 20px; } }
.zebra > section.section:nth-of-type(even) { background: var(--surface); }

/* Demo přístupy */
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--line); }
.demo { background: var(--surface); padding: 30px 28px 26px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; color: var(--ink); text-decoration: none; transition: background .15s; }
.demo:hover { background: var(--surface-2); text-decoration: none; }
.demo .kind { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.demo p { color: var(--muted); font-size: 0.95rem; }
.demo .go { font-size: 0.9rem; color: var(--accent); font-weight: 500; display: flex; gap: 8px; align-items: center; }
.demo .go::after { content: "↗"; font-family: var(--font-mono); transition: transform .15s; }
.demo:hover .go::after { transform: translate(2px, -2px); }
@media (max-width: 720px) { .demos { grid-template-columns: minmax(0, 1fr); } }

/* Ukazatel posunu stránky */
.scroll-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 100%; z-index: 70; background: transparent; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; background: var(--accent-bright); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* ---------- mobil / tablet ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, select, input, textarea { touch-action: manipulation; }
body { overflow-wrap: break-word; }
.menu-toggle { width: 48px; height: 44px; }
.cf-turnstile { max-width: 100%; min-height: 65px; }
@media (max-width: 920px) {
  .nav { max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .nav > a, .nav summary { min-height: 44px; display: flex; align-items: center; }
  .dropdown a { padding-block: 12px; }
}
/* touch zařízení: bez „přilepených“ hover stavů, větší cíle */
@media (hover: none) {
  .btn:hover { filter: none; }
  .service:hover, .demo:hover { background: var(--surface); }
  .service:hover .go::after, .demo:hover .go::after { transform: none; }
  .site-footer a { display: inline-block; padding-block: 5px; }
  .tab { padding-block: 16px; }
}
/* lightbox: na telefonu se snímek dá posouvat do stran a je čitelný */
dialog.lightbox { max-height: 96dvh; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
dialog.lightbox .close { position: sticky; top: 8px; float: right; margin: 8px 8px -44px 0; min-height: 44px; min-width: 44px; z-index: 2; }
@media (max-width: 720px) { dialog.lightbox img { width: auto; max-width: none; min-width: 900px; } dialog.lightbox p { position: sticky; left: 0; padding-inline: 8px; } }
/* iPhone/iPad na šířku: respektovat výřez */
@supports (padding: max(0px)) { .site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); } }

/* Přepínač jazyků */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.lang-switch a { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 6px 7px; border-radius: 6px; color: var(--muted, inherit); text-decoration: none; }
.lang-switch a:hover { background: var(--surface-2); }
.lang-switch a[aria-current="true"] { color: var(--accent); background: var(--surface-2); }
@media (max-width: 920px) {
  .lang-switch { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .lang-switch a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; }
}
/* Japonština: systémová písma s podporou CJK, bez řezání slov */
html[lang="ja"] body { font-family: "IBM Plex Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; line-break: strict; word-break: normal; overflow-wrap: break-word; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] p, html[lang="ja"] li, html[lang="ja"] dd { word-break: auto-phrase; text-wrap: pretty; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0; line-height: 1.35; }
