* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #EEF0F4;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #28272A;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-header {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 16px;
  padding-left: 24px;
  padding-right: 24px;
}
.page-header h1 {
  font-weight: 700;
  font-size: 32px;
  color: #000000;
  margin: 0 0 0.5rem;
}
.page-header p {
  font-weight: 400;
  font-size: 14px;
  color: #747678;
  margin: 0;
}

.timeline {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #D8DADE;
}
.timeline__error {
  text-align: center;
  color: #747678;
  font-size: 16px;
}

.event {
  position: relative;
  display: flex;
  width: 50%;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.event.visible {
  opacity: 1;
  transform: translateY(0);
}
.event:last-child {
  margin-bottom: 0;
}
.event__dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2979FF;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 2;
}
.event--left {
  left: 0;
  justify-content: flex-end;
  padding-right: 32px;
}
.event--left .event__dot {
  right: -9px;
}
.event--right {
  left: 50%;
  justify-content: flex-start;
  padding-left: 32px;
}
.event--right .event__dot {
  left: -9px;
}

.event__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.event__body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.event__photo {
  margin: 14px 0 0;
}

.event__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #EEF0F4;
}

.event__content {
  flex: 1 1 auto;
  min-width: 0;
}

.event__title {
  font-weight: 700;
  font-size: 18px;
  color: #000000;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.event__description {
  font-weight: 400;
  font-size: 14px;
  color: #747678;
  margin: 0;
  line-height: 1.5;
}

.event__date {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 64px;
  padding-left: 20px;
  border-left: 1px solid #EAEAEA;
}

.event__date-month {
  font-weight: 400;
  font-size: 14px;
  color: #28272A;
  line-height: 1.2;
}

.event__date-day {
  font-weight: 700;
  font-size: 24px;
  color: #28272A;
  line-height: 1.1;
}

.event__date-year {
  font-weight: 400;
  font-size: 14px;
  color: #28272A;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .timeline {
    padding: 24px 0 48px;
  }
  .timeline::before {
    left: 24px;
  }
  .event {
    width: 100%;
  }
  .event--left, .event--right {
    left: 0;
    justify-content: flex-start;
    padding-left: 56px;
    padding-right: 0;
  }
  .event--left .event__dot, .event--right .event__dot {
    left: 15px;
    right: auto;
  }
  .event__card {
    width: 90vw;
    max-width: calc(100vw - 56px - 8px);
    padding: 18px;
    gap: 16px;
  }
  .event__title {
    font-size: 18px;
  }
  .event__description {
    font-size: 14px;
  }
  .event__date-month,
.event__date-year {
    font-size: 14px;
  }
  .event__date-day {
    font-size: 28px;
  }
}
