@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest-latin.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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono-latin.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f3f5f6;
  --surface: #ffffff;
  --ink: #10191d;
  --mute: #56636b;
  --line: #d9e0e3;
  --line-2: #bfc9ce;
  --accent: #0b7285;
  --eye: #3fc0d6;
  --button: #10191d;
  --button-ink: #f3f5f6;
  --code-bg: #10191d;
  --code-fg: #e4ecef;
  --code-mute: #81929a;
  --ticket-line: transparent;
  --shadow: 0 1px 2px rgba(16, 25, 29, 0.06), 0 28px 60px -30px rgba(16, 25, 29, 0.38);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0d1316;
    --surface: #141c20;
    --ink: #e6edf0;
    --mute: #97a6ad;
    --line: #223038;
    --line-2: #34454e;
    --accent: #5cc8dc;
    --button: #e6edf0;
    --button-ink: #0d1316;
    --code-bg: #070b0d;
    --ticket-line: #2a3942;
    --shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.85);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
code, pre, .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
:not(pre) > code { font-size: 0.86em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 64ch; }
.mute { color: var(--mute); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 0.96rem; }
.nav a { color: var(--mute); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .gh { color: var(--button-ink); background: var(--button); border-radius: 999px; padding: 7px 15px; font-weight: 550; }
.nav .gh:hover { color: var(--button-ink); opacity: 0.88; }
@media (max-width: 640px) { .nav { gap: 16px; } .nav a:not(.gh, .lang) { display: none; } }

.eye { display: inline-block; width: 13px; height: 9px; border-radius: 50%; background: var(--eye); flex: none; }

.hero { display: grid; gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 24px; }
@media (min-width: 1000px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; padding-top: 56px; } }
h1 { font-size: clamp(2.2rem, 4.3vw, 3.45rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 24px; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--mute); margin: 0 0 32px; max-width: 54ch; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--button); color: var(--button-ink); }
.btn:hover { opacity: 0.88; }
.textlink { color: var(--ink); font-weight: 550; }

.window { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.window-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.address { flex: 1; min-width: 0; max-width: 360px; margin: 0 auto; background: var(--paper); border-radius: 7px; padding: 4px 12px; font-size: 0.78rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.domain { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--eye); }

.masq { margin: 0; }
.stage { position: relative; padding: 0 0 92px 28px; }
.ticket {
  position: absolute; left: 0; bottom: 0; width: min(430px, 88%);
  background: var(--code-bg); color: var(--code-fg); border-radius: 12px; padding: 16px 18px 18px;
  border: 1px solid var(--ticket-line); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
}
.ticket-head { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--code-mute); margin-bottom: 8px; }
.ticket-head svg { color: var(--code-fg); }
.ticket code { display: block; font-size: 0.82rem; line-height: 1.55; overflow-wrap: anywhere; background: none; border: 0; padding: 0; color: var(--code-fg); }
.ticket .domain { color: #ffffff; white-space: nowrap; }
.masq figcaption { color: var(--mute); font-size: 0.92rem; margin-top: 20px; max-width: 52ch; }
@media (max-width: 640px) {
  .stage { padding: 0; }
  .ticket { position: relative; width: auto; margin: -34px 12px 0; }
}

section { padding: 104px 0 0; }
@media (max-width: 640px) { section { padding-top: 72px; } }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.028em; font-weight: 700; margin: 0 0 16px; text-wrap: balance; }
h3 { font-size: 1.14rem; line-height: 1.35; margin: 0 0 8px; font-weight: 650; letter-spacing: -0.012em; }
p { margin: 0 0 14px; text-wrap: pretty; }
.intro { margin-bottom: 36px; }

.split { display: grid; gap: 44px; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }

.links { display: grid; gap: 26px; margin: 30px 0 26px; }
.link { border-top: 1px solid var(--line); padding-top: 20px; }
.link h3 { display: flex; align-items: center; gap: 10px; }
.link .shape { display: block; margin: 2px 0 10px; color: var(--accent); font-size: 0.8rem; overflow-wrap: anywhere; }
.link p { margin: 0; color: var(--mute); }

.dialog { width: 100%; max-width: 510px; aspect-ratio: var(--ratio); justify-self: center; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.dialog img { width: 282.35%; max-width: none; margin: var(--top) 0 0 var(--left, -91.176%); }

.band { margin-top: 104px; padding: 88px 0 96px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .band { margin-top: 72px; padding: 64px 0 72px; } }

ol.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 40px; counter-reset: step; max-width: 860px; }
ol.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
ol.steps > li::before { content: counter(step); font-size: 2.4rem; line-height: 1; font-weight: 700; color: var(--accent); letter-spacing: -0.04em; }
@media (max-width: 640px) { ol.steps > li { grid-template-columns: 36px minmax(0, 1fr); } ol.steps > li::before { font-size: 1.9rem; } }
ol.steps p { color: var(--mute); }
ul.req { margin: 0 0 12px; padding-left: 1.1em; color: var(--mute); }
ul.req li { margin: 4px 0; }
ul.req strong { color: var(--ink); font-weight: 600; }

.cmd { position: relative; margin: 14px 0; }
.cmd pre {
  margin: 0; padding: 16px 124px 16px 18px;
  background: var(--code-bg); color: var(--code-fg); border-radius: 10px;
  white-space: pre-wrap; word-break: break-all; font-size: 0.86rem; line-height: 1.6;
}
.cmd pre::before { content: "$ "; color: var(--code-mute); }
@media (max-width: 640px) { .cmd pre { padding: 52px 16px 14px; } }
.copy {
  position: absolute; top: 10px; right: 10px; height: 32px; padding: 0 12px;
  border: 1px solid rgba(228, 236, 239, 0.22); border-radius: 999px; background: transparent; color: var(--code-mute);
  font: 500 0.8rem/1 "Onest", system-ui, sans-serif; cursor: pointer;
}
.copy:hover { color: var(--code-fg); border-color: rgba(228, 236, 239, 0.45); }
.more { margin-top: 36px; }

dl.features { display: grid; margin: 36px 0 0; border-top: 1px solid var(--line); }
dl.features > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { dl.features > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; } }
dl.features dt { font-weight: 650; }
dl.features dd { margin: 0; color: var(--mute); }

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 650; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 15px; font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--mute); padding-right: 44px; }
.faq details > :last-child { margin-bottom: 22px; }

footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--mute); font-size: 0.93rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--mute); }
footer a:hover { color: var(--ink); }
