/* JAK PROBÍHÁ ČIŠTĚNÍ */

.steps-timeline {
  max-width: 720px;
  margin: 0 0 0 40px;
}

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

.step-item {
  display: flex;
  gap: 22px;
  padding-bottom: 34px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.step-item:last-child {
  padding-bottom: 0;
}

.step-marker-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.step-marker {
  --step-marker-bg: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: var(--step-marker-bg);
  border: 2px solid var(--line-strong);
  color: var(--muted);
  transform: scale(1);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.step-marker svg {
  width: 22px;
  height: 22px;
}

.step-connector {
  flex: 1 1 auto;
  width: 2px;
  min-height: 24px;
  margin-top: 6px;
  background: var(--line-strong);
  transition: background var(--transition);
}

.step-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 6px;
}

.step-content h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* krok se jednou objevil - zustava "odhaleny" */
.step-item.is-visible .step-marker {
  --step-marker-bg: var(--primary-soft);
  border-color: rgba(79, 178, 196, 0.4);
  color: var(--primary-dark);
}

.step-item.is-visible .step-connector {
  background: var(--primary-soft);
}

/* aktualne prave prohlizeny krok - vyrazne zvyrazneny */
.step-item.is-current .step-marker {
  --step-marker-bg: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
  color: #ffffff;
  transform: scale(1.16);
  box-shadow: 0 0 0 6px rgba(79, 178, 196, 0.22), 0 14px 30px rgba(28, 86, 100, 0.32);
}

.step-item.is-current .step-content h3 {
  color: var(--primary-dark);
}
