:root {
  --navy-950: #04111e;
  --navy-900: #071b31;
  --navy-800: #0b2949;
  --navy-700: #123a61;
  --blue: #3678f4;
  --yellow: #ffe72e;
  --red: #ef2633;
  --green: #8ecb3c;
  --white: #ffffff;
  --text: #eef6ff;
  --muted: #b7c6d7;
  --border: rgba(255, 255, 255, 0.12);
  --surface: rgba(8, 31, 55, 0.78);
  --surface-strong: rgba(10, 40, 70, 0.94);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --page-width: 760px;
  --focus: 0 0 0 4px rgba(255, 231, 46, 0.34);
}

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

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 5%, rgba(54, 120, 244, 0.25), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(239, 38, 51, 0.14), transparent 24rem),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 48%, #0b223a);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  box-shadow: var(--focus);
}

::selection {
  color: var(--navy-950);
  background: var(--yellow);
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--navy-950);
  background: var(--yellow);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.page-shell {
  width: min(calc(100% - 28px), var(--page-width));
  margin-inline: auto;
  padding-block: clamp(18px, 5vw, 52px);
}

.hero,
.section,
.site-footer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(24px, 7vw, 54px) clamp(18px, 6vw, 46px) clamp(34px, 7vw, 54px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 38%),
    var(--surface-strong);
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.hero__rays {
  position: absolute;
  inset: -45% -35% 36%;
  z-index: -1;
  opacity: 0.42;
  background: repeating-conic-gradient(
    from -9deg at 50% 66%,
    rgba(255, 231, 46, 0.26) 0deg 5deg,
    transparent 5deg 17deg
  );
  mask-image: radial-gradient(circle at 50% 66%, black 0 28%, transparent 68%);
  transform: rotate(-2deg);
}

.hero__logo {
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.34));
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 7px 14px;
  color: var(--navy-950);
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero__intro {
  max-width: 30ch;
  margin: 20px 0 24px;
  color: var(--text);
  font-size: clamp(1.1rem, 4.5vw, 1.55rem);
  font-weight: 750;
  line-height: 1.32;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--yellow), #fff36c);
  box-shadow: 0 12px 26px rgba(255, 231, 46, 0.22);
}

.button--primary:hover {
  box-shadow: 0 16px 34px rgba(255, 231, 46, 0.3);
}

main {
  display: grid;
  gap: 22px;
  margin-block: 22px;
}

.section {
  padding: clamp(26px, 6vw, 46px);
  background: var(--surface);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px);
}

.section__heading {
  max-width: 590px;
  margin-bottom: 26px;
}

.section__eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.65rem, 6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section__heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.market-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.market-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.75fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(110deg, rgba(142, 203, 60, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(142, 203, 60, 0.26);
  border-radius: var(--radius-md);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.market-card:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 203, 60, 0.52);
}

.market-card--night {
  background:
    linear-gradient(110deg, rgba(54, 120, 244, 0.18), rgba(239, 38, 51, 0.08)),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(54, 120, 244, 0.38);
}

.market-card__date,
.market-card__details {
  display: grid;
  gap: 3px;
}

.market-card__label,
.market-card__time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-card__date strong {
  color: var(--white);
  font-size: clamp(1.08rem, 4vw, 1.3rem);
  line-height: 1.2;
}

.market-card__details {
  justify-items: end;
  text-align: right;
}

.market-card__place {
  color: var(--yellow);
  font-weight: 850;
}

.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-block p {
  margin: 0;
  color: var(--muted);
}

.button--contact {
  color: var(--white);
  background: rgba(142, 203, 60, 0.16);
  border: 1px solid rgba(142, 203, 60, 0.45);
}

.button--contact:hover {
  background: rgba(142, 203, 60, 0.24);
}

.section--video {
  background:
    linear-gradient(145deg, rgba(54, 120, 244, 0.13), rgba(239, 38, 51, 0.08)),
    var(--surface);
}

.video-frame {
  min-height: 200px;
  overflow: hidden;
  background: #02070d;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-external-link {
  margin: 14px 0 0;
  text-align: center;
}

.video-external-link a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration-color: rgba(255, 231, 46, 0.7);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.video-external-link a:hover {
  color: var(--yellow);
}

.site-footer {
  display: grid;
  justify-items: center;
  padding: 26px 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(4, 17, 30, 0.72);
  border-radius: var(--radius-xl);
}

.site-footer p {
  margin: 3px 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer__brand {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.site-footer__brand span {
  width: 28px;
  height: 5px;
  border-radius: 999px;
}

.site-footer__brand span:nth-child(1) { background: var(--blue); }
.site-footer__brand span:nth-child(2) { background: var(--yellow); }
.site-footer__brand span:nth-child(3) { background: var(--red); }

.site-footer__credit {
  color: var(--yellow);
  font-size: 0.86rem;
  font-weight: 800;
}

.event-dialog {
  width: min(calc(100% - 28px), 520px);
  max-height: min(88vh, 720px);
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  overflow: visible;
}

.event-dialog::backdrop {
  background: rgba(1, 8, 15, 0.78);
  backdrop-filter: blur(8px);
}

.event-dialog__panel {
  position: relative;
  max-height: 88vh;
  padding: clamp(28px, 7vw, 46px);
  overflow-y: auto;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(54, 120, 244, 0.15), rgba(239, 38, 51, 0.08)),
    var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.event-dialog__close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 0 3px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.event-dialog__eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.event-dialog h2 {
  margin: 0 34px 20px;
  font-size: clamp(1.7rem, 7vw, 2.35rem);
  line-height: 1.15;
}

.event-dialog p {
  color: var(--muted);
}

.event-dialog strong {
  color: var(--white);
}

.event-dialog__highlight {
  padding: 14px 16px;
  color: var(--white) !important;
  background: rgba(142, 203, 60, 0.12);
  border-inline-start: 4px solid var(--green);
  border-radius: 12px;
  text-align: left;
}

.event-dialog__button {
  margin-top: 10px;
}

@media (max-width: 600px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--page-width));
    padding-block: 9px 18px;
  }

  .hero,
  .section,
  .site-footer {
    border-radius: 22px;
  }

  main {
    gap: 14px;
    margin-block: 14px;
  }

  .market-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .market-card__details {
    justify-items: start;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

  .contact-block {
    align-items: stretch;
  }

  .contact-block,
  .button--contact {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .section {
    background: var(--navy-800);
  }
}
