/* ===== SERVICE STATUS INDEX ===== */

.page-content {
  background: #ffffff;
}

.status-index-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 28px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.status-index-main {
  min-width: 0;
}

/* ===== BREADCRUMBS ===== */

.status-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  color: #8a94a6;
  font-size: 0.84rem;
}

.status-breadcrumbs a {
  color: #667085;
  text-decoration: none;
  font-weight: 500;
}

.status-breadcrumbs a:hover,
.status-breadcrumbs a:focus {
  color: #12203b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== HERO ===== */

.status-index-hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.status-index-hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 2.8vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #0b1730;
}

.status-index-intro {
  margin: 18px 0 0;
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #344054;
}

/* ===== PANEL ===== */

.status-index-panel {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 20px;
  padding: 28px 30px 30px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.status-index-head {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eef2f6;
}

.status-index-head h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
  color: #12203b;
}

.status-index-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e5007d;
}

.status-index-head p {
  margin: 12px 0 0;
  color: #475467;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ===== STATUS LIST ===== */

.status-full-list {
  display: flex;
  flex-direction: column;
}

.status-full-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 74px;
  padding: 18px 0;
  border-top: 1px solid #eef2f6;
  color: inherit;
  text-decoration: none;
}

.status-full-row:first-child {
  border-top: 0;
}

.status-full-row:hover,
.status-full-row:focus {
  background: #f8fafc;
  margin-left: -14px;
  margin-right: -14px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 12px;
  outline: none;
}

.status-full-row:focus {
  box-shadow: 0 0 0 3px #ffbf47;
}

.status-full-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.status-full-name {
  margin: 0;
  color: #12203b;
  font-size: 1.03rem;
  line-height: 1.35;
  font-weight: 700;
}

.status-full-desc {
  max-width: 760px;
  margin: 5px 0 0;
  color: #475467;
  font-size: 0.94rem;
  line-height: 1.55;
}

.status-full-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.status-full-arrow {
  color: #216b2a;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.status-full-row:hover .status-full-arrow,
.status-full-row:focus .status-full-arrow {
  transform: translateX(4px);
}

/* ===== DOTS + LABELS ===== */

.status-dot,
.legend-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  margin-top: 6px;
  border-radius: 999px;
  display: inline-block;
}

.status-dot--ok,
.legend-dot--ok {
  background: #166534;
}

.status-dot--warn,
.legend-dot--warn {
  background: #92400e;
}

.status-dot--error,
.legend-dot--error {
  background: #b42318;
}

.status-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.status-label--ok {
  background: #ecfdf3;
  color: #166534;
}

.status-label--warn {
  background: #fffbeb;
  color: #92400e;
}

.status-label--error {
  background: #fef3f2;
  color: #b42318;
}

/* ===== LEGEND ===== */

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eef2f6;
  color: #475467;
  font-size: 0.86rem;
  line-height: 1.4;
}

.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-legend .legend-dot {
  margin-top: 0;
}

/* ===== EMPTY ===== */

.status-empty {
  margin: 0;
  padding: 24px 0;
  color: #475467;
  font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .status-index-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .status-index-layout {
    padding: 30px 20px 60px;
  }

  .status-index-panel {
    padding: 24px 22px;
    border-radius: 18px;
  }

  .status-full-row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .status-full-meta {
    padding-left: 24px;
  }
}

@media (max-width: 520px) {
  .status-index-layout {
    padding: 24px 16px 52px;
  }

  .status-index-hero h1 {
    font-size: 2rem;
  }

  .status-full-main {
    gap: 12px;
  }

  .status-full-meta {
    padding-left: 22px;
    flex-wrap: wrap;
  }
}


/* help */

.page-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-side-card {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.page-side-card h2 {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f6;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  color: #12203b;
}

.page-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-side-list li {
  border-top: 1px solid #eef2f6;
}

.page-side-list li:first-child {
  border-top: 0;
}

.page-side-list a {
  position: relative;
  display: block;
  padding: 13px 24px 13px 0;
  color: #344054;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 500;
}

.page-side-list a::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 1.25rem;
  line-height: 1;
}

.page-side-list a:hover,
.page-side-list a:focus {
  color: #e5007d;
}

/* meta */

.page-side-meta {
  display: grid;
  gap: 13px;
  margin: 0;
}

.page-side-meta div {
  display: grid;
  gap: 4px;
}

.page-side-meta dt {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 500;
}

.page-side-meta dd {
  margin: 0;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 600;
}

/* help */

.page-side-help p {
  margin: 0 0 16px;
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-side-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f2a44 0%, #e5007d 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(229, 0, 125, 0.16);
}

.page-side-button::after {
  content: "→";
}

.page-side-button:hover,
.page-side-button:focus {
  background: linear-gradient(135deg, #14203a 0%, #c9006d 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

/* focus */

.page-side-list a:focus,
.page-side-button:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

/* mobile */

@media (max-width: 1100px) {
  .page-sidebar {
    position: static;
  }
}