/* Self-hosted so the page owes nothing to jsdelivr or unpkg: a CDN outage
   used to mean no icons and no pinned scroll. Variable weight axis, subset
   per script, swap so text paints immediately. */
@font-face {
  font-family: "Inter Tight Variable"; font-style: normal;
  font-weight: 100 900; font-display: swap;
  src: url("vendor/fonts/inter-tight-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Inter Tight Variable"; font-style: normal;
  font-weight: 100 900; font-display: swap;
  src: url("vendor/fonts/inter-tight-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter Tight Variable"; font-style: normal;
  font-weight: 100 900; font-display: swap;
  src: url("vendor/fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter Tight Variable"; font-style: normal;
  font-weight: 100 900; font-display: swap;
  src: url("vendor/fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Sprite icons. Sized in em so every existing font-size rule keeps working,
   and inheriting colour so the accent rules still apply. */
.i {
  width: 1em; height: 1em; flex: none;
  display: inline-block; vertical-align: -0.125em;
  fill: currentColor; pointer-events: none;
}

/* =============================================================
   MONTANA EXCHANGE - landing prototype
   Native CSS. No build step, matches the nginx-served static site.

   RADIUS RULE (one documented system, applied everywhere):
     --r-pill  interactive controls: buttons, chips, segmented, pills
     --r-card  surfaces: cells, panels, media
     --r-field form inputs
   ACCENT RULE: exactly one accent hue (lavender). --pos / --neg are
     data-encoding colours for rate movement, never brand accents.
   ============================================================= */

/* ---------- tokens: dark is the brand default ---------- */
:root {
  --bg:          #08070A;
  --bg-1:        #100E15;
  --bg-2:        #1C1C1E;
  --bg-3:        #2C2C2E;
  --field:       #141416;
  --chip:        #2C2C2E;
  --line:        #26262A;
  --line-soft:   #1B1724;

  --ink:         #F4F1F8;
  --ink-2:       #A9A2B8;
  --ink-3:       #8A839C;

  --accent:      #C9A6F2;
  --accent-lift: #E3CEFB;
  --accent-strong:#A87DE0;
  --accent-ink:  #0B0910;
  --accent-wash: rgba(201,166,242,.14);

  --pos:         #7BE495;
  --neg:         #FF8B8B;

  --r-pill: 999px;
  --r-card: 20px;
  --r-field: 12px;

  --scrim: 8, 7, 10;   /* fixed dark ink for photo scrims, never theme-flipped */
  --shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  --hdr-h: 99px;   /* .hdr__in 96 + progress 2 + border 1; synced from JS */
  --wrap: 1360px;
  --gut: clamp(20px, 5vw, 72px);

  --ff: "Inter Tight Variable", "Inter Tight", system-ui, sans-serif;
  --fm: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:          #F6F4FA;
  --bg-1:        #FCFBFE;
  --bg-2:        #EFEBF7;
  --line:        #E0D9EE;
  --line-soft:   #EAE4F5;

  --ink:         #14111B;
  --ink-2:       #565064;
  --ink-3:       #6E687D;

  --accent:      #6F42B6;
  --accent-lift: #8B60D0;
  --accent-strong:#54308C;
  --accent-ink:  #FCFBFE;
  --accent-wash: rgba(111,66,182,.10);

  --pos:         #1C7A45;
  --neg:         #B03636;

  --shadow: 0 24px 60px -24px rgba(43,26,74,.22);
  color-scheme: light;
}

/* Theme switching removed by request: the page is dark, locked via
   data-theme="dark" on <html>. The light token block below stays in the
   file so the palette is recoverable, but nothing ever selects it. */

/* ---------- base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Brand scrollbar. Firefox gets the standard properties; Chrome and Safari
   get the pseudo-elements, which give a floating pill instead of a slab. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 46%, transparent) transparent; }
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent; background-clip: content-box;
  border-radius: var(--r-pill);
  background-color: color-mix(in srgb, var(--accent) 34%, transparent);
}
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--accent) 62%, transparent); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }   /* component display rules must not defeat the attribute */
a { color: inherit; text-decoration: none; }
h1,h2,h3,p,figure,blockquote,ul,ol { margin: 0; }
ul,ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* Anchor targets sit under a sticky header, so jumping to one would park it
   flush against (and partly behind) the bar. Reserve the header height plus a
   little air; --hdr-h is measured from the real header at runtime. */
:root { --anchor-gap: clamp(14px, 2.4vh, 32px); }
main section[id] { scroll-margin-top: calc(var(--hdr-h) + var(--anchor-gap)); }  /* no-JS fallback */

/* fixed grain, never on a scrolling container */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .grain { opacity: .3; mix-blend-mode: multiply; }

/* ---------- type scale ---------- */
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
}
.body {
  color: var(--ink-2);
  font-size: clamp(.98rem, 1.15vw, 1.08rem);
  max-width: 58ch;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--accent);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--accent-wash);
}
.livedot {
  width: 6px; height: 6px; border-radius: var(--r-pill);
  background: var(--pos); flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .livedot { animation: pulse 2.6s var(--ease) infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  white-space: nowrap;
  padding: 15px 26px;
  border: 0; border-radius: var(--r-pill);
  font-size: .96rem; font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-lift); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { background: var(--bg-2); }
.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn--hdr { padding: 12px 22px; font-size: 14px; gap: 8px; }
.btn--lg { padding: 19px 36px; font-size: 1.06rem; }
.btn--wide { width: 100%; }
.btn:active { transform: translateY(1px) scale(.99); }

.lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border: 0; border-radius: var(--r-pill);
  background: var(--bg-2); cursor: default;
}
.lang__code { font-size: 12px; font-weight: 600; color: var(--ink); }
.lang .i { font-size: 13px; color: var(--ink-3); line-height: 1; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
@media (prefers-reduced-transparency: reduce) {
  .hdr { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.hdr__in {
  position: relative;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  height: 96px; display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 3vw, 40px);
}
.hdr__progress {
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
}
/* Brand lockup. Vector.svg is the complete logotype (mark + wordmark) as
   outlines, and its ink fills the viewBox on all four edges, so the element
   box IS the logo. That removes every alignment hack this used to need:
   no baseline maths, no overhang nudge, no optical-centring offset. Height
   .7374em keeps the exact optical size of the previous type-based lockup
   (19.91px at 27px), so nothing else in the header shifts. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 27px;
  color: var(--ink);   /* drives the "exchange" half; "Montana" uses --accent */
}
.brand__logo {
  display: block;
  height: .959em;
  aspect-ratio: 2448 / 274;
  flex: none;
}
.brand__logo svg { display: block; width: 100%; height: 100%; }
.brand--sm { font-size: 23px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Centred on the header itself. margin:auto only centres it in the gap
   between logo and CTA, and those two are different widths, so the pill
   landed left of the real centre. */
.nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 26px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
}
.nav a {
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  transition: color .18s var(--ease);
}
.nav a:hover, .nav a.is-here { color: var(--ink); }
.hdr__end { display: flex; align-items: center; gap: 16px; flex: none; }

@media (max-width: 1300px) { .nav { gap: 16px; padding: 11px 16px; } }
@media (max-width: 1139px) { .nav { display: none; } }
.lbl-short { display: none; }
/* The lockup gained "exchange" and is now ~2x wider, so below 620px the
   header no longer fits a full-width CTA next to it: the document was
   overflowing its own viewport. Shorten the label and step the brand down. */
@media (max-width: 620px) {
  :root { --hdr-h: 79px; }
  .hdr__in { height: 76px; }
  .lang { display: none; }
  .btn--hdr { padding: 11px 15px; font-size: 13px; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .brand { font-size: 20px; }
}
@media (max-width: 380px) { .brand { font-size: 17px; } }

/* =============================================================
   1. HERO  (Pencil node Q0Js1P)
   Left editorial column, gradient rate card right. Sizes are the
   node's, converted to clamp() so they hold down to 390px.
   ============================================================= */
/* Ambient light for the whole top of the page. It used to live inside
   .hero with overflow:clip, which sliced it off in a hard horizontal line
   at the hero's bottom edge. Now it spans hero + ticker + wall and is
   masked to fade to nothing before the next section starts, so there is no
   boundary to see. Sits behind the content via an isolated stacking context. */
/* Hero, direction ticker and the "Принимаем" row are one screen: the group
   fills exactly the viewport minus the header, and the hero takes whatever
   is left after the two strips, centring its content in it. */
.top {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--hdr-h));
  min-height: calc(100dvh - var(--hdr-h));
}

/* Two stacked backdrops that crossfade on scroll: the lavender ambience
   dissolves while the next section's dark tone rises in its place, so the
   top of the page hands over to .lock without a visible seam. Real elements
   rather than a pseudo, so GSAP can drive them directly. */
.ambient, .ambient-dark {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.ambient {
  background:
    radial-gradient(52% 42% at 74% 22%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 70%),
    radial-gradient(44% 38% at 12% 58%, color-mix(in srgb, var(--accent-strong) 13%, transparent) 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 96%);
}
.ambient-dark { background: var(--bg-1); opacity: 0; }

/* Scroll affordance. A full-height hero hides the fact that anything
   follows, so this is a real link to the next section rather than decoration. */
.hint {
  position: absolute; left: 50%; bottom: clamp(14px,2.4vh,26px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-3);
  transition: color .25s var(--ease);
}
.hint:hover { color: var(--ink); }
.hint__label { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hint__rail {
  position: relative; display: block;
  width: 1px; height: 40px; border-radius: 1px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 55%, transparent), transparent);
  overflow: hidden;
}
.hint__dot {
  position: absolute; left: 50%; top: 0;
  width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px;
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .hint__dot { animation: hintfall 1.9s cubic-bezier(.6,0,.4,1) infinite; }
  @keyframes hintfall {
    0%   { transform: translateY(-10px); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: translateY(40px); opacity: 0; }
  }
}
@media (max-width: 1040px) { .hint { display: none; } }

.hero {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  display: grid;
  align-content: center;
  padding: clamp(14px,3vh,48px) 0;
}
.hero__grid {
  position: relative; display: grid;
  grid-template-columns: minmax(0,1fr) 440px;
  gap: clamp(32px,5vw,80px); align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px,2.5vh,30px); }
.hero__h1 {
  display: grid;
  font-size: clamp(2.6rem, 5.7vw, 5.125rem);
  font-weight: 600; letter-spacing: -.0415em; line-height: 1.04;
}
.hero__h1 .ln--accent { color: var(--accent); padding-bottom: .04em; }
.hero__sub { color: var(--ink-2); font-size: clamp(1rem,1.2vw,1.0625rem); line-height: 1.6; max-width: 32em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: clamp(0px,.6vh,6px); }

.trust { display: flex; flex-wrap: wrap; gap: 24px; padding-top: clamp(2px,1vh,10px); }
.trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.trust .i { font-size: 15px; color: var(--accent); }

.hero__right { display: flex; flex-direction: column; gap: 14px; }

/* signature gradient card, shared with the mini app */
.ratecard {
  display: flex; flex-direction: column; gap: 22px;
  padding: 26px; border-radius: 32px;
  background:
    radial-gradient(110% 110% at 18% 12%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%),
    linear-gradient(150deg, #EADBFB 0%, #C9A6F2 45%, #A87DE0 100%);
  box-shadow: 0 24px 60px -10px rgba(201,166,242,.27);
}
.ratecard__top { display: flex; align-items: center; justify-content: space-between; }
.pairchip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.42);
  font-size: 12px; font-weight: 600; color: #0A0A0A;
}
.pairchip__dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: #0A0A0A; }
.chg {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: #0A0A0A; font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chg[data-up="1"] { color: #7BE495; }
.chg[data-up="0"] { color: #FF8B8B; }
.ratecard__value { display: flex; flex-direction: column; gap: 3px; }
.ratecard__num {
  font-family: var(--ff); font-weight: 600;
  font-size: clamp(2.6rem,4.7vw,4.25rem); line-height: 1;
  letter-spacing: -.041em; color: #0A0A0A; font-variant-numeric: tabular-nums;
}
.ratecard__cap { font-size: 13px; font-weight: 500; color: rgba(0,0,0,.5); }
.ratecard__bottom { display: flex; gap: 28px; }
.ratecard__bottom > div { display: flex; flex-direction: column; gap: 3px; }
.ratecard__bottom .k { font-size: 9px; font-weight: 600; letter-spacing: .8px; color: rgba(0,0,0,.56); }
.ratecard__bottom .v { font-size: 15px; font-weight: 600; color: #0A0A0A; font-variant-numeric: tabular-nums; }

.lockcard {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 22px; background: var(--bg-2);
}
.lockcard__ico {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); font-size: 17px;
}
.lockcard__txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lockcard__txt b { font-size: 13px; font-weight: 600; }
.lockcard__txt small { font-size: 11px; color: var(--ink-3); }
.lockcard__timer {
  font-family: var(--ff); font-size: 19px; font-weight: 600;
  letter-spacing: -.5px; color: var(--accent); font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease);
}
/* last minute of the window, then the moment it rolls into a fresh quote */
.lockcard.is-soon .lockcard__timer { color: var(--neg); }
.lockcard.is-renewed .lockcard__timer { color: var(--pos); }
@media (prefers-reduced-motion: no-preference) {
  .lockcard.is-soon .lockcard__ico { animation: pulse 1.6s var(--ease) infinite; }
}

@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: minmax(0,1fr); align-items: start; }
  .hero__right { max-width: 480px; }
}

