/* Общие стили внутренних страниц Bank of Asia */
:root {
  --bg: #070707;
  --surface: #111012;
  --surface-2: #17151a;
  --line: rgba(214, 178, 98, .16);
  --line-strong: rgba(214, 178, 98, .38);
  --gold: #d4af5f;
  --gold-hi: #f6e3a3;
  --text: #f3eee3;
  --muted: #a49d8e;
  --grad: linear-gradient(120deg, #8b6a30 0%, #e3c47c 30%, #fbefc1 50%, #c49c4a 72%, #7d5c27 100%);
  --radius: 24px;
  --display: 'Tenor Sans', 'Gill Sans', 'Segoe UI', sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 600px at 85% -10%, rgba(212,175,95,.13), transparent 60%),
              radial-gradient(700px 500px at -10% 60%, rgba(212,175,95,.06), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gold-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 13px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 14px; border: 0; cursor: pointer; font: 600 16px/1 var(--body); white-space: nowrap; transition: transform .2s, box-shadow .2s, border-color .2s, color .2s; }
.btn-gold { background: var(--grad); color: #0b0905; box-shadow: 0 8px 30px -10px rgba(212,175,95,.55); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(212,175,95,.75); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 12px; }

/* шапка */
.header { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; border-radius: 20px; background: rgba(14,13,15,.75); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 41px; }
.brand span { font: 19px/1 var(--display); letter-spacing: .14em; white-space: nowrap; }
.header-actions { display: flex; gap: 10px; }

/* заголовок страницы */
.page-head { padding: 56px 0 40px; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 16px; }
.page-head .lead { color: var(--muted); font-size: 18px; max-width: 720px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.meta span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.meta b { color: var(--gold-hi); font-weight: 600; }

/* документ */
.doc-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; padding-bottom: 80px; }
.toc { position: sticky; top: 104px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.toc p { margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: t; display: grid; gap: 4px; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); line-height: 1.4; transition: background .2s, color .2s; }
.toc a::before { content: counter(t); color: var(--gold); min-width: 16px; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.doc { padding: 44px 48px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.doc section { scroll-margin-top: 110px; }
.doc section + section { margin-top: 38px; padding-top: 38px; border-top: 1px solid var(--line); }
.doc h2 { font-size: 26px; margin-bottom: 16px; }
.doc p, .doc li { color: #d6d0c3; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol.list { margin: 12px 0 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.doc ul li, .doc ol.list li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--grad); }
.doc ol.list { counter-reset: n; }
.doc ol.list li { counter-increment: n; padding-left: 34px; }
.doc ol.list li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; color: var(--gold); font-size: 13px; top: .15em; }
.doc a { color: var(--gold); border-bottom: 1px solid var(--line-strong); }
.doc a:hover { color: var(--gold-hi); }
.ph { color: var(--gold); border-bottom: 1px dashed var(--line-strong); }
.note { margin-bottom: 32px; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(212,175,95,.06); color: var(--gold-hi); font-size: 14.5px; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #d6d0c3; }
.table-scroll { overflow-x: auto; }

/* карточки (приложение, вход) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 40px; }
.card { position: relative; padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 110px; transition: border-color .3s; }
.card:target, .card:hover { border-color: var(--line-strong); }
.card:target { box-shadow: 0 0 0 4px rgba(212,175,95,.12); }
.card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--line-strong); background: rgba(212,175,95,.06); }
.card .ic svg { width: 26px; height: 26px; fill: var(--gold-hi); }
.card .ic svg.stroke { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h2, .card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--gold-hi); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.card ul { list-style: none; display: grid; gap: 8px; margin-top: 16px; font-size: 15px; color: #d6d0c3; }
.card ul li { padding-left: 20px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--grad); }
.card a { color: var(--gold); border-bottom: 1px solid var(--line-strong); }
.card a:hover { color: var(--gold-hi); }
.cards-2 { grid-template-columns: 1fr 1fr; }
.steps { counter-reset: s; }
.steps .card::after { counter-increment: s; content: "0" counter(s); position: absolute; top: 26px; right: 28px; font: 40px/1 var(--display); color: rgba(212,175,95,.18); }

.cta { margin: 24px 0 80px; padding: 48px; border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(600px 300px at 100% 0%, rgba(212,175,95,.14), transparent 60%), var(--surface); display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta p { color: var(--muted); max-width: 560px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* подвал */
footer { border-top: 1px solid var(--line); padding: 36px 0; }
.foot { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a:hover, .foot nav a[aria-current] { color: var(--gold-hi); }

@media (max-width: 1024px) {
  .doc-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header { padding: 10px 0; }
  .header .bar { padding: 8px 8px 8px 12px; gap: 10px; }
  .brand img { width: 44px; height: 35px; }
  .brand span { font-size: 15px; letter-spacing: .1em; }
  .header-actions .btn-ghost { display: none; }
  .page-head { padding: 36px 0 28px; }
  .doc { padding: 28px 20px; }
  .doc h2 { font-size: 22px; }
  .cards { grid-template-columns: 1fr; }
  .cta { padding: 32px 22px; }
  .cta .actions, .cta .btn { width: 100%; }
}
@media (max-width: 360px) { .header-actions { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }
