.bnq-doc-header {
  padding: 18px 28px;
  color: var(--bnq-white);
  background: var(--bnq-night);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.bnq-doc-header__inner {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.bnq-doc-header__brand {
  color: var(--bnq-white);
  text-decoration: none;
  font: 700 25px/1 var(--bnq-display);
  letter-spacing: -.02em;
}

.bnq-doc-header__brand::before {
  content: "B";
  width: 34px;
  height: 34px;
  margin-right: 10px;
  display: inline-grid;
  place-items: center;
  color: var(--bnq-night);
  background: var(--bnq-coral);
  border-radius: 50%;
  font: 800 17px/1 var(--bnq-ui);
}

.bnq-doc-header__brand:focus-visible,
.bnq-doc-toc__link:focus-visible,
.bnq-site-footer a:focus-visible {
  outline: 3px solid var(--bnq-cyan);
  outline-offset: 3px;
}

.bnq-doc-hero {
  position: relative;
  overflow: hidden;
  padding: 78px max(28px, calc((100vw - 1180px) / 2)) 66px;
  color: var(--bnq-white);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 107, 74, .26), transparent 23rem),
    linear-gradient(126deg, var(--bnq-night), var(--bnq-navy));
}

.bnq-doc-hero::after {
  content: "";
  position: absolute;
  right: clamp(24px, 8vw, 120px);
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(85, 217, 208, .22);
  border-radius: 50%;
}

.bnq-doc-hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 20px;
  color: var(--bnq-coral-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bnq-doc-hero__title {
  position: relative;
  z-index: 1;
  max-width: 870px;
  margin: 0 0 20px;
  font: 700 clamp(38px, 5.6vw, 68px)/1.02 var(--bnq-display);
  letter-spacing: -.045em;
}

.bnq-doc-hero__lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: rgba(244, 247, 255, .72);
  font-size: 17px;
  line-height: 1.75;
}

.bnq-doc-hero__meta {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: var(--bnq-cyan);
  font-size: 13px;
  font-weight: 750;
}

.bnq-doc-layout {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 62px 0 96px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.bnq-doc-toc {
  position: sticky;
  top: 24px;
  padding: 24px;
  color: var(--bnq-white);
  background: var(--bnq-night);
  border-radius: 24px 5px 24px 5px;
  box-shadow: 0 22px 52px rgba(8, 17, 38, .2);
}

.bnq-doc-toc__title {
  margin-bottom: 15px;
  color: var(--bnq-coral-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bnq-doc-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bnq-toc;
}

.bnq-doc-toc__list li {
  counter-increment: bnq-toc;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.bnq-doc-toc__link {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 8px;
  padding: 11px 0;
  color: rgba(244, 247, 255, .68);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}

.bnq-doc-toc__link::before {
  content: counter(bnq-toc, decimal-leading-zero);
  color: var(--bnq-cyan);
  font-weight: 800;
}

.bnq-doc-toc__link:hover { color: var(--bnq-white); }
.bnq-doc-body { min-width: 0; }

.bnq-doc-section {
  position: relative;
  margin-bottom: 22px;
  padding: 38px 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(17, 26, 53, .12);
  border-radius: 5px 28px 5px 28px;
  box-shadow: 0 14px 38px rgba(8, 17, 38, .07);
  scroll-margin-top: 24px;
}

.bnq-doc-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 5px;
  background: linear-gradient(90deg, var(--bnq-cyan), var(--bnq-coral));
}

.bnq-doc-section__title {
  margin: 0 0 18px;
  color: var(--bnq-night);
  font: 700 clamp(26px, 3.2vw, 36px)/1.12 var(--bnq-display);
  letter-spacing: -.035em;
}

.bnq-doc-section h3 {
  margin: 26px 0 9px;
  color: var(--bnq-night);
  font-size: 18px;
  line-height: 1.35;
}

.bnq-doc-section p { margin: 0 0 15px; color: var(--bnq-muted); }
.bnq-doc-section ul,
.bnq-doc-section ol { margin: 0 0 19px; padding-left: 23px; color: var(--bnq-muted); }
.bnq-doc-section li { margin-bottom: 9px; padding-left: 5px; }
.bnq-doc-section li::marker { color: var(--bnq-coral); font-weight: 900; }
.bnq-doc-section strong { color: var(--bnq-ink-dark); }
.bnq-doc-section > *:last-child { margin-bottom: 0; }

.bnq-doc-note {
  margin: 24px 0;
  padding: 21px 24px 21px 26px;
  background: rgba(85, 217, 208, .12);
  border: 1px solid rgba(45, 94, 112, .22);
  border-left: 5px solid var(--bnq-cyan);
  border-radius: 3px 18px 3px 18px;
}

.bnq-doc-note p { margin: 0; color: #264c5b; }

.bnq-doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.bnq-doc-card {
  padding: 21px;
  background: var(--bnq-night);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px 4px 18px 4px;
}

.bnq-doc-card__title {
  margin-bottom: 7px;
  color: var(--bnq-coral-soft);
  font-size: 14px;
  font-weight: 800;
}

.bnq-doc-card__text { color: rgba(244, 247, 255, .66); font-size: 14px; line-height: 1.6; }
.bnq-doc-table-scroll { overflow-x: auto; }

.bnq-doc-table {
  width: 100%;
  margin: 22px 0;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bnq-white);
  border: 1px solid var(--bnq-line);
  border-radius: 16px 4px 16px 4px;
  font-family: var(--bnq-ui);
}

.bnq-doc-table th {
  padding: 15px 17px;
  color: var(--bnq-white);
  background: var(--bnq-night);
  text-align: left;
  font-size: 13px;
}

.bnq-doc-table td {
  padding: 15px 17px;
  color: var(--bnq-muted);
  border-bottom: 1px solid var(--bnq-line);
  font-size: 14px;
}

.bnq-doc-table tr:last-child td { border-bottom: 0; }

.bnq-doc-steps { display: grid; gap: 14px; margin: 24px 0; }

.bnq-doc-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 17px;
  padding: 19px;
  background: rgba(17, 29, 63, .05);
  border: 1px solid rgba(17, 26, 53, .08);
  border-radius: 4px 18px 4px 18px;
}

.bnq-doc-step__num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--bnq-night);
  background: var(--bnq-coral);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
}

