/* «Завод» — выкуп техники. Стерильный лендинг в духе apple.com.
   Шрифт: системный San Francisco на устройствах Apple, Inter (локально) на остальных. */
:root {
  --bg: #ffffff;
  --paper: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-h: #0077ed;
  --link: #0066cc;
  --night: #000000;
  --night-tile: #1c1c1e;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --nav-h: 52px;
  --logo: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAABXCAQAAABBogQ/AAAT40lEQVR42u2ceZTU1ZXHP7+lqrtBaBoRERUEGpCm2emGBlnEJcTJGY2jZuJ4PFHHOERRR6OzqBMn8SQ55sQYT8bMYIzJMTqORsRkVMAYZBEaaNllbVuHFmlWocXe6vd7b/74vXr1W6taAwabVJ0DXVW/5b377v3ee7/3vp/FqfoyMDExkerzWbg4/OUFGFhY+lN3qrmdF2lgCvi+Vy/7FBSQxAVSDGEyM6lhmPp+NCujB9unoP4MYAIzmMYwuqvvXFxsJv7FuEyggoNI9XZwcNVfklrM+FNOJe2BYZyOg4NAKpjOyuE8+kYlYnYh7bCwMDEKHFeBBGwMDAzQXgz6Ut5VNcjCQODiIpBRT+SDZ6hQgjGUTmWF5GIwKioRu0uYjQsM5lxM9rIdFxPp04zcS2AzQgsnJ7askMYGNKrLwC5cxkI+RiJpYylXa8FFjz2Hg0gFzNm3QCLJIFmOFXvmF1o8pTwdmqrkCbop4wkaItTg+o7zv10k++nflQRkAgOoVe5aIJAIMmSQ/J6iCGBbwE3KpUffAoFgatdxXCbQh01IOrRGZP/vQPKjyFQt4JGIgHLalEHyD3Hpxhc1nzJYoKYVnqzAweWS0GQt4LWAgEREQPNOfgEZOp4xMLESEMEC7kaSicUTTwirSfuQyAB6UR+B6CAKvXnyYpCBiR1r/1ZCynAUVyFHFE+86V7lO9sERtESA9EiANN9gyKyTwo08WIZiQDKqOQCxtMLyQGW8Tv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00wtNHVd3cFK9/j22uh1X+v2ES7S3gz8gOcAf+S4X+wwjRdqnd+fyVR5ji75KPS9wd8hVnwSGlN/E9hXYjpTVnhau43VsXJUhvcY8VvJBQBczKjnswRhmM5Mq0oDLJt7ibTZQz9FAvsfxi3k5YTuTU6woUF/IINnPZQnP0Uj7dMZiNHN5hcOqvrqah7mKYT6A9rbYfYEeYuT1MDcmNPG6yjctpSIkHoMURb5vBnMdT/MeEskRFvNvXOLbiOuVjM0v5tOdvL7Vrb6HQnipQVZgTfwLRYHnqPhrBn34Mj9lAwLJh/wvd1KlCc+THmE+TRzUm4d9z6jMvnfwIANiiynF1PAASzlEK/X8mpsY5cuuzMCDS/hiP2Qv16s4kIuZxDmU0s4edrKGVTQDKeXFvDNGcCEXMpruNLKOZayhIdSPKrvOw/aMAIvoxvxua9JyEJOpYQJpPmI9y6jzbUezfH1+dLWnm4ZrBVnOJqN7FydQzViKOMjb1LFJu+rsYyUEdOXHvwbrFTkt6MVwJjKEM9nHTurYxidd1ZAKC8i/CaU7A6hkIGUcYzeb2aVIii5sSJ3TIJt+9GUQPWmniQ94V2PSKSiYYP0qTW8GkMZmP4dpCrRZilNRLEEBFVOKxOWIjwLn1NSX6Ov/ARf7NVPOYhxvAAAAAElFTkSuQmCC");
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.47 var(--font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-synthesis: none; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3, .h-cond, .h-end { text-wrap: balance; }
.say-text { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(980px, calc(100% - 44px)); margin: 0 auto; }
.wrap-w { width: min(1200px, calc(100% - 44px)); margin: 0 auto; }

/* типографика */
.h-hero { font-size: 80px; line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; }
.h-sec { font-size: 56px; line-height: 1.07; font-weight: 600; letter-spacing: -0.005em; }
.h-cond { font-size: 64px; line-height: 1.06; font-weight: 600; letter-spacing: -0.012em; }
.h-end { font-size: 64px; line-height: 1.06; font-weight: 600; letter-spacing: -0.012em; }
.body-l { font-size: 21px; line-height: 1.38; letter-spacing: 0.011em; color: var(--ink-2); }

/* кнопки и ссылки */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; border-radius: 980px;
  font-size: 17px; line-height: 1.18; font-weight: 400; letter-spacing: -0.022em;
  padding: 12px 22px; transition: background-color .2s;
}
.btn:hover { background: var(--blue-h); }
.btn, .link { white-space: nowrap; }
.btn-s { font-size: 15px; padding: 7px 15px; }
.btn-l { font-size: 19px; padding: 16px 30px; }
.i-tg { width: 1.05em; height: 1.05em; flex: none; }
.link { display: inline-flex; align-items: center; gap: 5px; color: var(--link); font-size: 17px; }
.link:hover { text-decoration: underline; }
.i-chev { width: .48em; height: .84em; flex: none; margin-top: .08em; }

/* логотип: их «ЗАВОД» одним цветом, цвет из currentColor */
.logo {
  display: inline-block; width: 46px; aspect-ratio: 889 / 540; flex: none;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}

/* ---------- шапка ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  color: var(--ink); transition: background-color .35s, border-color .35s, color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(255, 255, 255, .72); border-bottom-color: rgba(0, 0, 0, .08);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav.is-dark { color: var(--night-ink); }
.nav.is-dark.is-solid { background: rgba(22, 22, 23, .72); border-bottom-color: rgba(255, 255, 255, .1); }
.nav-in { height: 100%; width: min(1200px, calc(100% - 44px)); margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; letter-spacing: .011em; white-space: nowrap; }
.brand .logo { width: 48px; }
.links { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
.links a { opacity: .82; }
.links a:hover { opacity: 1; color: var(--link); }
.nav.is-dark .links a:hover { color: #2997ff; }

/* ---------- сцена: первый экран и состояния ---------- */
.stage { position: relative; height: 1100vh; }
.stage-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.phones { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s; }
/* картинки вместо 3D: по умолчанию видны; когда 3D готово и тянет — класс has3d меняет их местами с холстом */
.stills { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s; }
.stills img, .stills .sh { position: absolute; left: 0; top: 0; }
.stills .sh { inset: 0; visibility: hidden; opacity: 0; }   /* показывается вступлением, если 3D не успело */
.still-cond { opacity: 0; }
.has3d .phones { opacity: 1; }
.has3d .stills { opacity: 0; }

.hero-copy { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 6.4vh); text-align: center; padding: 0 22px; }
.hero-copy .ln { display: inline-block; }
/* вступление текста — на CSS: идёт с первой отрисовки, не ждёт ни скриптов, ни 3D */
.hero-copy .ln, .hero-cta, .hero-proof { animation: hero-in 1.15s cubic-bezier(.215, .61, .355, 1) both; }
.hero-sub .ln:first-child { animation-delay: .1s; }
.hero-sub .ln + .ln { animation-delay: .2s; }
.hero-cta { animation-delay: .3s; }
.hero-proof { animation-delay: .4s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); filter: blur(12px); } }
.hero-sub { margin: 18px auto 0; max-width: 820px; font-size: 28px; line-height: 1.18; letter-spacing: .007em; color: var(--ink); }
.hero-cta { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 32px; }
.hero-proof { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 17px; }
.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars svg { width: 15px; height: 15px; }

