/* Layout: jeden stĺpec ako „diagnostický panel“ – nad ním svetelná aurora, obsah v sklenených paneloch,
   ceny ako digitálne displeje. */
:root {
  /* jeden zámerne tmavý vzhľad pre všetkých – vysoký kontrast, svietiace akcenty */
  --bg: #05090b;
  --bg-2: #0a1215;
  --surface: rgba(16, 28, 32, 0.66);
  --surface-solid: #0f1a1e;
  --raise: rgba(22, 37, 42, 0.88);
  --ink: #ecf8f4;
  --muted: #a3b8b2;
  --faint: #71877f;
  --line: rgba(140, 255, 220, 0.11);
  --line-strong: rgba(140, 255, 220, 0.24);
  --accent: #45f0c0;
  --accent-ink: #032018;
  --accent-soft: rgba(69, 240, 192, 0.10);
  --glow: rgba(69, 240, 192, 0.45);
  --aurora-1: rgba(30, 220, 170, 0.24);
  --aurora-2: rgba(40, 140, 255, 0.18);
  --save: #ffb26b;
  --save-soft: rgba(255, 160, 80, 0.10);
  --bar: rgba(160, 255, 225, 0.14);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 14px;
  --r-lg: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  padding-block: 22px 64px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
/* aurora a jemná mriežka v pozadí */
body::before {
  content: ""; position: fixed; inset: -20vh -20vw auto -20vw; height: 90vh; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 50% at 22% 30%, var(--aurora-1), transparent 70%),
    radial-gradient(35% 45% at 78% 18%, var(--aurora-2), transparent 70%);
  filter: blur(10px);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: drift 24s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(4vw, 3vh, 0) scale(1.05); } }
}

.wrap { max-width: 780px; margin: 0 auto; display: grid; gap: 36px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 600; }
h3 { font-family: var(--font-body); font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- hlavička ---------- */
header { display: grid; gap: 18px; }
.brand, .brand-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; justify-self: start; }
.cross, .capsule { width: 40px; height: 22px; flex: none; filter: drop-shadow(0 0 10px var(--glow)); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-name b { color: var(--accent); font-weight: 600; }
h1 { font-size: clamp(32px, 7.2vw, 54px); line-height: 1.04; font-weight: 700; max-width: 16ch; }
h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 28px var(--glow); }
.lede { color: var(--muted); max-width: 58ch; font-size: 18px; }

/* ---------- vyhľadávanie ---------- */
.search { position: relative; }
.search label { display: block; margin-bottom: 10px; }
.search input {
  width: 100%; font: inherit; font-size: 19px; color: var(--ink);
  background: var(--raise); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 18px 22px 18px 56px; outline: none;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 36px -6px var(--glow); }
.search svg { position: absolute; left: 21px; top: 52px; width: 22px; height: 22px; color: var(--accent); pointer-events: none; }
.results {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); max-height: 380px; overflow-y: auto; padding: 8px;
}
.results button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; width: 100%; text-align: left;
  font: inherit; color: inherit; background: none; border: 0; border-radius: 12px; padding: 11px 12px; cursor: pointer;
}
.results button:hover, .results button.on { background: var(--accent-soft); }
.results .rn { font-weight: 600; min-width: 0; }
.results .rp { font-size: 14px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.results .rd { grid-row: span 2; align-self: center; font-size: 15px; color: var(--accent); }
.results .empty { padding: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 15px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chip:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px -6px var(--glow); }

/* ---------- panel porovnania ---------- */
.slip, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  min-width: 0;
}
.slip { overflow: hidden; position: relative; }
.slip::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6;
}
.slip-head { padding: 24px 24px 20px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.slip-head h2 { font-size: 23px; line-height: 1.25; font-weight: 600; }
.slip-head h2 a { color: inherit; text-decoration: none; }
.slip-head h2 a:hover { color: var(--accent); }
.slip-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.detail-link { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; margin-top: 4px; }
.detail-link:hover { text-decoration: underline; }
.verdict { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 24px; background: var(--save-soft); border-bottom: 1px solid var(--line); }
.verdict.none { background: var(--accent-soft); }
.verdict p { min-width: 0; line-height: 1.55; }
.verdict strong { color: var(--save); font-weight: 600; }
.verdict strong a { color: inherit; }
.verdict.none strong { color: var(--accent); }
.big { font-family: var(--font-mono); font-weight: 600; font-size: 36px; line-height: 1; color: var(--save); white-space: nowrap; text-shadow: 0 0 24px rgba(255, 150, 60, 0.35); letter-spacing: -0.02em; }
.big small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); text-align: right; margin-top: 8px; text-shadow: none; letter-spacing: 0; }
.yearly { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.stepper button { font: inherit; font-size: 18px; width: 38px; height: 34px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--accent-soft); color: var(--accent); }
.stepper output { min-width: 30px; text-align: center; font-family: var(--font-mono); color: var(--ink); }
.yearly b { color: var(--save); font-family: var(--font-mono); font-weight: 600; }

