.cht-timeline {
  background: var(--cht-bg, #f8fafc);
  color: var(--cht-text, #15233a);
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.cht-timeline * {
  box-sizing: border-box;
}

.cht-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.cht-header {
  max-width: 620px;
  margin: 0 0 clamp(2rem, 5vw, 4rem);
}

.cht-header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0;
  color: var(--cht-text, #15233a);
}

.cht-header h2:after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  background: var(--cht-accent, #b5963f);
  margin: 1rem 0 0;
  border-radius: 999px;
}

.cht-header p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  max-width: 520px;
  margin: 1rem 0 0;
  opacity: 0.78;
}

.cht-track {
  position: relative;
  display: grid;
  gap: 2.25rem;
}

.cht-track:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--cht-line, #d6dbe2);
  transform: translateX(-50%);
  border-radius: 999px;
}

.cht-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  align-items: center;
  min-height: 154px;
}

.cht-marker-wrap {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}

.cht-marker {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.92);
  background: var(--cht-marker, #0d2b52);
  color: #fff;
  box-shadow:
    0 8px 22px rgba(21, 35, 58, 0.18),
    0 0 0 2px rgba(21, 35, 58, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cht-marker span {
  display: block;
  width: 100%;
  font-size: clamp(0.8rem, 1.55vw, 1.55rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.cht-marker:hover,
.cht-marker:focus-visible,
.cht-item.is-active .cht-marker {
  transform: scale(1.06);
  box-shadow:
    0 12px 30px rgba(21, 35, 58, 0.24),
    0 0 0 8px color-mix(in srgb, var(--cht-marker) 18%, transparent);
}

.cht-marker:focus-visible {
  outline: 3px solid var(--cht-accent, #b5963f);
  outline-offset: 4px;
}

.cht-item:before {
  content: "";
  position: absolute;
  top: 50%;
  width: 70px;
  height: 3px;
  background: var(--cht-line, #d6dbe2);
  transform: translateY(-50%);
}

.cht-item-left:before {
  left: calc(50% - 70px);
}

.cht-item-right:before {
  left: 50%;
}

.cht-item:after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background: var(--cht-marker, #0d2b52);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.cht-card {
  background: var(--cht-card, #fff);
  border: 1px solid rgba(21, 35, 58, 0.08);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(15, 30, 55, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 40%);
  gap: 1rem;
  align-items: center;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.25s ease;
}

.cht-item.is-visible .cht-card {
  opacity: 1;
  transform: translateY(0);
}

.cht-item.is-active .cht-card {
  box-shadow: 0 18px 42px rgba(15, 30, 55, 0.18);
}

.cht-item-left .cht-card {
  grid-column: 1;
}

.cht-item-right .cht-card {
  grid-column: 3;
}

.cht-image-top .cht-card,
.cht-no-image .cht-card {
  grid-template-columns: 1fr;
}

.cht-no-image .cht-card-copy {
  width: 100%;
}

.cht-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0.1rem 0 0.6rem;
  color: var(--cht-text, #15233a);
}

.cht-kicker {
  margin: 0 0 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cht-marker, #0d2b52);
}

.cht-rule {
  width: 34px;
  height: 3px;
  background: var(--cht-marker, #0d2b52);
  border-radius: 999px;
  margin: 0 0 0.75rem;
}

.cht-content {
  font-size: 0.98rem;
  line-height: 1.52;
  color: color-mix(in srgb, var(--cht-text, #15233a) 78%, #fff);
}

.cht-content p {
  margin: 0.5rem 0;
}

.cht-image {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  align-self: center;
  width: 100%;
  max-height: 220px;
  background: #e8edf3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cht-image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.cht-image-top .cht-image {
  order: -1;
  max-height: 260px;
}

.cht-image-top .cht-image img {
  max-height: 260px;
}

.cht-helper {
  text-align: center;
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--cht-text, #15233a);
  opacity: 0.72;
}

@media (max-width: 900px) {
  .cht-track {
    gap: 1.35rem;
  }

  .cht-track:before {
    left: 42px;
  }

  .cht-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.75rem;
    min-height: auto;
  }

  .cht-marker-wrap {
    grid-column: 1;
    align-self: start;
    padding-top: 0.25rem;
  }

  .cht-marker {
    width: 76px;
    height: 76px;
    border-width: 4px;
  }

  .cht-marker span {
    font-size: 0.8rem;
  }

  .cht-item-left .cht-card,
  .cht-item-right .cht-card {
    grid-column: 2;
  }

  .cht-item:before {
    left: 42px;
    width: 42px;
  }

  .cht-item-left:before,
  .cht-item-right:before {
    left: 42px;
  }

  .cht-item:after {
    left: 36px;
  }

  .cht-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cht-image {
    order: -1;
    max-height: 240px;
    min-height: 0;
  }

  .cht-image img {
    max-height: 240px;
  }

  .cht-helper {
    text-align: left;
    margin-left: 96px;
  }
}

@media (max-width: 560px) {
  .cht-timeline {
    border-radius: 16px;
    padding: 2rem 0.8rem;
  }

  .cht-header {
    margin-bottom: 1.5rem;
  }

  .cht-track:before {
    left: 32px;
  }

  .cht-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.6rem;
  }

  .cht-marker {
    width: 58px;
    height: 58px;
    border-width: 3px;
  }

  .cht-marker span {
    font-size: 0.7rem;
  }

  .cht-item:before {
    left: 32px;
    width: 30px;
  }

  .cht-item:after {
    left: 26px;
  }

  .cht-card {
    padding: 0.85rem;
    border-radius: 12px;
  }

  .cht-no-image .cht-card {
    grid-template-columns: 1fr;
  }

  .cht-no-image .cht-card-copy {
    width: 100%;
  }

  .cht-card h3 {
    font-size: 1.1rem;
  }

  .cht-content {
    font-size: 0.92rem;
  }

  .cht-image {
    max-height: 220px;
    min-height: 0;
  }

  .cht-image img {
    max-height: 220px;
  }

  .cht-helper {
    margin-left: 74px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cht-marker,
  .cht-card {
    transition: none !important;
  }

  .cht-card {
    opacity: 1;
    transform: none;
  }
}