.conds { position: absolute; top: 50%; left: max(44px, calc(50vw - 600px)); width: 470px; display: grid; transform: translateY(-50%); }
.cond { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; }
.cond p { margin-top: 14px; font-size: 24px; line-height: 1.25; letter-spacing: .009em; color: var(--ink-2); }
.cond-final .btn { margin-top: 30px; }
.cond-dots { position: absolute; left: max(44px, calc(50vw - 600px)); bottom: 7vh; display: flex; gap: 8px; opacity: 0; }
.cond-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--line); transition: width .35s, background-color .35s; }
.cond-dots i.on { width: 28px; background: var(--ink); }

/* ---------- слова загораются ---------- */
.say { padding: 180px 0 200px; }
.say-text { width: min(980px, calc(100% - 44px)); margin: 0 auto; font-size: 48px; line-height: 1.17; font-weight: 600; letter-spacing: -0.01em; }
.say-text .w { opacity: .16; }

/* ---------- как проходит ---------- */
.how { background: var(--paper); padding-top: 150px; }
.how-head { text-align: center; }
.how-head .body-l { margin-top: 16px; }
.how-track { height: 420vh; position: relative; }
.how-pin {
  position: sticky; top: 0; height: 100vh; display: grid; align-items: center;
  grid-template-columns: minmax(0, 440px) auto; justify-content: center; gap: clamp(60px, 9vw, 150px);
  padding-top: var(--nav-h);
}
.steps { counter-reset: st; display: grid; gap: 34px; }
.step { position: relative; padding-left: 62px; opacity: .3; transition: opacity .45s; }
.step.is-on { opacity: 1; }
.step::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px; font-weight: 600;
  background: var(--ink); color: #fff;
}
.step b { display: block; font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: .007em; }
.step p { margin-top: 8px; font-size: 19px; line-height: 1.42; color: var(--ink-2); letter-spacing: .012em; }

