/* ==========================================================================
   MHSW.net — styly

   Střízlivá varianta: jedna akcentní barva, žádné přechody, žádná záře na
   pozadí, malé rádiusy, ploché plochy oddělené linkou. Původní barevnější
   verze leží v backup/style.css — vrátí se prostým přepsáním tohoto souboru.

   1. Tokeny  2. Reset  3. Layout  4. Komponenty  5. Sekce  6. Responzivita
   ========================================================================== */

/* ------------------------------ 1. Tokeny ------------------------------- */
:root {
  /* jediná akcentní barva; tmavá je pro tlačítka a plochy s výplní */
  --accent:    #1f4ed8;
  --accent-d:  #1a41b3;
  --ink:       #16181d;
  --ink-2:     #2b2f38;

  --bg:        #ffffff;
  --bg-soft:   #f7f7f9;
  --surface:   #fbfbfc;
  --surface-2: #f1f1f4;
  --border:    #e3e3e8;
  --border-2:  #cfcfd6;
  --text:      #16181d;
  --text-2:    #52565f;
  --text-3:    #858992;
  --shadow:    0 1px 2px rgba(20, 22, 28, .05);
  --shadow-2:  0 4px 16px rgba(20, 22, 28, .08);
  /* screenshot jako okno plující nad stránkou: měkký ambientní stín + směrový pod oknem */
  --shadow-shot:   0 1px 2px rgba(20, 22, 28, .07), 0 12px 32px -10px rgba(20, 22, 28, .28);
  --shadow-shot-h: 0 2px 4px rgba(20, 22, 28, .09), 0 20px 44px -12px rgba(20, 22, 28, .34);
  /* zvýraznění tlačítek pod kurzorem: jen záře, žádný posun ani změna velikosti,
     aby se rozvržení stránky nehnulo ani o pixel */
  --glow-accent:  0 0 0 3px rgba(31, 78, 216, .20), 0 0 16px rgba(31, 78, 216, .45);
  --glow-neutral: 0 0 0 3px rgba(20, 22, 28, .06), 0 0 14px rgba(20, 22, 28, .20);

  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;

  --wrap: 1080px;
  --radius: 8px;
  --radius-lg: 10px;
  --header-h: 62px;

  /* mřížka na pozadí — tmavá varianta webu přepíše jen tenhle token */
  --grid-line: var(--border);
  --grid-size: 64px;
}

/* Až bude web mít tmavou variantu, stačí přebarvit linky mřížky. */
:root[data-theme="dark"] { --grid-line: rgba(255, 255, 255, .09); }

/* ------------------------------- 2. Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.02rem; }
p  { margin: 0 0 1rem; color: var(--text-2); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

::selection { background: #dbe4ff; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; }

/* ------------------------------ 3. Layout ------------------------------- */

/* Jemná čtvercová mřížka na pozadí — vrstva je fixní, leží pod vším a nedá se
   na ni kliknout. Maska ji nechá vidět jen v horní části stránky kolem hero
   sekce, níž se ztrácí. Barvu a rozteč řídí tokeny --grid-line a --grid-size. */
.bg-fx {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.bg-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(ellipse 95% 65% at 50% 0%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 95% 65% at 50% 0%, #000 25%, transparent 80%);
  opacity: .7;
}
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, 760px); }

.section { padding: clamp(56px, 7vw, 88px) 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head p { font-size: 1rem; margin-bottom: 0; }

.eyebrow {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.grad { color: var(--text); }         /* dřív přechodový text */
.muted { color: var(--text-3); font-size: .9rem; }

/* ---------------------------- 4. Komponenty ----------------------------- */
/* hlavička */
.site-header {
  position: sticky; top: 0; z-index: 90; height: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { border-radius: 6px; }
.brand-text { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-tld { color: var(--text-3); font-weight: 500; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 7px 12px; border-radius: var(--radius); font-size: .92rem;
  color: var(--text-2); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.nav-support { color: var(--accent); font-weight: 500; }
.nav a.nav-support:hover { color: var(--accent-d); }
.nav a.active { color: var(--text); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-2); }

.lang-btn {
  display: inline-flex; align-items: center; gap: 3px; height: 36px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  font-family: var(--font-mono); font-size: .74rem; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lang-btn:hover { background: var(--surface-2); border-color: var(--border-2); }
.lang-btn .lang-active { color: var(--text); font-weight: 500; }
.lang-btn .lang-sep, .lang-btn .lang-idle { color: var(--text-3); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 15px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* tlačítka — plná barva, beze stínů a bez pohybu; pod kurzorem jen záře */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 500; font-size: .93rem; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .18s ease;
}
.btn-sm { padding: 8px 14px; font-size: .87rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { background: var(--bg); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }

/* --- záře pod kurzorem ------------------------------------------------------
   Jediná změna je box-shadow: ten nezabírá místo v rozvržení, takže se okolní
   obsah nehne ani o pixel a tlačítko nemění velikost. Stejná záře se ukáže i
   při pohybu klávesnicí (:focus-visible), aby to nebylo jen pro myš. */
.btn-primary:hover,
.btn-primary:focus-visible,
.chip[aria-pressed="true"]:hover,
.copy-btn.copied:hover { box-shadow: var(--glow-accent); }

.btn-ghost:hover,
.btn-ghost:focus-visible,
.icon-btn:hover,
.icon-btn:focus-visible,
.lang-btn:hover,
.lang-btn:focus-visible,
.chip:hover,
.chip:focus-visible,
.copy-btn:hover,
.copy-btn:focus-visible { box-shadow: var(--glow-neutral); }

.icon-btn, .lang-btn, .chip, .copy-btn { transition: background .15s, border-color .15s, color .15s, box-shadow .18s ease; }

/* štítky */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .82rem; color: var(--text-2); margin-bottom: 18px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.tag {
  font-size: .74rem; padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
}
.tag.new  { background: #e8efff; border-color: #c7d7ff; color: var(--accent-d); font-weight: 500; }
.tag.beta { background: #fff4e0; border-color: #ffe2b0; color: #92600a; font-weight: 500; }

/* ------------------------------- 5. Sekce ------------------------------- */
/* hero */
.hero { padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 48px; align-items: center; }
.hero-copy .lead { font-size: 1.05rem; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }

.stats { display: flex; gap: 36px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 1.5rem; font-weight: 600; line-height: 1; }
.stats span { font-size: .82rem; color: var(--text-3); margin-top: 5px; }

/* okno s výpisem */
.hero-visual { position: relative; }
.window { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); overflow: hidden; }
.window-bar {
  display: flex; align-items: center; gap: 8px; padding: 0 0 0 12px; height: 34px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.win-icon { border-radius: 3px; flex: none; }
.window-title { font-size: .76rem; color: var(--text-2); }
.win-controls { display: flex; margin-left: auto; height: 100%; }
.win-btn { display: grid; place-items: center; width: 38px; height: 100%; color: var(--text-3); }
.win-btn svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1; }
.win-btn:hover { background: var(--border); color: var(--text); }
.win-btn.close:hover { background: #d93025; color: #fff; }

.code { margin: 0; padding: 18px; font-family: var(--font-mono); font-size: .78rem; line-height: 1.8; overflow-x: auto; color: var(--text); }
.c-dim { color: var(--text-3); }
.c-key { color: var(--accent); }
.c-str { color: var(--ink); }
.c-num { color: var(--ink); }
.caret { display: inline-block; width: .5em; background: var(--text-3); }

.float-card { display: none; }
.marquee { display: none; }

/* katalog */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.search {
  display: flex; align-items: center; gap: 9px; flex: 1 1 260px; max-width: 340px;
  padding: 9px 13px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text-3);
}
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; border: 0; background: none; color: var(--text); outline: none; font-size: .92rem; min-width: 0; }
.search input::placeholder { color: var(--text-3); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.chip {
  padding: 7px 13px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg); color: var(--text-2); font-size: .84rem; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 20px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg);
  transition: border-color .15s;
}
.card:hover { border-color: var(--border-2); }

.card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.app-icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border-radius: var(--radius); background: var(--ink); color: #fff;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em;
}
.card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 { margin: 0; }
.card-link { transition: color .15s; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card:hover .card-link { color: var(--accent); }
.card:has(.card-link) { cursor: pointer; }
.card-foot { position: relative; z-index: 2; }

.card-sub { font-size: .82rem; color: var(--text-3); margin: 2px 0 0; }
.card-desc { font-size: .92rem; margin-bottom: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.card-foot .btn { flex: 1; }
.file-info { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); margin-top: 10px; word-break: break-all; }
.empty { text-align: center; padding: 48px 0; color: var(--text-3); }

/* proč MHSW */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.f-ico {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--surface-2); color: var(--accent); margin-bottom: 14px;
}
.feature p { margin: 0; font-size: .92rem; }

/* novinky */
.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -24px; top: 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--border-2);
}
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tl-ver { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); }
.tl-date { font-size: .78rem; color: var(--text-3); }
.timeline h3 { margin: 4px 0 3px; }
.timeline p { margin: 0; font-size: .92rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  padding: 16px 2px; cursor: pointer; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 18px; margin: 0; font-size: .94rem; max-width: 68ch; }
.faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* výzva */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 4vw, 36px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg-soft);
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* patička */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; font-weight: 600; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav a { font-size: .9rem; color: var(--text-2); }
.footer-grid nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.footer-grid .brand { margin-bottom: 12px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 16px 0; border-top: 1px solid var(--border); color: var(--text-3); font-size: .83rem;
}

/* okno s detailem */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 22, 28, .45); }
.modal-card {
  position: relative; width: min(100%, 560px); max-height: 86vh; overflow-y: auto;
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: var(--shadow-2);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--surface-2); }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.spec { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font-size: .87rem; border-bottom: 1px solid var(--border); }
.spec li:last-child { border-bottom: 0; }
.spec b { color: var(--text-3); font-weight: 400; }
.spec span { font-family: var(--font-mono); font-size: .78rem; text-align: right; word-break: break-all; }
.modal ul.changes { margin: 0 0 18px; padding-left: 18px; color: var(--text-2); font-size: .91rem; }
.modal ul.changes li { margin-bottom: 5px; }

