@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-cyrillic-ext-var.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-cyrillic-var.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-latin-ext-var.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-latin-var.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PlexMono';
  src: url('../fonts/ibm-plex-mono-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PlexMono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'PlexMono';
  src: url('../fonts/ibm-plex-mono-cyrillic-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PlexMono';
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fd;
  --line: #e4e9f6;
  --line-2: #d3daef;

  --ink: #12142b;
  --ink-2: #4a5070;
  --ink-3: #858caa;
  --rule: #b8c2e2;

  --brand: #4f7dfc;
  --brand-deep: #3a63e6;
  --brand-ink: #2f55cf;
  --brand-wash: #eef2ff;
  --brand-line: #c8d6ff;

  --brand2: #54c8f2;
  --brand2-wash: #e8f7fd;
  --brand3: #a877f8;
  --brand3-ink: #7a4fd6;
  --brand3-wash: #f3ecfe;
  --grad: linear-gradient(90deg, #54c8f2 0%, #4f7dfc 48%, #a877f8 100%);
  --grad-rule: linear-gradient(90deg, #54c8f2, #4f7dfc 48%, #a877f8);

  --moss: #17805a;
  --alarm: #c8341c;

  --void: #1b1f3c;
  --void-2: #232850;
  --grid-line: #2a2f55;
  --grid-major: #363c6b;
  --lay-parcel: #74808d;
  --lay-well: #7f9cff;
  --lay-util: #c877d8;
  --lay-route: #54c8f2;
  --lay-mark: #ffd166;

  --shadow-1: 0 1px 2px rgba(27, 31, 60, .05), 0 4px 14px rgba(27, 31, 60, .05);
  --shadow-2: 0 4px 12px rgba(27, 31, 60, .07), 0 18px 46px rgba(27, 31, 60, .09);
  --shadow-3: 0 30px 80px rgba(27, 31, 60, .22);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

::selection { background: #d6e3ff; color: var(--ink); }

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

.mono {
  font-family: 'PlexMono', ui-monospace, 'Cascadia Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.wrap {
  width: min(1200px, 100% - 44px);
  margin-inline: auto;
}

.accent { color: var(--brand); }

.pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pill--violet { background: var(--brand3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--brand);
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .12s linear, color .12s linear, border-color .12s linear;
}
.btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}
.btn svg { flex: none; }

.btn--ghost {
  background: var(--brand-wash);
  color: var(--brand-ink);
  border-color: var(--brand-wash);
}
.btn--ghost:hover {
  background: var(--brand-line);
  border-color: var(--brand-line);
  color: var(--brand-ink);
}

.btn--dark { background: var(--void); border-color: var(--void); }
.btn--dark:hover { background: var(--brand); border-color: var(--brand); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--xs { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: .4;
  pointer-events: none;
}

.field {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: 'PlexMono', monospace;
  font-size: 13px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 125, 252, .18);
}
select.field { font-family: 'Onest', sans-serif; font-size: 14px; cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
