:root {
  --abx-white: #ffffff;
  --abx-black: #000000;
  --abx-red: #ff4664;
  --abx-light-gray: #d9d9d9;
  --abx-green: #c7ed3b;
}

html,
body {
  margin: 0;
  padding: 0;
  width: auto;
  max-width: none;
  background: var(--abx-white);
  color: var(--abx-black);
  font-family:
    "Helvetica LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.centered {
  text-align: center;
}

.doc-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 48px;
  background: var(--abx-white);
  box-sizing: border-box;
}

.doc-header {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
  align-items: start;
  margin-bottom: 26px;
}

.doc-shell > :not(.doc-header):not(pre) {
  padding-left: 114px;
  padding-right: 114px;
  box-sizing: border-box;
}

.header-title-box {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  background-color: var(--abx-black);
  padding: 26px 34px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  position: relative;
  margin-top: 0;
}

.header-title {
  width: 252px;
  margin-top: 8px;
  margin-right: 12px;
  height: auto;
  display: block;
}

.header-title-text {
  position: relative;
  color: var(--abx-white);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  text-transform: lowercase;
  font-family:
    "Helvetica LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
  margin: 32px 0;
  text-align: left;
  font-family:
    "Offbit", "Helvetica LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 58px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.015em;
}

h2 {
  margin: 42px 0 18px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 500;
}

h3,
h4 {
  margin: 30px 0 14px;
  font-size: 30px;
  line-height: 1.2;
}

p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
}

.lead {
  margin-bottom: 24px;
}

ul.steps {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

ul.steps li {
  margin: 0 0 4px;
}

ul.steps li:last-child {
  margin-bottom: 0;
}

.scheme-image {
  display: block;
  width: 100%;
  max-width: 1040px;
  margin: 24px auto;
}

.scheme-flow {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 28px auto 34px;
}

.scheme-desktop {
  display: grid;
  grid-template-columns:
    minmax(160px, 1fr) minmax(160px, 0.82fr)
    minmax(270px, 1.25fr) minmax(160px, 0.82fr)
    minmax(190px, 1fr);
  grid-template-rows: 146px repeat(4, 94px);
  gap: 10px 12px;
  align-items: stretch;
}

.scheme-panel,
.scheme-step {
  border-radius: 8px;
  box-sizing: border-box;
}

.scheme-panel {
  min-width: 0;
  background: var(--abx-light-gray);
  color: var(--abx-black);
  position: relative;
  overflow: hidden;
}

.scheme-user {
  grid-area: 1 / 1 / 2 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.scheme-person {
  width: 52px;
  height: 62px;
  position: relative;
}

.scheme-person::before,
.scheme-person::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--abx-black);
}

.scheme-person::before {
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.scheme-person::after {
  bottom: 0;
  width: 52px;
  height: 35px;
  border-radius: 52px 52px 18px 18px;
}

.scheme-server {
  grid-area: 2 / 1 / 6 / 2;
}

.scheme-s3 {
  grid-area: 1 / 5 / 4 / 6;
}

.scheme-billing {
  grid-area: 4 / 5 / 6 / 6;
}

.scheme-stack-panel {
  display: flex;
  flex-direction: column;
  padding: 14px 20px 22px;
  gap: 14px;
}

.scheme-node-title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
}

.scheme-user .scheme-node-title {
  font-size: 25px;
}

.scheme-black-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 68px;
  padding: 16px;
  background: var(--abx-black);
  color: var(--abx-white);
  text-align: center;
  font-size: 17px;
  line-height: 1.15;
  box-sizing: border-box;
}

.scheme-customer {
  grid-area: 1 / 3 / 6 / 4;
  display: grid;
  grid-template-areas:
    "storage"
    "api"
    "api"
    "billing"
    "billing";
  grid-template-rows: 146px repeat(4, 94px);
  gap: 10px;
  padding: 0 24px;
}

.scheme-customer .scheme-node-title {
  grid-area: storage;
  align-self: start;
  margin-top: 14px;
  font-size: 30px;
  z-index: 2;
}

.scheme-zone-label {
  margin: 0;
  text-align: center;
  font-size: 17px;
  line-height: 1;
}

.scheme-public-label {
  grid-area: storage;
  align-self: start;
  margin-top: 58px;
  z-index: 2;
}

