:root {
  --bg: #050506;
  --ink: #f2f0ec;
  --muted: rgba(242, 240, 236, 0.66);
  --faint: rgba(242, 240, 236, 0.18);
  --accent: #f2a900;
  --ok: #7ee787;
  --pad: clamp(18px, 4.2vw, 64px);
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- hlavička ---------- */
#nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 32px; padding: 22px var(--pad);
  transition: transform 0.6s var(--ease), background 0.4s;
}
#nav.is-hidden { transform: translateY(-110%); }
#nav.is-solid { background: linear-gradient(rgba(5, 5, 6, 0.75), transparent); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; letter-spacing: 0.32em; font-size: 15px; }
.brand img { width: 36px; height: auto; }
.links { display: flex; gap: 28px; margin: 0 auto; }
.links a { position: relative; font-size: 13px; letter-spacing: 0.08em; text-decoration: none; color: var(--muted); transition: color 0.3s; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.links a:hover, .links a.is-active { color: var(--ink); }
.links a.is-active::after, .links a:hover::after { transform: scaleX(1); }
.pill { padding: 11px 20px; border: 1px solid rgba(242, 240, 236, 0.7); border-radius: 99px; font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.pill:hover { background: var(--ink); color: #000; border-color: var(--ink); }
.menu-btn { display: none; }

.overlay { position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--pad); background: #050506; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; }
.overlay a { font-size: clamp(34px, 9vw, 64px); font-weight: 300; letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; }
.menu-open .overlay { opacity: 1; visibility: visible; transition: opacity 0.5s; }

.rail { position: fixed; z-index: 30; right: 18px; top: 50%; translate: 0 -50%; width: 1px; height: 120px; background: var(--faint); }
.rail i { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleY(0); transform-origin: top; }

/* ---------- scény (fotka na celú obrazovku, ďalšia sa vysúva ponad) ---------- */
.scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--bg); }
.bg, .bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg img { object-fit: cover; transform: scale(1.12); will-change: transform; }
.shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5, 5, 6, 0.86) 0%, rgba(5, 5, 6, 0.45) 42%, rgba(5, 5, 6, 0) 70%),
  linear-gradient(0deg, rgba(5, 5, 6, 0.75) 0%, rgba(5, 5, 6, 0) 38%); }
/* „baterka“ – mimo kurzora je tma */
.spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(circle 340px at var(--mx, 70%) var(--my, 45%), rgba(255, 220, 160, 0.07), rgba(5, 5, 6, 0) 60%, rgba(5, 5, 6, 0.32)); }
.has-pointer .spot { opacity: 1; }

.copy { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(70px, 12vh, 130px); width: min(780px, 56vw); }
.copy > .lead, .copy > .rows, .copy > .steps { max-width: 520px; }
.copy > * + * { margin-top: 20px; }
.eyebrow { color: var(--muted); }
.eyebrow b { color: var(--accent); font-weight: 500; }
.slogan { font-weight: 300; font-size: clamp(46px, 6.2vw, 104px); line-height: 0.94; letter-spacing: -0.035em; text-transform: uppercase; }
.slogan span { display: block; overflow: hidden; padding: 0.16em 0 0.06em; margin-top: -0.16em; } /* priestor pre diakritiku nad verzálkami */
.slogan b { display: block; font-weight: inherit; }
.js .slogan b { transform: translateY(105%); }
.lead { max-width: 480px; font-size: 17.5px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 26px; border: 1px solid var(--accent); border-radius: 99px; background: var(--accent); color: #000; font: 600 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: box-shadow 0.4s, transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -10px rgba(242, 169, 0, 0.7); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(242, 240, 236, 0.5); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }

.rows { list-style: none; border-top: 1px solid var(--faint); max-width: 520px; }
.rows li { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--faint); font-size: 15.5px; }
.rows em { font-style: normal; color: var(--muted); font-size: 10px; align-self: center; text-align: right; }
.creds { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 6px; }
.creds dt { color: var(--muted); }
.creds dd { margin-top: 6px; font: 300 clamp(24px, 2.4vw, 34px)/1.1 var(--sans); letter-spacing: -0.01em; }
.creds div:nth-child(3) dd { color: var(--ok); }
.steps { list-style: none; display: grid; gap: 9px; max-width: 520px; }
.steps li { display: flex; gap: 16px; font-size: 15.5px; }
.steps b { color: var(--accent); }
.note { color: var(--accent); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 12px; border: 1px solid var(--faint); border-radius: 99px; font-size: 10px; }

