.portal-site {
  --market-line: #204cae;
  --market-area: rgba(50, 102, 212, .19);
  --market-grid: #dce3f0;
  --market-label: #51627e;
  --market-crosshair: #8299c9;
}

.portal-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(1.8rem, 5.5vw, 5rem);
  padding-block: clamp(2.7rem, 7vw, 6.6rem) clamp(2.4rem, 6.5vw, 5.4rem);
}

.portal-hero h1,
[lang="ru"] .portal-hero h1 {
  font-family: inherit;
  font-size: clamp(3.2rem, 6.4vw, 6.2rem);
  font-weight: 770;
  line-height: 1.02;
  letter-spacing: -.07em;
}

.portal-hero h1 span {
  display: inline-block;
  margin-top: .08em;
  color: #244fac;
  font-size: .77em;
  line-height: 1.1;
  letter-spacing: -.067em;
}

.portal-hero-copy > p { max-width: 28rem; }
.portal-hero-copy .portal-actions { margin-top: 1.65rem; }
.portal-hero-copy .button { padding-inline: 1rem; }
.hero-buy { display: inline-flex; align-items: center; padding: .5rem .15rem; min-height: 2.9rem; font-size: .91rem; font-weight: 680; }

.hero-network {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: clamp(19.5rem, 31vw, 25rem);
  padding: clamp(1.35rem, 3.5vw, 2.7rem);
  overflow: hidden;
  border: 1px solid #2a4270;
  border-radius: 1.35rem;
  color: #f8fbff;
  background: radial-gradient(ellipse at 100% 95%, #2d4d88 0, transparent 60%), #112347;
  box-shadow: 0 1.2rem 2.6rem #172c541a;
}

.hero-network::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(#a7bfff18 1px, transparent 1px), linear-gradient(90deg, #a7bfff18 1px, transparent 1px);
  background-size: 2.25rem 2.25rem;
  mask-image: linear-gradient(105deg, transparent 15%, #000 100%);
}

.hero-network-content { position: relative; min-width: 0; }
.hero-network h2 { font-size: clamp(1.12rem, 2.2vw, 1.55rem); font-weight: 690; letter-spacing: -.027em; }
.hero-network-steps { position: relative; display: grid; gap: .9rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.hero-network-steps::before { content: ""; position: absolute; top: 1.4rem; bottom: 1.4rem; left: 1.05rem; border-left: 1px dashed #80a0d7; z-index: -1; }
.hero-network-steps li { display: flex; align-items: center; gap: .68rem; min-height: 2.45rem; }
.hero-network-steps strong, .hero-network-steps small { display: block; }
.hero-network-steps strong { font-size: .98rem; }
.hero-network-steps small { color: #c7d6f2; font-size: .85rem; }
.hero-network-icon, .tool-glyph { display: grid; place-items: center; flex: none; width: 2.15rem; height: 2.15rem; border: 1px solid #5475ac; background: #233e6d; color: #ffd183; border-radius: .56rem; font-weight: 750; }
.hero-network-icon::before, .tool-glyph::before { line-height: 1; }
.hero-network-icon[data-node="wallet"]::before { content: "₿"; }
.hero-network-icon[data-node="peers"]::before { content: "∴"; }
.hero-network-icon[data-node="blocks"]::before { content: "▤"; }
.hero-demo { display: inline-flex; align-items: center; min-height: 2.75rem; color: #ffe0a3; font-size: .91rem; font-weight: 680; }
.hero-demo:hover { color: #fff2d2; }

.hero-coin {
  position: absolute;
  z-index: -1;
  display: grid;
  place-items: center;
  right: -9%;
  bottom: -22%;
  width: clamp(10rem, 22vw, 17rem);
  aspect-ratio: 1;
  transform: rotate(-16deg);
  border-radius: 50%;
  border: .6rem double #749ada6e;
  background: radial-gradient(circle at 42% 33%, #4773bb, #20396a 70%);
  color: #a6c6ff58;
  font-size: clamp(6.3rem, 13.3vw, 10.8rem);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 .6rem #779cd51f, 0 0 0 1.25rem #779cd513, inset 0 1rem 2rem #a1c3ff21;
}

.tool-strip { border-block: 1px solid var(--rule); background: #edf3ff; padding-block: clamp(1.4rem, 3.7vw, 2.55rem); }
.tool-strip-title { font-size: 1.25rem; letter-spacing: -.02em; }
.tool-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; margin-top: .75rem; }
.tool-links > a { min-width: 0; display: flex; align-items: center; gap: .55rem; min-height: 4.75rem; padding: .65rem; border: 1px solid #dbe5fa; border-radius: .65rem; background: #fff; color: var(--ink); text-decoration: none; }
.tool-links > a:hover { border-color: #839ed9; }
.tool-links strong, .tool-links small { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.tool-links strong { font-size: .92rem; }
.tool-links small { color: var(--muted); font-size: .84rem; margin-top: .23rem; }
.tool-glyph { background: #ecf2ff; border-color: #dce6fa; color: #1b4bb5; }
.tool-glyph[data-tool="price"]::before { content: "$"; }
.tool-glyph[data-tool="fees"]::before { content: "≋"; }
.tool-glyph[data-tool="lookup"]::before { content: "⌕"; font-size: 1.3rem; }
.tool-glyph[data-tool="transaction"]::before { content: "#"; }

.portal-learning { padding-block: clamp(2.5rem, 6vw, 5rem); }
.portal-section-head h2, .portal-reports h2 { font-family: inherit; font-weight: 735; letter-spacing: -.055em; }
.portal-section-head > a { color: var(--accent); min-height: 2.75rem; display: inline-flex; align-items: center; }
.portal-guide:hover { border-color: #839ed9; }
.guide-symbol { background: #fff0d4; color: #865017; }
.guide-symbol-2 { background: #e9f1ff; color: #2755a7; }
.guide-symbol-3 { background: #e9edf9; color: #4a4a9b; }
.portal-report-band { background: #f0f4ff; border-top: 1px solid var(--rule); }
.portal-reports { gap: .3rem 1.8rem; }

.price-main { padding-block: clamp(2rem, 5vw, 4.75rem); }
.price-intro { margin-bottom: 1.4rem; }
.price-intro h1 { max-width: 48rem; font-size: clamp(2.1rem, 5.3vw, 4.5rem); letter-spacing: -.06em; line-height: 1.06; }
.price-intro p { margin-top: .8rem; color: var(--muted); max-width: 45rem; }
.price-method { margin-top: clamp(1.8rem, 4.5vw, 3.75rem); }
.price-method h2 { font-size: clamp(1.45rem, 3.3vw, 2.25rem); letter-spacing: -.04em; }
.price-method-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: .8rem 0; }
.price-method-grid > div { padding: 1rem; border: 1px solid var(--rule); border-radius: .65rem; background: var(--surface); }
.price-method-grid h3 { font-size: 1rem; }
.price-method-grid p { margin-top: .4rem; color: var(--muted); font-size: .92rem; }
.market-periods { background: #f1f5fe; }
.market-periods button[aria-pressed="true"] { border-color: #b7c8eb; background: #e0ebff; color: #183b87; }
.market-status { background: #eef3ff; }
.market-field input, .address-form input { background: #fff; border-color: #bac8df; }

@media(max-width: 910px) {
  .tool-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media(max-width: 740px) {
  .portal-hero { grid-template-columns: 1fr; gap: 1.45rem; }
  .portal-hero h1, [lang="ru"] .portal-hero h1 { font-size: clamp(3.05rem, 10.6vw, 5.35rem); }
  .hero-network { min-height: 18.5rem; }
  .hero-coin { bottom: -23%; right: -4%; }
}

@media(max-width: 620px) {
  .price-method-grid { grid-template-columns: 1fr; }
  .portal-hero-copy .portal-actions { gap: .4rem; }
}

@media(max-width: 430px) {
  .tool-links { gap: .42rem; }
  .tool-links > a { align-items: start; flex-direction: column; min-height: 6.2rem; padding: .6rem; }
  .tool-glyph { width: 1.8rem; height: 1.8rem; }
  .portal-hero .hero-buy { flex-basis: 100%; }
}

.reference-main > .price-method { margin-top: 2rem; }
.reference-note { margin-top: 1.45rem; max-width: 48rem; color: var(--muted); }
