.vfh-slider {
  --vfh-accent: #2479f4;
  --vfh-ink: #071a43;
  --vfh-muted: #526787;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 58px 28px 48px;
  color: var(--vfh-ink);
  background:
    radial-gradient(circle at 90% 16%, rgba(165, 207, 255, 0.3), transparent 26%),
    radial-gradient(circle at 2% 95%, rgba(184, 219, 255, 0.34), transparent 25%),
    linear-gradient(135deg, #fff 0%, #f9fcff 57%, #edf6ff 100%);
}

.vfh-slider *,
.vfh-slider *::before,
.vfh-slider *::after {
  box-sizing: border-box;
}

.vfh-slider__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(145deg, transparent 0 67%, rgba(255, 255, 255, 0.7) 67% 100%),
    linear-gradient(167deg, transparent 0 79%, rgba(91, 161, 241, 0.18) 79% 79.2%, transparent 79.2%);
}

.vfh-slider__decor::before,
.vfh-slider__decor::after {
  content: "";
  position: absolute;
}

.vfh-slider__decor::before {
  top: 12%;
  right: -5%;
  width: min(38vw, 620px);
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(112, 169, 238, 0.17);
  border-radius: 100% 0 0 100%;
  transform: rotate(-12deg);
}

.vfh-slider__decor::after {
  bottom: -9%;
  left: -6%;
  width: min(35vw, 560px);
  aspect-ratio: 2 / 1;
  opacity: 0.42;
  background: repeating-linear-gradient(165deg, rgba(93, 158, 235, 0.12) 0 1px, transparent 1px 14px);
  clip-path: polygon(0 62%, 19% 37%, 36% 54%, 55% 22%, 72% 47%, 100% 5%, 100% 100%, 0 100%);
}

.vfh-slider__inner {
  position: relative;
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  overflow: visible;
}

.vfh-heading {
  max-width: 880px;
  margin: 0 auto 42px;
  text-align: center;
}

.vfh-heading__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 9px;
  color: #55739b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.38em;
  line-height: 1.2;
  text-transform: uppercase;
}

.vfh-heading__eyebrow span {
  width: 58px;
  height: 1px;
  background: #8fbcf3;
}

.vfh-heading__title {
  margin: 0;
  color: var(--vfh-ink);
  font-size: clamp(44px, 5.1vw, 78px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.vfh-heading__subtitle {
  margin: 10px 0 0;
  color: #172b53;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.35;
}

.vfh-stage {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 20px;
}

.vfh-slides {
  display: grid;
  min-width: 0;
}

.vfh-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  align-items: center;
  gap: 48px;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(18px, 0, 0);
  transition: opacity 0.46s ease, transform 0.58s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.58s;
}

.vfh-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.vfh-slide__media {
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 16 / 10;
  margin: 0;
  border: 1px solid rgba(100, 153, 218, 0.22);
  border-radius: 14px;
  background: #eaf3fd;
  box-shadow: 0 22px 54px rgba(50, 92, 143, 0.16);
}

.vfh-slide__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 27%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(3, 18, 48, 0.52));
}

.vfh-slide__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.vfh-slide.is-active .vfh-slide__image {
  transform: scale(1.015);
}

.vfh-slide__placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 30px;
  color: #6280a5;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(213, 232, 252, 0.86)),
    repeating-linear-gradient(45deg, transparent 0 15px, rgba(60, 126, 204, 0.06) 15px 16px);
}

.vfh-slide__placeholder strong {
  color: #2c73c9;
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.vfh-slide__content {
  min-width: 0;
  padding: 14px 0;
}

.vfh-slide__year-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 2px;
  color: #6a88b6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.vfh-slide__year-label span {
  width: 46px;
  height: 1px;
  background: #8eb9ec;
}

