/* IBP Event - úvodná stránka a stránky akcií */

:root {
  --bg: #090502;
  --bg-2: #120903;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --text: #fff4de;
  --muted: #dcc4a0;
  --line: rgba(255, 190, 100, 0.16);
  --primary: #ff9a1f;
  --primary-2: #ffbf5f;
  --gold-soft: #ffe3a7;
  --ok: #4ade80;
  --radius: 22px;
  --nav-h: 72px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-2);
  text-decoration: none;
}

a:hover {
  color: var(--gold-soft);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.narrow {
  width: min(820px, 100% - 40px);
}

.accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Tlačidlá a štítky ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #2d1502;
  box-shadow: 0 14px 34px rgba(255, 154, 31, 0.25);
}

.btn-primary:hover {
  color: #2d1502;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 154, 31, 0.38);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: rgba(255, 190, 100, 0.4);
  transform: translateY(-2px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.chip-done::before {
  content: "✓";
  width: auto;
  height: auto;
  background: none;
  font-size: 0.95em;
  line-height: 1;
}

.chip-done {
  color: var(--ok);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.chip-live {
  color: var(--primary-2);
  background: rgba(255, 154, 31, 0.14);
  border: 1px solid rgba(255, 154, 31, 0.35);
}

/* ---------- Menu ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled,
.site-nav.open {
  background: rgba(9, 5, 2, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links .nav-cta {
  margin-left: 8px;
  color: #2d1502;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.nav-links .nav-cta:hover {
  color: #2d1502;
  background: linear-gradient(135deg, #ffab39, #ffd27a);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Úvod ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 90px) 0 90px;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(255, 154, 31, 0.16), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  top: -140px;
  left: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.3), transparent 68%);
  filter: blur(30px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes drift {
  to {
    transform: translate(120px, 60px) scale(1.15);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Sekcie ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 154, 31, 0.05), rgba(255, 154, 31, 0.02));
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-head p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 190, 100, 0.4);
  background: var(--surface-2);
}

.feature h3 {
  margin: 20px 0 10px;
  font-size: 1.3rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature-icon,
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 154, 31, 0.12);
  border: 1px solid rgba(255, 154, 31, 0.28);
}

.feature-icon svg,
.empty-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--primary-2);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ibpcon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 32px 36px;
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(120deg, rgba(255, 154, 31, 0.2), rgba(255, 154, 31, 0.04) 60%), var(--bg-2);
  border: 1px solid rgba(255, 154, 31, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ibpcon:hover {
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ibpcon .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.ibpcon h3 {
  font-size: 1.8rem;
}

.ibpcon p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.ibpcon .eyebrow {
  margin-bottom: 6px;
}

/* ---------- Karty akcií ---------- */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 190, 100, 0.45);
  box-shadow: var(--shadow);
}

.event-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1306, #120903);
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card-media img {
  transform: scale(1.06);
}

.event-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 5, 2, 0) 40%, rgba(9, 5, 2, 0.7));
}

.event-card.is-past .event-card-media img {
  filter: saturate(0.85);
}

.event-card-media .chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
}

.event-card-date {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-width: 60px;
  padding: 8px 10px;
  border-radius: 14px;
  text-align: center;
  line-height: 1.1;
  background: rgba(9, 5, 2, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.event-card-date strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
}

.event-card-date small {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.event-card-meta {
  margin: 0 0 10px;
  color: var(--primary-2);
  font-size: 0.88rem;
  font-weight: 700;
}

.event-card h3 {
  font-size: 1.45rem;
}

.event-card h3 a {
  color: var(--text);
}

.event-card h3 a:hover {
  color: var(--primary-2);
}

.event-card-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.event-card-actions .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.empty {
  max-width: 640px;
  margin-inline: auto;
  padding: 48px 32px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 190, 100, 0.3);
  background: var(--surface);
}

.empty h3 {
  margin: 20px 0 12px;
  font-size: 1.5rem;
}

.empty p {
  margin: 0 auto;
  max-width: 480px;
  color: var(--muted);
}

.empty .hero-actions {
  justify-content: center;
}

/* ---------- Kontakt ---------- */

.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.contact > div > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 12px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 24px;
  border-radius: 18px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-line:hover {
  color: var(--text);
  transform: translateX(4px);
  border-color: rgba(255, 190, 100, 0.45);
  background: var(--surface-2);
}

.contact-line span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-line strong {
  font-size: 1.2rem;
}

/* ---------- Pätička ---------- */

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.footer-brand img {
  height: 34px;
  width: auto;
}

.footer-brand p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover,
.footer-copy a:hover {
  color: var(--primary-2);
}

.footer-copy {
  text-align: right;
}

.footer-copy a {
  color: var(--muted);
}

.footer-credit {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-credit img {
  width: 28px;
  height: 28px;
}

.footer-credit strong {
  color: var(--text);
  font-weight: 800;
}

.footer-credit a:hover,
.footer-credit a:hover strong {
  color: var(--primary-2);
}

/* ---------- Stránka akcie ---------- */

.hero-event {
  padding-bottom: 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  filter: saturate(0.9);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 5, 2, 0.5), var(--bg) 96%);
}

.hero-event .hero-inner > .chip {
  margin-bottom: 20px;
}

.hero-event h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.back-link:hover {
  color: var(--primary-2);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  flex-direction: column;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(9, 5, 2, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.facts span {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts strong {
  font-size: 1.05rem;
}

.recap,
.prose {
  color: var(--muted);
  font-size: 1.15rem;
}

.recap {
  padding: 40px 44px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.recap strong,
.prose strong,
.prose b {
  color: var(--text);
}

.recap .btn {
  margin-top: 12px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 0 0 36px 32px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(255, 154, 31, 0.18);
}

.timeline time {
  color: var(--primary-2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.timeline h3 {
  font-size: 1.2rem;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 22px;
  text-align: center;
  color: var(--text);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

a.partner:hover {
  color: var(--text);
  transform: translateY(-4px);
  border-color: rgba(255, 190, 100, 0.45);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 84px;
  margin-bottom: 14px;
}

.partner-logo img {
  max-width: 78%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.partner-logo.invert img {
  filter: brightness(0) invert(1);
}

.partner small {
  color: var(--muted);
}

/* ---------- Animácie pri skrolovaní ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-glow {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Mobil a tablet ---------- */

@media (max-width: 991.98px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: rgb(9, 5, 2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .nav-links .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand img {
    margin-inline: auto;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  :root {
    --nav-h: 64px;
  }

  body {
    font-size: 1rem;
  }

  .hero {
    padding: calc(var(--nav-h) + 56px) 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .ibpcon {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
  }

  .facts li {
    flex: 1 1 100%;
  }

  .recap {
    padding: 28px 22px;
    font-size: 1.05rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .event-card-actions .btn {
    flex: 1 1 100%;
  }
}
