/* Process Timeline (HOS) */
.hos-timeline {
  padding: 64px 0;
}
.hos-timeline__grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  align-items: start;
}
.hos-timeline__intro {
  position: sticky;
  top: var(--timeline-sticky-top, 160px);
  align-self: start;
}
.hos-timeline__intro-inner {
  width: 100%;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  will-change: transform, opacity;
}
/* Subtelne wejście przy przejściu w sticky */
.hos-timeline:not(.is-intro-sticky) .hos-timeline__intro-inner {
  transform: translateY(8px);
  opacity: 0.96;
}
.hos-timeline.is-intro-sticky .hos-timeline__intro-inner {
  transform: translateY(0);
  opacity: 1;
}
.hos-timeline__lead {
  color: #697289;
  max-width: 520px;
  font-size: 16px;
  margin-top: 10px;
}
.hos-timeline__cta {
  margin-top: 32px;
}
@media (max-width: 1000px) {
  .hos-timeline__cta {
    margin-top: 24px;
  }
  .hos-timeline {
    padding: 32px 0px;
  }
}
.hos-timeline__list {
  position: relative;
}
.hos-timeline__rail {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e2e7ee;
  border-radius: 2px;
  overflow: hidden;
}
.hos-timeline__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: #ff7031;
  border-radius: 2px;
  will-change: height;
}
.hos-timeline__progress:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7031;
}

.hos-timeline__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hos-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px 0;
  min-height: 210px;
}

@media (max-width: 1000px) {
  .hos-timeline__step {
    min-height: 180px;
  }
}

.hos-timeline__step:first-child {
  padding-top: 0;
}
.hos-timeline__step:last-child {
  padding-bottom: 0;
  min-height: 0;
  margin-bottom: 0;
}
.hos-timeline__node {
  position: relative;
  width: 40px;
  height: 40px;
  transition: 0.3s;
  display: flex;
  align-items: center;
}
.hos-timeline__node span {
  font-weight: 500;
  font-size: 14px;
  color: #070d0b;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e7ee;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}
.hos-timeline__node:after {
  content: "";
  height: calc(100% + 32px);
  background: white;
  position: absolute;
  width: 100%;
  z-index: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1000px) {
  .hos-timeline__node:after {
    height: calc(100% + 16px);
  }
}

.hos-timeline__content {
  position: relative;
  transition: opacity 0.3s ease;
  opacity: 0.3;
}
@media (max-width: 1000px) {
  .hos-timeline__content {
    padding-top: 10px;
  }
}
.hos-timeline__title {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 600;
  color: #070d0b;
}
.hos-timeline__desc {
  margin: 0;
  font-size: 16px;
  color: #697289;
  white-space: pre-line;
}
.hos-timeline__corner {
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(180deg);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><g clip-path="url(%23clip0)"><path d="M11 11H2.5C1.672 11 1 10.328 1 9.5V1" stroke="%23FF7031" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g><defs><clipPath id="clip0"><rect width="12" height="12" fill="white" transform="matrix(-1 0 0 -1 12 12)"/></clipPath></defs></svg>');
}

@media (max-width: 999px) {
  .hos-timeline__grid {
    grid-template-columns: 1fr;
  }
  .hos-timeline__intro {
    position: static;
  }

  .hos-timeline__step {
    grid-template-columns: 48px 1fr;
  }
  .hos-timeline__node {
    width: 48px;
    height: 48px;
  }
  .hos-timeline__title {
    font-size: 20px;
  }
}

.hos-timeline__step.is-active .hos-timeline__content {
  opacity: 1;
}

.hos-timeline__step.is-active .hos-timeline__node {
  transform: scale(1.1);
}
