.infrastructure-page {
  --infrastructure-accent: #6cbf8d;
  --infrastructure-panel: color-mix(in srgb, var(--card-bg) 92%, var(--infrastructure-accent));
  padding-bottom: 40px;
}

[data-theme="light"] .infrastructure-page {
  --infrastructure-accent: #d65d8c;
}

.infrastructure-hero,
.infrastructure-page-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.infrastructure-hero {
  height: 460px;
  min-height: 0;
  margin-top: 32px;
  grid-template-columns: minmax(400px, .9fr) minmax(500px, 1.1fr);
}

.infrastructure-hero-copy {
  padding: clamp(32px, 3.6vw, 46px);
}

.infrastructure-hero-copy h1 {
  display: block;
  margin: 12px 0 18px;
  font-size: clamp(36px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.infrastructure-hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.infrastructure-internal-badge {
  padding: 7px 11px;
  font-size: 12px;
}

.infrastructure-hero-copy > p:not(.page-label) {
  max-width: 660px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.75;
}

.infrastructure-hero-actions {
  margin-top: 24px;
}

.infrastructure-hero-actions a,
.infrastructure-cta > a {
  min-height: 42px;
  gap: 12px;
  padding-inline: 15px;
}

.infrastructure-hero-media {
  height: 100%;
  min-height: 0;
}

.infrastructure-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(8, 11, 9, .2), transparent 42%), linear-gradient(0deg, rgba(8, 11, 9, .68), transparent 38%);
  pointer-events: none;
}

.infrastructure-hero-media figcaption {
  z-index: 1;
  right: 26px;
  bottom: 22px;
  left: 26px;
  padding: 0;
  background: transparent;
}

.infrastructure-hero-media figcaption strong {
  font-size: 18px;
}

.infrastructure-page-shell {
  position: relative;
  margin-top: 32px;
}

.infrastructure-section-nav {
  position: fixed;
  top: 50%;
  left: max(16px, calc((100vw - var(--max-width)) / 2 - 192px));
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 164px;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--infrastructure-accent) 30%, var(--line));
  background: color-mix(in srgb, var(--card-bg) 96%, transparent);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .16);
  backdrop-filter: blur(14px);
  transform: translateY(-42%);
}

.infrastructure-section-nav::before {
  display: block;
  padding: 10px 13px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--infrastructure-accent);
  content: "SECTION INDEX";
  font: 700 9px/1.2 Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: .14em;
}

.infrastructure-section-nav::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  border-left: 1px solid color-mix(in srgb, var(--infrastructure-accent) 30%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--infrastructure-accent) 30%, var(--line));
  background: linear-gradient(135deg, var(--bg) 49%, var(--surface) 50%);
  content: "";
  pointer-events: none;
}

.infrastructure-section-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color .18s, background .18s;
}

.infrastructure-section-nav button:first-of-type {
  border-top: 0;
}

.infrastructure-section-nav button:hover,
.infrastructure-section-nav button:focus-visible,
.infrastructure-section-nav button[aria-selected="true"] {
  background: color-mix(in srgb, var(--infrastructure-accent) 8%, var(--surface));
  color: var(--text);
}

.infrastructure-section-nav button[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--infrastructure-accent);
}

.infrastructure-section-nav button > i {
  width: 20px;
  color: var(--muted);
  font-size: 20px;
  text-align: center;
}

.infrastructure-section-nav button[aria-selected="true"] > i,
.infrastructure-section-nav span {
  color: var(--infrastructure-accent);
}

.infrastructure-section-nav span {
  font: 700 12px/1 "Inter", Arial, sans-serif;
}

.infrastructure-panel-stage {
  width: 100%;
  min-width: 0;
}

.infrastructure-panel-stage > [data-infrastructure-panel="section"][hidden] {
  display: none !important;
}

.infrastructure-panel-stage > .infrastructure-section {
  width: 100%;
  min-height: 520px;
  margin: 0 0 64px;
  scroll-margin-top: 112px;
}

.infrastructure-section-heading {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 32px;
  margin-bottom: 24px;
}

