/* Mr. Kvíz — web. Paleta prevzatá z mr-kviz-go / mr-kviz-creator (tokens.css). */

:root {
  --bg: #1a130c;
  --bg-deep: #0b0805;
  --surface: #231a12;
  --surface-alt: #2e2118;
  --border: #4a3620;
  --border-soft: #33261a;

  --gold: #f5a623;
  --gold-bright: #ffc24a;
  --gold-deep: #b8761a;
  --gold-glow: rgba(245, 166, 35, 0.42);
  --gold-soft: rgba(245, 166, 35, 0.14);

  --text: #f8eed2;
  --text-dim: #cabd9a;
  --text-muted: #8f7f5e;

  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: #1a130c; padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .container { padding: 0 32px; } }

[hidden] { display: none !important; }

.gradient-text {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a130c;
  box-shadow: 0 10px 30px -10px var(--gold-glow);
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px var(--gold-glow); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(248, 238, 210, 0.25);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold); }
.btn-outline { border-color: var(--gold); color: var(--gold-bright); background: transparent; }
.btn-outline:hover { background: var(--gold-soft); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(11, 8, 5, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-soft);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 380px) { .nav-actions .btn-sm { display: none; } }
.nav { display: none; gap: 28px; }
.nav a {
  position: relative;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header.nav-open .nav {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  padding: 8px 16px 20px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.site-header.nav-open .nav a { padding: 14px 4px; border-bottom: 1px solid var(--border-soft); font-size: 1.05rem; }
.site-header.nav-open .nav a::after { display: none; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero: karusel podnikov ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) 0 28px;
  overflow: hidden;
  isolation: isolate;
}

.stage { position: absolute; inset: 0; z-index: -2; }

.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background:
    radial-gradient(60% 70% at 70% 30%, rgba(245, 166, 35, 0.28), transparent 70%),
    radial-gradient(50% 60% at 15% 90%, rgba(184, 118, 26, 0.22), transparent 70%),
    linear-gradient(160deg, #2e2118 0%, #1a130c 55%, #0b0805 100%);
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}
.slide.is-active img { transform: scale(1); }

/* Bez fotky: veľký názov podniku na zlatom pozadí */
.slide-fallback {
  position: absolute; inset: 0;
  display: none; align-content: start; justify-items: center;
  padding: calc(var(--header-h) + 16vh) 24px 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(180deg, rgba(255,194,74,.42), rgba(184,118,26,.12));
  -webkit-background-clip: text; background-clip: text;
  opacity: 0.85;
}
.slide-fallback span { display: block; }
.slide.is-fallback .slide-fallback { display: grid; }

.slide-label {
  position: absolute; top: calc(var(--header-h) + 14px); left: 16px; z-index: 1;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 8, 5, 0.55);
  border: 1px solid rgba(248, 238, 210, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.92rem;
  color: var(--text);
  opacity: 0;
  transition: opacity .6s ease .3s;
}
.slide.is-active .slide-label { opacity: 1; }
.slide-label span { color: var(--gold-bright); font-weight: 500; }
@media (min-width: 720px) { .slide-label { left: 32px; } }

.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,8,5,.45) 0%, rgba(11,8,5,.1) 25%, rgba(11,8,5,.55) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,8,5,.7) 0%, rgba(11,8,5,.15) 70%);
}

.stage-btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(248,238,210,.25);
  background: rgba(11,8,5,.45); color: var(--text);
  font-size: 1rem; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s;
  display: none;
  align-items: center; justify-content: center;
}
.stage-btn:hover { background: rgba(245,166,35,.25); border-color: var(--gold); }
.stage-prev { left: 20px; }
.stage-next { right: 20px; }
@media (min-width: 900px) { .stage-btn { display: inline-flex; } }

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: clamp(20px, 3vh, 32px);
}

.hero-copy { max-width: 720px; }
.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 14px;
}
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 22px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* jemný nábeh textu (bez JS, takže funguje vždy) */
.hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* prepínač podnikov */
.venue-switch {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 2px 16px 4px;
}
.venue-switch::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .venue-switch { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
}