/* =============================================================
   1b. DIRECTION TICKER  (Pencil node M7zaqb)
   ============================================================= */
.ticker { padding: 0 0 clamp(10px,1.8vh,28px); }
.ticker__in { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dir {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: var(--r-pill);
  background: var(--bg-2); font-size: 13px; font-weight: 600;
}
.dir b { font-weight: 600; color: var(--ink); }
.dir span { color: var(--ink-3); }
.dir .i { font-size: 13px; color: var(--accent); }
.ticker__more { font-size: 13px; font-weight: 500; color: var(--ink-3); }

/* =============================================================
   2. NETWORK WALL
   ============================================================= */
.wall { border-top: 1px solid var(--line-soft); padding: clamp(10px,1.6vh,22px) 0; }
.wall__in { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.wall__lead { font-size: .8rem; color: var(--ink-3); flex: none; }
.wall__list { display: flex; align-items: center; gap: clamp(24px, 4.5vw, 62px); flex-wrap: wrap; }
/* Flatten every brand mark to one theme tone so a wall of mixed
   logos reads as a single row instead of six competing colours. */
.wall__list img {
  height: 22px; width: auto;
  opacity: .45;
  filter: brightness(0) invert(1);
  transition: opacity .25s var(--ease);
}
:root[data-theme="light"] .wall__list img { filter: brightness(0); opacity: .5; }
.wall__list li:hover img { opacity: 1; }

/* =============================================================
   3. RATE LOCK (pinned sequence)
   ============================================================= */
.lock {
  background: linear-gradient(
    to bottom,
    var(--bg-1) 0%,
    var(--bg-1) 52%,
    var(--bg) 100%);
}
.lock__stage {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  /* + header height on top: the stage is pinned under a sticky header, so
     centring in the full 100dvh puts the content low on the visible area. */
  padding: calc(clamp(48px, 8vh, 90px) + var(--hdr-h)) 0 clamp(48px, 8vh, 90px);
}
.lock__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
}
.lock__side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lock__side--market { text-align: right; align-items: flex-end; }
.lock__lbl { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lock__num {
  font-family: var(--fm); font-weight: 600;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.lock__num--drift { color: var(--ink-2); }
.lock__cur { font-size: .86rem; color: var(--ink-3); }
.lock__tag {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--accent-wash); color: var(--accent);
  font-size: .82rem; font-weight: 600;
}
.lock__tag--muted { background: var(--bg-2); color: var(--ink-3); }

.lock__dial { position: relative; display: grid; place-items: center; width: clamp(140px, 20vw, 240px); }
.lock__ring { width: 100%; height: auto; transform: rotate(-90deg); }
.lock__ring-bg, .lock__ring-fg { fill: none; stroke-width: 3; }
.lock__ring-bg { stroke: var(--line); }
.lock__ring-fg {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 666; stroke-dashoffset: 0;
}
.lock__clock {
  position: absolute;
  font-family: var(--fm); font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-variant-numeric: tabular-nums; color: var(--ink-2);
}
/* Out of flow: it is invisible until the end of the sequence, and while it
   sat in the column it reserved space that pushed the price row off centre. */
.lock__verdict {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: clamp(96px, 13vh, 150px);
  max-width: 46ch; text-align: center; color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  opacity: 0;
}
.lock__verdict strong { color: var(--ink); font-family: var(--fm); }

@media (max-width: 860px) {
  .lock__in { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .lock__side--market { text-align: left; align-items: flex-start; }
  .lock__dial { justify-self: start; }
}

/* =============================================================
   BENEFITS  (NURzK) - bento, five items, five explicit cells
   ============================================================= */
.sechead { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: clamp(30px,4vw,52px); }
.sechead--row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sechead__note { font-size: 14px; line-height: 1.6; color: var(--ink-3); text-align: right; }
.eyebrow__dot { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--accent); flex: none; }

.bento { padding: clamp(70px,10vw,100px) 0 clamp(72px,9vw,110px); }
.bento__grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "big big tall" "a b c";
}
.cell {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(26px,2.4vw,34px); border-radius: 30px; background: var(--bg-2);
  min-height: 252px;
}
.cell--big {
  grid-area: big; min-height: 326px;
  background:
    radial-gradient(80% 140% at 88% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--bg-2);
}
.cell--tall { grid-area: tall; min-height: 326px; }
.cell__ico {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 26px; color: #fff; font-size: 23px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.cell__ico--blue   { background: linear-gradient(135deg,#A6BEF2,#6F8FD4); }
.cell__ico--pink   { background: linear-gradient(135deg,#F2A6D6,#D96FB4); }
.cell__ico--violet { background: linear-gradient(135deg,#C9A6F2,#9B6FD4); }
.cell__txt { display: flex; flex-direction: column; gap: 12px; }
.cell__txt h3 { font-size: clamp(1.15rem,1.7vw,1.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.cell--big .cell__txt h3 { font-size: clamp(1.6rem,2.9vw,2.5rem); letter-spacing: -.04em; }
.cell__txt p { font-size: .93rem; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 900px) {
  .bento__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "big big" "tall tall" "a b" "c c"; }
}
@media (max-width: 560px) { .bento__grid { grid-template-columns: 1fr; grid-template-areas: "big" "tall" "a" "b" "c"; } }

/* =============================================================
   HOW IT WORKS  (gKDsh) - the white sheet inversion
   ============================================================= */
.how { padding: 0 0 clamp(72px,9vw,110px); }
.sheet {
  background: var(--sheet, #FCFBFE); color: var(--on-sheet, #0A0A0A);
  border-radius: 40px; padding: clamp(36px,4vw,60px) clamp(24px,3.4vw,56px) clamp(34px,3.4vw,56px);
  display: flex; flex-direction: column; gap: clamp(34px,4vw,52px);
}
.h2--ink { color: var(--on-sheet, #0A0A0A); }
.sheet .eyebrow { background: #F1F1F3; color: #0A0A0A; }
.sheet .eyebrow__dot { background: #0A0A0A; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sheet__head .sechead, .sheet__head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sheet__note { font-size: 14px; line-height: 1.6; color: #8E8E93; text-align: right; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 20px; }
.step__rule { display: block; height: 3px; border-radius: 2px; background: #E3E3E8; }
.step__rule.is-on { background: var(--accent-strong); }
.step h3 { font-size: clamp(1.15rem,1.9vw,1.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.step p { font-size: .85rem; line-height: 1.62; color: #8E8E93; }
.sheet__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sheet__foot p { font-size: 14px; font-weight: 500; color: #8E8E93; }
.btn--ink  { background: #0A0A0A; color: #FCFBFE; }
.close__btns .btn { padding: 19px 32px; border-radius: 30px; font-size: 16px; }
.close__btns .btn--soft { padding: 19px 30px; }
.btn--ink:hover { background: #262433; }
.btn--soft { background: rgba(10,10,10,.06); color: #0A0A0A; }
.btn--soft:hover { background: rgba(10,10,10,.11); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0,1fr); } }

/* =============================================================
   RATE BOARD + CHART  (HLmpA)
   ============================================================= */
.rate {
  padding: clamp(70px,10vw,100px) 0 clamp(72px,9vw,110px);
  background: radial-gradient(52% 46% at 10% 88%, color-mix(in srgb, var(--accent-strong) 14%, transparent), transparent 72%);
}
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); background: var(--bg-2); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.chip .i { color: var(--accent); font-size: 14px; }
.rate__grid { display: grid; grid-template-columns: minmax(0,1.66fr) minmax(0,1fr); gap: 16px; align-items: stretch; }
.board { background: var(--bg-2); border-radius: 30px; padding: 28px 30px 20px; }
.board__head, .brow {
  display: grid; grid-template-columns: minmax(0,1fr) 140px 140px 150px; align-items: center; gap: 12px;
}
.board__head { padding-bottom: 16px; }
.board__head span { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--ink-3); }
.board__head span + span, .brow > *:not(:first-child) { text-align: right; }
.brow { position: relative; isolation: isolate; padding: 17px 0; border-top: 1px solid var(--line); }
/* Same overhanging selection as the city rows: 16px past the row on each
   side, drawn as a pseudo so no row changes width. Both cards have 28-30px
   of side padding, so the bleed stays inside the card. */
.brow::before {
  content: ""; position: absolute; inset: 0 -16px; z-index: -1;
  border-radius: 16px; background: transparent;
  transition: background .22s var(--ease);
}
.brow:hover::before { background: rgba(255,255,255,.055); }
.brow:hover { border-top-color: transparent; }
.brow__pair { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.brow__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 13px; font-weight: 600; flex: none; }
.brow__buy  { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.brow__sell { font-size: 15px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.brow__chg  { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.brow__chg[data-up="1"] { color: var(--pos); } .brow__chg[data-up="0"] { color: var(--neg); }

.chart { background: var(--bg-2); border-radius: 30px; padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.chart__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.chart__pair { font-size: 13px; font-weight: 600; color: var(--ink-3); transition: color .25s var(--ease); font-variant-numeric: tabular-nums; }
.chart__val.is-probe { color: var(--accent); }
.chart__val { transition: color .25s var(--ease); font-family: var(--ff); font-size: clamp(1.9rem,3vw,2.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
/* segmented range control */
.seg2 { position: relative; display: inline-flex; gap: 0; padding: 4px; border-radius: 16px; background: var(--bg-3); }
.seg2__ind {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  border-radius: 13px; background: var(--accent);
  opacity: 0; pointer-events: none;
  transition: transform .42s cubic-bezier(.32,.72,0,1), width .42s cubic-bezier(.32,.72,0,1), opacity .2s var(--ease);
}
.seg2--lg .seg2__ind { border-radius: 20px; }
@media (prefers-reduced-motion: reduce) { .seg2__ind { transition: opacity .2s; } }
.seg2__b {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 12px; border-radius: 13px;
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.seg2__b:hover:not(:disabled):not(.is-on) { color: var(--ink); }
.seg2__b { position: relative; z-index: 1; }
.seg2__b.is-on { background: transparent; color: var(--accent-ink); }
.seg2__b:disabled { opacity: .4; cursor: not-allowed; }
/* A range whose window the history does not fill yet: still selectable, just
   flagged, with the reason spelled out under the chart. */
.seg2__b.is-partial:not(.is-on) { color: var(--ink-3); }
.seg2__b.is-partial::after {
  content: ""; position: absolute; top: 6px; right: 7px;
  width: 4px; height: 4px; border-radius: var(--r-pill);
  background: var(--accent); opacity: .75;
}

.chart__axes {
  display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto;
  gap: 8px 10px; flex: 1; min-height: 172px;
}
.chart__yaxis { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; }
.chart__xaxis { grid-area: 2 / 2; display: flex; justify-content: space-between; }
.chart__yaxis span, .chart__xaxis span {
  font-size: 10px; font-weight: 500; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chart__plot {
  grid-area: 1 / 2; position: relative; border-radius: 12px; overflow: visible;
  /* dot matrix behind the series, as on the reference */
  background-image: radial-gradient(circle, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: var(--dot-w, 16px) var(--dot-h, 16px); background-position: 0 0;
}
#chartCross { display: none; }
#chartLine {
  fill: none; stroke: var(--accent); stroke-width: 2.5;
  stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 50%, transparent));
}
/* Fill fades to nothing at the baseline so the dot matrix reads through the
   bottom of the plot, full strength up at the series. */
#chartArea { fill: url(#chartGrad); stroke: none; }
.chart-g0 { stop-color: var(--accent); stop-opacity: .30; }
.chart-g1 { stop-color: var(--accent); stop-opacity: 0; }
/* the series is flush to the box, so the stroke and its glow must overhang */
#chartSvg { overflow: visible; }

/* Cursor layer modelled on the NoName EX chart: the dashed rule and the dot
   snap to the nearest sample (with a short 0.12s glide), while the tooltip
   trails the pointer on a slower lerp. Two speeds, not one. */
.chart__cursor {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,.22) 0 3px, transparent 3px 6px);
  opacity: 0; pointer-events: none; z-index: 5;
  transition: opacity .3s var(--ease), left .12s var(--ease);
}
.chart__dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--bg-2);
  opacity: 0; pointer-events: none; z-index: 6;
  transform: translate(-50%,-50%) scale(.4);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              left .12s var(--ease), top .12s var(--ease);
}
.chart__hit { position: absolute; inset: -26px 0 -14px; cursor: crosshair; z-index: 4; }

.chart__plot.is-live .chart__cursor { opacity: 1; }
.chart__plot.is-live .chart__dot { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.chart__plot.is-fading .chart__cursor { opacity: 0; }
.chart__plot.is-fading .chart__dot { opacity: 0; transform: translate(-50%,-50%) scale(.4); }

/* While the curve travels between ranges the samples under the cursor are
   mid-flight, so the readout would show prices that never existed. The axes
   dim for the same reason: their labels rescale on every frame. */
.chart__plot.is-morphing .chart__cursor,
.chart__plot.is-morphing .chart__dot { opacity: 0 !important; }
.chart__plot.is-morphing .chart__hit { pointer-events: none; }
.chart__yaxis, .chart__xaxis { transition: opacity .22s var(--ease); }
.chart__plot.is-morphing ~ .chart__xaxis,
.chart .chart__plot.is-morphing .chart__yaxis { opacity: .45; }

.chart__note {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
}
.chart__foot { display: flex; justify-content: space-between; gap: 12px; }
.chart__foot div { display: flex; flex-direction: column; gap: 4px; }
.chart__foot .k { font-size: 9px; font-weight: 600; letter-spacing: .8px; color: var(--ink-3); }
.chart__foot .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .rate__grid { grid-template-columns: minmax(0,1fr); }
  .board__head, .brow { grid-template-columns: minmax(0,1fr) 84px 84px 72px; }
}
@media (max-width: 560px) { .board__head span:nth-child(3), .brow > *:nth-child(3) { display: none; } }

/* =============================================================
   OFFICES  (O0Xlg) - schematic map + city list
   ============================================================= */
.off { padding: clamp(70px,10vw,100px) 0 clamp(72px,9vw,110px); }
.off__grid { display: grid; grid-template-columns: minmax(0,1.66fr) minmax(0,1fr); gap: 16px; }
.map {
  position: relative; min-height: 616px; border-radius: 30px; overflow: hidden;
  background:
    radial-gradient(58% 58% at 45% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    var(--bg-1);
}
.map__canvas {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s var(--ease);
}
/* one finger always belongs to the page */
@media (pointer: coarse) { .map__canvas { touch-action: pan-y; } }

/* shown only while a scroll gesture lands on the map by accident */
.map__gate {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  pointer-events: none; opacity: 0;
  background: rgba(8,7,10,.44);
  transition: opacity .28s var(--ease);
}
.map__gate.is-on { opacity: 1; }
.map__gate-txt {
  padding: 12px 20px; border-radius: var(--r-pill);
  background: rgba(8,7,10,.82); color: var(--ink);
  font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent);
}
@media (prefers-reduced-motion: reduce) { .map__gate { transition: none; } }
.map.is-live .map__canvas { opacity: 1; }
/* the schematic stays as the fallback and the loading state */
.map.is-live .map__grid, .map.is-live > .pin { display: none; }
/* Hide only the "Открыть Яндекс Карты" control. The © Яндекс copyright and
   the terms link stay: attribution is required by the Maps licence. We add no
   other controls, so this class is unique to that button. */
.map__canvas .ymaps3--control-button,
.map__canvas .ymaps3--open-maps-button { display: none !important; }
.map__canvas .ymaps3--map-copyrights { opacity: .5; }
.map__canvas .ymaps3--map-copyrights:hover { opacity: 1; }
/* markers reuse the schematic pin, so the design is identical either way */
.map__canvas .pin { position: relative; transform: translate(-50%,-50%); cursor: pointer; }
.map__canvas .pin:hover { z-index: 3; }
/* Москва and Нижний Новгород sit ~6° apart, which is narrower than their two
   labels at this zoom. The main office wins the overlap instead of being
   half-hidden behind a neighbour. */
.map__canvas .pin--on { z-index: 2; }
.map__canvas .pin { gap: 6px; padding: 5px 10px 5px 5px; }
.map__canvas .pin__dot { width: 18px; height: 18px; }
.map__canvas .pin__dot::after { width: 7px; height: 7px; }
.crow.is-active::before { background: rgba(255,255,255,.055); }
.crow.is-active { border-top-color: transparent; }

.map__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
}
.pin {
  position: absolute; transform: translate(-50%,-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 20px;
  background: color-mix(in srgb, var(--bg-2) 90%, transparent);
  box-shadow: inset 0 0 0 1px #3A3A40;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pin__dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 20%, transparent); flex: none; }
.pin__dot::after { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--accent); }
.pin--on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px -6px rgba(201,166,242,.5); }
.pin--on .pin__dot { background: var(--accent-ink); }
.pin--on .pin__dot::after { background: var(--accent); }
.map__legend {
  position: absolute; left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 22px; background: rgba(8,7,10,.72);
  font-size: 13px; font-weight: 500;
}
.map__legend .i { color: var(--accent); }

.cities { background: var(--bg-2); border-radius: 30px; padding: 26px 28px 20px; }
.cities__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; }
.cities__head h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.cities__count { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 10px; border-radius: var(--r-pill); background: var(--bg-3, var(--bg-1)); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.crow {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
/* The selection bleeds 6px past the row on both sides. Drawn as a pseudo so the
   row itself keeps its width and nothing in the list shifts. */
.crow::before {
  content: ""; position: absolute; inset: 0 -16px; z-index: -1;
  border-radius: 16px; background: transparent;
  transition: background .22s var(--ease);
}
.crow__t { display: flex; flex-direction: column; gap: 3px; }
.crow__t b { font-size: 15px; font-weight: 600; }
.crow__t small { font-size: 12px; color: var(--ink-3); }
.crow__s { padding: 6px 11px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.crow__s.is-open { background: color-mix(in srgb, var(--pos) 15%, transparent); color: var(--pos); }
@media (max-width: 980px) { .off__grid { grid-template-columns: minmax(0,1fr); } .map { min-height: 460px; } }

/* =============================================================
   STATS BAND  (XnULj)
   ============================================================= */
.stats { padding: 0 0 clamp(72px,9vw,110px); }
.band {
  border-radius: 40px; padding: 35px clamp(32px,4vw,52px);
  display: flex; flex-direction: column; gap: clamp(28px,3.4vw,44px);
  background:
    radial-gradient(90% 120% at 12% 10%, rgba(255,255,255,.7), rgba(255,255,255,0) 62%),
    linear-gradient(150deg, #EADBFB 0%, #C9A6F2 50%, #A87DE0 100%);
  color: #0A0A0A;
}
.band__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.band__h { font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 600; letter-spacing: -.04em; }
.band__badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 18px; background: rgba(255,255,255,.4); font-size: 12px; font-weight: 600; }
.band__grid { display: flex; align-items: stretch; justify-content: space-between; gap: clamp(12px,2vw,24px); flex-wrap: wrap; }
.band__sep { width: 1px; background: rgba(0,0,0,.09); align-self: stretch; }
.band__stat { display: flex; flex-direction: column; gap: 8px; }
.band__v { font-size: clamp(2rem,3.9vw,3.25rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.band__l { font-size: 14px; font-weight: 500; color: rgba(0,0,0,.56); }
@media (max-width: 760px) { .band__sep { display: none; } .band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; } }

/* =============================================================
   CREATE ORDER  (tm2Qk)
   ============================================================= */
.form { padding: clamp(70px,10vw,100px) 0 clamp(72px,9vw,110px); }
.form .sechead { gap: 18px; }
.form__grid { display: grid; grid-template-columns: minmax(0,1.79fr) minmax(0,1fr); gap: 16px; align-items: start; }

.fcard { background: var(--bg-2); border-radius: 32px; padding: clamp(24px,2.6vw,36px); display: flex; flex-direction: column; gap: 22px; }
.seg2--lg { border-radius: 24px; align-self: flex-start; }
.seg2--lg .seg2__b { padding: 12px 26px; border-radius: 20px; font-size: 14px; }

.swap { display: flex; flex-direction: column; gap: 10px; }
/* The label lives INSIDE the field box, as in node penqF: the box carries the
   fill, radius and hairline, and stacks label over the value row. */
.fld {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
  background: var(--field); border-radius: 22px; padding: 18px 20px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s var(--ease);
}
.fld:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.fld > label, .fld__lbl { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.fld__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fld__row input, .fld__row select {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--ff); font-size: 30px; font-weight: 600; letter-spacing: -.03em;
  line-height: 1.16;
  font-variant-numeric: tabular-nums; color: var(--ink);
}

/* The @ is a fixed part of the field, not of the value: the input only ever
   holds the username, so there is nothing for a backspace to reach. Sitting
   in its own flex box keeps it glued to the text instead of inheriting the
   row's 12px gap. */
/* No gap and no input padding, or "@" and the nick read as two words. */
.fld__at { display: flex; align-items: baseline; gap: 0; flex: 1; min-width: 0; }
.fld__at input { padding-left: 0; }
.fld__at-sign {
  flex: none; font-size: 16px; font-weight: 500; line-height: 1.2;
  color: var(--ink-3); transition: color .2s var(--ease);
  user-select: none; -webkit-user-select: none;
}
.fld__at:has(input:not(:placeholder-shown)) .fld__at-sign { color: var(--ink); }

.fld__row--sm input, .fld__row--sm select { font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.fld__row--sm input::placeholder { color: var(--ink-3); }
.fld__row--sm select { cursor: pointer; }
.fld__ico { color: var(--ink-3); font-size: 16px; flex: none; }
.fld__btn {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-3); font-size: 15px; cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), transform .3s var(--ease);
}
.fld__btn:hover { color: var(--ink); background: var(--chip); }
.fld__btn:active .i { transform: rotate(-180deg); }
.fld__btn .i { transition: transform .3s var(--ease); }
.fld.is-bad { box-shadow: inset 0 0 0 2px var(--neg); }

.cur {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 14px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--chip); color: var(--ink);
  font-size: 14px; font-weight: 600;
  transition: background .2s var(--ease);
}
.cur:hover:not(:disabled) { background: #3A3A40; }
/* Only one pair trades today, so these carry no chevron: an affordance that
   opens nothing is worse than no affordance. */
.cur:disabled { cursor: default; opacity: .6; }

/* custom select: native <select> cannot be styled to match the panel */
.dd__btn {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left;
  font-family: var(--ff); font-size: 16px; font-weight: 500; line-height: 1.2; color: var(--ink);
}
.dd__btn .i { font-size: 16px; color: var(--ink-3); transition: transform .25s var(--ease); }
.dd__btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.dd__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  max-height: 264px; overflow-y: auto; padding: 8px;
  background: var(--bg-3); border-radius: 20px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.75), inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: 50% 0;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .28s cubic-bezier(.32,.72,0,1);
}
.dd__list.is-open { opacity: 1; transform: none; pointer-events: auto; }
.dd__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.dd__opt:hover, .dd__opt.is-active { background: rgba(255,255,255,.06); color: var(--ink); }
.dd__opt[aria-selected="true"] { color: var(--accent); }
.dd__opt[aria-selected="true"]::after { content: "\2713"; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .dd__list { transition: none; } }

.fmeta { display: flex; align-items: center; gap: 8px; padding: 2px 4px; font-size: 13px; color: var(--ink-3); }
.fmeta .i { color: var(--accent); font-size: 14px; flex: none; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.fwrap { display: flex; flex-direction: column; gap: 7px; }
.err { font-size: 12px; font-weight: 600; color: var(--neg); }
.legal { font-size: 12px; color: var(--ink-3); text-align: center; }

.finfo { display: flex; flex-direction: column; gap: 16px; }
.speed {
  border-radius: 30px; padding: 30px; display: flex; flex-direction: column; gap: 14px; color: #0A0A0A;
  background:
    radial-gradient(110% 110% at 20% 10%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
    linear-gradient(120deg, #EADBFB 0%, #C9A6F2 50%, #A87DE0 100%);
}
.speed__top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: rgba(0,0,0,.56); }
.speed__top .i { color: #0A0A0A; font-size: 19px; }
.speed__v { font-family: var(--ff); font-size: clamp(2.1rem,3.4vw,2.875rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.speed__b { font-size: 13px; line-height: 1.6; color: rgba(0,0,0,.56); }

.need { background: var(--bg-2); border-radius: 30px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.need h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.need ul { display: flex; flex-direction: column; gap: 14px; }
/* Each row is one line of text, so the tick centres against it rather than
   hanging off the first line's top edge. */
.need li { display: flex; align-items: center; gap: 11px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.need__c { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 13px; }

/* support card (PVZ1u) */
.sup {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--bg-2); border-radius: 30px; padding: 30px;
  transition: background .2s var(--ease);
}
.sup:hover { background: #201C29; }
.sup__row { display: flex; align-items: center; gap: 13px; }
/* The support avatar carries the Montana mark itself, on the same dark plate
   the closing CTA uses, so the brand reads the same on both surfaces. */
.sup__ava {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 23px;
  background: #0A0A0A; color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.sup__ava svg { width: 24px; height: 16px; display: block; fill: currentColor; }
.sup__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sup__txt b { font-size: 15px; font-weight: 600; }
.sup__st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.sup__dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--pos); flex: none; }
.sup__btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 0; border-radius: 22px; background: var(--chip);
  font-size: 14px; font-weight: 600;
  transition: background .2s var(--ease);
}
.sup:hover .sup__btn { background: #3A3A40; }

.formstate { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-radius: 18px; font-size: .9rem; font-weight: 600; }
.formstate--ok  { background: color-mix(in srgb, var(--pos) 15%, transparent); color: var(--pos); }
.formstate--bad { background: color-mix(in srgb, var(--neg) 15%, transparent); color: var(--neg); }
.btn.is-busy { pointer-events: none; opacity: .72; }

@media (max-width: 980px) { .form__grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 560px) { .frow { grid-template-columns: minmax(0,1fr); } .fld__row input { font-size: 24px; } }

/* =============================================================
   9. FAQ
   ============================================================= */
.faq { padding: clamp(72px, 12vh, 140px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: sticky; top: 100px; }
.faq__list { display: flex; flex-direction: column; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__pm { position: relative; width: 18px; height: 18px; flex: none; }
.faq__pm::before, .faq__pm::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 2px; background: var(--accent); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.faq__pm::after { transform: rotate(90deg); }
.faq details[open] .faq__pm::after { transform: rotate(0deg); }
.faq__ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.32,.72,0,1); }
.faq details[open] .faq__ans { grid-template-rows: 1fr; }
.faq details[open].is-closing .faq__ans { grid-template-rows: 0fr; }
.faq details[open].is-closing .faq__ans > p { opacity: 0; transform: translateY(-4px); padding-bottom: 0; }
.faq details[open].is-closing .faq__pm::after { transform: rotate(90deg); }
.faq__ans > p {
  overflow: hidden; min-height: 0;
  color: var(--ink-2); max-width: 62ch; font-size: .98rem;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .32s ease .06s, transform .42s cubic-bezier(.32,.72,0,1) .06s, padding-bottom .5s cubic-bezier(.32,.72,0,1);
  padding-bottom: 0;
}
.faq details[open] .faq__ans > p { opacity: 1; transform: none; padding-bottom: 26px; }
.faq summary { transition: color .2s var(--ease); }
.faq details[open] > summary { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .faq__ans, .faq__ans > p { transition: none; }
}
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq__side { position: static; } }

/* =============================================================
   10. CLOSE
   ============================================================= */
.close { padding: 0 0 clamp(72px,9vw,110px); }
.sheet--center {
  align-items: center; text-align: center; gap: 26px;
  padding: clamp(48px,6vw,74px) clamp(24px,4vw,56px);
  /* Pencil: radial, centre bottom, extent 0.8w x 1.3h, #C9A6F2 at 55% -> clear. */
  background:
    radial-gradient(80% 130% at 50% 100%, rgba(201,166,242,.55) 0%, rgba(201,166,242,0) 100%),
    #FFFFFF;
}
.close__mark {
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: var(--r-pill);
  background: #0A0A0A; color: var(--accent);
}
.close__mark svg { width: 38px; height: 25px; display: block; }
.close__h { font-size: clamp(2.1rem,5vw,3.875rem); font-weight: 600; letter-spacing: -.042em; line-height: 1.04; color: #0A0A0A; }
.close__sub { max-width: 620px; font-size: clamp(.98rem,1.35vw,1.0625rem); line-height: 1.6; color: #8E8E93; }
.close__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 10px; }
.close__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; padding-top: 8px; }
.close__trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: #8E8E93; }
.close__trust .i { color: var(--accent-strong); font-size: 15px; }

/* =============================================================
   FOOTER
   ============================================================= */
/* Pencil W54m0r. Brand column 360 on the left, three 190-wide link columns
   pushed right; the footer sits on true black, a shade under the page. */
.ftr { background: #000; padding: clamp(48px,6vw,76px) 0 44px; }

.ftr__top { display: flex; justify-content: space-between; gap: clamp(40px,5vw,80px); padding-bottom: clamp(36px,4.4vw,56px); }

.ftr__brand { width: 360px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ftr__word { display: block; width: 94px; color: var(--accent); }
.ftr__word svg { display: block; width: 100%; aspect-ratio: 1166.25 / 210.18; height: auto; }
.ftr__tag { max-width: 330px; font-size: 14px; line-height: 1.65; color: #7C7C82; }

.ftr__soc { display: flex; gap: 9px; padding-top: 4px; }
.ftr__soc a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-pill); background: var(--bg-2); color: #8E8E93; font-size: 17px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.ftr__soc a:hover { background: var(--bg-3); color: var(--ink); transform: translateY(-2px); }
.ftr__soc a:active { transform: translateY(0); }

.ftr__nav { display: flex; gap: clamp(32px,5vw,72px); }
.ftr__col { display: flex; flex-direction: column; gap: 15px; width: 190px; }
.ftr__col h3 { font-size: 11px; font-weight: 600; letter-spacing: .11em; color: var(--accent); }
.ftr__col a { font-size: 14px; color: #8E8E93; transition: color .18s var(--ease); }
.ftr__col a:hover { color: var(--ink); }

.ftr__rule { height: 1px; background: var(--line); }

.ftr__bottom { display: flex; flex-direction: column; gap: 20px; padding-top: 26px; }
.ftr__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.ftr__copy { font-size: 13px; color: #7C7C82; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 26px; }
.ftr__legal a { font-size: 13px; color: #7C7C82; transition: color .18s var(--ease); }
.ftr__legal a:hover { color: var(--ink-2); }
.ftr__disc { max-width: 900px; font-size: 12px; line-height: 1.6; color: #6A6A72; }

@media (max-width: 1080px) {
  .ftr__top { flex-direction: column; gap: 44px; }
  .ftr__brand { width: 100%; }
}
@media (max-width: 620px) {
  .ftr__nav { flex-wrap: wrap; gap: 32px 24px; }
  .ftr__col { width: calc(50% - 12px); }
}

/* =============================================================
   REVEALS. Gated so reduced-motion users get final state at once.
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
}

/* =============================================================
   TOUCH TARGETS
   A finger is not a cursor. On coarse pointers every control is
   grown to the 44px the platform guidelines ask for: the chart
   range buttons were 33px, the currency chips 40px and the city
   select only 19px tall, which is a miss waiting to happen.
   Desktop keeps its tighter proportions.
   ============================================================= */
@media (pointer: coarse) {
  .seg2__b            { padding: 14px 20px; font-size: 13px; border-radius: 15px; }
  .seg2--lg .seg2__b  { padding: 16px 26px; font-size: 14px; }
  .cur                { padding: 13px 18px; }
  .dd__btn            { min-height: 44px; }
  .fld__btn           { width: 44px; height: 44px; margin: -9px -9px -9px 0; }
  .ftr__soc a         { width: 46px; height: 46px; }
  /* min-height rather than padding: these are inline links whose own line
     box is only ~17px, so padding alone never reaches the target. */
  .ftr__col a,
  .ftr__legal a       { min-height: 44px; display: inline-flex; align-items: center; }
  .ftr__col           { gap: 4px; }
  .ftr__legal         { gap: 8px 26px; }
  .nav a              { padding: 10px 14px; }
  /* the logo is a link home: its box is the wordmark's 19px, so it gets a
     tappable height without moving the lockup optically */
  .brand              { min-height: 44px; }
  .btn--hdr           { padding: 14px 22px; }
  .crow               { padding-top: 14px; padding-bottom: 14px; }
  /* Inputs sit inside a tall .fld, but the input box itself was ~31px, so a
     tap landing beside the text did nothing. Their labels carry `for=`, so
     the label is already a target; this makes the field one too. */
  .fld__row input,
  .fld__row select    { min-height: 44px; }

  /* the chart cursor layer must not swallow taps meant for the page */
  .chart__hit         { inset: 0; }

  /* The bigger range buttons no longer fit beside the price on a phone:
     the value wrapped and collided with them. Stack the two instead. */
  .chart__top         { flex-direction: column; align-items: stretch; gap: 14px; }
  .chart__top .seg2   { align-self: flex-start; }
  .chart__val         { white-space: nowrap; }
}

/* Monitoring badges in the footer. Styled ahead of time so that publishing one
   is a matter of uncommenting the block, not writing CSS under time pressure
   the day the exchanger is accepted. */
.ftr__mon { display: flex; flex-direction: column; gap: 14px; }
.ftr__mon h3 { font-size: 11px; font-weight: 600; letter-spacing: .11em; color: var(--accent); }
.ftr__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content; padding: 8px 10px; border-radius: 12px;
  background: var(--bg-2);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.ftr__badge:hover { background: var(--bg-3); transform: translateY(-2px); }
.ftr__badge img { display: block; border-radius: 4px; }
.ftr__mon-note { font-size: 12px; line-height: 1.5; color: #7C7C82; max-width: 30ch; }

/* =============================================================
   SERVICES teaser on the landing. The full catalogue lives at
   /servisy/; this block only has to make the offer visible and
   name the one thing that sets it apart — no account password.
   ============================================================= */
.srv { padding: 0 0 clamp(72px,9vw,110px); }
.srv__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: clamp(26px,3.4vw,40px); }
.srvcat {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-1); border-radius: 26px; padding: 26px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.srvcat:hover {
  background: var(--bg-2); transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent);
}
.srvcat__ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 22px; background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent); font-size: 19px;
}
.srvcat h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.03em; }
.srvcat p { margin-top: 8px; font-size: .85rem; line-height: 1.55; color: var(--ink-3); }

/* Марки сервисов — в фирменных цветах, включая многоцветные Figma и Google
   Play и градиенты Netflix и Bitcoin. Марки, чей фирменный цвет чёрный (Apple,
   OpenAI, Steam, Midjourney, Suno), отдаются в официальном обратном варианте:
   на этом фоне чёрного попросту не видно. Цвет лежит в самих контурах, здесь
   не задаётся ничего — см. scripts/_brand_marks.py.
   Форма у марок разная — глиф, словесный знак, диск с надписью, — поэтому
   задана высота, а ширину каждая держит свою; --s выравнивает их по площади. */
.bmark {
  width: auto; height: calc(var(--bh, 26px) * var(--s, 1));
  transition: opacity .2s var(--ease);
}
.srvcat__logos {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; min-height: 26px;
  --bh: 21px;
}

.srv__foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.srv__note { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.srv__note .i { color: var(--accent); font-size: 16px; flex: none; }

@media (max-width: 900px) { .srv__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .srv__grid { grid-template-columns: minmax(0,1fr); } }