.bnq-doc-step__title { margin-bottom: 4px; color: var(--bnq-night); font-size: 15px; font-weight: 850; }
.bnq-doc-step__text { color: var(--bnq-muted); font-size: 14px; line-height: 1.6; }

.bnq-site-footer {
  padding: 46px 28px;
  color: rgba(244, 247, 255, .58);
  background: var(--bnq-night);
}

.bnq-site-footer__inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .45fr 1fr;
  gap: 14px 48px;
  align-items: start;
}

.bnq-site-footer__brand {
  grid-row: 1 / span 3;
  color: var(--bnq-white);
  text-decoration: none;
  font: 700 30px/1 var(--bnq-display);
}

.bnq-site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.bnq-site-footer__nav a { color: var(--bnq-coral-soft); text-decoration: none; font-size: 13px; }
.bnq-site-footer__nav a:hover { color: var(--bnq-white); }
.bnq-site-footer__copy { margin: 0; font-size: 12px; }
.bnq-site-footer__disclaimer { max-width: 780px; margin: 0; font-size: 12px; line-height: 1.7; }

@media (max-width: 900px) {
  .bnq-doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .bnq-doc-toc { position: static; }
  .bnq-doc-toc__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .bnq-site-footer__inner { grid-template-columns: 1fr; }
  .bnq-site-footer__brand { grid-row: auto; margin-bottom: 12px; }
}

@media (max-width: 580px) {
  .bnq-doc-header { padding: 15px 18px; }
  .bnq-doc-header__brand { font-size: 22px; }
  .bnq-doc-hero { padding: 52px 20px 46px; }
  .bnq-doc-hero::after { right: -75px; bottom: -95px; }
  .bnq-doc-hero__lead { font-size: 16px; }
  .bnq-doc-layout { width: min(100% - 28px, 1180px); padding: 32px 0 66px; }
  .bnq-doc-toc { padding: 21px; }
  .bnq-doc-toc__list { grid-template-columns: 1fr; }
  .bnq-doc-section { padding: 28px 22px; border-radius: 4px 22px 4px 22px; }
  .bnq-doc-step { grid-template-columns: 40px 1fr; padding: 16px; }
  .bnq-doc-step__num { width: 40px; height: 40px; }
  .bnq-doc-table { min-width: 570px; }
  .bnq-site-footer { padding: 38px 20px; }
  .bnq-site-footer__nav { flex-direction: column; gap: 12px; }
}
