/* Local Inter only. License: fonts/OFL.txt */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  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;
}

:root {
  --bg: #111111;
  --bg-2: #181818;
  --surface: #1C1C1C;
  --line: #2A2A2A;
  --text: #F2F0EB;
  --muted: #9A968E;
  --accent: #FF5A1F;
  --accent-hover: #FF7240;
  --on-accent: #111111;
  --wa: #25D366;
  --tg: #2AABEE;
  --viber: #7360F2;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

img { border: 0; }

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

p,
h1,
h2,
h3,
ul,
pre {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(44px, 7vw, 96px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: 24px; }

.container {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only,
input.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.accent { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

.site-header.is-stuck {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

body.nav-open { overflow: hidden; }

.header-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: none;
}

.logo-footer img { height: 28px; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.nav-links a,
.footer-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:visited,
.footer-nav a:visited { color: var(--muted); }

.nav-links a:hover,
.footer-nav a:hover { color: var(--text); }

.nav-links a[aria-current="page"],
.nav-links a[aria-current="page"]:visited { color: var(--accent); }

.nav-dev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.lang-switch button {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 0;
  height: 36px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lang-switch button + button { border-left: 1px solid var(--line); }

.lang-switch button.is-active {
  color: var(--text);
  background: var(--surface);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex: none;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}

.badge-best {
  border-color: var(--accent);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

a.btn-primary,
a.btn-primary:visited,
button.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

a.btn-secondary,
a.btn-secondary:visited,
button.btn-secondary {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

a.btn-graphite,
a.btn-graphite:visited,
button.btn-graphite {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--text);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.block {
  padding: 96px 0;
  scroll-margin-top: 80px;
  background: var(--bg);
}

.block-home { padding: 0 0 96px; }

#home,
#pricing,
#about { background: var(--bg); }

#solutions,
#developers,
#contact { background: var(--bg-2); }

.hero {
  position: relative;
  padding: 48px 0 72px;
}

/* Dot grid only. The mask fades the dots; it is not a color fill. */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#2A2A2A 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: end;
}

.hero-grid > * { min-width: 0; }

.hero-lead {
  margin-top: 28px;
  max-width: 38em;
  color: var(--text);
}

.hero-body {
  margin-top: 12px;
  max-width: 38em;
  color: var(--muted);
}

.hero-accent {
  margin-top: 20px;
  max-width: 28em;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.phone {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  opacity: 0;
  animation: bubbleIn 0.45s ease forwards;
}

.bubble:nth-child(1) { animation-delay: 0s; }
.bubble:nth-child(2) { animation-delay: 0.6s; }
.bubble:nth-child(3) { animation-delay: 1.2s; }

@keyframes bubbleIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bubble-k {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.bubble-t {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}

.dot-sms { background: var(--accent); }
.dot-wa { background: var(--wa); }
.dot-tg { background: var(--tg); }
.dot-viber { background: var(--viber); }

.home-rest { margin-top: 8px; }

.trial {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
}

.trial ::selection {
  background: var(--on-accent);
  color: var(--accent);
}

.trial h2 {
  color: var(--on-accent);
  margin: 0 0 24px;
  max-width: 16em;
}

.trial-form {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 280px) auto;
  gap: 12px;
  justify-content: start;
  align-items: start;
  position: relative;
}

.trial .form-status { grid-column: 1 / -1; }

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 52px;
  padding: 0 16px;
  color: var(--text);
  caret-color: var(--text);
}

textarea {
  height: auto;
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.trial input[type="tel"],
.trial input[type="email"] {
  background: rgba(17, 17, 17, 0.08);
  border-color: var(--on-accent);
  color: var(--on-accent);
  caret-color: var(--on-accent);
}

.trial input::placeholder {
  color: var(--on-accent);
  opacity: 1;
}

.trial input:focus {
  border-color: var(--on-accent);
  outline: 2px solid var(--on-accent);
  outline-offset: 2px;
}

.form-status {
  font-size: 14px;
  color: var(--muted);
}

.form-status:empty { display: block; margin: 0; }

.trial .form-status { color: var(--on-accent); }

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 22px;
}

.channels li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.kicker .num { color: var(--accent); }

.sec-head h2 { margin: 0; }

.stack {
  display: grid;
  gap: 14px;
  max-width: 70ch;
  margin-top: 24px;
}

.stack p,
.muted { color: var(--muted); }

.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.sol-card { padding: 24px 24px 28px; }

.sol-index {
  margin: 0 0 36px;
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.sol-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  color: var(--muted);
}

.sol-card h3 {
  margin: 0 0 12px;
  padding-right: 36px;
  font-size: 26px;
}

.sol-card p {
  margin: 0;
  color: var(--muted);
}

.price-sms { margin-top: 28px; }

.sms-card,
.ent-copy {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.sms-card h3,
.ent-copy h3 { margin: 0; }

.sms-card p,
.ent-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 78ch;
}

.sms-card .btn { margin-top: 8px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.price-card { padding-bottom: 8px; }

.price-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 20px;
}

.tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.tier:last-child { border-bottom: 0; }

.tier-vol {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.tier-vol .badge { margin-left: 8px; vertical-align: 1px; }

.tier-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tier-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.tier-usdt,
.tier-per {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.ent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 32px;
  align-items: end;
  margin-top: 16px;
}

.ent-q {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.dev-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.dev-head h2 { margin: 0; }

.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}

.dev-grid > * { min-width: 0; }

.dev-copy h3 { margin: 28px 0 0; }

.dev-into { margin-top: 14px; }

.dev-help {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  max-width: 60ch;
}

.dev-help .q {
  color: var(--text);
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chips li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  background: transparent;
}

.code-caption {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

pre {
  margin: 0;
  max-width: 100%;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  overflow: auto;
}

code { font-family: var(--mono); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.about-grid h3 { margin: 0 0 12px; }

.about-grid p { margin: 0; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form .btn { justify-self: start; }

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text);
}

a.card,
a.card:visited { color: var(--text); }

.ci {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--muted);
  margin-top: 2px;
}

.ci-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ci-value {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.footer-grid { display: grid; gap: 18px; }

.footer-nav,
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.footer-nav a,
.footer-contacts a,
.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

.footer-nav a:hover,
.footer-contacts a:hover { color: var(--text); }

.footer-contacts a { font-variant-numeric: tabular-nums; }

.footer-copy { margin-top: 8px; }

.miss { padding: 96px 0 120px; }

.miss h1 { margin: 0 0 16px; }

.miss-text {
  margin: 0 0 28px;
  max-width: 36em;
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--accent); }

  a.btn-primary:hover,
  button.btn-primary:hover { background: var(--accent-hover); }

  a.btn-primary:hover .btn-arrow,
  button.btn-primary:hover .btn-arrow,
  a.btn-primary:focus-visible .btn-arrow,
  button.btn-primary:focus-visible .btn-arrow { transform: translateX(4px); }

  a.btn-secondary:hover,
  a.btn-secondary:visited:hover,
  button.btn-secondary:hover {
    background: var(--text);
    color: var(--bg);
  }

  a.btn-graphite:hover,
  button.btn-graphite:hover {
    background: var(--text);
    color: var(--bg);
  }
}

@media (max-width: 1024px) {
  .header-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo tools"
      "links links";
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
    min-height: 0;
    padding: 14px 0 0;
  }

  .logo { grid-area: logo; }

  .nav-panel { display: contents; }

  .nav-links {
    grid-area: links;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 8px 0 14px;
  }

  .nav-tools {
    grid-area: tools;
    margin-left: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 32px;
  }

  .phone {
    margin-left: 0;
    max-width: 420px;
  }

  .trial-form {
    grid-template-columns: 1fr 1fr;
  }

  .trial-form .btn { grid-column: 1 / -1; justify-self: start; }

  .price-grid,
  .dev-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(var(--maxw), calc(100% - 32px)); }

  .block { padding: 64px 0; }

  .block-home { padding: 0 0 64px; }

  .header-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 64px;
    padding: 0;
  }

  .burger {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--bg);
    padding: 88px 24px 32px;
    gap: 28px;
    margin: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.nav-open .nav-panel {
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0;
  }

  .nav-links a {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    padding: 6px 0;
  }

  .nav-links a:visited { color: var(--text); }

  .nav-links a[aria-current="page"],
  .nav-links a[aria-current="page"]:visited { color: var(--accent); }

  .nav-tools {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .trial { padding: 24px 20px; }

  .trial-form,
  .field-row,
  .sol-grid,
  .about-grid,
  .ent-card { grid-template-columns: 1fr; }

  .trial-form .btn { width: 100%; }

  .ent-card { justify-items: start; }

  pre {
    padding: 16px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .bubble {
    opacity: 1;
    animation: none;
  }

  .btn-arrow { transition: none; }

  html.js .reveal,
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