.vfh-slide__year {
  margin: 0 0 12px;
  color: var(--vfh-accent);
  font-size: clamp(58px, 7vw, 100px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.vfh-slide__title {
  max-width: 640px;
  margin: 0;
  color: var(--vfh-ink);
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.vfh-slide__accent {
  display: block;
  width: 50px;
  height: 4px;
  margin: 18px 0;
  border-radius: 99px;
  background: var(--vfh-accent);
}

.vfh-slide__description {
  max-width: 650px;
  color: var(--vfh-muted);
  font-size: 16px;
  line-height: 1.58;
}

.vfh-slide__description p {
  margin: 0 0 0.7em;
}

.vfh-slide__description p:last-child {
  margin-bottom: 0;
}

.vfh-arrow-wrap {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.vfh-arrow {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(89, 133, 190, 0.16);
  border-radius: 50%;
  color: var(--vfh-ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(25, 76, 136, 0.14);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.vfh-arrow-wrap > span {
  color: #405a81;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.vfh-arrow:hover,
.vfh-arrow:focus-visible {
  color: #fff;
  border-color: var(--vfh-accent);
  background: var(--vfh-accent);
  box-shadow: 0 12px 30px rgba(47, 131, 247, 0.28);
  transform: scale(1.06);
}

.vfh-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.vfh-arrow:focus-visible,
.vfh-step:focus-visible {
  outline: 3px solid rgba(47, 131, 247, 0.32);
  outline-offset: 4px;
}

.vfh-timeline-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: 44px;
  margin-left: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(87, 148, 222, 0.38) transparent;
  scrollbar-width: thin;
}

.vfh-timeline-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(70, 142, 232, 0.3) 12%, rgba(70, 142, 232, 0.3) 88%, transparent);
}

.vfh-timeline {
  --vfh-step-width: 164px;
  --vfh-step-base: 80px;
  --vfh-step-rise: 14px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--vfh-count), minmax(var(--vfh-step-width), 1fr));
  align-items: end;
  width: max(100%, calc(var(--vfh-count) * var(--vfh-step-width)));
  min-height: calc(var(--vfh-step-base) + (7 * var(--vfh-step-rise)) + 18px);
  padding: 18px 0 0;
}

.vfh-step {
  --vfh-level: 0;
  --vfh-active-color: #2479f4;
  --vfh-active-end: #14b9e9;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: calc(var(--vfh-step-base) + (var(--vfh-level) * var(--vfh-step-rise)));
  padding: 24px 10px 12px;
  border: 1px solid rgba(119, 170, 230, 0.38);
  border-bottom: 0;
  color: #405675;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.vfh-step + .vfh-step {
  border-left: 0;
}

.vfh-step:first-child {
  border-radius: 8px 0 0;
}

.vfh-step:last-child {
  border-radius: 0 8px 0 0;
}

.vfh-step__dot {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #77b0f5;
  box-shadow: 0 0 0 1px rgba(88, 149, 222, 0.18);
  transform: translateX(-50%);
}

.vfh-step__year {
  color: var(--vfh-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.vfh-step__title {
  display: -webkit-box;
  overflow: hidden;
  max-width: 130px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.24;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vfh-step:hover {
  z-index: 2;
  color: var(--vfh-accent);
  border-color: #76adf0;
  background: #f4f9ff;
  transform: translateY(-3px);
}

.vfh-slider .vfh-step.is-active,
.vfh-slider .vfh-step.is-active:hover {
  z-index: 3;
  color: #fff;
  border-color: var(--vfh-active-color);
  background: linear-gradient(180deg, var(--vfh-active-color) 0%, var(--vfh-active-end) 62%, rgba(36, 121, 244, 0.18) 100%);
  box-shadow: 0 -8px 26px rgba(47, 131, 247, 0.18);
  transform: translateY(-3px);
}

.vfh-step.is-active .vfh-step__dot {
  top: -9px;
  width: 16px;
  height: 16px;
  background: #fff;
  box-shadow: 0 0 0 5px var(--vfh-active-color);
}

.vfh-step.is-active .vfh-step__year {
  color: #fff;
}

.vfh-status {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.vfh-editor-notice {
  padding: 18px;
  border: 1px dashed #87b8f6;
  color: #385a86;
  background: #f4f9ff;
  text-align: center;
}

@media (max-width: 1100px) {
  .vfh-stage {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    gap: 12px;
  }

  .vfh-slide {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.8fr);
    gap: 32px;
  }

  .vfh-slide__description {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .vfh-slider {
    padding: 44px 16px 30px;
  }

  .vfh-heading {
    margin-bottom: 26px;
  }

  .vfh-heading__eyebrow {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.25em;
  }

  .vfh-heading__eyebrow span {
    width: 28px;
  }

  .vfh-heading__title {
    font-size: clamp(38px, 13vw, 58px);
  }

  .vfh-heading__subtitle {
    font-size: 17px;
  }

  .vfh-stage {
    display: block;
  }

  .vfh-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .vfh-slide__media {
    aspect-ratio: 4 / 3;
    border-radius: 9px;
  }

  .vfh-slide__content {
    padding: 0 3px;
  }

  .vfh-slide__year {
    margin-bottom: 9px;
    font-size: clamp(52px, 20vw, 78px);
  }

  .vfh-slide__title {
    font-size: 28px;
  }

  .vfh-slide__accent {
    margin: 14px 0;
  }

  .vfh-arrow-wrap {
    position: absolute;
    top: min(35vw, 145px);
    z-index: 6;
    transform: translateY(-50%);
  }

  .vfh-arrow-wrap--prev {
    left: 8px;
  }

  .vfh-arrow-wrap--next {
    right: 8px;
  }

  .vfh-arrow-wrap > span {
    display: none;
  }

  .vfh-arrow {
    width: 44px;
    height: 44px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(5, 28, 65, 0.52);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
  }

  .vfh-arrow svg {
    width: 23px;
    height: 23px;
  }

  .vfh-timeline-wrap {
    margin-top: 30px;
    scroll-padding-inline: 16px;
  }

  .vfh-timeline-wrap::before {
    display: none;
  }

  .vfh-timeline {
    grid-template-columns: repeat(var(--vfh-count), 126px);
    gap: 8px;
    width: max-content;
    min-height: 108px;
    padding: 15px 16px 0;
  }

  .vfh-step,
  .vfh-step.is-active {
    height: 88px;
    padding: 22px 9px 10px;
    border: 1px solid rgba(119, 170, 230, 0.38);
    border-radius: 8px;
    transform: none;
  }

  .vfh-step + .vfh-step {
    border-left: 1px solid rgba(119, 170, 230, 0.38);
  }

  .vfh-step__title {
    max-width: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vfh-slide,
  .vfh-slide__image,
  .vfh-arrow,
  .vfh-step {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
