:root {
  --event-media-height: 176px;
}

.events-page .catalog-description {
  max-width: 950px;
}

.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.event-card {
  min-width: 0;
  min-height: 570px;
  height: 570px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.13);
  border-radius: 16px;
  color: #101820;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(245, 251, 251, 0.8)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 34px rgba(23, 82, 92, 0.045);
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease-out);
}

.event-card-link {
  min-height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.event-card-link:focus-visible {
  outline: 3px solid rgba(8, 127, 146, 0.4);
  outline-offset: -3px;
}

.event-card-media {
  position: relative;
  min-height: var(--event-media-height);
  flex: 0 0 var(--event-media-height);
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 24, 32, 0.09);
  background-color: #092129;
  isolation: isolate;
}

.event-card-media::before,
.event-card-media::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.event-card-media::before {
  inset: 18% -5% auto 38%;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(60, 213, 226, 0.42);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(35, 190, 207, 0.06),
    0 0 72px rgba(22, 177, 194, 0.2);
  transform: rotate(-12deg);
}

.event-card-media::after {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(125deg, rgba(1, 7, 10, 0.08), rgba(0, 8, 12, 0.68)),
    radial-gradient(circle at 72% 28%, rgba(55, 219, 230, 0.5), transparent 10%),
    radial-gradient(circle at 20% 82%, rgba(18, 112, 129, 0.34), transparent 42%);
}

.event-card-media--legal {
  background-color: #111d2a;
}

.event-card-media--legal::before {
  inset: -38% 12% auto auto;
  width: 82%;
  border-radius: 0;
  transform: rotate(35deg);
}

.event-card-media--product {
  background-color: #0e2528;
}

.event-card-media--leadership {
  background-color: #11222f;
}

.event-card-media--psychology {
  background-color: #12272b;
}

.event-card-media--team {
  background-color: #15212d;
}

.event-card-media--business {
  background-color: #0d2723;
}

.event-card-media--education {
  background-color: #142631;
}

.event-card-media--reflection {
  background-color: #10242d;
}

.event-card-media--strategy {
  background-color: #0d2028;
}

.event-card-media--image::before {
  z-index: 1;
  inset: auto -12% -82% auto;
  width: 76%;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.event-card-origin {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(2, 10, 14, 0.64);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-style: normal;
  font-weight: 740;
  letter-spacing: 0.055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.event-card-body {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.event-card-heading {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-card-date {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
}

.event-card-date > span,
.event-card-date time {
  color: #0b313a;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
}

.event-card-date small {
  color: #64737c;
  font-size: 11px;
  font-weight: 620;
}

.event-card-format {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  color: #087f92;
  background: #e2f1f3;
  font-size: 10px;
  font-weight: 740;
  line-height: 1.2;
}

.event-card-type {
  margin: 15px 0 0;
  color: #087f92;
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 11px 0 0;
  font-size: clamp(20px, 1.55vw, 23px);
  font-weight: 690;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.event-card-description {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: #65737e;
  font-size: 13px;
  font-weight: 470;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-card-details {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 24, 32, 0.1);
}

.event-card-details > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
}

.event-card-details dt,
.event-card-details dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.event-card-details dt {
  color: #849198;
  font-weight: 620;
}

.event-card-details dd {
  overflow-wrap: anywhere;
  color: #3b4a52;
  font-weight: 620;
}

.event-card-status {
  margin-top: auto;
  padding-top: 13px;
  color: #087f92;
  font-size: 12px;
  font-weight: 710;
}

.has-js .events-cards-grid .event-card {
  opacity: 1;
  transform: none;
}

.has-js .events-cards-grid .event-card.is-preview {
  min-height: 82px;
  height: 82px;
  opacity: 0.58;
  pointer-events: none;
  border-color: rgba(8, 127, 146, 0.12);
  box-shadow: none;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 58%, transparent 100%);
}

.events-cards-grid .event-card.is-preview .event-card-media {
  min-height: 112px;
  flex-basis: 112px;
  border-bottom: 0;
}

.events-cards-grid .event-card.is-preview .event-card-body {
  display: none;
}

.event-card.is-entering {
  animation: event-card-enter 460ms var(--ease-out) both;
}

.event-card:focus-visible {
  outline: 3px solid rgba(8, 127, 146, 0.4);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .event-card:hover {
    border-color: rgba(8, 127, 146, 0.28);
    box-shadow: 0 18px 42px rgba(23, 82, 92, 0.1);
    transform: translateY(-3px);
  }
}

@media (max-width: 1100px) {
  .events-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .events-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }

  .event-card {
    min-height: 560px;
    height: 560px;
  }

  .event-card h3 {
    font-size: clamp(21px, 6vw, 23px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card.is-entering {
    animation: none;
  }
}

@keyframes event-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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