:root {
  color-scheme: dark;
  --background: #0b1117;
  --header: #0c141a;
  --panel: #101c23;
  --inner: #172b2c;
  --mint: #8bf0c6;
  --ink: #122923;
  --text: #f4f6f4;
  --soft: #d3e1dc;
  --muted: #a6b7be;
  --line: #2c3e45;
  --stroke: #34534d;
  --sans: 'Noto Sans', 'OpenAI Sans Cyrillic', system-ui, sans-serif;
  --mono: 'Noto Sans Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
body { background: var(--background); color: var(--text); margin: 0; font: 15px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
h1, h2, h3, p, figure, ol { margin: 0; }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.v-icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex: none; }
.page-width { width: min(100% - 80px, 1264px); margin-inline: auto; }
.site-header { background: var(--header); border-bottom: 1px solid var(--line); }
.header-inner { height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }

.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-self: start;
  font-size: 23px;
  font-weight: 750;
  line-height: 1;
}

.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--mint); color: var(--ink); border-radius: 8px; }
.brand-mark .v-icon { width: 26px; height: 26px; }

.header-links { display: flex; align-items: center; gap: 51px; font-size: 13px; font-weight: 700; color: var(--soft); }
.header-links a:hover, .hero-how:hover { color: var(--mint); }
.header-actions { display: flex; gap: 8px; align-items: center; justify-self: end; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 720;
  min-height: 38px;
  padding: 0 13px;
  color: var(--soft);
  background: transparent;
}

.button .v-icon { width: 17px; height: 17px; }
.button-primary { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.button-primary:not(:disabled):hover { background: #a8f7d6; }
.button-primary:disabled { opacity: .64; cursor: wait; }
.button-outline { border-color: var(--stroke); padding-inline: 17px; background: var(--background); }
.button-outline:hover { background: var(--inner); }
.button-ghost:hover { background: var(--panel); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1fr);
  gap: 30px;
  padding: 25px 0 41px;
  border-bottom: 1px solid var(--line);
}

.hero-copy { padding-top: clamp(30px, 5.25vw, 75px); padding-bottom: 24px; }
.market-pairs { color: var(--muted); display: flex; align-items: center; gap: 17px; font: 11px/1.25 var(--mono); white-space: nowrap; }
.market-pairs i, .sample-label i { flex: none; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.market-pairs i { margin-right: -10px; }

.hero h1 {
  font-size: clamp(36px, 3.65vw, 52px);
  line-height: 1.21;
  font-weight: 750;
  letter-spacing: -.026em;
  margin-top: 25px;
}

.hero h1 span, .account h2 span { color: var(--mint); }
.hero-intro { color: var(--soft); font-size: 17px; line-height: 1.59; max-width: 495px; margin-top: 35px; }
.hero-intro-phone, .account-phone { display: none; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 41px; }
.hero-actions .button { min-width: 235px; min-height: 52px; }
.hero-how { color: var(--soft); font-size: 14px; font-weight: 700; }
.hero-note { color: var(--muted); font-size: 12px; margin-top: 13px; }

.hero-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 508px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #10202b;
  scroll-margin-top: 24px;
}

.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.sample { position: absolute; bottom: 19px; left: 27px; width: 266px; min-height: 154px; padding: 10px 12px; background: #0f1b22; border: 1px solid var(--stroke); border-radius: 14px; }
.sample-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.sample-pair { display: block; margin-top: 4px; font-size: 28px; font-weight: 750; }
.sample-direction { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--soft); font-size: 14px; font-weight: 700; margin-top: 0; }
.sample-direction span:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--mint); }
.sample-direction .v-icon { width: 16px; height: 16px; }
.sample-time { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 31px; padding-top: 7px; font: 10px/1.4 var(--mono); color: var(--muted); }

.explain { border-bottom: 1px solid var(--line); padding: 26px 0 37px; scroll-margin-top: 18px; }
.explain h2 { font-weight: 750; font-size: 37px; line-height: 1.3; letter-spacing: -.014em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 0; margin-top: 25px; }
.step { position: relative; min-height: 188px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px 16px; }
.step-symbol { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--stroke); border-radius: 8px; background: var(--inner); color: var(--mint); }
.step-symbol .v-icon { width: 26px; height: 26px; }
.step-number { position: absolute; right: 15px; top: 15px; color: var(--muted); font: 11px/1.5 var(--mono); }
.step h3 { font-size: 21px; font-weight: 750; margin-top: 10px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.57; margin-top: 6px; }

.account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(45%, 520px));
  align-items: start;
  gap: 30px;
  padding: 22px 27px 23px 36px;
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #101e24;
}

