

body { background: var(--ground); }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 82% -6%, rgba(232, 0, 70, .20), transparent 62%),
    radial-gradient(46% 38% at 6% 2%, rgba(255, 45, 110, .12), transparent 60%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(180deg, #000, transparent 62%);
  opacity: .5;
}

.doc__hero { padding: calc(var(--hdr-h) + clamp(50px, 8vw, 110px)) 0 clamp(40px, 5vw, 66px); }
.doc__hero h1 {
  margin: 0;
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 4.5rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.doc__hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.doc__lead {
  margin: 26px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.66;
}
.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  color: var(--faint);
}
.doc__meta span { font-size: .6rem; }
.doc__meta b { color: var(--ink); font-weight: 600; }

.doc__grid {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
  padding-bottom: clamp(70px, 9vw, 130px);
}
.doc__grid--plain { grid-template-columns: minmax(0, 820px); justify-content: start; }

.toc {
  position: sticky;
  top: calc(var(--hdr-h) + 26px);
  border-top: 1px solid var(--hair);
  padding-top: 16px;
}
.toc > p { margin: 0 0 12px; color: var(--orange); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; max-height: 64svh; overflow-y: auto; }
.toc li { counter-increment: t; }
.toc a {
  display: flex;
  gap: 9px;
  padding: 6px 0;
  color: var(--faint);
  font-size: .82rem;
  line-height: 1.35;
  transition: color .25s;
}
.toc a::before {
  content: counter(t, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: "JetBrains Mono", monospace;
  font-size: .58rem;
  color: var(--ghost);
  padding-top: 3px;
}
.toc a:hover { color: var(--ink); }

.doc__body > section {
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 1px solid var(--hair);
  scroll-margin-top: calc(var(--hdr-h) + 24px);
}
.doc__body > section:first-child { border-top: 0; padding-top: 0; }
.doc__body h2 {
  margin: 0 0 16px;
  font-variation-settings: "wdth" 106;
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.doc__body h3 {
  margin: 24px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.doc__body p,
.doc__body li { color: var(--muted); font-size: 1rem; line-height: 1.76; }
.doc__body p { margin: 0; }
.doc__body p + p { margin-top: 14px; }
.doc__body ul,
.doc__body ol { margin: 14px 0 0; padding-left: 20px; }
.doc__body li + li { margin-top: 6px; }
.doc__body li::marker { color: var(--ghost); }
.doc__body strong { color: var(--ink); font-weight: 650; }
.doc__body a { color: var(--ink); border-bottom: 1px solid var(--hair-2); }
.doc__body a:hover { border-bottom-color: var(--orange); }
.doc__body .address { white-space: pre-line; }
.doc__body table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.doc__body th,
.doc__body td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--hair);
  font-size: .93rem;
  color: var(--muted);
}
.doc__body th { color: var(--faint); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 12px 18px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 650;
  transition: background .3s, border-color .3s;
}
.doc__back:hover { background: rgba(255, 255, 255, .06); border-color: var(--ink); }

.util {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--hdr-h) + 60px) 0 80px;
}
.util__inner { width: min(620px, 100%); text-align: center; }
.util__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair-2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .04);
}
.util__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.util__icon img { width: 76px; border-radius: 21px; }
.util__icon--ok { color: var(--green, #24D18A); border-color: rgba(36, 209, 138, .34); }
.util__icon--warn { color: var(--orange); border-color: rgba(232, 0, 70, .3); }
.util__icon--bare { border: 0; background: none; width: auto; height: auto; }

.util h1 {
  margin: 0;
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: .92;
  letter-spacing: -.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.util h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.util__lead {
  margin: 22px auto 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}
.util__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.util__store { display: inline-block; margin-top: 30px; }
.util__store img { width: 168px; }
.util__note { margin: 26px 0 0; color: var(--ghost); font-size: .58rem; }

.util__form { margin-top: 32px; text-align: left; }
.util__field { margin-bottom: 16px; }
.util__field label {
  display: block;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}
.util__field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  transition: border-color .25s, background .25s;
}
.util__field input:focus { outline: none; border-color: var(--orange); background: rgba(255, 255, 255, .07); }
.util__msg {
  margin: 16px 0 0;
  padding: 13px 16px;
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}
.util__msg--ok { border-color: rgba(36, 209, 138, .30); background: rgba(36, 209, 138, .08); color: #8FE9C4; }
.util__msg--err { border-color: rgba(255, 110, 110, .3); background: rgba(255, 110, 110, .07); color: #ffb3b3; }

@media (max-width: 900px) {
  .doc__grid { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; max-height: none; }
  .toc ol { max-height: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .toc a { padding: 4px 0; }
}

.status-box {
  margin-top: 34px;
  padding: clamp(22px, 3vw, 32px);
  text-align: left;
  border: 1px solid var(--hair-2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  backdrop-filter: blur(20px);
}
.status-box::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--grad);
}
.status-title {
  margin: 0;
  font-variation-settings: "wdth" 108;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  letter-spacing: -.025em;
}
.status-text { margin: 10px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.66; }

.status-pending::before { background: linear-gradient(90deg, var(--orange), var(--magenta)); animation: statusPulse 1.4s ease-in-out infinite; }
@keyframes statusPulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .status-pending::before { animation: none; } }

.status-success { border-color: rgba(36, 209, 138, .34); background: rgba(36, 209, 138, .07); }
.status-success::before { background: #89ff13; }
.status-error { border-color: rgba(255, 110, 110, .34); background: rgba(255, 110, 110, .06); }
.status-error::before { background: #ff6e6e; }

.reset-form { display: none; flex-direction: column; }
