/**
 * Гостевая зона: хаб, форма регистрации, билет (mobile-first, тёмная тема по умолчанию).
 */

:root {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.zone-guest {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #050505;
  color: #f5f5f5;
}

.site-main {
  min-height: 100vh;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 1.25rem 1rem 2.5rem;
}

.guest-shell {
  --event-bg: #0a0a0a;
  --event-text: #f5f5f5;
  --event-font: system-ui, sans-serif;
  --event-cta-bg: #c9a227;
  --event-cta-text: #111111;
  --accent: #c9a227;
  --panel: #14110e;
  --panel-border: rgba(201, 162, 39, 0.28);
  --muted: rgba(245, 245, 245, 0.62);

  width: min(100%, 28rem);
  color: var(--event-text);
  font-family: var(--event-font);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    var(--event-bg);
  border-radius: 1.25rem;
  padding: 1.5rem 1.15rem 1.75rem;
  min-height: min(100vh - 2.5rem, 46rem);
}

.guest-shell--hub {
  display: grid;
  align-content: start;
  gap: 1.75rem;
  text-align: center;
  width: min(100%, 26rem);
  min-height: calc(100vh - 2.5rem);
  border-radius: 0;
  padding: 2rem 1.25rem 2.5rem;
}

.guest-shell--dark,
.guest-shell--hub,
.guest-shell--ticket,
.guest-shell--program,
.guest-shell--landing {
  --event-bg: #000000;
  --event-text: #ffffff;
  --event-cta-bg: #c5a059;
  --event-cta-text: #111111;
  --accent: #c5a059;
  --panel: #141210;
  --panel-border: rgba(197, 160, 89, 0.28);
  --muted: rgba(255, 255, 255, 0.55);
  color: #ffffff !important;
  background: #000000 !important;
}

.guest-shell--landing {
  width: min(100%, 26rem);
  min-height: calc(100vh - 2.5rem);
  border-radius: 0;
  padding: 1.75rem 1.15rem 2.25rem;
}

.guest-shell--ticket,
.guest-shell--program {
  width: min(100%, 26rem);
  min-height: calc(100vh - 2.5rem);
  border-radius: 0;
  padding: 1.25rem 1rem 2rem;
}

.guest-shell--dark .guest-topbar__title,
.guest-shell--ticket .guest-topbar__title,
.guest-shell--program .guest-topbar__title {
  color: #c5a059;
  font-weight: 500;
}

.guest-shell--dark .guest-topbar__back,
.guest-shell--ticket .guest-topbar__back,
.guest-shell--program .guest-topbar__back {
  color: #ffffff;
}

.guest-hub-nav {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
  width: 100%;
}

.guest-hub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  text-align: center;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.guest-hub-btn:hover,
.guest-hub-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.guest-hub-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

.guest-shell--hub .guest-shell__note {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.guest-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.guest-brand--hub {
  margin-bottom: 0.25rem;
}

.guest-brand__logo {
  display: block;
  max-width: min(100%, 14rem);
  max-height: 5.5rem;
  width: auto;
  height: auto;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.guest-brand__logo--lg {
  max-width: min(100%, 16rem);
  max-height: 7rem;
  margin-bottom: 1rem;
}

.guest-brand__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--accent);
}

.guest-brand__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
}

.guest-brand__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.guest-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  padding: 1.15rem 1rem 1.25rem;
}

.guest-card__head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.guest-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.guest-card__hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.guest-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.guest-tabs__link {
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.4rem;
  border-radius: 999px;
}

.guest-tabs__link.is-active {
  color: #111;
  background: var(--accent);
}

.guest-form {
  display: grid;
  gap: 0.9rem;
}

.guest-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--accent);
}

.guest-field abbr {
  text-decoration: none;
  color: var(--accent);
}

.guest-field input,
.guest-field textarea {
  width: 100%;
  border: 1px solid rgba(180, 80, 60, 0.45);
  border-radius: 0.55rem;
  background: #1a1512;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.8rem;
}

.guest-field input:focus,
.guest-field textarea:focus {
  outline: 2px solid rgba(201, 162, 39, 0.55);
  outline-offset: 1px;
}

.guest-cta {
  appearance: none;
  border: 0;
  border-radius: 999px;
  margin-top: 0.35rem;
  padding: 0.95rem 1.1rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: var(--event-cta-bg);
  color: var(--event-cta-text);
}

.guest-cta:hover {
  filter: brightness(1.05);
}

.guest-notice {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.guest-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.guest-alert--error {
  background: rgba(180, 50, 40, 0.22);
  border: 1px solid rgba(220, 90, 70, 0.45);
}

.guest-shell__foot,
.guest-shell__note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.guest-topbar {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.guest-topbar__back {
  color: inherit;
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.25rem;
}

.guest-topbar__title {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.guest-ticket-card,
.guest-program-card {
  background: #141210;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  padding: 1.35rem 1.15rem 1.5rem;
}

.guest-ticket-card__eyebrow {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  color: #c5a059;
  text-transform: lowercase;
}

.guest-ticket-card__logo {
  display: block;
  max-width: 12rem;
  max-height: 4.5rem;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.guest-ticket-card__brand {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #e11d2e;
}

.guest-ticket-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.35);
}

.guest-ticket-card__label {
  color: #c5a059;
  font-size: 0.85rem;
}

.guest-ticket-card__value {
  text-align: right;
  font-size: 0.95rem;
  color: #ffffff;
  word-break: break-word;
}

.guest-ticket-card__hint {
  margin: 1.25rem 0 0.9rem;
  text-align: center;
  color: #c5a059;
  font-size: 0.88rem;
}

.guest-ticket-card__qr {
  width: min(100%, 260px);
  margin: 0 auto;
  padding: 0.85rem;
  background: #fff;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
}

.guest-ticket__qr {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1;
}

.guest-ticket__qr-fallback {
  margin: 0;
  color: #111;
  font-size: 0.8rem;
  word-break: break-all;
  text-align: center;
}

.guest-ticket-card__code {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.guest-ticket-card__warn {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #777777;
}

.guest-program-card__title {
  margin: 0 0 1.15rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

.guest-program-card__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.92);
}

.guest-program-card__empty {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.guest-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.guest-schedule__row {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.22);
}

.guest-schedule__row:first-child {
  padding-top: 0.15rem;
}

.guest-schedule__row:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.guest-schedule__time {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c5a059;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.guest-schedule__time--empty {
  opacity: 0.35;
  font-weight: 600;
}

.guest-schedule__event {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.45;
  word-break: break-word;
}

@media (min-width: 720px) {
  .site-main {
    padding-top: 2.5rem;
  }

  .guest-shell {
    padding: 1.75rem 1.5rem 2rem;
  }
}
