.nodes-hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 82px);
  padding-bottom: clamp(52px, 7vw, 84px);
  overflow-x: clip;
}

.nodes-hero::before {
  position: absolute;
  top: 8%;
  right: -10%;
  width: min(54vw, 680px);
  height: min(54vw, 680px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-soft), transparent 68%);
  content: "";
  pointer-events: none;
}

.nodes-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.nodes-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.nodes-hero h1 {
  max-width: 650px;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: clamp(52px, 5vw, 68px);
}

.nodes-hero-lead {
  max-width: 620px;
  margin-bottom: 25px;
  font-size: 17px;
  line-height: 1.75;
}

.nodes-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 16px;
}

.nodes-fact-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-panel);
  font-family: var(--font-mono);
  font-size: 12px;
}

.nodes-fact-row strong {
  color: var(--color-accent);
  font-size: 12px;
}

.nodes-signup-note {
  max-width: 620px;
  margin: 0;
  font-size: 13px;
}

.nodes-map {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px),
    var(--color-panel);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow-panel);
}

.nodes-map::after {
  position: absolute;
  right: -54px;
  bottom: -76px;
  width: 210px;
  height: 210px;
  border: 1px dashed var(--color-accent-medium);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.nodes-map-head,
.nodes-map-foot {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
}

.nodes-map-head {
  font-family: var(--font-mono);
}

.nodes-map svg {
  width: 100%;
  height: auto;
  color: var(--color-text-muted);
}

.nodes-grid-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 5 8;
  opacity: 0.6;
}

.nodes-map-core {
  fill: var(--color-accent);
  stroke: var(--color-on-accent);
  stroke-width: 4;
}

.nodes-map-point {
  fill: var(--color-panel-raised);
  stroke: var(--color-accent);
  stroke-width: 3;
}

.nodes-map-labels {
  position: absolute;
  inset: 66px 18px 58px;
  z-index: 2;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  pointer-events: none;
}

.nodes-map-labels span {
  position: absolute;
  padding: 3px 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-panel-raised);
}

.nodes-map-labels span:nth-child(1) {
  top: 54%;
  left: 2%;
}

.nodes-map-labels span:nth-child(2) {
  top: 9%;
  right: 2%;
}

.nodes-map-labels span:nth-child(3) {
  top: 44%;
  right: 7%;
}

.nodes-map-labels span:nth-child(4) {
  bottom: 2%;
  left: 8%;
}

.nodes-map-foot {
  min-height: 44px;
  justify-content: flex-start;
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.nodes-map-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nodes-map-foot span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
}

.nodes-map-foot span:nth-child(2)::before {
  background: var(--color-success);
}

.nodes-map-foot span:nth-child(3)::before {
  background: var(--color-warn);
}

.directory-note {
  margin: 15px 0 0;
  font-size: 13px;
}

.line-label,
.media-state {
  display: inline-flex;
  max-width: 100%;
  min-height: 27px;
  align-items: center;
  padding: 3px 9px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-panel-raised);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.line-label-iepl {
  color: var(--color-success);
}

.line-label-direct {
  color: var(--color-warn);
}

.media-state {
  color: var(--color-success);
  background: var(--color-panel);
}

.media-state-check {
  color: var(--color-warn);
}

.nodes-type-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-soft);
}

.line-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  align-items: stretch;
}

.line-type-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.line-type-card > :last-child {
  margin-bottom: 0;
}

.line-type-primary {
  border-color: var(--color-accent);
  background:
    linear-gradient(180deg, var(--color-accent-soft), transparent 45%),
    var(--color-panel-raised);
}

.line-type-head {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.line-type-code {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.line-type-card h3 {
  font-size: 24px;
}

.line-type-card p {
  line-height: 1.8;
}

.use-case-list {
  display: grid;
  border-top: 1px solid var(--color-border);
}

.use-case-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 0.78fr);
  gap: clamp(22px, 5vw, 70px);
  padding-top: clamp(26px, 4vw, 40px);
  padding-bottom: clamp(26px, 4vw, 40px);
  border-bottom: 1px solid var(--color-border);
}

.use-case-index {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.use-case-item h3 {
  margin-bottom: 13px;
}

.use-case-item p {
  max-width: 850px;
  line-height: 1.82;
}

.use-case-item p:last-child {
  margin-bottom: 0;
}

.nodes-method-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

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

.method-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel-raised);
}

.method-card p {
  margin-bottom: 0;
  line-height: 1.8;
}

.method-mark {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.nodes-next-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  margin-top: 44px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(112deg, var(--color-accent-soft), transparent 58%),
    var(--color-panel-raised);
  box-shadow: var(--shadow-panel);
  align-items: center;
}

.nodes-next-step::after {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 170px;
  height: 170px;
  border: 1px dashed var(--color-accent-medium);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.nodes-next-step h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  font-size: clamp(28px, 3.2vw, 40px);
}

.nodes-next-step p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 0;
}

.nodes-next-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1040px) {
  .nodes-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 30px;
  }

  .line-type-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nodes-hero {
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .nodes-hero-grid {
    grid-template-columns: 1fr;
  }

  .nodes-hero h1 {
    font-size: clamp(28px, 9.5vw, 40px);
  }

  .nodes-map {
    display: none;
  }

  .nodes-hero-lead {
    font-size: 15px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .use-case-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nodes-next-step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nodes-fact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nodes-fact-row span {
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .line-type-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nodes-next-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nodes-next-actions .btn {
    width: 100%;
  }

  .nodes-next-step::after {
    display: none;
  }
}