[data-public-page-shell] {
  min-height: 100vh;
  color: #111827;
  background: #f7f7f9;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-shell a {
  color: inherit;
  text-decoration: none;
}

.public-shell-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.public-shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
}

.public-shell-brand strong,
.public-shell-kicker {
  color: #6259f5;
}

.public-shell-header nav {
  display: flex;
  gap: 28px;
  margin: auto;
}

.public-shell-header nav a,
.public-shell-footer a {
  color: #596176;
}

.public-shell-action,
.public-shell-primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: #111827;
  color: #fff !important;
  font-weight: 650;
}

.public-shell-main,
.public-shell-header,
.public-shell-footer {
  width: min(1180px, calc(100% - 40px));
}

.public-shell-main {
  margin: 0 auto;
  flex: 1;
}

.public-shell-hero {
  max-width: 790px;
  padding: 110px 0 120px;
}

.public-shell-kicker {
  margin: 0 0 16px;
  font-weight: 700;
}

.public-shell h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.public-shell-hero > p:not(.public-shell-kicker) {
  max-width: 720px;
  margin: 26px 0 0;
  color: #596176;
  font-size: 20px;
  line-height: 1.55;
}

.public-shell-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.public-shell-section {
  padding: 0 0 110px;
}

.public-shell-section h2,
.public-shell-docs-title h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.public-shell-section > p {
  max-width: 680px;
  color: #596176;
  line-height: 1.6;
}

.public-shell-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.public-shell-cards a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid #e2e5ec;
  border-radius: 22px;
  background: #fff;
}

.public-shell-cards span,
.public-shell-doc-meta,
.public-shell-error main > p:not(.public-shell-kicker) {
  color: #687083;
}

.public-shell-footer {
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #e2e5ec;
  font-size: 14px;
}

.public-shell-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.public-shell-footer-company {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas:
    "name address"
    "inn address"
    "ogrn address";
  row-gap: 6px;
  column-gap: 32px;
  max-width: 820px;
  margin: 0;
}

.public-shell-footer-company > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.public-shell-footer-company > div:nth-child(1) {
  grid-area: name;
}

.public-shell-footer-company > div:nth-child(2) {
  grid-area: address;
  align-self: center;
}

.public-shell-footer-company > div:nth-child(3) {
  grid-area: inn;
}

.public-shell-footer-company > div:nth-child(4) {
  grid-area: ogrn;
}

.public-shell-footer-company dt,
.public-shell-footer-company dd {
  margin: 0;
  line-height: 1.45;
}

.public-shell-footer-company dt {
  color: #687083;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.public-shell-footer-company dt::after {
  content: ':';
}

.public-shell-footer-company dd {
  color: #81889a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.public-shell-docs-title {
  padding: 56px 0 28px;
}

.public-shell-docs {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  padding-bottom: 80px;
}

.public-shell-docs aside {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 20px;
  border: 1px solid #e2e5ec;
  border-radius: 20px;
  background: #fff;
}

.public-shell-docs aside h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.public-shell-docs ul {
  padding-left: 20px;
}

.public-shell-docs aside ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-shell-docs aside a {
  color: #596176;
}

.public-shell-docs aside a[aria-current="page"] {
  color: #6259f5;
  font-weight: 650;
}

.public-shell-docs article {
  min-width: 0;
  padding: 30px;
  border: 1px solid #e2e5ec;
  border-radius: 24px;
  background: #fff;
}

.public-shell-docs article h2 {
  margin-top: 0;
  font-size: 28px;
  line-height: 1.25;
}

.public-shell-docs article h3 {
  margin-top: 34px;
  font-size: 20px;
}

.public-shell-docs article p,
.public-shell-docs article li {
  line-height: 1.65;
}

.public-shell-table {
  max-width: 100%;
  overflow: auto;
}

.public-shell-table table {
  width: 100%;
  border-collapse: collapse;
}

.public-shell-table th,
.public-shell-table td {
  padding: 10px;
  border: 1px solid #e2e5ec;
  text-align: left;
  vertical-align: top;
}

.public-shell-error {
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.public-shell-error main {
  max-width: 560px;
}

.public-shell-error h1 {
  font-size: 44px;
}

.public-shell-error main > p:not(.public-shell-kicker) {
  margin: 18px 0 28px;
}

@media (max-width: 760px) {
  .public-shell-header {
    min-height: 64px;
  }

  .public-shell-header nav {
    display: none;
  }

  .public-shell-action {
    margin-left: auto;
  }

  .public-shell-main,
  .public-shell-header,
  .public-shell-footer {
    width: min(100% - 28px, 1180px);
  }

  .public-shell-hero {
    padding: 72px 0 88px;
  }

  .public-shell-hero > p:not(.public-shell-kicker) {
    font-size: 17px;
  }

  .public-shell-cards,
  .public-shell-docs {
    grid-template-columns: 1fr;
  }

  .public-shell-footer-company {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "address"
      "inn"
      "ogrn";
    gap: 6px;
  }

  .public-shell-docs {
    gap: 20px;
  }

  .public-shell-docs aside {
    position: static;
  }

  .public-shell-docs article {
    padding: 20px;
  }

  .public-shell-docs article h2 {
    font-size: 22px;
  }

  .public-shell-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-shell-footer-company > div {
    gap: 12px;
  }

  .public-shell-footer-company dt {
    flex: 0 0 86px;
  }

  .public-shell-footer-company > div:nth-child(2) {
    align-self: auto;
  }
}

@media (prefers-color-scheme: dark) {
  [data-public-page-shell] {
    color: #e8eaed;
    background: #08080c;
  }

  .public-shell-header nav a,
  .public-shell-footer a,
  .public-shell-hero > p:not(.public-shell-kicker),
  .public-shell-section > p,
  .public-shell-cards span,
  .public-shell-doc-meta,
  .public-shell-footer-company dt,
  .public-shell-footer-company dd,
  .public-shell-error main > p:not(.public-shell-kicker) {
    color: #a5a9b5;
  }

  .public-shell-cards a,
  .public-shell-docs aside,
  .public-shell-docs article {
    border-color: #292933;
    background: #121217;
  }

  .public-shell-footer,
  .public-shell-footer-company,
  .public-shell-table th,
  .public-shell-table td {
    border-color: #292933;
  }

  .public-shell-action,
  .public-shell-primary {
    background: #e8eaed;
    color: #111827 !important;
  }
}
