/* Lestro — сайт. Шрифты: Onest, Cormorant Garamond Italic, JetBrains Mono (OFL, лежат рядом). */
@font-face { font-family: Onest; src: url(fonts/onest-latin-wght-normal.woff2) format("woff2"); font-weight: 100 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: Onest; src: url(fonts/onest-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Cormorant; src: url(fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); font-weight: 600; font-style: italic; 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: Cormorant; src: url(fonts/cormorant-garamond-cyrillic-600-italic.woff2) format("woff2"); font-weight: 600; font-style: italic; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: JBMono; src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 800; 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: JBMono; src: url(fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --card: #fbfaf7;
  --ink: #0d1512;
  --ink-2: #2b3631;
  --muted: #66726c;
  --line: #dbd7cb;
  --accent: #0f9a5f;
  --mint: #3ddc97;
  --teal: #0e7490;
  --ruby: #e5466b;
  --warn-bg: #fbeee4;
  --warn-ink: #8a3b14;
  /* Окно приложения — всегда тёмное, как в Lestro */
  --app-bg: #0f1113;
  --app-surface: #171a1d;
  --app-line: #252a2f;
  --app-text: #eceff1;
  --app-muted: #8b949b;
  --sans: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: Cormorant, Georgia, serif;
  --mono: JBMono, ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c110f;
    --paper-2: #121916;
    --card: #141b18;
    --ink: #edf1ee;
    --ink-2: #c9d1cc;
    --muted: #8e9a94;
    --line: #25302b;
    --accent: #3ddc97;
    --warn-bg: #2a1c12;
    --warn-ink: #f2b48a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.035em; margin: 0; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); font-size: 1.12em; line-height: 0.8; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); font-size: 14px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }

/* Появление при прокрутке */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.logo .bird { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--accent); }
.langs { display: flex; gap: 2px; margin-left: auto; font: 600 12px var(--mono); }
.langs a { text-decoration: none; color: var(--muted); padding: 6px 8px; border-radius: 8px; }
.langs a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.pill { text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap; }

/* Первый экран */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.eyebrow a { text-decoration: none; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); line-height: 0.98; margin-bottom: 26px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 34px; max-width: 31em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); animation: pulse 2.4s infinite; }
.btn-light { background: var(--paper); color: var(--ink); cursor: default; }
.btn-light:hover { transform: none; }
.link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 40px 0 0; font-size: 13px; color: var(--muted); }
.facts li::before { content: "✓ "; color: var(--accent); }

.hero-art { position: relative; padding: 40px 0 40px 30px; }
.hero-art .bird.b-hover { position: absolute; z-index: 3; width: 120px; height: 120px; left: -34px; top: -6px; animation: hover 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(14, 116, 144, .25)); }

