:root {
  --bg: #131313;
  --bg-soft: #1b1b1b;
  --panel: #202020;
  --yellow: #f4ca32;
  --yellow-soft: #f6d459;
  --purple: #b992c6;
  --text: #f7f7f7;
  --muted: #a9a9a9;
  --card-text: #151515;
  --card-muted: #6c6c6c;
  --container: 1380px;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(
      circle at 85% 5%,
      rgba(185, 146, 198, 0.12),
      transparent 30%
    ),
    #131313;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(
    calc(100% - 48px),
    var(--container)
  );
  margin-inline: auto;
}

/* HEADER */

.site-header {
  position: relative;
  z-index: 10;
  padding: 16px 22px 0;
}

.site-header__inner {
  width: min(100%, 1510px);
  min-height: 92px;
  margin-inline: auto;
  padding: 15px 34px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 42px;

  border-top: 1px solid rgba(244, 202, 50, 0.45);
  border-radius: 0 0 58px 58px;

  background:
    linear-gradient(
      110deg,
      rgba(31, 31, 31, 0.98),
      rgba(31, 31, 31, 0.93)
    );

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--yellow);
  line-height: 1;
}

.brand__name {
  font-size: clamp(31px, 3vw, 49px);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.brand__sub {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.52em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 78px);
  color: var(--yellow);
  font-size: 18px;
  font-weight: 600;
}

.site-nav a {
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover {
  opacity: 0.76;
  transform: translateY(-1px);
}

.site-nav__active {
  position: relative;
}

.site-header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.site-header__contacts a {
  font-size: 22px;
  font-weight: 700;
}

.site-header__contacts span {
  margin-top: 4px;
  font-size: 14px;
  color: #e3e3e3;
}

/* HERO */

.events-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 46px;
}

.events-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -5vw;
  top: 30px;
  width: 460px;
  height: 160px;

  border-top: 3px solid rgba(244, 202, 50, 0.2);
  border-radius: 50%;

  transform: rotate(-17deg);
}

.events-hero__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}

.events-hero__glow--yellow {
  width: 320px;
  height: 180px;
  right: 12%;
  top: -100px;
  background: rgba(244, 202, 50, 0.12);
}

.events-hero__glow--purple {
  width: 260px;
  height: 180px;
  right: 0;
  top: 0;
  background: rgba(185, 146, 198, 0.1);
}

.events-hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.events-hero h1 {
  margin: 0;

  color: var(--yellow);

  font-size:
    clamp(58px, 7vw, 106px);

  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.events-hero__lead {
  margin: 21px 0 0;
  color: #cacaca;
  font-size: clamp(18px, 2vw, 24px);
}

/* EVENTS */

.events-section {
  position: relative;
  min-height: 480px;
  padding: 18px 0 100px;
}

.events-section::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: 35px;
  width: 56%;
  height: 140px;
  border-top: 4px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  transform: rotate(7deg);
}

.events-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap:
    34px
    24px;
}

.event-card {
  min-width: 0;
  overflow: hidden;

  border:
    1px solid
    rgba(244, 202, 50, 0.82);

  border-radius: 18px;

  background: #fff;
  color: var(--card-text);

  box-shadow:
    0 22px 45px
    rgba(0, 0, 0, 0.32);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.event-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 28px 60px
    rgba(0, 0, 0, 0.42);
}

.event-card__poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #1d1d1d;
}

.event-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 280ms ease;
}

.event-card:hover
.event-card__poster img {
  transform: scale(1.015);
}

.event-card__body {
  padding: 18px 18px 19px;
}

.event-card__date {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--card-text);
}

.event-card__day {
  color: var(--yellow);
  font-size: 42px;
  font-weight: 800;
  line-height: 0.9;
}

.event-card__date-text {
  display: flex;
  flex-direction: column;
  gap: 1px;

  font-size: 14px;
  line-height: 1.1;
}

.event-card__date-text strong {
  font-size: 15px;
}

.event-card__content {
  min-height: 110px;
  padding-top: 18px;
}

.event-card__content h2 {
  margin: 0;

  font-size: 24px;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.event-card__content h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.event-card__content p {
  margin: 9px 0 0;

  color: var(--card-muted);
  font-size: 14px;
  line-height: 1.4;
}

.event-card__actions {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 8px;
  margin-top: 18px;
}

.button {
  min-height: 43px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 13px;

  border-radius: 10px;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform 130ms ease,
    background 130ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button--secondary {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
}

.button--secondary:hover {
  background: #f4f4f4;
}

.button--primary {
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: #171717;
}

.button--primary:hover {
  background: var(--yellow-soft);
}

.events-empty {
  position: relative;
  z-index: 1;

  padding: 80px 0 120px;

  color: #aaa;
  font-size: 20px;
  text-align: center;
}

/* FOOTER */

.site-footer {
  border-top:
    1px solid
    rgba(244, 202, 50, 0.22);

  background: #101010;
}

.site-footer__inner {
  min-height: 110px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  color: #a9a9a9;
}

.site-footer__inner div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer strong,
.site-footer a {
  color: var(--yellow);
}

/* TABLET */

@media (max-width: 1099px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
  }

  .site-header__contacts {
    display: none;
  }

  .events-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 839px) {
  .site-header {
    padding:
      10px
      12px
      0;
  }

  .site-header__inner {
    min-height: 78px;

    padding:
      12px
      20px;

    grid-template-columns:
      1fr
      auto;

    border-radius:
      0
      0
      34px
      34px;
  }

  .brand__name {
    font-size: 31px;
  }

  .site-nav {
    gap: 20px;
    font-size: 15px;
  }

  .events-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 599px) {
  .container {
    width:
      min(
        calc(100% - 28px),
        var(--container)
      );
  }

  .site-header {
    padding:
      8px
      8px
      0;
  }

  .site-header__inner {
    min-height: 66px;

    padding:
      11px
      16px;

    border-radius:
      0
      0
      28px
      28px;
  }

  .brand__name {
    font-size: 27px;
  }

  .brand__sub {
    font-size: 8px;
  }

  .site-nav a:not(.site-nav__active) {
    display: none;
  }

  .site-nav {
    font-size: 15px;
  }

  .events-hero {
    padding:
      58px
      0
      32px;
  }

  .events-hero h1 {
    font-size: 58px;
  }

  .events-hero__lead {
    margin-top: 14px;
    font-size: 17px;
  }

  .events-section {
    padding:
      8px
      0
      70px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .event-card {
    display: grid;
    grid-template-columns: 35% 1fr;

    border-radius: 14px;
  }

  .event-card__poster {
    height: 100%;
    aspect-ratio: auto;
  }

  .event-card__body {
    display: flex;
    flex-direction: column;

    padding:
      13px
      11px;
  }

  .event-card__day {
    font-size: 30px;
  }

  .event-card__date-text {
    font-size: 12px;
  }

  .event-card__date-text strong {
    font-size: 13px;
  }

  .event-card__content {
    min-height: 0;
    padding-top: 10px;
  }

  .event-card__content h2 {
    font-size: 19px;
  }

  .event-card__content p {
    display: none;
  }

  .event-card__actions {
    margin-top: auto;
    padding-top: 12px;
    gap: 5px;
  }

  .button {
    min-height: 34px;
    padding: 7px 6px;
    border-radius: 8px;
    font-size: 11px;
  }

  .site-footer__inner {
    min-height: 120px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
}