.rows { list-style: none; margin: 0; padding: 8px 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px;
  padding: 16px 24px; cursor: pointer; position: relative;
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--accent-soft); }
.row.sel { background: linear-gradient(90deg, var(--accent-soft), transparent 80%); }
.row.sel::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.row-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.row-pack { font-size: 14px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.row-dop { text-align: right; font-family: var(--font-mono); font-weight: 600; font-size: 18px; white-space: nowrap; }
.row.best .row-dop { color: var(--accent); }
.row-sub { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; font-family: var(--font-mono); }
.track { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--bar); overflow: hidden; margin-top: 4px; }
.track i { display: block; height: 100%; background: var(--faint); border-radius: 99px; }
.row.best .track i { background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.row.sel .track i { background: var(--save); }
.row.best.sel .track i { background: var(--accent); }
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 10px; vertical-align: 2px; }
.tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); line-height: 1.3; }
.tag.best { border-color: transparent; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 14px -2px var(--glow); }
.tag.zero { border-color: var(--accent); color: var(--accent); }
.slip-foot { padding: 16px 24px 20px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- sekcie hlavnej stránky ---------- */
.section { display: grid; gap: 16px; }
.section h2 { font-size: 24px; }
.top { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.top li button {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; text-align: left; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .2s, transform .2s;
}
.top li button:hover { border-color: var(--accent); transform: translateY(-1px); }
.top .tn { font-weight: 600; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.top .tn .arrow { color: var(--accent); padding: 0 6px; }
.top .tf { font-size: 14px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.top .ts { grid-row: span 2; align-self: center; text-align: right; font-family: var(--font-mono); color: var(--save); font-weight: 600; white-space: nowrap; font-size: 17px; }
.top .ts small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 400; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fact { display: grid; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: relative; overflow: hidden; }
.fact::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 16px var(--glow); border-radius: 2px; }
.fact b { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.note { display: grid; gap: 6px; }
.note h3 { font-size: 17px; }
.note p { font-size: 16px; color: var(--muted); }

/* ---------- pätička ---------- */
footer { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px; }
footer nav a { text-decoration: none; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 13px; font-size: 14px; background: var(--surface); }
footer nav a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { gap: 30px; }
  .facts { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .big { font-size: 30px; }
  .slip-head, .verdict, .yearly, .row, .slip-foot { padding-left: 18px; padding-right: 18px; }
  .verdict { grid-template-columns: 1fr; gap: 12px; }
  .big small { text-align: left; }
  .search svg { top: 51px; }
}
@media (prefers-reduced-motion: no-preference) {
  .row, .top li button, .chip { transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s; }
  .track i { transition: width .5s cubic-bezier(.2, .8, .2, 1); }
  .wrap > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  .wrap > *:nth-child(2) { animation-delay: .05s; } .wrap > *:nth-child(3) { animation-delay: .1s; } .wrap > *:nth-child(4) { animation-delay: .15s; }
  @keyframes rise { from { transform: translateY(10px); opacity: .001; } to { transform: none; opacity: 1; } }
}