/* Окно приложения */
.window { position: relative; background: var(--app-bg); color: var(--app-text); border-radius: 16px; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(13, 21, 18, .45), 0 0 0 1px rgba(13, 21, 18, .12); font-size: 14px; max-width: 520px; margin-left: auto; }
.chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--app-line); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f44; }
.chrome i:nth-child(1) { background: #ff5f57; } .chrome i:nth-child(2) { background: #febc2e; } .chrome i:nth-child(3) { background: #28c840; }
.chrome span { margin: 0 auto; padding-right: 50px; color: var(--app-muted); font-size: 12px; font-weight: 600; }
.app { padding: 18px 20px 20px; }
.app-head { display: flex; justify-content: space-between; align-items: center; color: var(--app-muted); font-size: 13px; }
.wallet { display: flex; align-items: center; gap: 6px; color: var(--app-text); font-weight: 600; }
.wallet .bird { width: 20px; height: 20px; }
.wallet em { font-style: normal; color: var(--app-muted); font-size: 10px; }
.total { padding: 16px 0 14px; }
.total small { display: block; color: var(--app-muted); font-size: 12px; }
.total b { display: block; font-size: 34px; letter-spacing: -0.03em; line-height: 1.2; font-weight: 650; }
.up { color: var(--mint); font-size: 12px; font-weight: 600; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.acts span { text-align: center; padding: 10px; border-radius: 10px; background: var(--app-surface); font-weight: 600; font-size: 13px; }
.acts .a-send { background: var(--mint); color: #062316; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--app-line); }
.r-name, .r-val { display: flex; flex-direction: column; line-height: 1.3; }
.r-val { margin-left: auto; text-align: right; }
.rows small { color: var(--app-muted); font-size: 12px; }
.toast { position: absolute; z-index: 4; left: -40px; bottom: 58px; display: flex; gap: 12px; align-items: center; background: var(--card); color: var(--ink); padding: 12px 18px 12px 12px; border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(13, 21, 18, .35), 0 0 0 1px var(--line); animation: toast 6s 1.2s both infinite; }
.toast .ok { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: #062316; font-weight: 800; }
.toast b { display: block; font-size: 14px; } .toast small { color: var(--muted); font-size: 12px; }
.chip { position: absolute; z-index: 4; right: -16px; top: 70px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: 13px; font-weight: 600; box-shadow: 0 14px 30px -14px rgba(13, 21, 18, .45); }
.chip svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }

/* Колибри: крылья машут, птица парит */
.bird .echo { opacity: .2; }
.bird.b-hover .e1, .bird.b-logo .e1 { animation: flap .26s steps(2, jump-none) infinite; }
.bird.b-hover .e2, .bird.b-logo .e2 { animation: flap .26s .13s steps(2, jump-none) infinite; }
.bird.b-logo .e1, .bird.b-logo .e2 { animation-play-state: paused; }
.logo:hover .bird .e1, .logo:hover .bird .e2 { animation-play-state: running; }

/* Лента монет */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper-2); padding: 16px 0; }
.tk-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.tk { display: flex; align-items: center; gap: 10px; padding: 0 30px; white-space: nowrap; font-size: 16px; }
.tk small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.tk::after { content: "✦"; color: var(--line); margin-left: 30px; }

/* Секции */
section { padding: 112px 0; }
.s-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 52px; }
.s-head h2, .sec-side h2, .dl h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; }
.s-head p { margin: 0; color: var(--muted); max-width: 26em; font-size: 18px; }

/* Как это выглядит */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; }
.step .n { font-size: 12px; color: var(--muted); }
.step h3 { font-size: 26px; margin: 6px 0 18px; }
.step p { color: var(--ink-2); margin: 18px 0 0; font-size: 16px; }
.step:nth-child(2) { transition-delay: .08s; } .step:nth-child(3) { transition-delay: .16s; }
.mini { background: var(--app-bg); color: var(--app-text); border-radius: 14px; padding: 16px; font-size: 13px; flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 290px; }
.field { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--app-surface); border-radius: 10px; padding: 10px 12px; }
.field small { color: var(--app-muted); }
.field span { display: flex; align-items: center; gap: 6px; }
.field.big b { font-size: 22px; letter-spacing: -0.02em; }
.mini-btn { margin-top: auto; text-align: center; padding: 11px; border-radius: 10px; background: var(--mint); color: #062316; font-weight: 700; }
.mini .mono { font-size: 12px; }
.recv { align-items: center; text-align: center; }
.recv small { color: var(--app-muted); margin-top: -6px; }
.recv .qr { background: #fff; padding: 9px; border-radius: 12px; margin: 6px 0 2px; width: 132px; height: 132px; }
.warn-s { color: #f3d48b; background: #2a2212; border-radius: 8px; padding: 4px 10px; font-size: 12px; }
.hist b { display: flex; align-items: center; gap: 8px; }
.hist ul { list-style: none; margin: 4px 0 0; padding: 0; }
.hist li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--app-line); }
.hist li span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; }
.hist li small { color: var(--app-muted); font-size: 11px; }
.hist li b { margin-left: auto; }
.hist .in b { color: var(--mint); }
.dir { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--app-surface); color: var(--app-muted); }

/* Чего нет */
.nope { background: var(--paper-2); border-block: 1px solid var(--line); }
.nope-list { list-style: none; margin: 0; padding: 0; }
.nope-list li { border-top: 1px solid var(--line); padding: 18px 0; font-size: clamp(26px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.nope-list li:last-child { border-bottom: 1px solid var(--line); }
.nope-list span { position: relative; display: inline; background-image: linear-gradient(var(--ruby), var(--ruby)); background-repeat: no-repeat; background-position: 0 58%; background-size: 0% 3px; transition: background-size .9s .25s cubic-bezier(.6, 0, .2, 1); }
.nope-list .in span, html:not(.js) .nope-list span { background-size: 100% 3px; }

/* Под капотом */
.sec .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.sec-side { position: sticky; top: 100px; }
.sec-side > p { color: var(--muted); font-size: 18px; margin: 20px 0 28px; }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 16px; padding: 18px 20px; font-weight: 500; margin: 0; }
.spec { margin: 0; }
.spec-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 4px; }
.spec dd { margin: 0; font-size: 18px; color: var(--ink); }

/* Мелочи */
.details { padding-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: var(--card); min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile b { font-size: 44px; font-weight: 650; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 18em; }
.tile:nth-child(3n+2) { transition-delay: .06s; } .tile:nth-child(3n) { transition-delay: .12s; }

/* Скачать */
.dl { padding-top: 0; }
.dl-card { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; background: #0f1a16; color: #edf1ee; border: 1px solid #22312a; border-radius: 30px; padding: 56px; }
.dl-card img { width: 120px; height: 120px; }
.dl-card h2 em { color: var(--mint); }
.dl-card p { color: #b9c4be; font-size: 18px; margin: 18px 0 14px; max-width: 34em; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 8px; }
.checks li::before { content: "✓"; color: var(--mint); font-weight: 700; margin-right: 10px; }
.dl-card .dim { color: #8e9a94; }
.dl-card .btn-light { background: #edf1ee; color: #0d1512; }

/* Вопросы */
.faq { padding-top: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 1; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 26px; color: var(--ink-2); max-width: 46em; font-size: 17px; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 48px 0 28px; overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot-tag { margin: 0; font-size: 18px; max-width: 22em; }
.foot-links { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
.foot-links a { text-decoration: none; } .foot-links a:hover { color: var(--accent); }
.wordmark { font-weight: 700; letter-spacing: -0.06em; font-size: clamp(90px, 21vw, 300px); line-height: .85; color: var(--paper-2); margin: 36px 0 18px; -webkit-text-stroke: 1px var(--line); user-select: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); font-family: var(--mono); }

/* Документы (конфиденциальность, 404) */
.doc { padding: 64px 0 112px; }
.doc h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin-bottom: 32px; }
.doc p { font-size: 18px; color: var(--ink-2); }
.doc .bird.b-hover { width: 110px; height: 110px; margin-bottom: 20px; animation: hover 3.2s ease-in-out infinite; }
.doc h1 + .lead { margin-bottom: 48px; }

@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes flap { 0% { opacity: .08; } 100% { opacity: .55; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 30%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--mint) 0%, transparent); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(14px) scale(.98); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .toast { opacity: 1; }
}

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { padding: 30px 10px 40px 10px; }
  .window { margin: 0 auto; }
  .hero-art .bird.b-hover { left: 0; top: -10px; width: 90px; height: 90px; }
  .steps, .tiles { grid-template-columns: 1fr 1fr; }
  .sec .wrap { grid-template-columns: 1fr; gap: 40px; }
  .sec-side { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav, .pill { display: none; }
  .top .wrap { height: 60px; }
  .hero { padding: 28px 0 40px; }
  .lead { font-size: 17px; }
  .toast { left: -4px; bottom: 26px; padding: 10px 14px 10px 10px; }
  .chip { right: -4px; top: 50px; }
  .total b { font-size: 28px; }
  section { padding: 80px 0; }
  .steps, .tiles { grid-template-columns: 1fr; }
  .mini { min-height: 0; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
  .dl-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .dl-card img { width: 84px; height: 84px; }
  .s-head { margin-bottom: 36px; }
}
