@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/Geologica-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/Geologica-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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/PTMono-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/PTMono-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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ground: #121315;
  --ground-2: #0c0d0f;
  --panel: #1b1d20;
  --panel-2: #23262a;
  --line: #2f3236;
  --mark: #55585d;
  --ink: #f0ece5;
  --ink-2: #aaa8a2;
  --signal: #e8452c;
  --signal-hi: #f25a40;
  --signal-text: #f4644c;
  --on-signal: #160b08;
  --on-signal-2: #2a0e08;

  --sans: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "PT Mono", ui-monospace, Menlo, Consolas, monospace;

  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-lead: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem);
  --t-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --t-mega: clamp(3.25rem, 1rem + 10vw, 11rem);

  --u: 8px;
  --gutter: 16px;
  --radius: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #3a3d42 var(--ground);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--signal); color: var(--on-signal); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.mega { font-size: var(--t-mega); line-height: .88; font-weight: 700; letter-spacing: -0.045em; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

.section-lede { color: var(--ink-2); font-size: var(--t-lead); line-height: 1.5; max-width: 38rem; margin-top: calc(var(--u) * 3); }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s; }
.top.is-scrolled { background: rgb(18 19 21 / .92); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top__in { display: flex; align-items: center; gap: calc(var(--u) * 3); height: 60px; }
.top__name { font-weight: 600; text-decoration: none; white-space: nowrap; }
.top__role { display: none; font-weight: 400; color: var(--ink-2); }
@media (min-width: 1100px) { .top__role { display: inline; } }
.top__nav { display: none; gap: calc(var(--u) * 3); margin-left: auto; }
.top__nav a { color: var(--ink-2); text-decoration: none; font-size: var(--t-small); transition: color .2s; }
.top__nav a:hover { color: var(--ink); }
.top__tg {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  background: rgb(18 19 21 / .55); border: 1px solid rgb(255 255 255 / .14); border-radius: 999px;
  font-size: var(--t-small); font-weight: 500; text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.top__tg svg { width: 17px; height: 17px; fill: currentColor; }
.top__tg:hover { border-color: rgb(255 255 255 / .35); background: var(--panel); }
@media (min-width: 720px) { .top__nav { display: flex; } .top__tg { margin-left: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__media {
  position: absolute; z-index: -2;
  left: 0; right: 0; top: 0; height: 66svh;
}
.hero__gl {
  width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
          mask-image: linear-gradient(to bottom, #000 62%, transparent);
}

.hero__content { position: relative; display: flex; flex-direction: column; padding-top: calc(66svh - 7rem); padding-bottom: calc(var(--u) * 12); }
.name {
  order: -1;
  font-size: clamp(2.25rem, 10.4vw, 15rem);
  line-height: .84;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #fff;
  mix-blend-mode: difference;
  margin-bottom: calc(var(--u) * 3);
}
.name__line { display: block; white-space: nowrap; }
.name .ch { display: inline-block; will-change: transform; }
.name .mask { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }

.hero__offer { margin-top: calc(var(--u) * 2); font-size: var(--t-lead); line-height: 1.4; font-weight: 500; max-width: 30rem; }
.hero__cue {
  display: none;
}

@media (min-width: 900px) {
  .hero { min-height: max(100svh, 680px); }
  .hero__media { left: auto; right: 0; width: 54%; height: max(100svh, 680px); }
  .hero__gl { -webkit-mask-image: none; mask-image: none; }
  .hero__content {
    min-height: max(100svh, 680px);
    padding-top: 112px; padding-bottom: 5svh;
    justify-content: space-between;
  }
  .name { order: 2; margin: 0; font-size: clamp(4rem, 9.4vw, 10rem); }
  .hero__intro { max-width: 30rem; }
  .hero__cue {
    position: absolute; right: var(--gutter); top: 50%;
    display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2);
    writing-mode: vertical-rl;
  }
  .hero__cue svg { width: 16px; height: 16px; writing-mode: horizontal-tb; }
}

/* ---------- ask form ---------- */
.ask { margin-top: calc(var(--u) * 3.5); max-width: 34rem; }
.ask__label { display: block; font-size: var(--t-small); color: var(--ink-2); margin-bottom: 8px; }
.ask__row { display: grid; gap: 10px; }
.ask__input {
  width: 100%; min-height: 56px; padding: 0 18px;
  font: 400 var(--t-body) var(--sans); color: var(--ink);
  background: rgb(27 29 32 / .85);
  border: 1px solid var(--line); border-radius: 999px;
  caret-color: var(--signal);
  transition: border-color .2s, background-color .2s;
}
.ask__input::placeholder { color: #8f8d88; }
.ask__input:hover { border-color: var(--mark); }
.ask__input:focus { outline: none; border-color: var(--ink-2); background: var(--panel-2); }
.ask__input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.btn {
  position: relative; overflow: hidden;
  min-height: 56px; padding: 0 26px;
  font: 600 var(--t-body) var(--sans); color: var(--on-signal);
  background: var(--signal);
  border: 0; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 12px 30px -14px rgb(0 0 0 / .8);
  transition: background-color .2s, box-shadow .3s;
}
.btn span { position: relative; display: inline-block; }
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 16px 36px -14px rgb(0 0 0 / .9); }
.btn:active span { transform: translateY(1px); }
.ask__note { margin-top: 12px; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.ask__note q { color: var(--ink); quotes: "«" "»"; }
.btn-plain { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); font-weight: 500; color: var(--ink); text-decoration-color: var(--mark); }
.btn-plain:hover { text-decoration-color: var(--ink); }
@media (min-width: 520px) { .ask__row { grid-template-columns: 1fr auto; } }

/* ---------- works ---------- */
.works { background: var(--ground-2); padding-top: calc(var(--u) * 14); }
.works__intro { padding-bottom: calc(var(--u) * 6); }
.scene { position: relative; }
.scene__in { display: grid; gap: calc(var(--u) * 5); padding-block: calc(var(--u) * 6) calc(var(--u) * 10); }
.scene__title { font-size: clamp(2.5rem, 1.2rem + 5vw, 5.5rem); line-height: .9; font-weight: 700; letter-spacing: -0.045em; }
.scene__sub { color: var(--ink-2); margin-top: 12px; font-size: var(--t-lead); line-height: 1.4; }
.notes { list-style: none; margin: calc(var(--u) * 3.5) 0 0; padding: 0; display: grid; gap: 12px; counter-reset: n; }
.notes li { position: relative; padding-left: 38px; counter-increment: n; transition: color .4s, opacity .4s; }
.notes li::before {
  content: counter(n); position: absolute; left: 0; top: .1em;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 400 0.8125rem/1 var(--mono); color: var(--on-signal); background: var(--signal);
  transition: transform .4s var(--ease), background-color .4s;
}
.measure { margin: calc(var(--u) * 3) 0 0; display: grid; gap: 6px; padding: 14px 16px; background: var(--panel); border-radius: var(--radius); max-width: 26rem; }
.measure div { display: flex; justify-content: space-between; gap: 16px; font-size: var(--t-small); }
.measure dt { color: var(--ink-2); }
.measure dd { margin: 0; font-family: var(--mono); white-space: nowrap; }
.measure s { color: var(--ink-2); text-decoration-color: var(--mark); }
.measure b { font-weight: 400; color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: calc(var(--u) * 2); font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.link:hover { color: #fff; }
.ext { width: 1em; height: 1em; }

.scene__stage { position: relative; perspective: 1400px; }
.browser {
  display: none;
  border-radius: 12px; overflow: hidden;
  background: #050506;
  box-shadow: 0 50px 120px -40px rgb(0 0 0 / .95), 0 0 0 1px rgb(255 255 255 / .08);
  transform-origin: 50% 100%;
}
.browser__bar { height: 36px; display: flex; align-items: center; justify-content: center; background: #1a1c1f; border-bottom: 1px solid #000; }
.browser__url { font: 400 0.75rem/1 var(--mono); color: var(--ink-2); padding: 6px 14px; background: #0e0f11; border-radius: 999px; }
.browser__view { aspect-ratio: 16 / 10; overflow: hidden; }
.browser__view img, .phone__view img { width: 100%; }

.phone {
  position: relative;
  width: min(74%, 300px); margin-inline: auto;
  padding: 7px; background: #050506; border-radius: 34px;
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .95), 0 0 0 1px rgb(255 255 255 / .12);
}
.phone__view { aspect-ratio: 640 / 1385; border-radius: 27px; overflow: hidden; }

@media (min-width: 900px) {
  .scene__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--u) * 7); align-items: center; padding-block: 72px 120px; }
  .scene--flip .scene__stage { order: -1; }
  .scene--flip .scene__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .scene__title { font-size: clamp(2.75rem, 4.1vw, 4.25rem); }
  .browser { display: block; }
  .phone { position: absolute; width: 21%; right: -2%; bottom: -8%; margin: 0; border-radius: 28px; padding: 6px; }
  .phone__view { border-radius: 22px; }
  .scene--flip .phone { right: auto; left: -2%; }
}

/* ---------- how (signal band) ---------- */
.how { background: var(--signal); color: var(--on-signal); padding-block: calc(var(--u) * 14); }
.how ::selection { background: var(--on-signal); color: var(--signal); }
.how__line { display: inline-block; }
.how__title { max-width: 11ch; }
.how__lede { margin-top: calc(var(--u) * 4); font-size: var(--t-lead); line-height: 1.45; max-width: 32rem; }
.how__steps { list-style: none; margin: calc(var(--u) * 9) 0 0; padding: 0; counter-reset: s; display: grid; gap: calc(var(--u) * 5); }
.how__steps li { counter-increment: s; border-top: 1px solid rgb(22 11 8 / .25); padding-top: 18px; }
.how__steps li::before { content: counter(s); display: block; font: 700 3.5rem/1 var(--sans); letter-spacing: -0.04em; margin-bottom: 14px; }
.how__steps p { margin-top: 6px; color: var(--on-signal-2); }
@media (min-width: 720px) { .how__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .how__steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- prices ---------- */
.prices { padding-block: calc(var(--u) * 16) calc(var(--u) * 8); }
.prices__big { display: grid; gap: calc(var(--u) * 5); margin-top: calc(var(--u) * 7); }
.tag { border-top: 1px solid var(--line); padding-top: calc(var(--u) * 3); }
.tag__sum { font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem); line-height: 1; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag__sum--free { color: var(--signal-text); }
.tag__from { font-size: .4em; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); vertical-align: .3em; }
.tag__what { margin-top: 14px; font-size: var(--t-lead); color: var(--ink-2); }
.prices__grid { display: grid; gap: calc(var(--u) * 5); margin-top: calc(var(--u) * 9); }
.pricelist__sub { color: var(--ink-2); margin-top: 4px; }
.pricelist dl { margin: calc(var(--u) * 2) 0 0; }
.row { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:first-child { border-top: 1px solid var(--line); }
.row dt { flex: 1 1 auto; min-width: 0; }
.row dd { margin: 0; flex: none; color: var(--ink-2); white-space: nowrap; }
.prices__note { margin-top: calc(var(--u) * 3); color: var(--ink-2); max-width: 40rem; }
@media (min-width: 900px) { .prices__big, .prices__grid { grid-template-columns: 1fr 1fr; column-gap: calc(var(--u) * 8); } }

/* ---------- faq ---------- */
.faq { padding-block: calc(var(--u) * 6) calc(var(--u) * 14); }
.faq__list { margin-top: calc(var(--u) * 4); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; font-size: 1.1875rem; font-weight: 500; transition: color .2s; }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding: 0 0 22px; max-width: 40rem; }

/* ---------- final ---------- */
.final { background: var(--panel); padding-block: calc(var(--u) * 14); }
.final__title { max-width: 12ch; font-size: clamp(3rem, 1rem + 8vw, 8.5rem); }
.final__row { display: grid; gap: calc(var(--u) * 4); margin-top: calc(var(--u) * 6); }
.final .section-lede { margin-top: 0; }
@media (min-width: 900px) {
  .final__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: calc(var(--u) * 8); align-items: end; }
  .final__row { margin-top: 0; }
  .final__title { max-width: none; font-size: min(6vw, 7.5rem); }
}

/* ---------- footer ---------- */
.foot { background: var(--panel); border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 32px; font-size: var(--t-small); color: var(--ink-2); }
.foot a { color: var(--ink); }

/* ---------- motion helpers ---------- */
.motion:not(.ready) .name, .motion:not(.ready) [data-rise] { visibility: hidden; }
.works, .prices, .how, .final { overflow-x: clip; }

/* ---------- ask: kind toggle + wishes ---------- */
.kind { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kind legend { padding: 0; margin-bottom: 8px; width: 100%; }
.kind__opt { position: relative; cursor: pointer; }
.kind__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind__opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--t-small); font-weight: 500; color: var(--ink-2);
  transition: background-color .25s, color .25s, border-color .25s;
}
.kind__opt:hover span { border-color: var(--mark); color: var(--ink); }
.kind__opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.kind__opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }

.wish { margin-top: 12px; }
.wish summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  font-size: var(--t-small); font-weight: 500; color: var(--ink);
}
.wish summary::-webkit-details-marker { display: none; }
.wish summary::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  border: 1px solid var(--mark); border-radius: 50%;
  transition: transform .3s var(--ease);
}
.wish[open] summary::before { transform: rotate(45deg); }
.wish summary:hover { color: #fff; }
.wish .ask__label { margin-top: 6px; }
.ask__area { min-height: 96px; padding: 14px 18px; border-radius: 18px; resize: vertical; line-height: 1.5; font-family: var(--sans); }
.ask__note q { white-space: pre-line; }
@media (min-width: 900px) { .prices__big { grid-template-columns: 1fr; } .tag__what { max-width: 36rem; } }
