.home-timeline {
  width: 100%;
  padding-block: 6rem;
  overflow: hidden;
}
.home-timeline__eyebrow {
  margin: 0;
  color: #172248;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-timeline__title {
  margin: 0 0 4rem;
  color: #172248;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
}
.home-timeline__tracks {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.home-timeline__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: max(1.5rem, calc((100vw - 81rem) / 2));
  padding-right: max(1.5rem, calc((100vw - 81rem) / 2));
}

.home-timeline__track::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  width: 100vw;
  top: calc(6rem + 2.375rem + 1.625rem);
  height: 0.0625rem;
  background-color: #2c5aa9;
}
.home-timeline__track:first-of-type::before {
  left: max(1.5rem, calc((100vw - 67rem) / 2));
  width: calc(100vw - max(1.5rem, calc((100vw - 66rem) / 2)));
}

/*
 * EVENT
 */

.home-timeline__item {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/*
 * IMAGE
 */

.home-timeline__image-wrapper {
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.125rem solid #2c5aa9;
  border-radius: 50%;
  background-color: #fff;
  overflow: hidden;
  margin: 0 auto;
}

.home-timeline__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * DOT
 */

.home-timeline__dot {
  width: 0.875rem;
  height: 0.875rem;
  margin: 0 auto;
  margin-top: 1.625rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: #2c5aa9;
}

/*
 * CONTENT
 */

.home-timeline__content {
  margin-top: 2rem;
  text-align: center;
}

.home-timeline__year {
  margin: 0 0 0.5rem;
  color: #2c5aa9;
  font-size: 2.125rem;
  line-height: 1;
  font-weight: 900;
}

.home-timeline__item-title {
  margin: 0;
  color: #172248;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}
@media (max-width: 61.9988rem) {
  .home-timeline__track {
    display: flex;
    flex-direction: column;
    width: auto;
    margin-left: 0;
    padding-inline: 0;
  }
  .home-timeline {
    padding-block: 4rem;
  }

  .home-timeline__title {
    margin-bottom: 3rem;
  }

  .home-timeline__tracks {
    gap: 0;
  }

  .home-timeline__track::before {
    display: none;
  }

  .home-timeline__track + .home-timeline__track {
    margin-top: 0;
  }

  .home-timeline__item {
    display: grid;
    grid-template-columns: 8rem 1.75rem minmax(0, 1fr);
    column-gap: 1rem;
    align-items: center;
    width: 100%;
    margin-top: 3rem;
  }
  .home-timeline__image-wrapper {
    width: 8rem;
    height: 8rem;
  }

  .home-timeline__dot {
    position: relative;
    width: 0.875rem;
    height: 0.875rem;
    margin: 0;
    justify-self: center;
  }

  /*
     * Pionowa linia przechodząca przez kropki.
     */
  .home-timeline__track {
    position: relative;
  }

  .home-timeline__track::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: calc(1.5rem + 8rem + 1rem + 0.75rem / 2);
    width: 0.0625rem;
    background-color: #2c5aa9;
  }
  .home-timeline__track:first-of-type::after {
    top: 7rem;
  }
  .home-timeline__content {
    margin: 0;
    text-align: left;
  }

  .home-timeline__year {
    font-size: 2rem;
  }
}
