.pstatus-hero {
  padding: 28px 0 10px;
}

.pstatus-hero__panel {
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.pstatus-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pstatus-hero__title {
  margin: 0 0 12px;
  color: var(--primary-light);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  font-weight: 800;
}

.pstatus-hero__lead {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.pstatus-progress {
  margin-top: 22px;
}

.pstatus-progress__bar {
  display: flex;
  width: 100%;
  min-height: 18px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.pstatus-progress__segment {
  display: block;
  height: 18px;
}

.pstatus-progress__segment--finished {
  background: rgba(18, 143, 53, 0.95);
}

.pstatus-progress__segment--ongoing {
  background: rgba(196, 55, 13, 0.95);
}

.pstatus-progress__segment--delayed {
  background: rgba(230, 184, 0, 0.95);
}

.pstatus-progress__segment--remaining {
  background: rgba(255, 255, 255, 0.16);
}

.pstatus-progress__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 14px;
}

.pstatus-progress__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.pstatus-progress__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.pstatus-progress__legend-dot--finished {
  background: rgba(18, 143, 53, 0.95);
}

.pstatus-progress__legend-dot--ongoing {
  background: rgba(196, 55, 13, 0.95);
}

.pstatus-progress__legend-dot--delayed {
  background: rgba(230, 184, 0, 0.95);
}

.pstatus-progress__legend-dot--remaining {
  background: rgba(255, 255, 255, 0.3);
}

.pstatus-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.pstatus-stat {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.pstatus-stat__value {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
  font-weight: 800;
}

.pstatus-stat__label {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.phase-summary {
  padding: 8px 0 10px;
}

.phase-summary__panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.phase-summary__header {
  margin-bottom: 20px;
}

.phase-summary__title {
  margin: 0 0 10px;
  color: var(--primary-light);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.15;
  font-weight: 800;
}

.phase-summary__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.phase-summary__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.phase-summary-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.phase-summary-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.phase-summary-card__eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-summary-card__title {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
  font-weight: 800;
}

.phase-summary-card__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.phase-summary-card__desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.phase-summary-card__bar {
  display: flex;
  width: 100%;
  min-height: 14px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.phase-summary-card__segment {
  display: block;
  height: 14px;
}

.phase-summary-card__segment--finished {
  background: rgba(18, 143, 53, 0.95);
}

.phase-summary-card__segment--ongoing {
  background: rgba(196, 55, 13, 0.95);
}

.phase-summary-card__segment--delayed {
  background: rgba(230, 184, 0, 0.95);
}

.phase-summary-card__segment--remaining {
  background: rgba(255, 255, 255, 0.16);
}

.phase-summary-card__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.pstatus-phases {
  padding: 8px 0 20px;
}

.phase-block {
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.phase-block__header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.phase-block__title {
  margin: 0 0 10px;
  color: var(--primary-light);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  font-weight: 800;
}

.phase-block__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.phase-block__header-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.phase-block__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  color: var(--text);
  font-size: 0.96rem;
}

.phase-block__mini-progress-bar {
  display: flex;
  width: 100%;
  min-height: 12px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.phase-block__mini-segment {
  display: block;
  height: 12px;
}

.phase-block__mini-segment--finished {
  background: rgba(18, 143, 53, 0.95);
}

.phase-block__mini-segment--ongoing {
  background: rgba(196, 55, 13, 0.95);
}

.phase-block__mini-segment--delayed {
  background: rgba(230, 184, 0, 0.95);
}

.phase-block__mini-segment--remaining {
  background: rgba(255, 255, 255, 0.16);
}

.phase-block__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(58% - 2px);
  width: 4px;
  border-radius: 999px;
  background: rgba(196, 55, 13, 0.95);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(220px, 0.62fr);
  gap: 18px;
  align-items: center;
}

.timeline-item__card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(196, 55, 13, 0.9);
  background: rgba(255, 255, 255, 0.02);
}

.timeline-item__card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.timeline-item__title {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.2;
  font-weight: 800;
}

.timeline-item__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timeline-item.is-finished .timeline-item__badge {
  background: rgba(18, 143, 53, 0.16);
  border-color: rgba(18, 143, 53, 0.26);
}

.timeline-item.is-ongoing .timeline-item__badge {
  background: rgba(196, 55, 13, 0.16);
  border-color: rgba(196, 55, 13, 0.26);
}

.timeline-item.is-delayed .timeline-item__badge {
  background: rgba(230, 184, 0, 0.18);
  border-color: rgba(230, 184, 0, 0.28);
}

.timeline-item.is-not-started .timeline-item__badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.timeline-item__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.96rem;
}

.timeline-item__note {
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.75;
  font-size: 0.92rem;
}

.timeline-item__center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-item__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.92);
  border: 4px solid rgba(196, 55, 13, 0.95);
  box-shadow: 0 0 0 8px rgba(18, 18, 20, 1);
}

.timeline-item.is-finished .timeline-item__node {
  border-color: rgba(18, 143, 53, 0.95);
}

.timeline-item.is-ongoing .timeline-item__node {
  border-color: rgba(196, 55, 13, 0.95);
  animation: pstatus-pulse 1.6s ease-in-out infinite;
}

.timeline-item.is-delayed .timeline-item__node {
  border-color: rgba(230, 184, 0, 0.95);
}

.timeline-item.is-not-started .timeline-item__node {
  border-color: rgba(255, 255, 255, 0.18);
}

.timeline-item__icon {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.timeline-item__meta {
  padding: 6px 0;
}

.timeline-item__status {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.timeline-item__date-line,
.timeline-item__owner {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.timeline-item__link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 700;
}

.timeline-item__link:hover {
  text-decoration: underline;
}

@keyframes pstatus-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(18, 18, 20, 1), 0 0 0 0 rgba(196, 55, 13, 0.28);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(18, 18, 20, 1), 0 0 0 14px rgba(196, 55, 13, 0.08);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(18, 18, 20, 1), 0 0 0 0 rgba(196, 55, 13, 0);
  }
}

@media (max-width: 1100px) {
  .timeline::before {
    left: calc(50% - 2px);
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr) 90px minmax(220px, 0.8fr);
  }

  .timeline-item__node {
    width: 64px;
    height: 64px;
  }

  .timeline-item__icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 900px) {
  .pstatus-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-block__header {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 31px;
  }

  .timeline-item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px 16px;
  }

  .timeline-item__center {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-content: flex-start;
  }

  .timeline-item__card {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-item__meta {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .pstatus-hero__panel,
  .phase-summary__panel,
  .phase-block {
    padding: 18px;
  }

  .pstatus-stats {
    grid-template-columns: 1fr;
  }

  .timeline-item__card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}