/* odhalování je vypnuté — obsah je vidět rovnou */
.reveal { opacity: 1; transform: none; }

/* zpět nahoru */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text-2); box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s, background .15s, color .15s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--surface-2); color: var(--text); }

/* ---------------- podstránka aplikace ---------------- */
.app-hero { padding: 32px 0 24px; border-bottom: 1px solid var(--border); }
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 20px; font-size: .86rem; color: var(--text-3); }
.back-link:hover { color: var(--accent); }

.app-head { display: flex; gap: 18px; align-items: flex-start; }
.app-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin: 0; }
.app-head .card-title { margin-bottom: 8px; }
.app-head .lead { font-size: 1rem; max-width: 64ch; margin-bottom: 14px; }
.app-icon.xl { width: 56px; height: 56px; border-radius: var(--radius-lg); font-size: 1.15rem; }

.app-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding: 32px 0 clamp(56px, 7vw, 88px); }
.app-sec { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 20px); }
.app-sec:last-child { margin-bottom: 0; }
.app-sec h2 { margin-bottom: .6em; }
.app-sec h3 { margin-bottom: .35em; }
.app-body p { font-size: .96rem; }
.app-body code {
  font-family: var(--font-mono); font-size: .85em; padding: 1px 5px; border-radius: 4px;
  background: var(--surface-2); color: var(--ink); word-break: break-word;
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 40px; }
.steps li::before {
  content: counter(step) "."; position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: .92rem; color: var(--accent);
}
.steps h3 { margin: 0 0 5px; }
.steps p { margin-bottom: .5rem; font-size: .94rem; }
.note { border-left: 2px solid var(--border-2); padding-left: 12px; font-size: .89rem !important; color: var(--text-3); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 22px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { background: var(--surface-2); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 500; color: var(--text); white-space: nowrap; }
.table td { color: var(--text-2); }

.callout { padding: 18px 20px; margin: 22px 0; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.callout.warn { border-left-color: #d9880d; }
.callout h3 { margin: 0 0 .4em; }
.callout p:last-child { margin-bottom: 0; }

.checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.checklist li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--text-2); font-size: .95rem; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--border-2); }

.app-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.dl-box { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-soft); }
.dl-support { margin-top: 14px; }
.dl-box h2 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.dl-box .btn { margin-bottom: 16px; }
.dl-box .spec { margin-bottom: 16px; background: var(--bg); }

.sha { margin-top: 12px; }
.sha-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.sha-head b { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.sha code {
  display: block; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-family: var(--font-mono); font-size: .68rem; line-height: 1.6;
  color: var(--text-2); word-break: break-all;
}
.copy-btn {
  border: 1px solid var(--border); background: var(--bg); color: var(--text-2);
  border-radius: 4px; padding: 3px 8px; font-size: .7rem; cursor: pointer; transition: background .15s, color .15s;
}
.copy-btn:hover { background: var(--surface-2); color: var(--text); }
.copy-btn .copy-done { display: none; }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied .copy-idle { display: none; }
.copy-btn.copied .copy-done { display: inline; }

.toc { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.toc h2 { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; font-weight: 600; }
.toc a { display: block; padding: 5px 0; font-size: .9rem; color: var(--text-2); }
.toc a:hover { color: var(--accent); }

/* screenshot */
.app-shot { margin: 0 0 44px; max-width: 560px; }
.shot-thumb {
  display: block; position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: zoom-in;
  box-shadow: var(--shadow-shot);
  transition: box-shadow .2s ease;
}
.shot-thumb:hover { box-shadow: var(--shadow-shot-h); }
.shot-thumb img { width: 100%; height: auto; }
.shot-zoom {
  position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg);
  font-size: .73rem; color: var(--text-2);
}
.app-shot figcaption { margin-top: 12px; font-size: .85rem; color: var(--text-3); max-width: 62ch; }

.lightbox {
  position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; align-content: center;
  gap: 14px; padding: 28px; background: rgba(20, 22, 28, .82); cursor: zoom-out;
}
.lightbox img { max-width: min(1400px, 100%); max-height: 80vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox-cap { margin: 0; max-width: 76ch; text-align: center; font-size: .84rem; color: #d8dae0; }
.lightbox-close {
  position: absolute; top: 16px; right: 18px; width: 36px; height: 36px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius);
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.2rem; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }

/* --------------------------- 6. Responzivita ---------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; gap: 36px; }
  .app-aside { position: static; order: -1; }
  .toc { display: none; }
}

@media (max-width: 780px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .25s; margin: 0;
  }
  .nav.open { transform: none; }
  .nav a { padding: 11px 12px; font-size: .98rem; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .hide-sm { display: none; }
  .chips { margin-left: 0; }
  .stats { gap: 26px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .app-head { flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
