:root {
  /* palette */
  --color-bg: #000;
  --color-surface: #fff;
  --color-ink: #1a1a1a;
  --color-link: #00b7ff;
  --color-accent: #e8b73b;
  --color-accent-hover: #ffce4a;

  /* typography */
  --font-base: 14px Helvetica, Arial, sans-serif;

  /* shape */
  --radius-sm: 6px;
  --radius-pill: 28px;
  --shadow-cta: 0 6px 20px rgb(0 0 0 / 0.45);

  /* motion */
  --transition-base: 0.2s ease-out;
}

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

body {
  margin: 0;
  font: var(--font-base);
}

a {
  color: var(--color-link);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Utilities */
.alignCenter {
  text-align: center;
}

.clear {
  clear: both;
  height: 0;
  line-height: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Появление блоков. Разметка ставит .reveal, скрипт добавляет .reveal-visible.
   Тайминги — в переменных, чтобы отдельные блоки настраивались без дублирования правил. */
:root {
  --reveal-duration: 500ms;
  --reveal-distance: 16px;
  --reveal-easing: ease-out;
}

.reveal {
  opacity: 0;
  translate: 0 var(--reveal-distance);
  transition:
    opacity var(--reveal-duration) var(--reveal-easing),
    translate var(--reveal-duration) var(--reveal-easing);
}

.reveal-visible {
  opacity: 1;
  translate: none;
}

/* Ниже переопределяются только переменные: если задавать здесь opacity и translate,
   правило перебьёт .reveal-visible по специфичности и потребует !important.
   Картинка шапки, как и раньше, только проявляется — без сдвига. */
header img.reveal {
  --reveal-duration: 600ms;
  --reveal-distance: 0px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-visible {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* Всплывающее окно с iframe */
.popover {
  width: 800px;
  max-width: calc(100% - 40px);
  height: 90vh;
  max-height: calc(100% - 40px);
  padding: 0;
  margin: auto;
  border: none;
  border-radius: 4px;
  background: white;
  overflow: hidden;
}

.popover:focus {
  outline: none;
}

.popover::backdrop {
  background: rgba(0, 0, 0, 0.87);
}

.popover-frame {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 40px;
  border: none;
  background: white;
}

.popover-close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: black;
  font-size: 28px;
  line-height: 36px;
  cursor: pointer;
}

.popover-close:focus-visible {
  outline: 2px solid #999;
  outline-offset: -2px;
}

/* фон не должен скроллиться под открытым окном */
html.popover-open,
html.popover-open body {
  overflow: hidden;
}

/* Hero */
header {
  position: relative;
}

header img {
  display: block;
  width: 100%;
  height: auto;
}

/* Press release */
.pressrelease {
  padding: 100px 15%;
  background-color: var(--color-bg);
  color: var(--color-surface);
  font-size: 24px;
}

/* Ticket buttons — shared base */
.buy-ticket-button-long a,
.buy-ticket-button-simple a {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

/* Hero CTA (overlaid on banner) */
.buy-ticket-button-long {
  position: absolute;
  inset-block-start: 1vh;
  inset-inline: 0;
  z-index: 2;
  text-align: center;
}

.buy-ticket-button-long a {
  padding: 16px 34px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-cta);
  transition: background var(--transition-base), transform var(--transition-base);
}

.buy-ticket-button-long a:hover,
.buy-ticket-button-long a:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Inline CTA (within press release) */
.buy-ticket-button-simple {
  width: 100%;
  margin: 0 auto 60px;
  text-align: center;
}

.buy-ticket-button-simple a {
  padding: 12px 21px;
  background: var(--color-bg);
  color: var(--color-surface);
  font-size: 14px;
  border: 4px solid var(--color-surface);
  border-radius: var(--radius-pill);
}

/* Media blocks */
.videos {
  width: 80%;
  margin: 30px auto;
}

.socialLink {
  height: 40px;
  margin: 4px;
}

.map {
  margin-top: 50px;
}

/* Pages */
.content-page {
  padding: 16pt;
}

.legal-note {
  padding: 0 5pt;
  font-size: 6pt;
  text-align: right;
}

.order-status {
  width: 100%;
  padding: 80px 16px;
  text-align: center;
  font-size: 16pt;
  color: #000;
  background: #fff;
}

.ticket-widget {
  height: 79vh;
  padding: 5%;
}

@media (max-width: 640px) {
  .popover {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .popover-frame {
    padding: 36px 10px 10px 10px;
  }

  .pressrelease {
    padding: 16px;
    font-size: 16px;
  }

  .buy-ticket-button-simple {
    margin-block: 8px 40px;
  }

  .buy-ticket-button-simple a {
    padding: 8px 14px;
    border-width: 3px;
  }

  .buy-ticket-button-long {
    display: none;
  }
}
