@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400&display=swap");

.custom-anim-marquee {
  --custom-anim-marquee-bg: #20242d;
  --custom-anim-marquee-accent: #dfff12;

  width: 100%;
  overflow: hidden;
  padding: 50px 0;
  background: var(--custom-anim-marquee-bg);
}

.custom-anim-marquee *,
.custom-anim-marquee *::before,
.custom-anim-marquee *::after {
  box-sizing: border-box;
}

.custom-anim-marquee__track {
  display: flex;
  width: max-content;
  animation: custom-anim-marquee 22s linear infinite;
  will-change: transform;
}

.custom-anim-marquee__text {
  flex: 0 0 auto;
  padding-right: 44px;
  color: var(--custom-anim-marquee-accent);
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 65px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.custom-anim-marquee__plus {
  font-family: Arial, Helvetica, sans-serif;
}

@keyframes custom-anim-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.custom-anim-stats {
  width: min(1600px, calc(100vw - 36px));
  margin-inline: auto;
  overflow: hidden;
  color: #23282e;
}

.custom-anim-stats *,
.custom-anim-stats *::before,
.custom-anim-stats *::after {
  box-sizing: border-box;
}

.custom-anim-stats__track {
  display: flex;
  width: max-content;
}

.custom-anim-stats__group {
  display: flex;
  width: max-content;
  justify-content: flex-start;
  gap: 100px;
}

.custom-anim-stats__group--clone {
  display: none;
}

.custom-anim-stats__item {
  min-width: 150px;
  padding-left: 14px;
  border-left: 3px solid #23282e;
}

.custom-anim-stats__value {
  margin: 0 0 4px;
  color: #23282e;
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 65px;
  font-weight: 400;
  line-height: 1.08;
  white-space: nowrap;
}

.custom-anim-stats__plus {
  font-family: Arial, Helvetica, sans-serif;
}

.custom-anim-stats__label {
  margin: 0;
  color: #23282e;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.custom-anim-history {
  --panel: #20242d;
  --text: #fff;
  --accent: #dfff12;
  --line: rgba(223, 255, 18, 0.48);
  --card-width: 260px;
  --gap: 50px;

  width: min(1600px, calc(100vw - 36px));
  margin-inline: auto;
  padding: 50px;
  overflow: hidden;
  color: var(--text);
  background: var(--panel);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(10, 12, 18, 0.18);
}

.custom-anim-history *,
.custom-anim-history *::before,
.custom-anim-history *::after {
  box-sizing: border-box;
}

.custom-anim-history .custom-anim-history__title {
  margin: 0 0 6px;
  color: #fff;
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 65px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.custom-anim-history .custom-anim-history__subtitle {
  max-width: none;
  margin: 0 0 50px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
}

.custom-anim-history__viewport {
  position: relative;
  margin-inline: -2px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  user-select: none;
}

.custom-anim-history__viewport::-webkit-scrollbar {
  display: none;
}

.custom-anim-history__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.custom-anim-history__track {
  position: relative;
  display: flex;
  width: max-content;
  gap: var(--gap);
  padding-bottom: 40px;
}

.custom-anim-history__track::before {
  content: "";
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0, var(--line) 18px, var(--line) calc(100% - 18px), transparent 100%);
}

.custom-anim-history__item {
  position: relative;
  width: var(--card-width);
  flex: 0 0 var(--card-width);
  padding-top: 116px;
}

.custom-anim-history__year {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 65px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.custom-anim-history__dot {
  position: absolute;
  top: 68px;
  left: 24px;
  display: block;
  width: 24px;
  height: 21px;
  z-index: 1;
}

.custom-anim-history__heading {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.custom-anim-history__text {
  margin: 0;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.custom-anim-history__pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: -15px;
  pointer-events: none;
}

.custom-anim-history__pagination span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 1024px) {
  .custom-anim-marquee__text {
    font-size: 45px;
  }

  .custom-anim-stats__value {
    font-size: 45px;
  }

  .custom-anim-history .custom-anim-history__title {
    font-size: 45px;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .custom-anim-stats__group {
    gap: 60px;
  }
}

@media (max-width: 767px) {
  .custom-anim-marquee__text {
    font-size: 38px;
  }

  .custom-anim-stats__value {
    font-size: 38px;
  }

  .custom-anim-history .custom-anim-history__title {
    font-size: 38px;
  }
}

@media (max-width: 1240px) {
  .custom-anim-stats {
    width: 100%;
  }

  .custom-anim-stats__track {
    width: max-content;
    animation: custom-anim-marquee 24s linear infinite;
    will-change: transform;
  }

  .custom-anim-stats__group {
    flex: 0 0 auto;
    width: max-content;
    padding-right: 60px;
  }

  .custom-anim-stats__group--clone {
    display: flex;
  }
}

@media (max-width: 768px) {
  .custom-anim-stats__group {
    gap: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 760px) {
  .custom-anim-marquee__text {
    padding-right: 32px;
  }

  .custom-anim-history {
    --card-width: 220px;
    --gap: 50px;

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 26px 22px 34px;
    border-radius: 12px;
  }

  .custom-anim-history__year {
    font-size: 52px;
  }

  .custom-anim-history__subtitle {
    margin-bottom: 50px;
  }

  .custom-anim-history__heading {
    font-size: 30px;
  }

  .custom-anim-history__text {
    font-size: 16px;
  }
}
