@font-face {
  font-family: Onest;
  src: url("fonts/onest-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url("fonts/onest-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #1b2533;
  --muted: #53606a;
  --orange: #fb633c;
  --rule: #d7dad8;
  --soft: #f5f5f2;
  --dark: #202324;
  font-family: Onest, Arial, sans-serif;
  color: var(--ink);
  background: white;
  scroll-padding-top: 5.5rem;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #9c351e;
  outline-offset: 3px;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.skip { position: absolute; z-index: 20; left: 1rem; top: -5rem; background: white; padding: 1rem; }
.skip:focus { top: .5rem; }
.wrap { width: min(81rem, calc(100% - clamp(2.5rem, 9vw, 9rem))); margin-inline: auto; }
.topbar, footer, .metrics { background: var(--dark); color: #fff; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 2rem; color: #e0e1dc; font-size: .8125rem; }
.topbar a, .main-nav a, footer a, .brand, .account a, .button, .market-card { text-decoration: none; }
.topbar a:hover, footer nav a:hover, .logout:hover { text-decoration: underline; }
.masthead { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--rule); background: white; }
.masthead-inner { min-height: 4.65rem; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; font-size: 1.7rem; font-weight: 700; letter-spacing: -.075em; line-height: 1; }
.brand img { margin-right: .55rem; }
.brand span { color: #525960; }
.main-nav, .account { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.1rem); }
.main-nav { margin: 0 auto; font-size: .9375rem; }
.main-nav a { padding-block: .6rem; }
.main-nav a:hover, .main-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.account { gap: .9rem; font-size: .9rem; }
.login { padding: .62rem 1.25rem; border: 1px solid var(--ink); border-radius: 4px; font-weight: 700; }
.login:hover, .secondary:hover { background: var(--ink); color: white; }
.hero { display: grid; grid-template-columns: 1fr 1.03fr; align-items: center; padding-block: clamp(2.8rem, 4.7vw, 5rem); gap: 1rem; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .7rem; font-size: .8125rem; letter-spacing: .12em; line-height: 1.45; text-transform: uppercase; font-weight: 700; color: #4a5359; }
.eyebrow i { width: 1.8rem; height: 3px; background: var(--orange); }
h1, h2, h3 { font-weight: 700; }
h1 { margin-top: 1.3rem; font-size: clamp(3.2rem, 5.5vw, 5.65rem); line-height: .99; letter-spacing: -.048em; }
h2 { font-size: clamp(2.05rem, 3.45vw, 3.35rem); line-height: 1.07; letter-spacing: -.052em; }
h3 { font-size: 1.38rem; line-height: 1.2; letter-spacing: -.035em; }
.accent { color: var(--orange); }
.intro { margin-top: 1.5rem; max-width: 33rem; font-size: clamp(1.05rem, 1.35vw, 1.23rem); line-height: 1.52; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .75rem 1.25rem; font-size: .96rem; font-weight: 700; border: 1px solid transparent; border-radius: 4px; }
.primary { background: var(--orange); color: #191b1d; }
.primary:hover { background: #ff805e; }
.secondary { border-color: #b7bfbe; }
.metrics-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 1.55rem; }
.metrics-inner > div { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 1.85rem); }
.metrics-inner > div + div { border-left: 1px solid #535555; padding-left: clamp(1rem, 4vw, 4rem); }
.metrics-inner strong { font-size: clamp(2.1rem, 3.5vw, 3.25rem); font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.metrics-inner strong span { color: var(--orange); }
.metrics-inner div > span { font-size: .93rem; line-height: 1.4; color: #eeefec; }
.section { padding-block: clamp(3.2rem, 6vw, 6rem); }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.7rem; }
.market-card { position: relative; background: var(--soft); border: 1px solid #e6e7e2; border-radius: 4px; padding: clamp(1.35rem, 2.5vw, 2.4rem); padding-right: clamp(5rem, 9vw, 8rem); }
.market-card:hover { border-color: #9da6a4; }
.market-card h3 { font-size: clamp(1.7rem, 2.4vw, 2.4rem); }
.market-card p, .steps p, .faq p, footer p, .section-note, .sample > p:last-child { color: var(--muted); line-height: 1.6; margin-top: .6rem; }
.market-mark { position: absolute; right: 1.5rem; top: 1.55rem; display: grid; place-items: center; transform: rotate(-6deg); width: 3.5rem; height: 3.5rem; border-radius: .75rem; font-weight: 700; letter-spacing: -.08em; }
.market-mark.wb { background: #7a148b; color: white; font-size: 1.8rem; }
.market-mark.oz { background: #054bcb; color: white; font-size: 1.18rem; font-style: italic; }
.text-link { display: inline-block; font-weight: 700; padding-bottom: .14rem; text-decoration: none; border-bottom: 2px solid var(--orange); }
.market-card .text-link, .split > div > .text-link { margin-top: 1.45rem; }
.soft, .guide-head { background: var(--soft); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.split .eyebrow + h2 { margin-top: 1.1rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; border-top: 1px solid var(--rule); padding-block: 1.4rem; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: .96rem; font-weight: 700; color: #a63a22; margin-top: .15rem; }
.steps li:last-child { padding-bottom: 0; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .8rem; list-style: none; padding-block: 1.25rem; font-weight: 700; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: -.35rem 1.1rem 1.3rem 0; }
.footer-main { padding-block: 3.5rem; display: grid; grid-template-columns: 1.3fr 1.2fr .8fr 1fr; gap: 1.5rem; }
.footer-main .brand span { color: #d2d6d5; }
footer p, footer nav a { color: #cbd0d0; font-size: .9rem; }
footer nav a { display: block; width: fit-content; margin-top: .75rem; }
footer b { font-size: .95rem; }
.crumbs { padding-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; font-size: .875rem; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.guide-hero { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: 3rem 4rem; }
.guide-hero h1 { font-size: clamp(2.4rem, 4.15vw, 4.35rem); line-height: 1.05; overflow-wrap: anywhere; }
.sample { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--orange); padding: clamp(1.4rem, 2.6vw, 2.4rem); }
.sample h2 { font-size: 1.7rem; margin: .9rem 0 1.4rem; }
.sample dl > div { display: flex; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--rule); padding-block: .7rem; }
.sample dt { color: var(--muted); }
.sample dd { font-weight: 700; text-align: right; }
.sample > p:last-child { font-size: .94rem; }
dialog { width: min(26rem, calc(100% - 2rem)); max-height: 90dvh; border: 1px solid var(--rule); border-radius: 6px; padding: 2rem; color: var(--ink); box-shadow: 0 16px 70px #10223124; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: #11182085; }
dialog h2 { font-size: 1.75rem; margin: .7rem 0; }
dialog p { color: var(--muted); line-height: 1.6; }
dialog .close { position: absolute; right: .6rem; top: .35rem; padding: .35rem .7rem; border: 0; background: transparent; font-size: 1.6rem; color: var(--ink); }
#telegram-login { margin-block: 1.2rem; }
@media (max-width: 960px) {
  .masthead-inner { gap: 1rem; }
  .main-nav { gap: 1.15rem; }
  .metrics-inner > div { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .footer-main { grid-template-columns: 1.1fr 1fr; row-gap: 2rem; }
}
@media (max-width: 760px) {
  :root { scroll-padding-top: 7rem; }
  .topbar .wrap { min-height: 1.65rem; font-size: .75rem; }
  .masthead-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; padding-top: .65rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: space-between; font-size: .875rem; gap: .6rem; }
  .main-nav a { padding-block: .75rem; }
  .account { grid-column: 2; grid-row: 1; }
  .brand { font-size: 1.5rem; }
  .brand img { width: 29px; height: 29px; }
  .login { padding: .43rem .95rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.6rem 1.5rem; gap: 1rem; }
  h1 { font-size: clamp(2.95rem, 9vw, 4.4rem); }
  .hero-art { width: min(100%, 30rem); margin-inline: auto; }
  .metrics-inner { padding-block: 1.2rem; gap: .5rem; }
  .metrics-inner > div + div { padding-left: .75rem; }
  .metrics-inner strong { font-size: 2.05rem; }
  .metrics-inner div > span { font-size: .875rem; }
  .market-grid, .guide-hero, .split { grid-template-columns: minmax(0, 1fr); }
  .guide-hero { gap: 1.8rem; padding-block: 2rem; }
  .guide-hero h1 { font-size: clamp(1.95rem, 7.3vw, 3.2rem); }
  .guide-hero .intro { margin-top: 1rem; }
  .footer-main { padding-block: 2.5rem; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 2rem); }
  .topbar .wrap { gap: 1rem; }
  .topbar a { text-align: right; }
  .market-card { padding-right: 1.3rem; }
  .market-card h3 { padding-right: 3.5rem; line-height: 2.2rem; }
  .market-mark { width: 2.6rem; height: 2.6rem; right: 1.3rem; top: 1.1rem; }
  .metrics-inner { column-gap: .3rem; }
  .metrics-inner > div + div { padding-left: .42rem; }
  .footer-main { grid-template-columns: 1fr; }
  .button { padding-inline: .92rem; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .guide-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; }
  .guide-hero h1 { font-size: clamp(2.15rem, 3.8vw, 2.9rem); }
}
