:root {
  --cta-bg: #b7365e;
  --cta-text: #ffffff;
  --ink: #fff4ee;
  --ink-soft: #ffd8c4;
  --panel-bg: rgba(13, 10, 15, 0.84);
  --panel-stroke: rgba(255, 255, 255, 0.16);
  --shadow-heavy: 0 22px 70px rgba(0, 0, 0, 0.55);
  --radius-xl: 24px;
  --radius-md: 14px;
  --bg-video-width: 608px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #293039;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: -3;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem clamp(1rem, 4vw, 4rem);
}

.hero__actions {
  display: grid;
  grid-template-columns: 1fr;
  position: fixed;
  top: 65%;
  right: 10%;
  transform: translateY(-50%);
  justify-items: end;
  gap: 2rem;
  width: min(420px, 92vw);
  margin-inline: 0;
  animation: fadeSlideCentered 1.1s 0.12s ease both;
}

.hero__date {
  margin: 0 0 0.25rem;
  width: 28ch;
  max-width: 100%;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.cta {
  border: 0;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  text-decoration: none;
  min-height: 56px;
  padding: 0.9rem 1.4rem;
  font: 800 0.94rem/1.2 "Manrope", sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
  display: inline-flex;
  width: 28ch;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(183, 54, 94, 0.4);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 30px rgba(183, 54, 94, 0.5);
  filter: brightness(1.06);
  outline: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 3, 8, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__panel {
  width: 90vw;
  height: 90vh;
  max-height: 90vh;
  background: var(--panel-bg);
  border: 1px solid var(--panel-stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-heavy);
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.modal__panel--agenda {
  width: min(980px, 90vw);
  height: auto;
  max-height: 90vh;
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--panel-stroke);
}

.modal__header h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
}

.modal__close {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  padding: 0.55rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.modal__body {
  padding: 1.2rem;
  overflow: auto;
}

.modal__body--agenda {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 1.1rem;
}

.modal__body--gallery {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.82) rgba(255, 255, 255, 0.08);
}

.modal__body--gallery::-webkit-scrollbar {
  width: 12px;
}

.modal__body--gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.modal__body--gallery::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.82);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.modal__body--gallery::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.92);
}

.agenda-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-stroke);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.agenda-block h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: #ffd39c;
}

.agenda-block ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.tabs {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 0.35rem;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  background: var(--cta-bg);
}

.gallery__status {
  margin: 1rem 0;
  color: #ffd8c4;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.8rem;
}

.thumb {
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumb:hover,
.thumb:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
  outline: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 95vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox__back {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  font-weight: 800;
  background: var(--cta-bg);
  color: #fff;
  cursor: pointer;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideCentered {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 16px));
  }

  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@media (max-width: 860px) {
  .hero__actions {
    width: min(420px, 92vw);
  }

  .modal__body--agenda {
    grid-template-columns: 1fr;
  }

  .modal__panel {
    width: 94vw;
    height: 92vh;
  }

  .modal__panel--agenda {
    height: auto;
    max-height: 92vh;
  }
}


@media (max-width: 609px) {
  .bg-video {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: 0 1rem 2rem;
  }

  .hero__actions {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    justify-items: center;
    width: min(420px, 92vw);
    margin: 1rem auto 0;
    animation: fadeSlide 1.1s 0.12s ease both;
    touch-action: pan-y;
    padding-top: 15px;
  }

  .cta {
    touch-action: manipulation;
  }
}