.account-copy { padding-top: 36px; }
.account h2 { font-size: 43px; line-height: 1.23; font-weight: 750; letter-spacing: -.014em; }
.account h2 span { font-size: 32px; font-weight: 750; display: block; }
.account-copy p { max-width: 474px; color: var(--soft); font-size: 15px; line-height: 1.6; margin-top: 27px; }
.auth-panel { min-width: 0; padding: 19px 19px 9px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); scroll-margin-top: 18px; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--background); }
.auth-tab { background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 750; padding: 0 4px; }
.auth-tab:hover { color: var(--mint); }
.auth-tab.selected { color: var(--mint); background: var(--inner); border-color: var(--stroke); }
.auth-panel h3 { margin: 4px 0 15px; font-size: 21px; line-height: 1.36; font-weight: 750; }
.auth-panel h3:focus { outline: none; }
.field { display: block; margin-top: 7px; margin-bottom: 5px; color: var(--soft); font-size: 12px; font-weight: 700; }
.field-wrap { position: relative; }
.field-wrap input { display: block; width: 100%; height: 42px; color: var(--text); background: #0b151c; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; font-size: 13px; }
.field-wrap input::placeholder { color: var(--muted); opacity: 1; }
.field-wrap .password-input { padding-right: 39px; }

.password-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 39px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 6px; color: var(--muted); }
.password-toggle .v-icon { width: 16px; height: 16px; }
.password-toggle[aria-pressed="true"] { color: var(--mint); }

.auth-panel form .button, .auth-success .button { width: 100%; min-height: 43px; margin-top: 11px; }
.form-note { margin-top: 8px; font-size: 10px; color: var(--muted); }
.form-status { margin-top: 9px; color: #ffc1c2; font-size: 12px; }
.form-status:empty { display: none; }
.form-status.pending-status { color: #efdbaa; }

.auth-success { padding: 17px 0 6px; }
.auth-success h3 { margin-top: 12px; margin-bottom: 9px; }
.auth-success p { color: var(--soft); font-size: 13px; }
.session-ready { padding: 0 0 8px; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 10px; padding-bottom: 38px; color: var(--muted); font-size: 11px; }
.site-footer span { color: var(--soft); font-weight: 750; font-size: 13px; }

@media (max-width: 1120px) {
  .header-links { gap: 30px; }
  .hero { gap: 23px; }
  .hero-image { height: auto; min-height: 425px; }
  .hero-copy { padding-top: 40px; }
  .hero h1 { font-size: clamp(34px, 3.65vw, 52px); }
  .hero-intro { font-size: 15px; margin-top: 24px; }
  .hero-actions { gap: 10px 16px; margin-top: 25px; }
  .hero-actions .button { min-width: min(210px, 100%); }
  .account h2 { font-size: clamp(32px, 3.65vw, 43px); }
  .account h2 span { font-size: clamp(24px, 2.8vw, 32px); }
}

@media (max-width: 760px) {
  .page-width { width: calc(100% - 32px); }
  .header-inner { height: 61px; display: flex; justify-content: space-between; gap: 6px; }
  .header-links { display: none; }
  .brand { font-size: 20px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-mark .v-icon { width: 21px; height: 21px; }
  .header-actions { gap: 3px; }
  .header-actions .button { min-height: 34px; padding-inline: 10px; font-size: 12px; }
  .header-actions .button-outline { font-size: 11px; }
  .header-actions .v-icon { display: none; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 0; border-bottom: 0; }
  .hero-copy { padding: 0; }
  .market-pairs { font-size: 9px; gap: 12px; }
  .market-pairs i { margin-right: -5px; }
  .hero h1 { max-width: none; font-size: clamp(25px, 7.70vw, 40px); line-height: 1.21; margin-top: 16px; letter-spacing: -.014em; }
  .hero-intro { font-size: 13px; line-height: 1.61; max-width: 510px; margin-top: 17px; }
  .hero-intro-desktop { display: none; }
  .hero-intro-phone { display: block; }
  .hero-actions { margin-top: 11px; }
  .hero-actions .button { width: 100%; min-height: 45px; }
  .hero-how { display: none; }
  .hero-note { text-align: center; font-size: 11px; margin-top: 9px; }
  .hero-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 358 / 274; }
  .hero-image img { position: absolute; inset: 0; }
  .sample { bottom: 12px; left: 12px; width: min(204px, calc(100% - 24px)); min-height: 121px; padding: 9px 12px; }
  .sample-label { font-size: 9px; }
  .sample-pair { font-size: 22px; margin-top: 5px; }
  .sample-direction { font-size: 12px; }
  .sample-time { font-size: 9px; margin-top: 7px; }

  .explain { padding-top: 44px; padding-bottom: 26px; }
  .explain h2 { font-size: 27px; line-height: 1.25; }
  .steps { margin-top: 17px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step { min-height: 116px; padding: 13px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-content: start; column-gap: 9px; }
  .step-symbol { width: 34px; height: 34px; }
  .step-symbol .v-icon { width: 20px; height: 20px; }
  .step h3 { margin: 0; align-self: center; font-size: 15px; padding-right: 25px; }
  .step p { grid-column: 1 / span 2; margin-top: 10px; font-size: 12px; line-height: 1.5; }

  .account { display: block; margin-top: 22px; padding: 0; border: none; background: transparent; }
  .account-copy { padding-top: 0; }
  .account h2 { font-size: 28px; }
  .account h2 span { font-size: 23px; }
  .account-copy p { font-size: 13px; line-height: 1.62; margin-top: 13px; }
  .account-desktop { display: none; }
  .account-phone { display: block; }
  .auth-panel { margin-top: 26px; padding: 13px 13px 9px; }
  .auth-panel h3 { margin-top: 9px; margin-bottom: 15px; }
  .site-footer { display: block; margin-top: 18px; padding-bottom: 36px; }
  .site-footer span { display: none; }
}
