.ffl-year {
  background: var(--ffl-bg-soft);
}

.ffl-year__slider {
  position: relative;
  padding: 0 8px;
}

.ffl-year__viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.ffl-year__viewport.is-dragging {
  cursor: grabbing;
}

.ffl-year__track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ffl-year__track.is-dragging {
  transition: none;
}

.ffl-year__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

.ffl-year__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ffl-year__card {
  min-width: 0;
  padding: 14px 8px;
  border-radius: var(--ffl-radius);
  background: #fff;
  border: 1px solid var(--ffl-line);
  text-align: center;
}

.ffl-year__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ffl-year__icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ffl-year__value {
  font-family: var(--ffl-display);
  font-size: clamp(16px, 3.6vw, 30px);
  font-weight: 800;
  color: var(--ffl-teal);
  margin-bottom: 4px;
  line-height: 1.1;
}

.ffl-year__label {
  color: var(--ffl-muted);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.25;
}

.ffl-year__arrow {
  position: absolute;
  top: 42%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ffl-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ffl-teal);
  box-shadow: 0 8px 22px rgba(15, 40, 60, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ffl-year__arrow:hover:not(:disabled) {
  background: var(--ffl-teal);
  color: #fff;
}

.ffl-year__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.ffl-year__arrow[hidden] {
  display: none !important;
}

.ffl-year__arrow--prev {
  left: -2px;
}

.ffl-year__arrow--next {
  right: -2px;
}

.ffl-year__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.ffl-year__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b7c2ce;
  cursor: pointer;
}

.ffl-year__dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--ffl-teal);
}

@media (min-width: 700px) {
  .ffl-year__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .ffl-year__card {
    padding: 22px 12px;
  }

  .ffl-year__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .ffl-year__label {
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .ffl-year__slider {
    padding: 0 16px;
  }

  .ffl-year__row {
    gap: 16px;
  }

  .ffl-year__card {
    padding: 24px 14px;
  }

  .ffl-year__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .ffl-year__label {
    font-size: 14px;
  }

  .ffl-year__arrow--prev {
    left: -6px;
  }

  .ffl-year__arrow--next {
    right: -6px;
  }
}
