:root {
  --bg: #0b0a1a;
  --panel: rgba(16, 14, 34, .82);
  --panel-solid: #14122a;
  --line: rgba(255, 233, 196, .14);
  --text: #f3eee6;
  --muted: #b9b2c9;
  --accent: #ffb547;
  --accent-2: #ff7a59;
  --video: #7cc4ff;
  --audio: #ffb547;
  --power: #9be59b;
  --ok: #9be59b;
  --error: #ff8c8c;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bebas Neue", "Inter", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: .02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Pozadí – generovaný obraz letního kina */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/bg-letni-kino.svg") center top / cover no-repeat, var(--bg);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,10,26,.6) 0%, rgba(11,10,26,.15) 50%, transparent 70%),
    linear-gradient(180deg, rgba(11,10,26,.1) 0%, rgba(11,10,26,.25) 45%, rgba(11,10,26,.7) 100%);
}

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; }

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

/* Hlavička */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 26, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.7rem; letter-spacing: .04em; }
.logo svg { color: var(--accent); }
.logo em { font-style: normal; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #1a1205;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); background: #ffc76e; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(255, 181, 71, .12); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .95rem; }

/* Hero */
.hero { min-height: calc(100svh - 64px); display: flex; align-items: flex-end; padding: 64px 0 56px; }
.hero-inner { text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 7.5vw, 5.4rem); letter-spacing: .02em; line-height: .95; margin-bottom: .3em; }
.accent { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.hero-facts li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; text-shadow: none; }
.hero-facts strong { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 400; color: var(--accent); line-height: 1.1; }
.hero-facts span { font-size: .85rem; color: var(--muted); }

/* Sekce a panely */
.section { padding: 48px 0; }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p:last-child { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); backdrop-filter: blur(6px); }
.panel-accent { border-color: rgba(255, 181, 71, .45); box-shadow: 0 0 0 1px rgba(255,181,71,.1), 0 20px 60px rgba(0,0,0,.35); }
#varianty .section-head, #pro-koho .section-head { text-shadow: 0 2px 14px rgba(0,0,0,.8); }

/* Karty variant */
.variant-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.variant-card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.variant-card-img { background: #fff; aspect-ratio: 16 / 9; overflow: hidden; padding: 12px; }
.variant-card-img img { width: 100%; height: 100%; object-fit: contain; }
.variant-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.variant-card-soon { border-style: dashed; background: rgba(20, 18, 42, .6); align-self: start; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.tags li { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,181,71,.12); color: var(--accent); }
.price { display: flex; flex-direction: column; margin-top: auto; }
.price-label { font-size: .8rem; color: var(--muted); }
.price strong { font-size: 1.6rem; }
.price-note { font-size: .78rem; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Detail */
.variant-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.variant-tabs [role=tab] { font: 600 .95rem var(--font); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.variant-tabs [aria-selected=true] { background: var(--accent); color: #1a1205; border-color: var(--accent); }
.detail-intro { max-width: 52em; color: var(--muted); }
.detail-intro strong { color: var(--text); }
.cat { margin-top: 32px; }
.cat-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.components { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.comp { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.comp-img { width: 112px; height: 112px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.comp-img img { width: 100%; height: 100%; object-fit: contain; }
.comp-img-empty { background: rgba(255,255,255,.06); font-size: 2.2rem; }
.comp-body h4 { font-size: 1.02rem; }
.comp-body p { font-size: .92rem; margin-bottom: .5em; color: var(--muted); }
.qty { display: inline-block; min-width: 2em; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: #1a1205; font-size: .85rem; text-align: center; }
.comp-price { color: var(--text) !important; }
.comp-note { font-size: .85rem !important; color: #ffd59a !important; }
.comp-link { font-size: .88rem; font-weight: 600; text-decoration: none; }
.comp-link:hover { text-decoration: underline; }
.total { margin-top: 32px; padding: 20px 22px; border-radius: 12px; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.35); }
.total > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.total strong { font-size: 1.8rem; color: var(--accent); }
.total p { margin: 0; }

/* Notebook */
.nb-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.sw-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.sw-list li { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.sw-list a { text-decoration: none; }
.sw-list p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.callout { padding: 12px 16px; border-left: 4px solid var(--accent); background: rgba(255,181,71,.08); border-radius: 0 10px 10px 0; font-size: .92rem; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; }
.spec dt, .spec dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec dt { font-weight: 600; padding-right: 20px; }
.spec dd { color: var(--muted); }

/* Diagram */
.diagram { margin: 0; overflow-x: auto; }
.diagram svg { width: 100%; min-width: 640px; height: auto; color: var(--muted); font-family: var(--font); }
.d-node rect { fill: var(--panel-solid); stroke-width: 2; }
.d-node text, .d-power text { fill: var(--text); font-size: 15px; font-weight: 600; text-anchor: middle; }
.d-node .d-sub { fill: var(--muted); font-size: 12px; font-weight: 400; }
.d-source rect { stroke: var(--text); }
.d-video rect { stroke: var(--video); }
.d-audio rect { stroke: var(--audio); }
.d-link path { fill: none; stroke-width: 2.5; }
.d-link text { font-size: 12px; text-anchor: middle; }
.d-link-video { color: var(--video); }
.d-link-video path { stroke: var(--video); }
.d-link-video text { fill: var(--video); }
.d-link-audio { color: var(--audio); }
.d-link-audio path { stroke: var(--audio); }
.d-link-audio text { fill: var(--audio); }
.d-power rect { fill: rgba(155,229,155,.1); stroke: var(--power); stroke-width: 2; stroke-dasharray: 6 5; }
.d-power text { fill: var(--power); font-size: 14px; }
.diagram figcaption { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.legend::before { content: ""; display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.legend-video::before { background: var(--video); }
.legend-audio::before { background: var(--audio); }
.legend-power::before { background: var(--power); }

/* Pro koho */
.audience { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.audience li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(6px); }
.audience span { font-size: 1.8rem; }
.audience h3 { margin-top: 8px; }
.audience p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Formulář */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,233,196,.25);
  border-radius: 10px; padding: 11px 13px; min-height: 46px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255,181,71,.25); }
.field select option { background: var(--panel-solid); }
.field [aria-invalid=true] { border-color: var(--error); }
.field-check { border: 0; padding: 0; margin: 0; }
.field-check label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.field-check input { min-height: 0; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }

/* Patička */
.site-footer { background: rgba(6, 5, 14, .92); border-top: 1px solid var(--line); padding: 36px 0 24px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-inner p { margin: 0 0 4px; }
.site-footer > .small { margin-top: 20px; }

/* Responzivita */
@media (max-width: 860px) {
  .nb-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    font: 600 .95rem var(--font); color: var(--text);
    background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: rgba(11, 10, 26, .97); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .form { grid-template-columns: 1fr; }
  .components { grid-template-columns: 1fr; }
  .comp { grid-template-columns: 84px 1fr; }
  .comp-img { width: 84px; height: 84px; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-bottom: 0; padding-bottom: 0; }
  .bg { background-position: 66% top; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
