:root {
  --gold: var(--blue);
  --gold-light: var(--blue);
}

@keyframes hero-breathe {
  from {
    transform: scale(1.018) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.045) translate3d(-0.7%, -0.45%, 0);
  }
}

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

  to {
    opacity: var(--schedule-opacity, 1);
    transform: translateY(0);
  }
}

.hero-media-blur {
  display: none;
}

.hero-media-main {
  object-fit: cover;
  object-position: center 62%;
  opacity: 0.94;
  filter: saturate(0.98) contrast(1.02) brightness(0.88);
  transform-origin: center 62%;
  animation: hero-breathe 28s ease-in-out infinite alternate;
}

.hero-content {
  transform: translateX(clamp(-150px, -9vw, -48px));
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(16, 15, 12, 0.58) 0%, rgba(16, 15, 12, 0.42) 45%, rgba(16, 15, 12, 0.2) 100%),
    linear-gradient(180deg, rgba(16, 15, 12, 0.02), transparent 44%, rgba(16, 15, 12, 0.68));
}

.button.primary {
  color: #0f1a20;
  background: linear-gradient(135deg, var(--blue), #86aec2 52%, #5f8ea6);
  box-shadow: 0 12px 32px rgba(112, 159, 183, 0.22);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 62%);
  filter: none;
  animation: none;
  opacity: 0.18;
  transform: translateY(-30%);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.button.primary:hover,
.button.primary:focus-visible {
  filter: saturate(1.06) brightness(1.04);
  box-shadow: 0 15px 34px rgba(112, 159, 183, 0.28);
}

.button.primary:hover::after,
.button.primary:focus-visible::after {
  opacity: 0.34;
  transform: translateY(0);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: rgba(112, 159, 183, 0.52);
}

.dates-section {
  background: linear-gradient(180deg, #171410 0%, #12100d 100%);
}

.schedule-list {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.045);
  box-shadow: var(--shadow);
}

.schedule-item {
  position: relative;
  --schedule-opacity: 1;
  min-height: 90px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 14px 18px 14px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.055);
  opacity: 0;
  animation: schedule-rise 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.schedule-item:nth-child(2) {
  animation-delay: 45ms;
}

.schedule-item:nth-child(3) {
  animation-delay: 90ms;
}

.schedule-item:nth-child(4) {
  animation-delay: 135ms;
}

.schedule-item:nth-child(5) {
  animation-delay: 180ms;
}

.schedule-item:nth-child(n + 6) {
  animation-delay: 220ms;
}

.schedule-item::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(112, 159, 183, 0.46);
}

.schedule-item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -80px;
  width: 70px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: skewX(-16deg) translateX(0);
  opacity: 0;
  pointer-events: none;
}

.schedule-item:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 159, 183, 0.36);
  background: rgba(255, 250, 240, 0.082);
}

.schedule-item:hover::after {
  opacity: 1;
  transform: skewX(-16deg) translateX(920px);
  transition: opacity 120ms ease, transform 900ms ease;
}

.schedule-date {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.schedule-date span {
  min-width: 46px;
  color: var(--gold);
  font-size: 2.35rem;
  line-height: 0.9;
  font-weight: 800;
}

.schedule-date small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.schedule-main {
  min-width: 0;
}

.schedule-main h3 {
  margin: 0 0 5px;
  font-size: 1.34rem;
  line-height: 1.15;
  font-weight: 800;
}

.schedule-main p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.schedule-tag {
  position: relative;
  z-index: 1;
  justify-self: end;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.07);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-item.is-next {
  border-color: rgba(112, 159, 183, 0.6);
  background: linear-gradient(90deg, rgba(112, 159, 183, 0.18), rgba(255, 250, 240, 0.065));
}

.schedule-item.is-next::before {
  background: var(--gold);
}

.schedule-item.is-next .schedule-date span,
.schedule-item.is-next .schedule-tag {
  color: var(--gold-light);
}

.schedule-item.is-special .schedule-tag {
  color: #dfe9cf;
  border-color: rgba(107, 118, 87, 0.66);
  background: rgba(107, 118, 87, 0.2);
}

.schedule-item.is-private .schedule-tag {
  color: #d9cbb8;
}

.schedule-item.is-past {
  --schedule-opacity: 0.68;
  opacity: 0.68;
}

@media (max-width: 980px) {
  .hero-content {
    transform: none;
  }
}

@media (max-width: 720px) {
  .hero-media-main {
    object-position: center 62%;
  }

  .schedule-list {
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .schedule-item {
    min-height: 0;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas:
      "date tag"
      "date main";
    align-items: start;
    gap: 8px 16px;
    padding: 16px 16px 16px 18px;
    border-color: var(--line);
    background: rgba(255, 250, 240, 0.058);
  }

  .schedule-date {
    grid-area: date;
    display: block;
  }

  .schedule-date span {
    display: block;
    min-width: 0;
    font-size: 2.05rem;
  }

  .schedule-date small {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
  }

  .schedule-main {
    grid-area: main;
  }

  .schedule-main h3 {
    font-size: 1.16rem;
  }

  .schedule-tag {
    grid-area: tag;
    justify-self: end;
    padding: 7px 10px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media-main,
  .schedule-item {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }
}
