@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-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: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-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; }
:root {
  --bg: #09090b; --s1: #101013; --s2: #16161a; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16);
  --text: #fafafa; --muted: #8e909c; --soft: #c9cad3; --accent: #c6ff4d; --on-accent: #0a0a0c;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 16px/1.6 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- nav ---------- */
header.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; font-size: 1.1rem; }
.brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; }
.brand i::after { content: ""; position: absolute; inset: 6px; border-radius: 2px; background: var(--bg); }
nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; color: var(--muted); font-weight: 500; }
nav a:hover { color: var(--text); }
nav a.pill { color: var(--text); border: 1px solid var(--line2); padding: 8px 18px; border-radius: 99px; transition: .15s; }
nav a.pill:hover { background: var(--text); color: var(--bg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 92px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: -76px -50vw 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 25%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 25%, #000 20%, transparent 75%);
}
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 { font-size: clamp(3rem, 9.4vw, 7.6rem); font-weight: 800; margin-top: 26px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 560px; margin: 28px 0 0; color: var(--soft); font-size: 1.2rem; line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 14px; font-weight: 700; background: var(--accent); color: var(--on-accent); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.ghost:hover { background: var(--s2); box-shadow: none; }
.btn.off { background: var(--s1); color: var(--muted); border: 1px dashed var(--line2); cursor: default; }
.btn.off:hover { transform: none; box-shadow: none; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.count { font-family: var(--mono); color: var(--muted); font-size: .85rem; }

/* ---------- bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.tile {
  position: relative; overflow: hidden; background: var(--s1); border: 1px solid var(--line); border-radius: 28px; min-height: 420px; padding: 30px;
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-4px); }
.tile.a { grid-column: span 7; } .tile.b { grid-column: span 5; }
.tile .top { display: flex; align-items: center; gap: 14px; }
.tile .top img { width: 56px; height: 56px; border-radius: 15px; }
.tile h3 { font-size: 1.7rem; margin-top: 22px; }
.tile p { margin: 10px 0 0; color: var(--soft); max-width: min(380px, 50%); font-size: .98rem; }
.tile h3 { max-width: 52%; }
/* текст карточки всегда над скриншотом телефона */
.tile .top, .tile h3, .tile p { position: relative; z-index: 2; }
.tile .meta { margin-top: auto; padding-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.chip { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line2); color: var(--soft); background: rgba(9,9,11,.6); }
.chip.live { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.tile .arrow { position: absolute; right: 26px; top: 28px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 1.1rem; transition: .2s; }
.tile:hover .arrow { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(45deg); }
.tile .shot { position: absolute; right: 36px; bottom: -64px; width: 210px; transition: transform .3s; z-index: 1; }
.tile.a .shot { right: 60px; width: 240px; }
.tile:hover .shot { transform: translateY(-12px); }
.phone { border: 1px solid var(--line2); background: #000; padding: 6px; border-radius: 30px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }

/* ---------- principles ---------- */
.trio { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.trio div { border-top: 1px solid var(--line2); padding-top: 20px; }
.trio b { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .1em; }
.trio h3 { font-size: 1.35rem; margin: 10px 0 8px; letter-spacing: -.02em; }
.trio p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- contact block ---------- */
.contact { background: var(--accent); color: var(--on-accent); border-radius: 32px; padding: 54px 44px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.contact h2 { max-width: 560px; }
.contact a.mail { font-weight: 800; font-size: clamp(1.1rem, 2.6vw, 1.7rem); letter-spacing: -.02em; border-bottom: 2px solid var(--on-accent); padding-bottom: 2px; }

/* ---------- app page ---------- */
.crumb { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
.crumb:hover { color: var(--text); }
.app-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0 30px; }
.app-hero .ico { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.app-hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; margin-top: 26px; }
.app-hero .tagline { font-family: var(--mono); color: var(--accent); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 16px; }
.app-hero .lead { color: var(--soft); font-size: 1.15rem; max-width: 520px; margin: 18px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stage { position: relative; height: 560px; }
.stage .phone { position: absolute; width: 250px; }
.stage .p1 { right: 70px; top: 10px; z-index: 2; transform: rotate(3deg); }
.stage .p2 { right: 250px; top: 70px; width: 220px; transform: rotate(-5deg); opacity: .9; }
.stage .p1:only-child { right: 90px; }
.stage .land { width: 100%; max-width: 460px; right: 0; top: 80px; transform: none; }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 22px; scroll-snap-type: x mandatory; align-items: flex-start; scrollbar-width: thin; scrollbar-color: #2a2a31 transparent; }
.shots .phone { flex: none; scroll-snap-align: start; padding: 5px; border-radius: 26px; }
.shots .phone img { height: 400px; width: auto; border-radius: 21px; }
.feat { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.feat div { background: var(--s1); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.feat b { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .1em; }
.feat h3 { font-size: 1.4rem; margin: 12px 0 8px; letter-spacing: -.02em; }
.feat p { margin: 0; color: var(--muted); }
.support { background: var(--s1); border: 1px solid var(--line); border-radius: 28px; padding: 36px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.support h3 { font-size: 1.6rem; } .support p { margin: 6px 0 0; color: var(--muted); }
.support .cta { margin: 0; }

/* ---------- policy page ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 26px 0 8px; }
.prose h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 34px 0 8px; }
.prose p, .prose li { color: var(--soft); } .prose p { margin: 0 0 14px; } .prose ul { padding-left: 22px; margin: 0 0 14px; } .prose li { margin: 4px 0; }
.prose a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.langs { margin: 18px 0 14px; }
.langs select {
  font: inherit; font-size: .95rem; font-weight: 600; padding: 11px 42px 11px 16px; border-radius: 12px; border: 1px solid var(--line2); color: var(--text);
  background: var(--s2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238e909c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  -webkit-appearance: none; appearance: none; cursor: pointer; min-width: 190px;
}
.langs select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.langs select option { background: #16161a; color: var(--text); }

/* ---------- footer ---------- */
footer { margin-top: 70px; padding: 34px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 22px; } footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .tile.a, .tile.b { grid-column: span 12; min-height: 400px; }
  .tile p { max-width: min(380px, 52%); }
  .trio, .feat { grid-template-columns: 1fr; }
  .app-hero { grid-template-columns: 1fr; } .stage { height: 500px; }
  .stage .p1 { right: 20px; } .stage .p2 { right: 190px; }
  nav a:not(.pill) { display: none; }
  .hero { padding: 56px 0 50px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; } .tile { padding: 24px; border-radius: 24px; } .contact { padding: 34px 26px; border-radius: 26px; }
  .tile .shot, .tile.a .shot { width: 150px; right: 16px; } .tile p, .tile h3 { max-width: 56%; } .shots .phone img { height: 340px; }
  .stage .p2 { display: none; } .stage .p1 { right: 50%; margin-right: -125px; transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Текст и метки карточки не заходят под скриншот телефона: справа резервируется место под телефон,
   а его ширина и отступ считаются от ширины карточки (проценты одной и той же базы) */
.tile { --shw: clamp(130px, 40%, 210px); --shr: clamp(12px, 5%, 36px); padding-right: calc(var(--shr) + var(--shw) + 16px); }
.tile.a { --shw: clamp(140px, 40%, 240px); --shr: clamp(14px, 6%, 60px); }
.tile .shot, .tile.a .shot { width: var(--shw); right: var(--shr); }
.tile h3, .tile .meta { max-width: none; }
.tile p { max-width: 380px; }

/* tall phone screenshots are cropped so they never cover the arrow */
.tile .shot img { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