.venue-tab {
  position: relative; overflow: hidden;
  scroll-snap-align: start;
  text-align: left;
  padding: 14px 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(248, 238, 210, 0.14);
  background: rgba(11, 8, 5, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.venue-tab:hover { border-color: rgba(245, 166, 35, .5); transform: translateY(-2px); }
.venue-tab.is-active {
  border-color: var(--gold);
  background: rgba(245, 166, 35, 0.16);
}
.vt-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  line-height: 1.25;
}
.vt-city {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.vt-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transform: scaleX(0); transform-origin: left;
}
.venue-tab.is-active .vt-bar { animation: fillbar 6s linear forwards; }
.hero:hover .venue-tab.is-active .vt-bar { animation-play-state: paused; }
@keyframes fillbar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section-alt {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(245,166,35,.08), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--border-soft);
}
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 40px); }
.section-head h2,
.split-copy h2,
.contact-grid h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
.section-lead { color: var(--text-dim); font-size: 1.02rem; margin: 0; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.split-copy .section-lead { margin-top: 12px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(46,33,24,.7), rgba(35,26,18,.9));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,.55);
  box-shadow: var(--shadow), 0 0 0 1px rgba(245,166,35,.12), 0 0 40px -12px var(--gold-glow);
}
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-dim); margin: 0; font-size: 0.97rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--gold-soft);
  border: 1px solid rgba(245,166,35,.35);
}
.card-icon svg {
  width: 24px; height: 24px; fill: none; stroke: var(--gold-bright); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.card-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: var(--gold); color: #1a130c;
}
.card-feature { padding: 26px; display: flex; flex-direction: column; }
.card-feature h3 { color: var(--gold-bright); }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-dim);
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.price-note { margin: 22px 0 0; text-align: center; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Liga ---------- */
.league {
  background: linear-gradient(180deg, rgba(46,33,24,.6), rgba(35,26,18,.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.league-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.league-head h3 { margin: 0; font-size: 1.2rem; }
.pill {
  font-size: 0.8rem; padding: 6px 12px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-bright); border: 1px solid rgba(245,166,35,.35);
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.league-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.league-table th,
.league-table td {
  padding: 13px 24px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border-soft);
}
.league-table thead th {
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
  background: rgba(11,8,5,.35);
}
.league-table tbody tr { transition: background .2s; }
.league-table tbody tr:hover { background: rgba(245,166,35,.06); }
.league-table tbody tr:last-child td { border-bottom: 0; }
.league-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.league-table .rank {
  font-family: var(--font-display); font-weight: 700; color: var(--text-muted); width: 64px;
}
.league-table .team { font-weight: 600; font-size: 1.02rem; }
.league-table .points {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--gold-bright);
}
.league-table tr.rank-1 .rank { color: var(--gold-bright); }
.league-table tr.rank-1 .team::before { content: '★ '; color: var(--gold-bright); }
.league-table tr.rank-2 .rank { color: #d8dbe3; }
.league-table tr.rank-3 .rank { color: #d08a4e; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.contact-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: rgba(35,26,18,.6);
}
.contact-list span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.contact-list a { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--gold-bright); }
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.socials a {
  color: var(--text-dim); text-decoration: none; font-weight: 500;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  transition: all .2s;
}
.socials a:hover { color: var(--gold-bright); border-color: var(--gold); }

.form {
  display: grid; gap: 16px;
  padding: clamp(22px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(46,33,24,.7), rgba(35,26,18,.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form label { display: grid; gap: 8px; }
.form label span { font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
.form input,
.form textarea {
  width: 100%;
  background: rgba(11,8,5,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus,
.form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.form textarea { resize: vertical; min-height: 100px; }
.form-note { margin: 0; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 28px 0;
  background: var(--bg-deep);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copy { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Reveal ---------- */
.reveal {
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
/* Skryté len keď beží JS, aby bez JS bol obsah vždy viditeľný. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slide img { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}
