:root {
  color: #080806;
  background: #f6f4ec;
  font-family:
    "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", "Cascadia Mono",
    Consolas, "Liberation Mono", Menlo, monospace;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  --paper: #f6f4ec;
  --paper-2: #fffcf1;
  --ink: #080806;
  --muted: #5f5b51;
  --line: #080806;
  --orange: #ff6a1a;
  --green: #17a35d;
  --gray: #d9d5ca;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  color: var(--ink);
  background:
    linear-gradient(rgba(8, 8, 6, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 6, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size:
    32px 32px,
    32px 32px,
    auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.doc-page {
  width: min(936px, calc(100% - 32px));
  margin: 32px auto;
  padding: 32px 42px 52px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 6px 6px 0 var(--ink);
}

.doc-chrome {
  margin: 0 0 30px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.doc-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.doc-brand img {
  width: 72px;
  height: auto;
  display: block;
}

.back-link {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.back-link:hover {
  background: var(--ink);
  color: var(--paper-2);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 var(--orange);
}

.doc-body {
  display: grid;
  gap: 20px;
}

.doc-title {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
  line-height: 1.12;
}

.doc-lead {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.1), transparent 44%),
    #fffef8;
  box-shadow: 4px 4px 0 var(--gray);
}

.doc-section {
  padding-top: 4px;
}

.doc-section h2,
.doc-terms-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.28;
}

.doc-body p,
.doc-body li {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.68;
}

.doc-body p:last-child,
.doc-body li:last-child {
  margin-bottom: 0;
}

.doc-body ul {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.doc-body li {
  position: relative;
  padding-left: 22px;
}

.doc-body li::before {
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
  background: var(--orange);
  content: "";
  transform: translateY(-50%);
}

.doc-terms {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fffef8;
  box-shadow: 4px 4px 0 var(--gray);
}

.doc-requisites {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(23, 163, 93, 0.12), transparent 42%),
    #fffef8;
  box-shadow: 4px 4px 0 var(--ink);
}

@media (max-width: 720px) {
  body {
    background-size:
      24px 24px,
      24px 24px,
      auto;
  }

  .doc-page {
    width: 100%;
    margin: 0;
    padding: 22px 16px 40px;
    border: 0;
    box-shadow: none;
  }

  .doc-chrome {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .doc-brand img {
    width: 58px;
  }

  .doc-title {
    font-size: 27px;
    line-height: 1.14;
  }

  .doc-lead,
  .doc-terms,
  .doc-requisites {
    padding: 16px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .doc-section h2,
  .doc-terms-title {
    font-size: 16px;
  }

  .doc-body p,
  .doc-body li {
    font-size: 13px;
    line-height: 1.62;
  }
}