/* technický popisok ako displej prístroja */
.readout { position: absolute; z-index: 2; right: calc(var(--pad) + 18px); bottom: clamp(70px, 12vh, 130px); color: var(--ok); text-shadow: 0 0 14px rgba(126, 231, 135, 0.5); white-space: nowrap; }
.readout::after { content: '▍'; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; translate: -50% 0; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* produktové fotky (výrez bez pozadia) */
.product { position: absolute; z-index: 2; right: calc(var(--pad) + 40px); top: 18%; display: grid; justify-items: center; gap: 14px; }
.product img { height: min(46vh, 420px); width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)); }
.product.wide { top: 20%; }
.product.wide img { height: auto; width: min(34vw, 520px); }
.product figcaption { color: var(--muted); display: grid; gap: 4px; text-align: center; }
.product [data-live] { color: var(--ok); }

/* živé kanály */
.channels { position: absolute; z-index: 2; right: calc(var(--pad) + 40px); top: 24%; display: grid; gap: 10px; padding: 22px 26px; border: 1px solid var(--faint); border-radius: 14px; background: rgba(5, 5, 6, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; }
.channels p { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.channels i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: caret 1.2s steps(1) infinite; }
.channels span { color: var(--ok); text-shadow: 0 0 12px rgba(126, 231, 135, 0.45); }

/* kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--pad); padding: 0 var(--pad); background: radial-gradient(ellipse at 20% 40%, #17130b 0%, #050506 60%); }
.contact .copy { position: static; width: auto; }
.contact-logo { width: 72px; height: auto; opacity: 0.9; }
.big { display: block; width: fit-content; font-size: clamp(24px, 2.8vw, 40px); font-weight: 300; letter-spacing: -0.02em; text-decoration: none; }
.big:hover { color: var(--accent); }
.addr { color: var(--muted); font-size: 14.5px; }
.form { display: grid; gap: 14px; max-width: 480px; }
label { display: grid; gap: 7px; font: 500 10px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
input, textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--faint); background: transparent; color: var(--ink); font: 400 17px var(--sans); text-transform: none; letter-spacing: 0; border-radius: 0; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
label.check { display: flex; gap: 10px; align-items: flex-start; font: 400 13.5px var(--sans); text-transform: none; letter-spacing: 0; }
label.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; padding: 0; }
.form .btn { width: fit-content; margin-top: 6px; }
#form-note { color: var(--accent); min-height: 1em; }

.footer { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px var(--pad); background: var(--bg); color: var(--muted); border-top: 1px solid var(--faint); font-size: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* podstránky */
.doc { max-width: 760px; margin: 0 auto; padding: 130px var(--pad) 90px; }
.doc h1 { font-weight: 300; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; text-transform: uppercase; margin: 18px 0 30px; }
.doc h2 { font-weight: 500; font-size: 20px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc td, .doc th { padding: 10px 8px; border-bottom: 1px solid var(--faint); text-align: left; vertical-align: top; color: var(--muted); }
.doc th { color: var(--ink); font-weight: 500; }

/* ---------- mobil ---------- */
@media (max-width: 960px) {
  .links, .pill { display: none; }
  .menu-btn { display: grid; gap: 6px; place-content: center; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--faint); border-radius: 50%; background: rgba(5, 5, 6, 0.4); cursor: pointer; z-index: 41; }
  .menu-btn i { width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease); }
  .menu-open .menu-btn i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .rail { display: none; }
  .copy { width: auto; right: var(--pad); bottom: 92px; }
  .shade { background: linear-gradient(0deg, rgba(5, 5, 6, 0.94) 0%, rgba(5, 5, 6, 0.7) 45%, rgba(5, 5, 6, 0.1) 80%); }
  .readout { left: var(--pad); right: auto; bottom: 34px; font-size: 10px; }
  .product, .channels, .scroll-cue { display: none; }
  .slogan { font-size: clamp(40px, 12vw, 64px); }
  .rows li { font-size: 14.5px; padding: 8px 0; }
  .scene:not(.hero):not(.contact) { position: relative; height: auto; min-height: 100svh; }
  .scene:not(.hero):not(.contact) .copy { position: relative; left: auto; bottom: auto; padding: 46vh var(--pad) 90px; right: auto; }
  .contact { grid-template-columns: 1fr; height: auto; min-height: 100svh; padding: 110px var(--pad) 60px; position: relative; }
}