.device { position: relative; height: min(80vh, 780px); aspect-ratio: 918 / 1854; }
.device-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.device-screen { position: absolute; overflow: hidden; background: #fff; }
.tg {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0;
  background: linear-gradient(160deg, #d7e6c9 0%, #c7dcc4 45%, #b9d3c8 100%);
  display: flex; flex-direction: column; letter-spacing: -0.01em;
}
.tg::before { /* узор фона чата */
  content: ""; position: absolute; inset: 0; opacity: .22;
  background: radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px) 0 0 / 46px 46px,
              radial-gradient(circle at 70% 70%, #fff 0 1.5px, transparent 2.5px) 0 0 / 38px 38px;
}
.tg-status { position: relative; height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 34px; font-size: 16px; font-weight: 600; background: rgba(247, 247, 247, .94); }
.tg-notch { position: absolute; left: 50%; top: 0; width: 160px; height: 31px; transform: translateX(-50%); background: #000; border-radius: 0 0 19px 19px; }
.tg-icons { display: flex; gap: 5px; align-items: center; }
.tg-icons i { display: block; width: 17px; height: 11px; border-radius: 3px; background: #111; }
.tg-icons i:nth-child(1) { width: 17px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.tg-icons i:nth-child(2) { width: 15px; border-radius: 15px 15px 0 0; clip-path: polygon(50% 100%, 0 0, 100% 0); }
.tg-icons i:nth-child(3) { width: 25px; height: 12px; border-radius: 3.5px; background: #111; box-shadow: inset 0 0 0 2.5px #f7f7f7, inset 0 0 0 3.5px #111; }
.tg-head { position: relative; z-index: 2; height: 52px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 0 12px; background: rgba(247, 247, 247, .94); border-bottom: .5px solid rgba(0, 0, 0, .18); }
.tg-back { color: #007aff; display: flex; align-items: center; }
.tg-back .i-chev { width: 11px; height: 19px; }
.tg-title { text-align: center; line-height: 1.15; }
.tg-title b { display: block; font-size: 17px; font-weight: 600; }
.tg-title small { font-size: 13px; color: #8e8e93; }
.tg-ava { width: 37px; height: 37px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); color: #c0392b; justify-self: end; }
.tg-ava .logo { width: 28px; }
.tg-feed { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 10px 8px; overflow: hidden; }
.msg { position: relative; max-width: 78%; padding: 7px 12px 8px; border-radius: 18px; font-size: 16.5px; line-height: 1.3; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); overflow: hidden; }
.msg em { float: right; margin: 6px 0 -4px 10px; font-style: normal; font-size: 12px; color: rgba(0, 0, 0, .45); }
.msg.out { align-self: flex-end; background: #effdde; border-bottom-right-radius: 6px; }
.msg.out em { color: #4fae4e; }
.msg.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.msg .ph { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 262px; margin: -4px -9px -5px; }
.msg .ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 13px; }
.msg.out.m1 { padding: 7px 9px; }
.typing { display: flex; gap: 5px; padding: 13px 15px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; animation: dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.fork { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; font-size: 22px; font-weight: 600; color: #1d1d1f; }
.fork i { display: block; height: 22px; border-radius: 6px; background: linear-gradient(90deg, #c7c7cc 0%, #e5e5ea 40%, #c7c7cc 80%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.fork i:nth-child(odd) { width: 30px; }
.fork i:nth-child(even) { width: 46px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.kb { align-self: stretch; display: grid; gap: 5px; margin-left: 0; max-width: 78%; }
.kb span { display: block; text-align: center; padding: 10px 12px; border-radius: 12px; background: rgba(105, 125, 110, .42); color: #fff; font-size: 16px; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kb span.tap.is-tapped { background: rgba(70, 90, 75, .75); }
.tg-input { position: relative; z-index: 2; height: 82px; display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px 0; background: rgba(247, 247, 247, .96); border-top: .5px solid rgba(0, 0, 0, .15); }
.tg-field { flex: 1; height: 36px; border-radius: 18px; border: .5px solid rgba(0, 0, 0, .2); background: #fff; display: flex; align-items: center; padding: 0 14px; color: #a0a0a5; font-size: 16.5px; }
.tg-clip, .tg-mic { width: 30px; height: 36px; flex: none; position: relative; }
.tg-clip::before { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 20px; border: 2px solid #8e8e93; border-radius: 6px; transform: rotate(40deg); }
.tg-mic::before { content: ""; position: absolute; left: 9px; top: 6px; width: 10px; height: 16px; border: 2px solid #8e8e93; border-radius: 6px; }
.tg-mic::after { content: ""; position: absolute; left: 6px; top: 16px; width: 16px; height: 10px; border: 2px solid #8e8e93; border-top: 0; border-radius: 0 0 9px 9px; }

/* ---------- что выкупаем ---------- */
.what { padding: 160px 0; }
.what .h-sec { text-align: center; margin-bottom: 56px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; min-height: 380px; padding: 40px 40px 36px;
  background: var(--paper); border-radius: 28px; overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s;
}
.card:hover { transform: scale(1.012); box-shadow: 0 18px 50px rgba(0, 0, 0, .08); }
.card h3 { margin-top: 18px; font-size: 32px; line-height: 1.12; font-weight: 600; letter-spacing: .004em; }
.card p { margin-top: 10px; font-size: 19px; line-height: 1.42; color: var(--ink-2); letter-spacing: .012em; }
.card .more { margin-top: 18px; display: inline-flex; align-items: center; gap: 5px; color: var(--link); font-size: 17px; }
.card:hover .more { text-decoration: underline; }
/* место для 3D-модели: рисует общий холст поверх страницы (gallery в main.js) */
.slot { position: relative; height: 250px; margin: -14px -22px 0; }
.slot .still { width: 100%; height: 100%; object-fit: contain; transition: opacity .6s; }
.g3d-on .slot .still { opacity: 0; }
.gallery3d { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; display: none; opacity: 0; transition: opacity .6s; }
.g3d-on .gallery3d { opacity: 1; }
.c-iphone { grid-column: span 2; grid-row: span 2; }
.c-iphone .slot { flex: 1; height: auto; min-height: 520px; margin: -20px -20px 0; }
.c-iphone h3 { font-size: 56px; letter-spacing: -0.005em; }
.c-iphone p { font-size: 24px; max-width: 420px; }
.c-play { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; padding: 40px 48px; }
.c-play .slot { order: 2; height: 400px; margin: -30px -30px -30px 0; }
.c-play .c-text { order: 1; }
.c-play h3 { margin-top: 0; font-size: 40px; }

/* ---------- отзывы ---------- */
.rev { background: var(--night); color: var(--night-ink); padding: 160px 0 170px; overflow: hidden; }
.rev-head { text-align: center; }
.rev-big { display: inline-flex; align-items: baseline; gap: 18px; font-weight: 600; }
.rev-big .count { font-size: 200px; line-height: .95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rev-big .rev-of { font-size: 40px; color: var(--night-ink-2); letter-spacing: -0.01em; }
.rev .body-l { color: var(--night-ink-2); max-width: 640px; margin: 26px auto 0; }
.rev sup, .fn sup { font-size: .6em; line-height: 0; }
.marquee { margin-top: 90px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-row { display: flex; gap: 20px; width: max-content; animation: mq 46s linear infinite; }
.marquee:hover .mq-row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 10px)); } }
.mq-row li { width: 400px; flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 34px 34px 30px; border-radius: 28px; background: var(--night-tile); }
.mq-row q { font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: .004em; quotes: "«" "»"; }
.mq-row span { font-size: 17px; color: var(--night-ink-2); }

/* ---------- адрес и выезд ---------- */
.visit { background: var(--paper); padding: 160px 0; }
.visit .h-sec { text-align: center; margin-bottom: 56px; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.way { background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.way-photo, .map { height: 380px; overflow: hidden; background: #e8e8ed; }
.way-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.12); will-change: transform; }
.way-text { padding: 36px 40px 40px; }
.way h3 { font-size: 32px; line-height: 1.12; font-weight: 600; letter-spacing: .004em; }
.way ul { margin-top: 16px; display: grid; gap: 6px; font-size: 19px; color: var(--ink-2); letter-spacing: .012em; }
.way .link { margin-top: 20px; }
.map svg { width: 100%; height: 100%; display: block; }
.map .river { fill: #dbe7f3; }
.map .roads path { fill: none; stroke: #fff; stroke-width: 14; }
.map .roads.thin path { stroke-width: 6; }
.map .route { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.map .pin-you circle { fill: #fff; stroke: var(--blue); stroke-width: 5; }
.map .pin-you .pulse { fill: rgba(0, 113, 227, .18); stroke: none; }
.map .pin-shop circle { fill: var(--ink); stroke: #fff; stroke-width: 5; }
.map .pin-shop .pulse { fill: rgba(29, 29, 31, .12); stroke: none; }
.map .pin-shop text { font: 600 22px var(--font); fill: var(--ink); letter-spacing: -0.01em; paint-order: stroke; stroke: #e8e8ed; stroke-width: 6px; }
.map .car circle { fill: var(--blue); stroke: #fff; stroke-width: 4; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- вопросы ---------- */
.faq { padding: 160px 0 140px; }
.faq .h-sec { margin-bottom: 40px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: .009em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 22px; height: 22px; transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .ans { overflow: hidden; }
.qa .ans p { padding: 0 60px 30px 0; font-size: 19px; line-height: 1.47; color: var(--ink-2); letter-spacing: .012em; max-width: 820px; }

/* ---------- финал ---------- */
.end { padding: 120px 22px 170px; text-align: center; }
.end .btn { margin-top: 40px; }

/* ---------- подвал ---------- */
.foot { background: var(--paper); color: var(--ink-2); font-size: 14px; line-height: 1.45; letter-spacing: -0.01em; padding: 36px 0 44px; }
.fn { padding-bottom: 12px; max-width: 980px; }
.foot-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; align-items: center; color: var(--ink); }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand .logo { width: 40px; }
.foot-row ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-row a:hover { color: var(--link); text-decoration: underline; }
.foot-addr { margin-top: 10px; }

/* ---------- планшет ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .h-hero { font-size: 72px; }
  .conds { width: 400px; }
  .h-cond { font-size: 54px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-iphone { grid-column: span 2; grid-row: auto; }
  .c-iphone .slot { min-height: 440px; }
}

/* ---------- телефон и узкий планшет ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 48px; }
  .links { display: none; }
  .nav-in { width: calc(100% - 32px); }
  .brand { font-size: 19px; margin-right: auto; }
  .brand .logo { width: 42px; }
  .btn-s { font-size: 15px; padding: 7px 14px; }

  .h-hero { font-size: 44px; line-height: 1.08; }
  .h-sec { font-size: 36px; line-height: 1.1; }
  .h-cond { font-size: 40px; line-height: 1.08; }
  .h-end { font-size: 40px; line-height: 1.1; }
  .body-l { font-size: 19px; }

  .stage { height: 1000svh; }
  .stage-pin { height: 100svh; }
  .hero-copy { top: calc(var(--nav-h) + 3.2svh); padding: 0 20px; }
  .hero-sub { font-size: 19px; line-height: 1.32; margin-top: 12px; }
  .hero-sub .ln { display: inline; }
  .hero-cta { margin-top: 20px; gap: 22px; }
  .hero-proof { margin-top: 14px; font-size: 16px; }

  .conds { left: 20px; right: 20px; width: auto; top: auto; bottom: 6.5svh; transform: none; text-align: center; }
  .cond p { font-size: 19px; margin-top: 10px; }
  .cond-final .btn { margin-top: 20px; }
  .cond-dots { left: 50%; transform: translateX(-50%); bottom: 2.6svh; }

  .say { padding: 110px 0 120px; }
  .say-text { font-size: 30px; line-height: 1.2; width: calc(100% - 40px); }

  .how { padding-top: 100px; }
  .how-head { width: calc(100% - 40px); }
  .how-track { height: 380svh; }
  .how-pin { height: 100svh; grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: 22px; padding: calc(var(--nav-h) + 10px) 20px 18px; }
  .how-pin .device { order: 1; height: min(58svh, 520px); }
  .how-pin .steps { order: 2; width: 100%; max-width: 420px; display: grid; gap: 0; }
  .steps .step { grid-area: 1 / 1; padding-left: 52px; opacity: 0; transition: opacity .35s; }
  .steps .step.is-on { opacity: 1; }
  .step::before { width: 36px; height: 36px; font-size: 17px; }
  .step b { font-size: 22px; }
  .step p { font-size: 17px; margin-top: 4px; }

  .what { padding: 100px 0; }
  .what .h-sec { margin-bottom: 32px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .c-iphone { grid-column: auto; grid-row: auto; }
  .card { min-height: 0; padding: 26px 26px 28px; border-radius: 24px; }
  .slot { height: 230px; margin: -10px -16px 0; }
  .card h3 { margin-top: 14px; font-size: 26px; }
  .card p { font-size: 17px; }
  .c-iphone .slot { flex: none; min-height: 0; height: 330px; margin: -10px -16px 0; }
  .c-iphone h3 { font-size: 40px; }
  .c-iphone p { font-size: 19px; }
  .c-play { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 26px 26px 28px; }
  .c-play .slot { order: 0; height: 250px; margin: -10px -16px 0; }
  .c-play .c-text { order: 1; }
  .c-play h3 { margin-top: 14px; font-size: 26px; }

  .rev { padding: 100px 0 110px; }
  .rev-big .count { font-size: 120px; }
  .rev-big .rev-of { font-size: 28px; }
  .marquee { margin-top: 56px; }
  .mq-row li { width: 290px; padding: 26px 24px 24px; border-radius: 24px; }
  .mq-row q { font-size: 21px; }
  .mq-row span { font-size: 16px; }

  .visit { padding: 100px 0; }
  .visit .h-sec { margin-bottom: 32px; }
  .ways { grid-template-columns: 1fr; gap: 14px; }
  .way-photo, .map { height: 250px; }
  .way-text { padding: 26px 26px 30px; }
  .way h3 { font-size: 26px; }
  .way ul { font-size: 17px; }

  .faq { padding: 100px 0 90px; }
  .qa summary { font-size: 19px; padding: 20px 0; }
  .qa .ans p { font-size: 17px; padding-right: 0; }

  .end { padding: 70px 20px 110px; }
  .end .btn { margin-top: 28px; }
  .btn-l { font-size: 17px; padding: 14px 24px; }

  .foot { padding: 28px 0 36px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .h-hero { font-size: 40px; }
  .hero-sub { font-size: 18px; }
  .h-cond { font-size: 36px; }
  .hero-cta { gap: 14px; }
  .hero-cta .btn { font-size: 16px; padding: 10px 16px; }
  .hero-cta .link { font-size: 16px; }
  .hero-proof { font-size: 15px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .mq-row, .pulse, .fork i, .typing i, .hero-copy .ln, .hero-cta, .hero-proof { animation: none; }
  .card, .card:hover { transition: none; transform: none; }
}
