/* ============================================================
   HeroSlider – css/style.css
   Bez frameworkov · tmavá téma · GPU-friendly animácie
   ============================================================ */

/* ---------- Tokeny ---------- */
:root {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #818cf8;             /* prepisuje JS podľa aktívneho snímku */
  --dur: 700ms;                  /* trvanie prechodu – prepisuje JS */
  --kb: 6700ms;                  /* trvanie Ken Burns – prepisuje JS */
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, 0.65);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(90rem 40rem at 85% -10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(70rem 36rem at -10% 20%, rgba(34, 211, 238, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; -webkit-user-drag: none; }

a { color: inherit; }

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

::selection { background: rgba(129, 140, 248, 0.35); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hlavička ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 20px clamp(20px, 4.5vw, 48px) 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.site-nav {
  display: flex;
  gap: clamp(12px, 2.5vw, 28px);
  margin-left: auto;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 2px;
  transition: color 0.25s;
}

.site-nav a:hover { color: var(--text); }

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .badge { margin-left: auto; }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  --accent: #818cf8;
  position: relative;
  margin: 16px clamp(14px, 3.5vw, 36px) 0;
  height: min(84vh, 760px);
  min-height: 540px;
  border-radius: clamp(16px, 2.5vw, 26px);
  overflow: hidden;
  background: var(--bg-alt);
  outline: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;          /* horizontálne gestá berie slider, vertikálny scroll ostáva stránke */
}

.hero.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Snímky ---------- */
.slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility 0s linear var(--dur); /* skryje sa až po skončení prechodu */
}

.slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility 0s; /* zviditeľní sa okamžite */
}

/* vstupujúci snímok – bez prechodu sa umiestni na štartovaciu pozíciu */
.slide.from-left,
.slide.from-right {
  z-index: 2;
  visibility: visible;
  transition: none;
}

[data-anim="slide"] .slide.from-right { transform: translateX(100%);  opacity: 1; }
[data-anim="slide"] .slide.from-left  { transform: translateX(-100%); opacity: 1; }
[data-anim="fade"]  .slide.from-right,
[data-anim="fade"]  .slide.from-left  { transform: none; opacity: 0; }
[data-anim="zoom"]  .slide.from-right,
[data-anim="zoom"]  .slide.from-left  { transform: scale(1.08); opacity: 0; }

/* vystupujúci snímok */
.slide.is-exit {
  z-index: 1;
  visibility: visible;
}

[data-anim="slide"] .slide.is-exit { opacity: 1; }
[data-anim="slide"] .slide.is-exit.exit-left  { transform: translateX(-100%); }
[data-anim="slide"] .slide.is-exit.exit-right { transform: translateX(100%); }
[data-anim="fade"]  .slide.is-exit { opacity: 0; }
[data-anim="zoom"]  .slide.is-exit { opacity: 0; transform: scale(0.94); }

/* súrodenec pri ťahaní – viditeľný, riadený inline transformom */
.slide.is-peer {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition: none;
}

/* okamžité dokončenie prechodu (čistenie) */
.slide.snap, .is-dragging .slide { transition: none !important; }

/* bez JavaScriptu zobrazí prvý snímok a skryje ovládanie */
html.no-js .slide:first-child { opacity: 1; visibility: visible; pointer-events: auto; }
html.no-js .hero-ui { display: none; }

/* ---------- Média snímku ---------- */
.slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: paint;
}

.slide-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);        /* malá rezerva pre Ken Burns */
}

