/* Hopper — сайт в стиле продуктовых страниц Apple */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", system-ui, "Inter", "Roboto", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --blue: #0071e3; --blue-hover: #0077ed; --link: #0066cc;
  --green: #30d158; --orange: #ff9f0a; --red: #ff3b30;
  --bg: #f5f5f7; --bg-2: #fbfbfd; --surface: #fff;
  --text: #1d1d1f; --text-2: #6e6e73; --text-3: #86868b; --sep: rgba(0, 0, 0, .1);
  --fill: rgba(0, 0, 0, .05); --fill-2: rgba(0, 0, 0, .08);
  --shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 34px rgba(0, 0, 0, .06);
  --r: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg-2: #0b0b0d; --surface: #161618; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
    --sep: rgba(255, 255, 255, .12); --fill: rgba(255, 255, 255, .07); --fill-2: rgba(255, 255, 255, .12);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06); --link: #2997ff;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -.022em; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 20px; height: auto; flex: none; }
img { max-width: 100%; height: auto; display: block; }
.backdrop { display: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Навигация ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 251, 253, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--sep); }
@media (prefers-color-scheme: dark) { .nav { background: rgba(22, 22, 23, .8); } }
.nav.on-dark { background: rgba(22, 22, 23, .8); border-color: rgba(255, 255, 255, .1); }
.nav.on-dark .brand, .nav.on-dark .nav-links a { color: #f5f5f7; }
.nav.on-dark .btn:not(.btn-primary) { background: rgba(255, 255, 255, .14); color: #f5f5f7; }
.nav.on-dark .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .22); }
.nav-in { max-width: 1080px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; }
.nav-links a { color: var(--text); font-size: 13px; opacity: .85; letter-spacing: -.01em; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.spacer { flex: 1; }

/* ---------- Кнопки ---------- */
.btn { -webkit-appearance: none; appearance: none; border: 0; font: inherit; font-size: 17px; font-weight: 400; letter-spacing: -.02em; padding: 11px 22px; border-radius: 980px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background .2s, color .2s, transform .15s; color: var(--text); background: var(--fill); }
.btn:hover { text-decoration: none; background: var(--fill-2); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-tinted { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn-tinted:hover { background: var(--link); color: #fff; }
.btn-gray { background: var(--fill); }
.btn-danger { background: rgba(255, 59, 48, .1); color: var(--red); }
.btn-danger:hover { background: rgba(255, 59, 48, .16); }
.btn-sm { font-size: 14px; padding: 6px 15px; }
.btn-lg { font-size: 17px; padding: 14px 28px; }
.btn[disabled], .btn[aria-disabled] { opacity: .4; pointer-events: none; }
.more { font-size: 19px; color: var(--link); }
.more::after { content: " ›"; }

/* ---------- Первый экран ---------- */
.hero { background: #000; color: #f5f5f7; text-align: center; padding: 84px 0 0; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; left: 50%; top: 58%; width: 1100px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(94, 92, 230, .45), rgba(10, 132, 255, .18) 55%, transparent 75%); pointer-events: none; }
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: .01em; background: linear-gradient(90deg, #5ac8fa, #a78bfa 50%, #ff7ad9); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; margin-bottom: 10px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; margin: 0 auto; max-width: 960px; }
.hero .lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; color: #a1a1a6; max-width: 700px; margin: 20px auto 30px; letter-spacing: -.015em; }
.hero .lead b { color: #f5f5f7; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .note { font-size: 14px; color: #86868b; margin-top: 16px; position: relative; z-index: 1; }

/* Два iPhone и поток данных */
.stage { position: relative; height: 540px; margin: 50px auto 0; max-width: 900px; }
.iphone { position: absolute; bottom: -90px; width: 250px; height: 520px; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #3a3a3c, #1c1c1e 40%, #2c2c2e); box-shadow: 0 0 0 1.5px #48484a inset, 0 30px 80px rgba(0, 0, 0, .6); }
.iphone.old { left: 70px; transform: rotate(-7deg); }
.iphone.new { right: 70px; transform: rotate(7deg); background: linear-gradient(145deg, #c9c3b8, #8f8a82 45%, #d8d2c7); box-shadow: 0 0 0 1.5px #b9b3a8 inset, 0 30px 80px rgba(0, 0, 0, .6); }
.iphone .scr { position: relative; height: 100%; border-radius: 42px; overflow: hidden; padding: 58px 18px 0; background: linear-gradient(160deg, #1e3a8a, #6d28d9 55%, #db2777); }
.iphone.new .scr { background: linear-gradient(160deg, #0e7490, #2563eb 50%, #7c3aed); }
.iphone .island { position: absolute; top: 14px; left: 50%; width: 86px; height: 26px; margin-left: -43px; background: #000; border-radius: 20px; z-index: 2; }
.iphone .time { position: absolute; top: 16px; left: 30px; font-size: 14px; font-weight: 600; color: #fff; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
.apps i { aspect-ratio: 1; border-radius: 13px; display: block; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
@media (prefers-reduced-motion: no-preference) { .iphone.new .apps i { opacity: 0; transform: scale(.6); animation: land 7s infinite; } }
@keyframes land { 0%, 8% { opacity: 0; transform: scale(.6); } 18%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.6); } }
@media (prefers-reduced-motion: no-preference) { .iphone.old .apps i { animation: leave 7s infinite; } }
@keyframes leave { 0%, 6% { opacity: 1; } 14% { opacity: .35; } 88% { opacity: .35; } 100% { opacity: 1; } }
.dock { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 76px; border-radius: 30px; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px 16px; }
.dock i { border-radius: 13px; display: block; }
.flow { position: absolute; left: 50%; top: 120px; width: 300px; height: 160px; margin-left: -150px; }
.flow path { fill: none; stroke: url(#flowgrad); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.flow-dot { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; offset-path: path("M 10 140 C 80 -30, 220 -30, 290 140"); offset-rotate: 0deg; animation: travel 3.5s cubic-bezier(.45, .05, .35, 1) infinite; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); opacity: 0; }
.flow-dot:nth-child(3) { animation-delay: 1.15s; }
.flow-dot:nth-child(4) { animation-delay: 2.3s; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; transform: scale(.7); } 12% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; transform: scale(.7); } }
.cable { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 14px; color: #a1a1a6; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); padding: 8px 16px; border-radius: 980px; border: 1px solid rgba(255, 255, 255, .12); z-index: 3; }
.c1 { background: linear-gradient(145deg, #5ac8fa, #0a84ff); } .c2 { background: linear-gradient(145deg, #34c759, #248a3d); }
.c3 { background: linear-gradient(145deg, #ffd60a, #ff9f0a); } .c4 { background: linear-gradient(145deg, #ff6482, #ff2d55); }
.c5 { background: linear-gradient(145deg, #bf5af2, #8944ab); } .c6 { background: linear-gradient(145deg, #f2f2f7, #c7c7cc); }
.c7 { background: linear-gradient(145deg, #30d5c8, #0a9396); } .c8 { background: linear-gradient(145deg, #ff9f0a, #ff3b30); }
.c9 { background: linear-gradient(145deg, #64d2ff, #5e5ce6); } .c10 { background: linear-gradient(145deg, #25d366, #128c7e); }
.c11 { background: linear-gradient(145deg, #2aabee, #229ed9); } .c12 { background: linear-gradient(145deg, #21a038, #0f7b2e); }

/* ---------- Секции ---------- */
section { padding: 110px 0; }
section.alt { background: var(--bg-2); }
section.dark { background: #000; color: #f5f5f7; }
section.dark .section-sub, section.dark .muted { color: #a1a1a6; }
.section-title { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -.035em; font-weight: 700; margin: 0 0 14px; text-align: center; }
.section-sub { font-size: clamp(19px, 2vw, 21px); line-height: 1.4; color: var(--text-2); max-width: 680px; margin: 0 auto 56px; text-align: center; letter-spacing: -.015em; }
.grad-text { background: linear-gradient(90deg, #0a84ff, #5e5ce6 50%, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Бенто-сетка */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { background: var(--surface); border-radius: var(--r); padding: 34px; box-shadow: var(--shadow); overflow: hidden; position: relative; min-height: 300px; display: flex; flex-direction: column; }
.tile.w2 { grid-column: span 2; } .tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; }
.tile .kicker { font-size: 17px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.tile h3 { font-size: 30px; line-height: 1.12; letter-spacing: -.03em; margin: 0; font-weight: 700; }
.tile p { color: var(--text-2); margin: 12px 0 0; }
.tile .vis { margin-top: auto; padding-top: 26px; }
.tile.black { background: #000; color: #f5f5f7; }
.tile.black p, .tile.black .kicker { color: #a1a1a6; }
.photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.photos i { aspect-ratio: 1; border-radius: 8px; display: block; }
.p1 { background: linear-gradient(135deg, #ffb347, #ff6961); } .p2 { background: linear-gradient(135deg, #6ec6ff, #2a7fff); } .p3 { background: linear-gradient(135deg, #b8f2a8, #3aa76d); }
.p4 { background: linear-gradient(135deg, #f7d7ff, #b16cea); } .p5 { background: linear-gradient(135deg, #ffe29a, #ffa94d); } .p6 { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.bubbles { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 20px; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.bubble.in { background: var(--fill-2); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.out { background: #0a84ff; color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble.wa { background: #dcf8c6; color: #111; }
.bubble.tg { background: #2aabee; color: #fff; }
.applist { display: grid; gap: 10px; }
.app-row { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 16px; padding: 10px 12px; }
.tile.black .app-row { background: #1c1c1e; }
.app-row i { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.app-row b { font-size: 15px; font-weight: 600; flex: 1; }
.app-row span { font-size: 13px; font-weight: 600; color: #fff; background: #0a84ff; padding: 5px 12px; border-radius: 980px; }
.app-row span.done { background: transparent; color: var(--green); padding: 5px 0; }
.big-num { font-size: clamp(56px, 8vw, 88px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.hash { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text-2); word-break: break-all; }
.hash b { color: var(--green); font-weight: 600; }

/* Чередующиеся блоки со скриншотами */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature.rev { grid-template-columns: 1.25fr 1fr; }
.feature.rev .feature-text { order: 2; }
.feature h3 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 16px; }
.feature p { font-size: 19px; color: var(--text-2); margin: 0 0 16px; }
.feature .tag { font-size: 14px; font-weight: 600; color: var(--blue); text-transform: none; margin-bottom: 10px; display: block; }
.window { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .18), 0 0 0 1px var(--sep); background: var(--surface); }
.window-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--fill); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window img.dark-only { display: none; }
@media (prefers-color-scheme: dark) { .window img.light-only { display: none; } .window img.dark-only { display: block; } }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.ticks li { display: flex; gap: 10px; color: var(--text-2); font-size: 17px; }
ul.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Полоса фактов */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.fact b { display: block; font-size: clamp(40px, 5vw, 56px); letter-spacing: -.04em; line-height: 1.05; }
.fact span { color: #a1a1a6; font-size: 17px; }

/* Цены */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { background: var(--surface); border-radius: var(--r); padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); position: relative; }
.price.best { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.price .badge { position: absolute; top: -13px; left: 32px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 980px; background: var(--blue); color: #fff; letter-spacing: 0; }
.price h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.price .sum { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.price .sum small { font-size: 17px; font-weight: 400; color: var(--text-2); letter-spacing: -.01em; }
.price .old { color: var(--text-3); text-decoration: line-through; font-size: 15px; margin-top: -8px; }
.price .btn { margin-top: auto; }
.price ul.ticks li { font-size: 15px; }

/* Скачать */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl { background: var(--surface); border-radius: var(--r); padding: 34px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; box-shadow: var(--shadow); }
.dl svg { width: 44px; height: 44px; color: var(--text); margin-bottom: 8px; }
.dl h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.dl .meta { color: var(--text-2); font-size: 14px; }
.dl .btn { margin-top: auto; }
.dl .ver { margin-bottom: 18px; }

/* Сценарии (текст для поиска) */
.scenarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 46px 64px; }
.scenarios h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 8px; }
.scenarios p { margin: 0; color: var(--text-2); font-size: 17px; }

/* Вопросы */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--sep); }
.faq details { border-bottom: 1px solid var(--sep); }
.faq summary { cursor: pointer; padding: 24px 4px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 14px; }
.faq details p { margin: 0; padding: 0 4px 26px; color: var(--text-2); font-size: 17px; max-width: 720px; }

/* Финальный призыв */
.cta { text-align: center; }
.cta h2 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.045em; line-height: 1.05; margin: 0 0 18px; }
.cta p { font-size: 21px; color: #a1a1a6; margin: 0 0 30px; }

footer { background: var(--bg); padding: 26px 0 40px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--sep); }
footer .wrap { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--text-2); }
footer .legal-note { flex-basis: 100%; color: var(--text-3); margin-top: 6px; }

/* ---------- Служебные страницы: покупка, вход, кабинет, управление ---------- */
.page { max-width: 880px; margin: 56px auto 100px; padding: 0 22px; }
.page.narrow { max-width: 520px; }
.large-title { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 8px; }
.subtitle { color: var(--text-2); font-size: 19px; margin: 0 0 30px; }
.group-title { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .02em; margin: 32px 18px 8px; font-weight: 500; }
.glass, .box { background: var(--surface); box-shadow: var(--shadow); }
.box { border-radius: 20px; overflow: hidden; }
.box + .box { margin-top: 14px; }
.box-pad { padding: 26px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; min-height: 54px; position: relative; flex-wrap: wrap; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: 1px; background: var(--sep); }
.row .grow { flex: 1; min-width: 180px; }
.row .title { font-weight: 600; }
.row .meta { color: var(--text-2); font-size: 14px; }
.row .value { color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text-2); padding-left: 4px; letter-spacing: -.01em; }
.input { font: inherit; font-size: 17px; color: var(--text); background: var(--surface); border: 1px solid var(--sep); border-radius: 12px; padding: 13px 15px; outline: none; width: 100%; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); }
select.input { -webkit-appearance: none; appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7 6 3.5 9.5 7M2.5 11 6 14.5 9.5 11'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 10px 15px; }
textarea.input { min-height: 96px; resize: vertical; }
.code-input { font-size: 32px; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; margin: 6px 0 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 3px; }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-size: 15px; }
.alert.ok { background: rgba(48, 209, 88, .12); color: var(--text); }
.alert.err { background: rgba(255, 59, 48, .1); color: var(--text); }
.alert.info { background: rgba(0, 113, 227, .08); color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 980px; background: var(--fill); color: var(--text-2); letter-spacing: 0; }
.chip.ok { background: rgba(48, 209, 88, .14); color: #1a8a3c; }
.chip.warn { background: rgba(255, 159, 10, .16); color: #a35d00; }
.chip.err { background: rgba(255, 59, 48, .12); color: var(--red); }
@media (prefers-color-scheme: dark) { .chip.ok { color: var(--green); } .chip.warn { color: var(--orange); } }
.key { font-family: var(--mono); font-size: 15px; letter-spacing: .03em; user-select: all; }
.key-big { font-family: var(--mono); font-size: clamp(17px, 3.2vw, 24px); font-weight: 600; letter-spacing: .05em; text-align: center; padding: 22px; border-radius: 16px; background: var(--bg); user-select: all; word-break: break-all; }
.inline { display: inline; margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { border-radius: 18px; padding: 20px; background: var(--surface); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 30px; letter-spacing: -.03em; }
.stat span { color: var(--text-2); font-size: 13px; }
.tabs { display: flex; padding: 3px; border-radius: 11px; background: var(--fill-2); width: fit-content; margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { padding: 7px 18px; border-radius: 9px; color: var(--text); font-size: 14px; font-weight: 500; }
.tabs a:hover { text-decoration: none; }
.tabs a.on { background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--text-2); font-weight: 500; padding: 12px; font-size: 13px; }
table.t td { padding: 12px; border-top: 1px solid var(--sep); vertical-align: middle; }
.scroll { overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; align-items: end; }
.form-grid .field { margin: 0; }
.legal h2 { margin-top: 30px; font-size: 21px; }
.legal p, .legal li { color: var(--text-2); }
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.steps b { color: var(--text); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile.w2, .tile.w3, .tile.w4 { grid-column: auto; }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 34px; }
  .feature.rev .feature-text { order: 0; }
  .prices, .downloads, .facts, .scenarios, .stats { grid-template-columns: 1fr; }
  .stage { height: 430px; transform: scale(.78); transform-origin: top center; margin-bottom: -90px; }
  .iphone.old { left: -10px; } .iphone.new { right: -10px; }
  section { padding: 80px 0; }
}
@media (max-width: 520px) { .stage { transform: scale(.6); margin-bottom: -200px; } .flow { display: none; } }
.hero .more, section.dark .more { color: #2997ff; }

/* ---------- Мобильное меню ---------- */
.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; width: 34px; height: 34px; display: grid; align-content: center; gap: 6px; padding: 0 7px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.mnav[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
.mnav[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mnav-panel { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 52px); background: var(--bg-2); padding: 18px 30px 40px; display: flex; flex-direction: column; overflow-y: auto; animation: mnavIn .25s ease; }
.nav.on-dark .mnav-panel { background: #161617; }
.mnav-panel a { font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: var(--text); padding: 10px 0; }
.nav.on-dark .mnav-panel a, .nav.on-dark .mnav summary { color: #f5f5f7; }
.mnav-panel a:hover { text-decoration: none; opacity: .7; }
@keyframes mnavIn { from { opacity: 0; transform: translateY(-8px); } }

.window .crop { display: none; }

@media (max-width: 920px) {
  .mnav { display: block; order: 3; }
  .nav-in { gap: 10px; }
  .nav-actions { margin-left: auto; }
  .tile { min-height: 0; padding: 28px 24px; }
  .tile h3 { font-size: 26px; }
  .hash { font-size: 10.5px; }
  .hero { padding-top: 56px; }
  .hero .lead { font-size: 19px; }
  /* Первый экран: два небольших iPhone без наложения */
  .stage { height: 330px; transform: none; margin: 34px auto 0; max-width: 390px; }
  .iphone { width: 150px; height: 312px; border-radius: 34px; padding: 7px; bottom: -40px; }
  .iphone .scr { border-radius: 28px; padding: 40px 11px 0; }
  .iphone .island { width: 52px; height: 16px; margin-left: -26px; top: 10px; }
  .iphone .time { font-size: 10px; top: 11px; left: 18px; }
  .apps { gap: 9px 7px; }
  .apps i { border-radius: 8px; }
  .dock { height: 46px; border-radius: 18px; left: 7px; right: 7px; bottom: 7px; padding: 7px 10px; gap: 7px; }
  .dock i { border-radius: 8px; }
  .iphone.old { left: 18px; transform: rotate(-6deg); }
  .iphone.new { right: 18px; transform: rotate(6deg); }
  .flow { display: block; width: 120px; height: 70px; margin-left: -60px; top: 70px; }
  .flow-dot { display: none; }
  .cable { display: none; }
  /* Скриншоты: на телефоне — увеличенный фрагмент, чтобы было читаемо */
  .window img { display: none !important; }
  .window .crop { display: block; aspect-ratio: 1.15; background-size: 142% auto; background-position: 88% 3%; background-repeat: no-repeat; }
  .window .crop.light { background-image: var(--shot-light); }
  .window .crop.dark { display: none; background-image: var(--shot-dark); }
  .feature h3 { font-size: 32px; }
  .feature p, ul.ticks li { font-size: 17px; }
  .faq summary { font-size: 19px; }
  .price { padding: 30px 24px; }
  .large-title { font-size: 34px; }
  .page { margin-top: 34px; }
  .row { padding: 14px 16px; }
  .box-pad { padding: 20px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tabs a { white-space: nowrap; padding: 7px 14px; }
  table.t { font-size: 13px; }
}
@media (max-width: 920px) and (prefers-color-scheme: dark) {
  .window .crop.light { display: none; }
  .window .crop.dark { display: block; }
}
@media (max-width: 380px) {
  .nav-actions .btn-gray { display: none; }
  .iphone { width: 136px; height: 284px; }
  .iphone.old { left: 8px; } .iphone.new { right: 8px; }
}
@media (max-width: 920px) { .nav-actions .btn-gray { display: none; } }
.dl-links { display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: 14px; position: relative; z-index: 1; }
.dl-links a { color: #2997ff; }
.dl-links a::before { content: "↓ "; }
section:not(.dark):not(.hero) .dl-links a { color: var(--link); }
