.btn-back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  transition: all 0.15s;
}

.btn-back:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.page {
  padding: 40px 0 72px;
}

.doc {
  max-width: 860px;
  margin: 0 auto;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.crumbs a:hover {
  color: var(--text);
}

.crumbs span {
  color: var(--accent-2);
}

.doc h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.doc__meta {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.doc__lead {
  font-size: 16px;
  color: #d3d8df;
  margin-bottom: 10px;
}

.doc h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 34px 0 12px;
  scroll-margin-top: 80px;
}

.doc h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: #eef1f4;
}

.doc p {
  color: #c7ccd4;
  margin-bottom: 13px;
}

.doc ul,
.doc ol {
  color: #c7ccd4;
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 7px;
}

.doc a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc a:hover {
  color: var(--accent);
}

.doc strong {
  color: #eef1f4;
}

.doc__toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 4px 0 30px;
}

.doc__toc h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.doc__toc ol {
  margin-bottom: 0;
  columns: 2;
  column-gap: 30px;
}

.doc__toc a {
  text-decoration: none;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 13.5px;
}

.doc th,
.doc td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: #c7ccd4;
  vertical-align: top;
}

.doc th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
}

.doc__note {
  background: rgba(0, 190, 6, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 18px 0;
}

.doc__note p {
  margin-bottom: 0;
}

.form {
  display: grid;
  gap: 16px;
  margin: 18px 0 8px;
}

.form__row {
  display: grid;
  gap: 6px;
}

.form label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border 0.15s;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--accent);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form button {
  justify-self: start;
  height: 44px;
  padding: 0 26px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.15s;
}

.form button:hover {
  filter: brightness(1.1);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0 8px;
}

.cards__item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.cards__item h3 {
  margin-top: 0;
}

.cards__item p {
  margin-bottom: 0;
  font-size: 13.5px;
}

@media (max-width: 760px) {
  .doc__toc ol {
    columns: 1;
  }
  .doc h1 {
    font-size: 25px;
  }
  .btn-back {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .btn-back span {
    display: none;
  }
}
