.page-command-structure {
  background: #222021;
}

.page-command-structure .main-modern {
  padding-top: 34px;
  padding-bottom: 56px;
}

.command-hero {
  text-align: center;
  padding: 34px 28px;
  margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(18, 8, 12, 0.88), rgba(2, 2, 2, 0.92));
}

.command-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(209, 31, 72, 0.12);
  border: 1px solid rgba(209, 31, 72, 0.28);
  color: #f7cad5;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.command-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.command-hero-text {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.command-lane {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.88), rgba(0, 0, 0, 0.94));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.34);
}

.command-lane--police {
  background: linear-gradient(180deg, rgba(20, 32, 74, 0.88), rgba(7, 10, 21, 0.96), rgba(0, 0, 0, 0.98));
  border-color: rgba(83, 126, 255, 0.22);
}

.command-lane--police .command-node {
  background: linear-gradient(180deg, rgba(55, 106, 255, 0.3), rgba(7, 10, 21, 0.86), rgba(0, 0, 0, 0.98));
  border-color: rgba(111, 148, 255, 0.26);
}

.command-lane--fire {
  background: linear-gradient(180deg, rgba(99, 8, 25, 0.86), rgba(20, 6, 9, 0.96), rgba(0, 0, 0, 0.98));
  border-color: rgba(255, 86, 118, 0.24);
}

.command-lane--fire .command-node {
  background: linear-gradient(180deg, rgba(226, 46, 81, 0.3), rgba(24, 6, 9, 0.88), rgba(0, 0, 0, 0.98));
  border-color: rgba(255, 103, 133, 0.28);
}

.command-lane--ambulance {
  background: linear-gradient(180deg, rgba(7, 74, 34, 0.84), rgba(5, 18, 10, 0.96), rgba(0, 0, 0, 0.98));
  border-color: rgba(73, 216, 123, 0.2);
}

.command-lane--ambulance .command-node {
  background: linear-gradient(180deg, rgba(37, 170, 82, 0.28), rgba(7, 20, 10, 0.9), rgba(0, 0, 0, 0.98));
  border-color: rgba(104, 225, 142, 0.24);
}

.command-lane--support {
  background: linear-gradient(180deg, rgba(65, 48, 8, 0.8), rgba(18, 13, 4, 0.95), rgba(0, 0, 0, 0.98));
  border-color: rgba(212, 179, 65, 0.22);
  display: flex;
  flex-direction: column;
}

.command-lane--support .command-node {
  background: linear-gradient(180deg, rgba(212, 179, 65, 0.22), rgba(22, 17, 6, 0.9), rgba(0, 0, 0, 0.98));
  border-color: rgba(212, 179, 65, 0.24);
  flex: 1;
}

.command-lane-header {
  margin-bottom: 22px;
}

.command-lane-header h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.command-lane-header p {
  margin: 0;
  color: var(--muted);
}

.command-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 132px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.command-node + .command-node,
.command-branch .command-node + .command-node {
  margin-top: 16px;
}

.command-node--top {
  min-height: 146px;
}

.command-node--vacant {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(14,14,14,0.86), rgba(0,0,0,0.98)) !important;
  border-style: dashed;
  border-color: rgba(255,255,255,0.16) !important;
}

.command-node-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.command-node-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #eef4ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.command-node-role {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
}

.command-branches {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.command-branches--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-branch {
  position: relative;
  padding-top: 28px;
}

.command-branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.16);
  transform: translateX(-50%);
}

.command-lane > .command-node + .command-branches,
.command-lane > .command-node + .command-node + .command-branches {
  position: relative;
}

.command-lane > .command-node + .command-branches::before,
.command-lane > .command-node + .command-node + .command-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: rgba(255,255,255,0.14);
}

@media (max-width: 1100px) {
  .command-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .command-branches--three {
    grid-template-columns: 1fr;
  }

  .command-lane > .command-node + .command-branches::before,
  .command-lane > .command-node + .command-node + .command-branches::before {
    display: none;
  }

  .command-branch {
    padding-top: 0;
  }

  .command-branch::before {
    display: none;
  }
}
