@font-face {
    font-family: "TT-Ricordi-Allegria-Trial";
    src: url(/fonts/TT-Ricordi-Allegria-Trial.woff2) format("woff2"),
         url(/fonts/TT-Ricordi-Allegria-Trial.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Century Gothic Paneuropean";
    src: url(/fonts/Century-Gothic-Paneuropean.woff2) format("woff2"),
         url(/fonts/Century-Gothic-Paneuropean.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


.tools-grid {
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:120px;
  align-items:start;
}

.tools-section {
  min-height: fit-content;
  padding-top: 30px;
  padding-bottom: 30px;
  background: #353432;
  color: #f3eee6;
  display: grid;
  grid-template-columns: 32% 68%;
  gap: 40px;
}

.tools-section__left {
  position: sticky;
  top: 60px;
  align-self: start;
}

.tools-section__title {
  margin: 0;
  font-family: "TT-Ricordi-Allegria-Trial", serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tools-section__right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px;
  align-items: flex-start;
  min-height: 300px;
}

.tools-column__title {
  margin: 0 0 28px;
  font-family: "TT-Ricordi-Allegria-Trial", serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(243, 238, 230, 0.7);
}

.slot-list {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.slot-list::before,
.slot-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 42px;
  z-index: 2;
  pointer-events: none;
}

.slot-list::before {
  top: 0;
  background: linear-gradient(to bottom, #353432, rgba(53, 52, 50, 0));
}

.slot-list::after {
  bottom: 0;
  background: linear-gradient(to top, #353432, rgba(53, 52, 50, 0));
}

.slot-list__track {
  display: flex;
  flex-direction: column;
  animation: slotSpin 9s linear infinite;
}

.slot-list__track--slow {
  animation-duration: 11s;
}

.slot-list__track--fast {
  animation-duration: 7.5s;
}

.slot-list__track span {
  height: 50px;
  display: flex;
  align-items: center;
  font-family: "Century Gothic Paneuropean";
  font-size: 22px;
  line-height: 1.2;
  color: rgba(243, 238, 230, 0.92);
}

.slot-list:hover .slot-list__track {
  animation-play-state: paused;
}

@keyframes slotSpin {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-250px);
  }
}

@media (max-width: 1024px) {
  .tools-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 24px;
  }

  .tools-section__left {
    position: static;
  }

  .tools-section__right {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    min-height: auto;
  }

  .tools-section__title {
    font-size: 42px;
  }
}

@media (max-width: 767px) {
  .tools-section {
    padding: 48px 16px;
  }

  .tools-section__right {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .tools-section__title {
    font-size: 34px;
  }

  .tools-column__title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .slot-list {
    height: 210px;
  }

  .slot-list__track span {
    height: 42px;
    font-size: 18px;
  }

  @keyframes slotSpin {
    from {
      transform: translateY(0);
    }

    to {
      transform: translateY(-210px);
    }
  }
}