.df-events {
  --df-card: #101318;
  --df-text: #ffffff;
  --df-muted: rgba(255,255,255,0.72);
  --df-line: rgba(255,255,255,0.28);
  --df-events-gap: 22px;

  position: relative;
  width: 100%;
  padding: 0;
  color: var(--df-text);
  background: transparent;
  font-family: Inter, Arial, sans-serif;
}

.df-events,
.df-events * {
  box-sizing: border-box;
}

.df-events__viewport {
  position: relative;
  overflow: visible !important;
  width: 100%;
}

.df-events__track {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--df-events-gap);
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.df-events__item {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100%;
  min-height: 170px;
  display: none;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 32px;
  padding: 34px 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 18%, rgba(92, 111, 255, 0.11), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    var(--df-card);
  border: 1px solid var(--df-line);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 24px 70px rgba(0,0,0,0.44);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.38s ease,
    transform 0.38s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.df-events__item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 35%, rgba(120,140,255,0.05));
  opacity: 0.55;
}

.df-events__item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 86% 50%, rgba(135, 148, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 48%);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.df-events__item.is-active {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.df-events__item.is-active:hover,
.df-events__item.is-active:focus-within {
  border-color: rgba(255,255,255,0.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 28px 78px rgba(0,0,0,0.52),
    0 0 0 1px rgba(135,148,255,0.08);
  transform: translateY(-2px);
}

.df-events__item.is-active:hover::after,
.df-events__item.is-active:focus-within::after {
  opacity: 1;
}

.df-events__main,
.df-events__content,
.df-events__action {
  position: relative;
  z-index: 2;
}

.df-events__topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.df-events__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 6px 18px;
  border-radius: 999px;
  background: #f4f4f4;
  color: #080808;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.df-events__date {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0;
}

.df-events__content {
  min-width: 0;
}

.df-events__content h3 {
  max-width: 780px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.df-events__place {
  max-width: 700px;
  margin: 0;
  color: var(--df-muted);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 400;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.df-events__action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 100%;
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.df-events__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 138px;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.03);
  color: #fff;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.df-events__button:hover,
.df-events__button:focus-visible {
  background: #fff;
  color: #050505;
  border-color: #fff;
  transform: translateY(-1px);
}

.df-events__button span:last-child {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.28s ease;
}

.df-events__button:hover span:last-child,
.df-events__button:focus-visible span:last-child {
  transform: translateX(4px);
}

.df-events__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 0;
}

.df-events__nav {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 11px 18px;
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.df-events__nav:hover:not(:disabled) {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.32);
}

.df-events__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.df-events__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
}

.df-events__dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.df-events__dot.is-active {
  background: #fff;
  transform: scale(1.14);
  box-shadow: 0 0 18px rgba(255,255,255,0.18);
}

@media (max-width: 1024px) {
  .df-events__item {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 24px;
    padding: 30px 28px;
  }

  .df-events__content h3 {
    font-size: 26px;
  }

  .df-events__action {
    padding-left: 24px;
  }
}

@media (max-width: 767px) {
  .df-events {
    --df-events-gap: 18px;
  }

  .df-events__item,
  .df-events__item.is-active {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding: 28px 24px;
    border-radius: 22px;
  }

  .df-events__topline {
    gap: 12px;
    margin-bottom: 18px;
  }

  .df-events__content h3 {
    font-size: 23px;
  }

  .df-events__action {
    justify-content: flex-start;
    border-left: 0;
    padding-left: 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .df-events__button {
    width: 100%;
  }

  .df-events__pagination {
    gap: 12px;
    margin-top: 24px;
  }
}