/* gradientový záložný podklad, keď obrázok nie je dostupný */
.slide-media.img-failed img { display: none; }
.slide--1 .slide-media { background: radial-gradient(120% 130% at 18% 20%, #3730a3, #0f172a 62%); }
.slide--2 .slide-media { background: radial-gradient(120% 130% at 80% 25%, #047857, #0f172a 62%); }
.slide--3 .slide-media { background: radial-gradient(120% 130% at 25% 30%, #0e7490, #0f172a 62%); }
.slide--4 .slide-media { background: radial-gradient(120% 130% at 75% 20%, #b45309, #0f172a 62%); }
.slide--5 .slide-media { background: radial-gradient(120% 130% at 20% 25%, #be185d, #0f172a 62%); }

/* tieňovanie pre kontrast textu (WCAG) */
.slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 20, 0.85), rgba(4, 8, 20, 0.3) 55%, rgba(4, 8, 20, 0.45)),
    linear-gradient(0deg, rgba(4, 8, 20, 0.8), transparent 48%);
}

/* ---------- Ken Burns ---------- */
[data-kenburns="on"] .slide.is-active .slide-media img {
  animation: kenburns var(--kb) linear both;
  will-change: transform;
}

[data-kenburns="on"] .slide:nth-child(even).is-active .slide-media img {
  animation-name: kenburns-alt;
}

@keyframes kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.16) translate(-1.6%, -1.1%); }
}

@keyframes kenburns-alt {
  from { transform: scale(1.16) translate(1.4%, 1%); }
  to   { transform: scale(1.04) translate(0, 0); }
}

/* ---------- Obsah snímku ---------- */
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: 64px clamp(24px, 6vw, 84px);
}

.slide-content > * { opacity: 0; }   /* pred vstupom */

.slide.is-active .slide-content > * {
  animation: content-in 0.65s var(--ease-out) both;
  animation-delay: calc(140ms + var(--stagger-i, 0) * 95ms);
}
.slide.is-active .slide-content > :nth-child(1) { --stagger-i: 0; }
.slide.is-active .slide-content > :nth-child(2) { --stagger-i: 1; }
.slide.is-active .slide-content > :nth-child(3) { --stagger-i: 2; }
.slide.is-active .slide-content > :nth-child(4) { --stagger-i: 3; }

@keyframes content-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.slide-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.slide-title {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.slide-text {
  margin: 0 0 30px;
  max-width: 34em;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  color: #cbd5e1;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #050914;
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.55);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(99, 102, 241, 0.65); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.btn--small { padding: 9px 18px; font-size: 0.85rem; width: 100%; }

/* ============================================================
   OVLÁDACIE PRVKY
   ============================================================ */
.hero-ui { position: absolute; inset: 0; z-index: 10; pointer-events: none; }

.hero-ui .icon-btn,
.hero-ui .slider-arrow,
.hero-ui .dots,
.hero-ui .counter,
.hero-ui .settings-panel { pointer-events: auto; }

.glass-mini {
  background: rgba(10, 15, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .glass-mini { background: rgba(10, 15, 30, 0.85); }
}

.icon {
  width: 20px; height: 20px;
  display: block;
  pointer-events: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 15, 30, 0.5);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s, opacity 0.25s;
}

.icon-btn:hover {
  background: rgba(30, 41, 66, 0.75);
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.07);
}

.icon-btn--small { width: 34px; height: 34px; }
.icon-btn--small .icon { width: 16px; height: 16px; }

/* play / pause ikony */
[data-playing="false"] .icon--pause { display: none; }
[data-playing="true"]  .icon--play  { display: none; }
[data-playing="false"] .icon--play  { display: block; }
[data-playing="true"]  .icon--pause { display: block; }

/* fullscreen ikony */
.hero:not(.is-fs) .icon--compress { display: none; }
.hero.is-fs .icon--expand { display: none; }

/* počítadlo */
.counter {
  position: absolute;
  top: 20px; left: 22px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

.counter-current { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.counter-sep, .counter-total { font-size: 0.8rem; color: var(--text-muted); }

/* horné pravé tlačidlá */
.hero-top-right {
  position: absolute;
  top: 20px; right: 22px;
  display: flex;
  gap: 10px;
}

/* šípky */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 15, 30, 0.5);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s, opacity 0.25s;
}

.slider-arrow .icon { width: 24px; height: 24px; }

.slider-arrow--left { left: 22px; }
.slider-arrow--right { right: 22px; }

.slider-arrow:hover:not(:disabled) {
  background: rgba(30, 41, 66, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

.slider-arrow--left:hover:not(:disabled)  { transform: translateY(-50%) translateX(-3px); }
.slider-arrow--right:hover:not(:disabled) { transform: translateY(-50%) translateX(3px); }

.slider-arrow:disabled { opacity: 0.3; cursor: default; }

[data-arrows="off"] .slider-arrow { display: none; }

/* dolný riadok: play + bodky */
.hero-bottom {
  position: absolute;
  left: 22px; right: 22px; bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dots {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
}

[data-dots="off"] .dots { display: none; }

.dot {
  width: 26px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}

.dot:hover { background: rgba(255, 255, 255, 0.55); }

.dot.is-active {
  background: var(--accent);
  transform: scaleX(1.02);
}

/* progress bar */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.9));
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

[data-progress="off"] .progress { display: none; }

/* ============================================================
   PANEL NASTAVENÍ
   ============================================================ */
.settings-panel {
  position: absolute;
  top: 74px; right: 22px;
  z-index: 30;
  width: min(330px, calc(100% - 44px));
  max-height: calc(100% - 100px);
  overflow-y: auto;
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}

.settings-panel.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.settings-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.settings-group legend {
  padding: 0;
  margin-bottom: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* segmentový prepínač animácie */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.seg-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg-item span {
  display: block;
  text-align: center;
  padding: 8px 4px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.seg-item input:checked + span {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #050914;
}

.seg-item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* prepínače (switch) */
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.switch-row input { position: absolute; opacity: 0; pointer-events: none; }

.switch-track {
  position: relative;
  flex: none;
  width: 40px; height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s;
}

.switch-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.switch-row input:checked + .switch-track { background: linear-gradient(135deg, #6366f1, #22d3ee); }
.switch-row input:checked + .switch-track .switch-thumb { transform: translateX(18px); background: #fff; }
.switch-row input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }

.switch-label { font-size: 0.9rem; }

/* posuvníky (range) */
.range-row { display: flex; flex-direction: column; gap: 8px; }

.range-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}

.range-head output {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.6);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.6);
}

/* štítky (chips) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.chip input:checked + span {
  border-color: rgba(129, 140, 248, 0.6);
  background: rgba(99, 102, 241, 0.18);
  color: var(--text);
}

.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   SEKCIE POD SLIDEROM
   ============================================================ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.container {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

.container--narrow { width: min(760px, 100% - 48px); }

.section-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #818cf8;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 8px;
  color: var(--text-muted);
  max-width: 46em;
}

.section-lead code, .section-lead kbd {
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
}

/* funkcie */
.feature-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(99, 102, 241, 0.07);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* skratky */
.shortcuts {
  width: 100%;
  margin-top: 34px;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.shortcuts th, .shortcuts td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.shortcuts tr:last-child th, .shortcuts tr:last-child td { border-bottom: 0; }

.shortcuts th { width: 1%; white-space: nowrap; }
.shortcuts td { color: var(--text-muted); font-size: 0.92rem; }

.shortcuts kbd {
  display: inline-block;
  min-width: 26px;
  padding: 4px 9px;
  text-align: center;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

/* ukážky kódu */
.code-block {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0a0f1d;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.7;
}

.code-block code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color: #c9d5e8;
}

/* pätička */
.site-footer {
  padding: 34px 24px 42px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.site-footer p { margin: 0; }
.footer-accent { color: #818cf8; }

/* ============================================================
   RESPONZIVITA
   ============================================================ */
@media (max-width: 720px) {
  .hero { height: 88vh; min-height: 500px; }
  .slide-content { padding: 56px 24px 104px; justify-content: flex-end; }
  .slider-arrow { display: none; }
  .counter { top: 14px; left: 14px; }
  .hero-top-right { top: 14px; right: 14px; }
  .hero-bottom { left: 14px; right: 14px; bottom: 16px; }
  .settings-panel { top: 66px; right: 14px; }
}

/* ============================================================
   ZNÍŽENÝ POHYB (preferuje OS používateľa)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .slide,
  .slide.is-active {
    transition-duration: 1ms;
  }

  [data-kenburns="on"] .slide.is-active .slide-media img { animation: none; }

  .slide.is-active .slide-content > * {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }

  .btn, .icon-btn, .slider-arrow, .dot, .feature-card { transition: none; }
}