.scheme-private-label {
  grid-area: billing;
  align-self: start;
  z-index: 2;
}

.scheme-storage-proxy,
.scheme-api-proxy,
.scheme-billing-proxy {
  width: 100%;
}

.scheme-storage-proxy {
  grid-area: storage;
  align-self: end;
  height: 62px;
  min-height: 0;
}

.scheme-api-proxy {
  grid-area: api;
}

.scheme-billing-proxy {
  grid-area: billing;
  margin-top: 28px;
  min-height: 0;
}

.scheme-step {
  --step-color: var(--abx-red);
  --head-left: 26px;
  --head-right: 26px;
  --tail-left: 12px;
  --tail-right: 12px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 10px 14px;
  background: var(--step-color);
  color: var(--abx-black);
  font-size: 12px;
  line-height: 1.17;
  overflow-wrap: anywhere;
}

.scheme-step.is-green {
  --step-color: var(--abx-green);
}

.scheme-step strong,
.scheme-mobile-step strong {
  display: block;
  margin: 0 0 4px;
  color: var(--abx-black);
  font-size: 14px;
  line-height: 1;
}

.scheme-step::before,
.scheme-step::after {
  content: "";
  position: absolute;
  top: 50%;
  display: block;
  background: var(--step-color);
}

.scheme-step[data-flow="right"]::before {
  left: calc(0px - var(--tail-left));
  width: var(--tail-left);
  height: 10px;
  transform: translateY(-50%);
}

.scheme-step[data-flow="right"]::after {
  right: calc(0px - var(--head-right));
  width: var(--head-right);
  height: 30px;
  transform: translateY(-50%);
  clip-path: polygon(
    0 34%,
    58% 34%,
    58% 8%,
    100% 50%,
    58% 92%,
    58% 66%,
    0 66%
  );
}

.scheme-step[data-flow="left"]::before {
  left: calc(0px - var(--head-left));
  width: var(--head-left);
  height: 30px;
  transform: translateY(-50%);
  clip-path: polygon(
    100% 34%,
    42% 34%,
    42% 8%,
    0 50%,
    42% 92%,
    42% 66%,
    100% 66%
  );
}

.scheme-step[data-flow="left"]::after {
  right: calc(0px - var(--tail-right));
  width: var(--tail-right);
  height: 10px;
  transform: translateY(-50%);
}

.scheme-step-1 {
  --head-right: 56px;
  grid-area: 1 / 2 / 2 / 3;
  align-self: end;
  height: 94px;
}

.scheme-step-2 {
  --head-right: 40px;
  --tail-left: 56px;
  grid-area: 1 / 4 / 2 / 5;
  align-self: end;
  height: 94px;
}

.scheme-step-3 {
  --head-left: 56px;
  --tail-right: 40px;
  grid-area: 3 / 4 / 4 / 5;
}

.scheme-step-4 {
  --head-left: 40px;
  --tail-right: 56px;
  grid-area: 3 / 2 / 4 / 3;
}

.scheme-step-5 {
  --head-right: 56px;
  --tail-left: 40px;
  grid-area: 4 / 2 / 5 / 3;
}

.scheme-step-6 {
  --head-right: 40px;
  --tail-left: 56px;
  grid-area: 4 / 4 / 5 / 5;
}

.scheme-step-7 {
  --head-left: 56px;
  --tail-right: 40px;
  grid-area: 5 / 4 / 6 / 5;
}

.scheme-step-8 {
  --head-left: 40px;
  --tail-right: 56px;
  grid-area: 5 / 2 / 6 / 3;
}

.scheme-step-9 {
  --head-right: 56px;
  --tail-left: 12px;
  grid-area: 2 / 2 / 3 / 3;
}

.scheme-step-10 {
  --head-right: 40px;
  --tail-left: 56px;
  grid-area: 2 / 4 / 3 / 5;
}

.scheme-mobile {
  display: none;
}

ol,
ul {
  margin: 0 0 18px;
  padding-left: 28px;
  list-style-position: inside;
}

li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.35;
}

