.doc-body {
  background: #0a1128;
  color: #fff;
  scroll-padding-top: 100px;
}

html:has(.doc-body) {
  scroll-padding-top: 100px;
}

.doc-top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 17, 40, 0.86);
  backdrop-filter: blur(14px);
}

.doc-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.doc-top__logo img {
  width: 126px;
  height: auto;
}

.doc-top__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.doc-top__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.doc-top__back svg {
  width: 18px;
  height: 18px;
}

.doc-top__back:hover {
  color: #fff;
}

.doc-top__cta {
  padding: 12px 22px;
  font-size: 14.5px;
}

.doc {
  padding: 64px 0 96px;
}

.doc-hero {
  max-width: 900px;
}

.doc-hero__title {
  margin: 22px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1.4px;
}

.doc-hero__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 16.5px;
  line-height: 1.6;
}

.doc-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 0;
}

.doc-facts__item {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.doc-facts dt {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.doc-facts dd {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.doc-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 56px;
  margin-top: 64px;
}

.doc-nav {
  position: sticky;
  top: 108px;
  align-self: start;
  max-height: calc(100vh - 140px);
  padding: 22px 20px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 210, 0, 0.35) transparent;
}

.doc-nav__title {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.doc-nav__list {
  margin: 0;
  padding: 0 0 0 22px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13.5px;
}

.doc-nav__list li {
  margin-bottom: 9px;
}

.doc-nav__list a {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 600;
  transition: color 0.2s ease;
}

.doc-nav__list a:hover,
.doc-nav__list a.is-active {
  color: var(--yellow);
}

.doc-section {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.doc-section:last-of-type {
  border-bottom: 0;
}

.doc-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.7px;
}

.doc-section__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--navy);
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 700;
}

.doc-section h3 {
  margin: 0 0 7px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.doc-section p {
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15.5px;
  line-height: 1.68;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-list {
  margin: 0 0 16px;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15.5px;
  line-height: 1.68;
}

.doc-list li {
  margin-bottom: 7px;
}

.doc-list li::marker {
  color: var(--yellow);
}

.doc-terms {
  margin: 0;
  padding: 0;
}

.doc-terms dt {
  margin-top: 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.doc-terms dt:first-child {
  margin-top: 0;
}

.doc-terms dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.62;
}

.doc-data {
  display: grid;
  gap: 14px;
  margin: 22px 0 26px;
}

.doc-data__item {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.doc-data__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(255, 210, 0, 0.34);
  border-radius: 10px;
  background: rgba(255, 210, 0, 0.1);
  color: var(--yellow);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.doc-data__item p {
  margin: 0;
  font-size: 15px;
}

.doc-note {
  display: flex;
  gap: 14px;
  margin: 22px 0;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--yellow);
  border-radius: 14px;
  background: rgba(255, 210, 0, 0.05);
}

.doc-note svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--yellow);
}

.doc-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.62;
}

.doc-note strong {
  color: #fff;
}

.doc-note--key {
  background: rgba(255, 210, 0, 0.09);
}

.doc-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.doc-table th {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.doc-table td:first-child {
  width: 40%;
  min-width: 230px;
}

.doc-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  vertical-align: top;
}

.doc-table tbody tr:last-child td {
  border-bottom: 0;
}

.doc-table td b {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.doc-table td span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  line-height: 1.45;
}

.doc-table td:nth-child(2),
.doc-table td:nth-child(3) {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  white-space: nowrap;
}

.doc-table--flow th {
  white-space: normal;
}

.doc-table--flow td:first-child {
  width: 28%;
  min-width: 190px;
}

.doc-table--flow td:nth-child(2),
.doc-table--flow td:nth-child(3) {
  font-family: inherit;
  font-size: 14.5px;
  white-space: normal;
}

.doc-table td:nth-child(4) b {
  color: var(--yellow);
  font-family: "JetBrains Mono", monospace;
  font-size: 14.5px;
  white-space: nowrap;
}

.doc-table__row--muted td:nth-child(4) {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13.5px;
}

.doc-table tfoot td {
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 800;
}

.doc-table tfoot td:nth-child(2),
.doc-table tfoot td:nth-child(3) {
  font-family: "JetBrains Mono", monospace;
}

.doc-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.doc-contacts__item {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease;
}

a.doc-contacts__item:hover {
  border-color: rgba(255, 210, 0, 0.4);
}

.doc-contacts__item span {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.doc-contacts__item b {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
}

.doc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 48px;
  padding: 32px 36px;
  border: 1px solid rgba(255, 210, 0, 0.24);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(255, 210, 0, 0.12), rgba(255, 210, 0, 0.03));
}

.doc-cta__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.doc-cta__text {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.55;
}

.doc-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 36px;
}

.doc-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-foot__links a {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.doc-foot__links a:hover,
.doc-foot__links a.is-on {
  color: var(--yellow);
}

.doc-foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12.5px;
}

.doc-foot p {
  margin: 0;
}

@media (max-width: 1080px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    margin-top: 44px;
  }
  .doc-nav {
    position: static;
    max-height: none;
  }
  .doc-nav__list {
    columns: 2;
    column-gap: 26px;
  }
  .doc-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-contacts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .doc-top__inner {
    height: 66px;
  }
  .doc-top__back span {
    display: none;
  }
  .doc-top__back {
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
  }
  .doc-top__back svg {
    width: 20px;
    height: 20px;
  }
  .doc-top__cta {
    padding: 11px 18px;
    font-size: 14px;
  }
  .doc {
    padding: 40px 0 64px;
  }
  .doc-hero__title {
    letter-spacing: -1px;
  }
  .doc-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-nav__list {
    columns: 1;
  }
  .doc-section {
    padding-bottom: 34px;
    margin-bottom: 34px;
  }
  .doc-section h2 {
    gap: 11px;
  }
  .doc-section__num {
    width: 32px;
    height: 32px;
    font-size: 13.5px;
  }
  .doc-data__item {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
  .doc-table th {
    display: none;
  }
  .doc-table td,
  .doc-table tfoot td {
    display: block;
    padding: 6px 18px;
    border: 0;
  }
  .doc-table tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .doc-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: rgba(255, 255, 255, 0.42);
    font-family: "Manrope", sans-serif;
    font-size: 12.5px;
  }
  .doc-table tfoot tr {
    display: block;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.03);
  }
  .doc-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
  }
  .doc-foot__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
