.ac-map {
  --ac-ink: var(--ink);
  --ac-muted: #51595d;
  --ac-rule: #d8e1de;
  --ac-green: #42765f;
  --ac-violet: #73688f;
  --ac-body: clamp(15px, 1.1vw, 19px);
  --ac-small: clamp(13px, 0.95vw, 16px);
  padding-block: clamp(24px, 1.75vw, 30px) 100px;
  scroll-margin-block-start: var(--header);
  color: var(--ac-ink);
}
.ac-map-head {
  gap: 30px;
}
.ac-roles {
  display: flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--ac-rule);
  border-radius: 2rem;
  background: #f2f4f3;
}
.ac-roles button {
  background: transparent;
  border: 0;
  border-radius: 2rem;
  min-height: 44px;
  padding: 0.45em 1em;
  font: inherit;
  font-size: var(--ac-small);
  color: var(--ac-muted);
  cursor: pointer;
  white-space: nowrap;
}
.ac-roles button[aria-pressed="true"] {
  background: var(--action-ink);
  color: white;
}
.ac-roles button:hover:not([aria-pressed="true"]) {
  background: #e9edec;
}
.ac-map button:focus-visible,
.ac-map summary:focus-visible {
  outline: 2px solid #557695;
  outline-offset: 3px;
}
.ac-task {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.1rem 0 2.2rem;
  color: var(--ac-muted);
  line-height: 1.55;
  font-size: var(--ac-body);
  text-align: center;
}
.ac-task b {
  font-size: var(--ac-small);
  font-weight: 600;
  white-space: nowrap;
  color: var(--ac-green);
  border-right: 1px solid #cdd8d0;
  padding-right: 0.85rem;
}
.ac-plane {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.75fr) minmax(0, 1.27fr);
  column-gap: clamp(26px, 4.6vw, 96px);
  align-items: center;
}
.ac-wires {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.ac-plane h3 {
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 0.8rem;
  color: var(--ac-ink);
}
.ac-plane h3 span {
  font-weight: 400;
  color: var(--ac-muted);
  font-size: 0.85em;
}
.ac-sources,
.ac-delivery {
  position: relative;
  z-index: 2;
}
.ac-sources ul,
.ac-service ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-sources ul {
  display: grid;
  gap: 0.55rem;
}
.ac-sources li {
  border: 1px solid #cfddd4;
  border-radius: 3rem;
  padding: 0.65rem 0.9rem;
  min-height: 2.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f4f8f5;
  font-size: var(--ac-body);
  line-height: 1.2;
}
.ac-map i[data-ico] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--ac-green);
}
.ac-map i[data-ico] svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ac-core {
  position: relative;
  border: 1px solid #cbd9d5;
  border-radius: var(--image-radius);
  padding: 0 clamp(1rem, 1.8vw, 2rem) 1.3rem;
  overflow: hidden;
  background: linear-gradient(145deg, #eff7f3 0%, #f9faf9 52%, #f0eff8 100%);
}
.ac-gateway {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0 0.78rem;
  border-bottom: 1px solid #d5e1da;
  color: #426754;
  line-height: 1.3;
  font-size: var(--ac-small);
  position: relative;
  z-index: 2;
}
.ac-gateway span {
  padding-left: 0.4rem;
  border-left: 1px solid #c6d7ca;
}
.ac-engine {
  position: relative;
  z-index: 2;
}
.ac-ontology {
  padding-top: 1rem;
}
.ac-engine > div {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.ac-engine h4 {
  font-family: inherit;
  font-size: clamp(20px, 1.65vw, 28px);
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}
.ac-engine h4 span {
  font-size: 0.82em;
  font-weight: 450;
}
.ac-engine b {
  font-size: var(--ac-small);
  font-weight: 550;
  color: var(--ac-green);
}
.ac-gan b {
  color: var(--ac-violet);
}
.ac-engine p,
.ac-out p,
.ac-delivery .ac-clients {
  font-size: var(--ac-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ac-muted);
  margin: 0.4rem 0 0;
}
.ac-lanes {
  height: clamp(126px, 10vw, 164px);
  position: relative;
}
.ac-event {
  position: absolute;
  top: 0.6rem;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #b7cdbf;
  border-radius: 2rem;
  padding: 0.29rem 0.7rem;
  background: #fbfdfb;
  color: #2c5040;
  font-size: var(--ac-small);
  font-weight: 500;
  line-height: 1.3;
  z-index: 2;
  white-space: nowrap;
}
.ac-event i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 100%;
  background: #609a7d;
}
.ac-event::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 100%;
  height: 0.8rem;
  border-left: 1px dashed #78978b;
}
.ac-map[data-phase="1"] .ac-event {
  left: 35%;
  border-color: #c6c1d6;
  color: #5c5273;
}
.ac-map[data-phase="2"] .ac-event {
  left: auto;
  right: 4%;
}
.ac-delivery .ac-clients {
  margin: -0.35rem 0 1rem;
  font-size: var(--ac-small);
  line-height: 1.5;
}
.ac-out {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #f6f5f9;
  border: 1px solid #dcd9e5;
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  margin-top: 0.65rem;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.ac-out b {
  font-size: var(--ac-body);
  font-weight: 550;
  color: var(--ac-ink);
}
.ac-out i[data-ico] {
  color: var(--ac-violet);
  margin-top: 0.1rem;
}
.ac-out p {
  margin: 0.25rem 0 0;
}
.ac-map[data-phase="2"] .ac-out {
  border-color: #aaa0bd;
  background: #f2eff7;
}
.ac-map-controls {
  margin: 1rem 0 0.6rem;
}
.ac-details summary {
  cursor: pointer;
  color: var(--ac-muted);
  font: inherit;
  font-size: var(--ac-small);
  line-height: 1.5;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
  width: max-content;
  padding: 0.3rem 0;
}
.ac-details summary:hover {
  color: var(--action-red);
}
.ac-details summary::-webkit-details-marker {
  display: none;
}
.ac-details summary::after {
  content: "＋";
  margin-left: 0.45rem;
}
.ac-details[open] summary::after {
  content: "－";
}
.ac-details dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1rem 0;
}
.ac-details dt,
.ac-service strong {
  font-size: var(--ac-small);
  font-weight: 600;
}
.ac-details dd {
  margin: 0.4rem 0;
  color: var(--ac-muted);
  font-size: var(--ac-small);
  line-height: 1.6;
}
.ac-service {
  display: flex;
  margin-block-start: 50px;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: 1rem 0;
  border-block: 1px solid var(--ac-rule);
}
.ac-service ol {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}
.ac-service li {
  white-space: nowrap;
  color: var(--ac-muted);
  font-size: var(--ac-small);
}
.ac-service li + li::before {
  content: "→";
  margin-right: clamp(0.4rem, 1.7vw, 2rem);
  color: #80948b;
}
@media (900px <= width < 1120px) {
  .ac-plane {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 2.25fr) minmax(0, 1.12fr);
    column-gap: 3%;
  }
  .ac-map .ac-out {
    padding: 0.65rem;
    gap: 0.35rem;
  }
}
@media (width < 900px) {
  .ac-roles button {
    padding-inline: 0.75em;
  }
  .ac-task {
    align-items: flex-start;
    gap: 0.55rem;
    margin: 1rem 0 1.5rem;
  }
  .ac-task b {
    padding-right: 0.55rem;
    line-height: 1.7;
  }
  .ac-plane {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .ac-sources ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .ac-sources li {
    padding: 0.32rem 0.55rem;
    min-height: 1.8rem;
    gap: 0.3rem;
    font-size: var(--ac-small);
  }
  .ac-sources i[data-ico] {
    width: 0.95rem;
    height: 0.95rem;
  }
  .ac-lanes {
    height: 124px;
  }
  .ac-delivery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .ac-delivery h3,
  .ac-delivery .ac-clients {
    grid-column: 1/-1;
    margin: 0;
  }
  .ac-delivery .ac-clients {
    margin: -0.15rem 0 0.2rem;
  }
  .ac-out {
    margin: 0;
  }
  .ac-details dl {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .ac-service {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
  .ac-service ol {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .ac-service li + li::before {
    margin-right: 0.35rem;
  }
}
@media (max-width: 420px) {
  .ac-out {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ac-out {
    transition: none;
  }
}
