:root {
  --color-main: #F4EFE6;
  --color-muted: #D6D0C5;
  --color-accent: #E6D8B8;
  --color-dark: #05080D;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ornament: "Forum", Georgia, "Times New Roman", serif;
}

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

html {
  min-width: 320px;
  background: var(--color-dark);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-main);
  background: var(--color-dark);
  font-family: var(--font-display);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(230, 216, 184, 0.10), transparent 28%),
    linear-gradient(90deg, rgba(5, 8, 13, 0.72) 0%, transparent 20%, transparent 80%, rgba(5, 8, 13, 0.72) 100%);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 1px solid rgba(244, 239, 230, 0.92);
  outline-offset: 5px;
}

.site-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  background-image: url("assets/background-desktop.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(2, 5, 9, 0.30) 0%,
      rgba(2, 5, 9, 0.48) 42%,
      rgba(2, 5, 9, 0.62) 100%
    );
}

.page-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 28px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero {
  padding: clamp(30px, 5vw, 56px) 0 clamp(22px, 4vw, 38px);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: clamp(110px, 8vw, 135px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.26));
}

.hero__brand {
  margin: 7px 0 0;
  color: rgba(244, 239, 230, 0.82);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.1;
}

.divider {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.divider--hero {
  max-width: clamp(210px, 28vw, 315px);
  margin: 9px auto 15px;
  opacity: 0.9;
}

.hero__title {
  max-width: 920px;
  margin: 0 auto 9px;
  font-family: var(--font-display);
  font-size: clamp(54px, 6.1vw, 84px);
  font-weight: 500;
  line-height: 0.9;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.35);
}

.tickets-section {
  padding: 4px 0 clamp(44px, 5vw, 64px);
}

.tickets-list {
  display: grid;
  justify-items: center;
  gap: clamp(24px, 2.4vw, 30px);
}

.ticket-card,
.empty-state,
.contact-card {
  width: min(100%, 980px);
  border: 1px solid rgba(235, 226, 207, 0.48);
  border-radius: 12px;
  background: rgba(4, 8, 14, 0.58);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ticket-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(34px, 3vw, 42px) clamp(40px, 4vw, 50px);
  text-align: center;
  animation: card-rise 0.7s ease both;
}

.divider--card {
  max-width: clamp(150px, 18vw, 190px);
  margin: 4px auto 5px;
  opacity: 0.88;
}

.ticket-card__label {
  margin: 0;
  color: var(--color-main);
  font-family: var(--font-ornament);
  font-size: clamp(26px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticket-card__text {
  max-width: 720px;
  margin: 10px auto 23px;
  color: var(--color-muted);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.32;
  text-wrap: balance;
}

.ticket-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 258px);
  min-height: 64px;
  padding: 17px 36px 18px;
  color: var(--color-main);
  font-family: var(--font-ornament);
  font-size: 19px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  background-image: url("assets/ticket-button-frame.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  filter: brightness(0.98);
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    color 0.25s ease;
}

.ticket-button:hover {
  color: #FFF8EA;
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.empty-state {
  padding: 36px 26px;
  text-align: center;
}

.empty-state__title {
  margin: 0;
  color: var(--color-main);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}

.empty-state__text {
  margin: 10px auto 0;
  color: var(--color-muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.35;
}

.contact-section {
  padding: 0 0 24px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: center;
  gap: 30px;
  max-width: 730px;
  margin: 0 auto;
  padding: 32px 42px;
}

.contact-card__icon-link {
  display: inline-flex;
  width: clamp(72px, 7vw, 90px);
  height: clamp(72px, 7vw, 90px);
  border-radius: 50%;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.contact-card__icon-link:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.contact-card__icon {
  display: block;
  width: 100%;
  height: auto;
}

.contact-card__separator {
  width: 1px;
  min-height: 112px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(230, 216, 184, 0.62),
    transparent
  );
}

.contact-card__content {
  text-align: left;
}

.contact-card__title {
  margin: 0 0 9px;
  color: var(--color-main);
  font-size: clamp(30px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.05;
}

.contact-card__text,
.contact-card__phone,
.contact-card__email {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.35;
}

.contact-card__text a,
.contact-card__phone a,
.contact-card__email a {
  color: var(--color-main);
  text-decoration-color: rgba(230, 216, 184, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-card__text a:hover,
.contact-card__phone a:hover,
.contact-card__email a:hover {
  color: var(--color-accent);
  text-decoration-color: rgba(230, 216, 184, 0.82);
}

.contact-card__phone {
  margin-top: 13px;
}

.contact-card__email {
  margin-top: 4px;
}

.divider--footer {
  max-width: clamp(190px, 23vw, 270px);
  margin: 0 auto 4px;
  opacity: 0.82;
}

.footer {
  padding: 18px 0 0;
  text-align: center;
}

.footer p {
  margin: 0;
  color: rgba(244, 239, 230, 0.58);
  font-family: var(--font-ornament);
  font-size: 15px;
  line-height: 1.4;
}

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

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (max-width: 767px) {
  body::before {
    background:
      radial-gradient(circle at 50% 7%, rgba(230, 216, 184, 0.10), transparent 25%),
      linear-gradient(90deg, rgba(5, 8, 13, 0.38), transparent 22%, transparent 78%, rgba(5, 8, 13, 0.38));
  }

  .site-background {
    background-image: url("assets/background-mobile.webp");
  }

  .site-background::after {
    background:
      linear-gradient(
        180deg,
        rgba(2, 5, 9, 0.42) 0%,
        rgba(2, 5, 9, 0.55) 43%,
        rgba(2, 5, 9, 0.70) 100%
      );
  }

  .page-content {
    padding-bottom: 22px;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero__logo {
    width: clamp(88px, 24vw, 105px);
  }

  .hero__brand {
    margin-top: 5px;
    font-size: clamp(17px, 5vw, 19px);
  }

  .divider--hero {
    max-width: clamp(185px, 66vw, 250px);
    margin: 7px auto 11px;
  }

  .hero__title {
    max-width: 9.5ch;
    font-size: clamp(42px, 12.2vw, 48px);
    line-height: 0.94;
  }

  .tickets-section {
    padding-bottom: 44px;
  }

  .tickets-list {
    gap: 20px;
  }

  .ticket-card,
  .empty-state,
  .contact-card {
    border-radius: 11px;
    background: rgba(4, 8, 14, 0.68);
  }

  .ticket-card {
    padding: 29px 20px 30px;
  }

  .divider--card {
    max-width: clamp(124px, 44vw, 160px);
    margin: 3px auto 4px;
  }

  .ticket-card__label {
    font-size: clamp(21px, 6.4vw, 24px);
    letter-spacing: 0.12em;
  }

  .ticket-card__text {
    margin-top: 9px;
    margin-bottom: 21px;
    font-size: clamp(16px, 4.8vw, 17px);
  }

  .ticket-button {
    width: min(100%, 260px);
    min-height: 62px;
    padding: 16px 32px 17px;
    font-size: 18px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 13px;
    max-width: 100%;
    padding: 29px 22px 30px;
    text-align: center;
  }

  .contact-card__icon-link {
    width: clamp(58px, 18vw, 72px);
    height: clamp(58px, 18vw, 72px);
  }

  .contact-card__separator {
    display: none;
  }

  .contact-card__content {
    text-align: center;
  }

  .contact-card__title {
    font-size: clamp(28px, 8vw, 32px);
  }

  .contact-card__text,
  .contact-card__phone,
  .contact-card__email {
    font-size: clamp(16px, 4.7vw, 18px);
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 18px;
  }

  .ticket-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ticket-button {
    min-height: 60px;
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