.infrastructure-section-heading h2 {
  max-width: 820px;
  margin-top: 8px;
  font-size: clamp(30px, 3.35vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.infrastructure-section-heading > p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.75;
}

.infrastructure-scope-grid article {
  min-height: 180px;
  padding: 22px;
}

.infrastructure-scope-grid article > i {
  top: 20px;
  right: 22px;
  font-size: 25px;
}

.infrastructure-scope-grid h3,
.infrastructure-project-lines h3,
.infrastructure-space-zones h3,
.infrastructure-role-grid h3 {
  margin-top: 24px;
  font-size: 18px;
}

.infrastructure-scope-grid p,
.infrastructure-project-lines p,
.infrastructure-space-zones p,
.infrastructure-role-grid p,
.infrastructure-workflow-steps p {
  font-size: 12px;
  line-height: 1.68;
}

.infrastructure-project-gallery {
  grid-template-columns: 1.35fr .82fr .82fr;
  grid-template-rows: repeat(2, 170px);
  gap: 10px;
}

.infrastructure-project-gallery figure {
  min-height: 170px;
}

.infrastructure-project-gallery figcaption {
  padding: 12px 14px;
}

.infrastructure-project-lines {
  margin-top: 12px;
}

.infrastructure-project-lines article {
  min-height: 155px;
  padding: 18px;
}

.infrastructure-project-lines i {
  font-size: 22px;
}

.infrastructure-project-lines h3 {
  margin: 14px 0 7px;
  font-size: 16px;
}

.infrastructure-space-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.infrastructure-space-layout > figure {
  grid-template-rows: minmax(320px, 1fr) auto;
}

.infrastructure-space-zones article {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
}

.infrastructure-space-zones article > span {
  width: 34px;
  height: 34px;
}

.infrastructure-space-zones h3 {
  margin: 1px 0 6px;
  font-size: 17px;
}

.infrastructure-material-grid {
  gap: 10px;
  margin-top: 10px;
}

.infrastructure-material-grid figure {
  grid-template-rows: 145px auto;
}

.infrastructure-workflow-steps li {
  min-height: 150px;
  padding: 18px;
}

.infrastructure-workflow-steps strong {
  margin: 18px 0 8px;
  font-size: 16px;
}

.infrastructure-role-grid {
  gap: 10px;
  margin-top: 12px;
}

.infrastructure-role-grid article {
  min-height: 185px;
  padding: 22px;
}

.infrastructure-role-grid article > i {
  top: 20px;
  right: 22px;
  font-size: 25px;
}

.infrastructure-role-grid h3 {
  margin-top: 28px;
}

.infrastructure-cta {
  gap: 30px;
  margin-top: 12px;
  padding: 24px;
}

.infrastructure-cta h2 {
  font-size: 22px;
}

@media (max-width: 1380px) {
  .infrastructure-section-nav {
    position: sticky;
    top: 82px;
    left: auto;
    z-index: 8;
    grid-template-columns: none;
    grid-auto-columns: max-content;
    grid-auto-flow: column;
    width: 100%;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transform: none;
  }

  .infrastructure-section-nav::before,
  .infrastructure-section-nav::after {
    display: none;
  }

  .infrastructure-section-nav button {
    min-width: 154px;
    min-height: 52px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .infrastructure-section-nav button:first-of-type {
    border-left: 0;
  }

  .infrastructure-section-nav button[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 var(--infrastructure-accent);
  }

  .infrastructure-panel-stage {
    margin-top: 28px;
  }
}

@media (max-width: 1120px) {
  .infrastructure-hero {
    grid-template-columns: 1fr;
    height: auto;
  }

  .infrastructure-hero-media {
    height: 360px;
    min-height: 360px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .infrastructure-section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .infrastructure-section-heading > p {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .infrastructure-hero,
  .infrastructure-page-shell {
    width: calc(100% - 28px);
  }

  .infrastructure-hero {
    min-height: 0;
    margin-top: 24px;
  }

  .infrastructure-hero-copy {
    padding: 32px 24px 36px;
  }

  .infrastructure-hero-copy h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .infrastructure-hero-media {
    height: 320px;
    min-height: 320px;
  }

  .infrastructure-section-nav {
    top: 72px;
  }

  .infrastructure-panel-stage > .infrastructure-section {
    min-height: 0;
    margin-bottom: 48px;
    scroll-margin-top: 136px;
  }

  .infrastructure-scope-grid,
  .infrastructure-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infrastructure-project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 280px repeat(2, 180px);
  }

  .infrastructure-project-gallery__lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .infrastructure-project-lines,
  .infrastructure-workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infrastructure-space-layout {
    grid-template-columns: 1fr;
  }

  .infrastructure-space-layout > figure {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .infrastructure-material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infrastructure-cta {
    grid-template-columns: 1fr;
  }

  .infrastructure-cta > a {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .infrastructure-hero-copy h1 span {
    white-space: normal;
  }

  .infrastructure-hero-actions,
  .infrastructure-hero-actions a {
    width: 100%;
  }

  .infrastructure-scope-grid,
  .infrastructure-project-lines,
  .infrastructure-workflow-steps,
  .infrastructure-role-grid,
  .infrastructure-material-grid {
    grid-template-columns: 1fr;
  }

  .infrastructure-project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 260px repeat(3, 190px);
  }

  .infrastructure-project-gallery__lead {
    grid-column: auto;
  }

  .infrastructure-section-heading h2 {
    font-size: 30px;
  }
}