/* ---------- v4: portrét na úvode, fakty, oprávnenia ---------- */
.bokeh img { filter: blur(22px) brightness(0.45) saturate(0.8); transform: scale(1.25); }
.person { position: absolute; z-index: 1; right: 6vw; bottom: 0; height: 100%; width: auto; aspect-ratio: 900 / 1600; }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 50% 58% at 50% 50%, #000 40%, transparent 92%);
          mask-image: radial-gradient(ellipse 50% 58% at 50% 50%, #000 40%, transparent 92%); }
.portrait-hero .shade { background: linear-gradient(90deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.5) 40%, rgba(5, 5, 6, 0) 62%), linear-gradient(0deg, rgba(5, 5, 6, 0.8) 0%, rgba(5, 5, 6, 0) 30%); }
.portrait-hero .readout, .credentials .readout { display: none; }
.portrait-hero .bokeh img { filter: blur(26px) brightness(0.3) saturate(0.7); }

.facts { position: absolute; z-index: 2; right: calc(var(--pad) + 30px); top: 22%; width: min(340px, 26vw); display: grid; gap: 22px; }
.facts div { padding-left: 18px; border-left: 1px solid var(--faint); }
.facts b { color: var(--accent); font-weight: 500; }
.facts p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink); }

.credentials .copy { bottom: auto; top: 13%; }
.credentials .shade { background: linear-gradient(90deg, rgba(5,5,6,.9) 0%, rgba(5,5,6,.55) 50%, rgba(5,5,6,.25) 100%), linear-gradient(0deg, rgba(5,5,6,.85) 0%, rgba(5,5,6,0) 45%); }
.badges { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(80px, 11vh, 120px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--faint); border: 1px solid var(--faint); }
.badges div { padding: 26px 26px 24px; background: rgba(5, 5, 6, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badges dt { color: var(--muted); }
.badges dd { margin-top: 10px; font: 300 clamp(26px, 2.8vw, 44px)/1.05 var(--sans); letter-spacing: -0.02em; }
.badges p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.badges .ok dd { color: var(--ok); }
.badges div:nth-child(2) dd { color: var(--accent); }

@media (max-width: 960px) {
  .person { right: 50%; translate: 50% 0; height: 66%; top: 0; bottom: auto; }
  .portrait-hero .shade { background: linear-gradient(0deg, rgba(5, 5, 6, 1) 0%, rgba(5, 5, 6, 0.85) 40%, rgba(5, 5, 6, 0) 70%); }
  .facts { position: static; width: auto; padding: 0 var(--pad) 90px; margin-top: -60px; }
  #revizie .readout { display: none; }
  .credentials .copy { top: auto; }
  .badges { position: static; grid-template-columns: 1fr; margin: 0 var(--pad) 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .slogan b { transform: none; }
  .bg img { transform: none; }
  .readout::after, .scroll-cue i { animation: none; }
}