pre {
  margin: 0 0 20px;
  padding: 28px 36px;
  background: var(--abx-light-gray);
  color: var(--abx-black);
  border: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.doc-shell > pre {
  margin-left: 114px;
  margin-right: 114px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

pre code,
pre .comment,
pre span.comment {
  color: var(--abx-black);
  font-style: normal;
}

:not(pre) > code {
  background: rgba(199, 237, 59, 0.35);
  padding: 0.04em 0.3em;
}

.comment,
span.comment {
  color: #7a0016;
  font-style: italic;
}

.line {
  width: 100%;
  height: 1px;
  margin: 34px auto;
  background: rgba(0, 0, 0, 0.25);
}

.center-image {
  display: block;
  margin: 0 auto 24px;
  max-width: 100%;
}

.inline-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-label-row > img {
  display: block;
  height: auto;
  max-width: 100%;
}

.inline-label {
  display: inline-block;
  margin: 0;
  padding: 0;
  color: var(--abx-red);
  font-style: normal;
  line-height: 1;
}

.full-width-table {
  width: 100%;
}

th {
  text-align: left;
}

.no-decoration {
  text-decoration: none;
}

.important {
  color: var(--abx-red);
}

strong {
  color: var(--abx-red);
}

a,
a:visited {
  color: var(--abx-red);
  text-decoration-color: var(--abx-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--abx-red);
  text-decoration: none;
}

@media (max-width: 980px) {
  .doc-shell {
    width: 100%;
    padding: 0 0 36px;
    margin-top: 0;
  }

  .doc-header {
    grid-template-columns: 1fr;
    row-gap: 14px;
    margin-bottom: 20px;
  }

  .header-title-text {
    margin-top: 10px;
    font-size: clamp(18px, 5.8vw, 38px);
  }

  .doc-shell > :not(.doc-header):not(pre) {
    padding-left: 14px;
    padding-right: 14px;
  }

  .doc-shell > pre {
    margin-left: 14px;
    margin-right: 14px;
  }

  pre {
    padding: 18px 16px;
  }

  h1 {
    margin: 24px 0;
    font-size: 32px;
  }

  h2 {
    font-size: 34px;
  }
}

@media (max-width: 1120px) {
  .scheme-desktop {
    grid-template-columns:
      minmax(130px, 1fr) minmax(138px, 0.9fr)
      minmax(220px, 1.18fr) minmax(138px, 0.9fr)
      minmax(150px, 1fr);
    grid-template-rows: 142px repeat(4, 98px);
  }

  .scheme-stack-panel {
    padding: 12px 14px 18px;
  }

  .scheme-customer {
    padding: 0 16px;
    grid-template-rows: 142px repeat(4, 98px);
  }

  .scheme-public-label {
    margin-top: 54px;
  }

  .scheme-storage-proxy {
    height: 58px;
  }

  .scheme-billing-proxy {
    margin-top: 24px;
  }

  .scheme-node-title,
  .scheme-customer .scheme-node-title {
    font-size: 25px;
  }

  .scheme-black-box {
    font-size: 15px;
    padding: 12px;
  }

  .scheme-step {
    padding: 10px 12px;
    font-size: 11px;
  }
}

@media (max-width: 860px) {
  .scheme-flow {
    margin-top: 22px;
  }

  .scheme-desktop {
    display: none;
  }

  .scheme-mobile {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 0;
    list-style: none;
    min-width: 0;
  }

  .scheme-mobile-step {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--abx-red);
    color: var(--abx-black);
    list-style: none;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .scheme-mobile-step.is-green {
    background: var(--abx-green);
  }

  .scheme-mobile-path {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.25;
    opacity: 0.72;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .inline-label-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .inline-label {
    display: inline-block;
  }

  .header-title-text {
    font-size: clamp(15px, 5.3vw, 26px);
  }

  .doc-shell {
    overflow-x: hidden;
  }

  .doc-header,
  .doc-shell > :not(.doc-header):not(pre) {
    width: 100%;
    max-width: 100%;
  }

  .header-title-box {
    width: 100%;
    max-width: 100%;
    padding: 22px 14px;
  }

  .header-title {
    flex: 0 1 min(190px, 48vw);
    width: min(190px, 48vw);
    margin-right: 8px;
  }

  .header-title-text {
    flex: 1 1 110px;
    min-width: 0;
  }

  h1 {
    font-size: 28px;
    margin: 24px 0;
  }
}

img {
  max-width: 100%;
}
