/* Посадочная Wear Audio Recorder, стиль «Ночная запись» — тот же, что у кадров Play
   (tools/play/screenshots/template/shot.css). Сторонних шрифтов и CDN нет: шрифт отдаётся
   с нашего домена, письменности вне Geologica берутся из системы. */

@font-face {
  font-family: "Geologica";
  src: url("/assets/fonts/geologica.dae3f02952.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20-7E, U+A0-148, U+14A-17E, U+18F, U+192, U+1A0-1A1, U+1AF-1B0, U+1C4-1CE, U+1E6-1E7, U+1EA-1EB, U+1FA-21B, U+22A-22D, U+230-233, U+237, U+259, U+2BC, U+2C6-2C7, U+2D8-2DD, U+300-304, U+306-30C, U+30F, U+311-312, U+31B, U+323-324, U+326-328, U+32E, U+331, U+335, U+374-375, U+37E, U+384-38A, U+38C, U+38E-3A1, U+3A3-3CF, U+3D7, U+400-45F, U+462-463, U+46A-46B, U+472-475, U+490-49D, U+4A0-4A5, U+4AA-4AB, U+4AE-4B3, U+4B6-4BB, U+4C0-4C2, U+4CB-4CC, U+4CF-4D9, U+4DC-4DF, U+4E2-4E9, U+4EE-4F9, U+51A-51D, U+1E80-1E85, U+1E9E, U+1EA0-1EF9, U+2010, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+2052, U+20A1, U+20A3-20A4, U+20A6-20A7, U+20A9, U+20AB-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BC-20BD, U+2116, U+2122, U+2190-2193, U+2196-2199, U+2212, U+2215;
}

:root {
  color-scheme: dark;
  --bg-a: #1B1F27;
  --bg-b: #0B0D11;
  --bg: #0B0D11;
  --panel: #151920;
  --panel-2: #1C212A;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #F6F2EC;
  --sub: rgba(246, 242, 236, 0.74);
  --dim: rgba(246, 242, 236, 0.56);
  --mark: #FF7A45;
  --brand: #F1453D;
  /* Фон кнопок с белым текстом: на #F1453D контраст 3,7, для мелкого текста нужно 4,5 (WCAG AA). */
  --brand-button: #D32F2F;
  --grad: linear-gradient(90deg, #FF9A4D, #F1453D);
  --shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(241, 69, 61, 0.22);
  --card-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --radius: 22px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --flip: 1;

  /* Письменности, которых нет в Geologica. */
  --script: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font: "Geologica", var(--script);
}
[dir="rtl"] { --flip: -1; }
html:lang(ja) { --script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; }
html:lang(zh-CN) { --script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html:lang(zh-TW) { --script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
html:lang(ko) { --script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
html:lang(th) { --script: "Thonburi", "Leelawadee UI", "Noto Sans Thai", sans-serif; }
html:lang(hi) { --script: "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
html:lang(he) { --script: "SF Hebrew", "Arial Hebrew", "Segoe UI", "Noto Sans Hebrew", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-a) 0, var(--bg-b) 1100px);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-variation-settings: "SHRP" 0;
  overflow-x: clip;
}
:lang(ja) body, :lang(zh) body, :lang(ko) body { line-break: strict; word-break: normal; }
:lang(ja) body, :lang(zh) body { line-height: 1.75; }
:lang(th) body, :lang(hi) body { line-height: 1.75; }

img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- типографика */

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3), :lang(th) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3) { letter-spacing: 0; }
h1 em, h2 em, .final-title em {
  font-style: normal; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display { font-size: clamp(2.7rem, 5.8vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }
:lang(ja) .display, :lang(zh) .display, :lang(ja) h2, :lang(zh) h2 { line-height: 1.18; }
:lang(th) .display, :lang(hi) .display, :lang(th) h2, :lang(hi) h2 { line-height: 1.3; }

.eyebrow {
  margin: 0 0 18px; color: var(--mark);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
:lang(ja) .eyebrow, :lang(zh) .eyebrow, :lang(ko) .eyebrow { letter-spacing: 0.06em; }
.sub { margin: 16px 0 0; color: var(--sub); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; text-wrap: balance; }
.body { margin: 22px 0 0; color: var(--sub); max-width: 34em; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; max-width: 36em; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--sub); line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 0.5em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(241, 69, 61, 0.18);
}

/* ---------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--brand-button); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(241, 69, 61, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { background: #C62828; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(241, 69, 61, 0.45); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.92rem; box-shadow: none; }

.play-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.2s ease, filter 0.2s ease; }
.play-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 12px 24px rgba(241, 69, 61, 0.35)); }
.play-badge img { height: 58px; width: auto; }

/* ---------------------------------------------------------------- шапка */

.top {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.top.scrolled {
  background: rgba(11, 13, 17, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.top-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  padding: 8px 12px; border-radius: 999px; color: var(--sub); text-decoration: none; font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.lang { position: relative; }
.nav + .lang { margin-inline-start: 0; }
.lang summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--sub); cursor: pointer;
  list-style: none; font-size: 0.92rem; white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); border-color: rgba(255, 255, 255, 0.28); }
.lang summary svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60;
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px;
  width: max-content; max-width: min(420px, 92vw); max-height: min(70vh, 560px); overflow: auto;
  margin: 0; padding: 8px; list-style: none;
  background: rgba(21, 25, 32, 0.96); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.lang li a {
  display: block; padding: 8px 12px; border-radius: 10px; color: var(--sub); text-decoration: none; font-size: 0.94rem;
}
.lang li a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.lang li a[aria-current="page"] { color: var(--ink); background: rgba(241, 69, 61, 0.16); }

.langbar {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 70;
  display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap;
  width: fit-content; max-width: calc(100% - 32px); margin-inline: auto;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(28, 33, 42, 0.94); border: 1px solid var(--line-2); box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.langbar[hidden] { display: none; }
.langbar a { color: var(--ink); font-weight: 600; }
.langbar button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); cursor: pointer;
  display: grid; place-items: center;
}
.langbar button svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; }

/* ---------------------------------------------------------------- фон и свечение */

.glow {
  position: absolute; pointer-events: none; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 69, 61, 0.34), rgba(255, 122, 69, 0) 68%);
  width: var(--s, 720px); height: var(--s, 720px);
}

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: clip; padding: clamp(28px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.hero .glow.g1 { --s: 900px; inset-inline-end: -260px; top: -160px; animation: drift 18s ease-in-out infinite alternate; }
.hero .glow.g2 { --s: 620px; inset-inline-start: -320px; bottom: -200px; opacity: 0.6; animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 72px); align-items: center;
}
.hero-copy .lead { margin: 26px 0 0; color: var(--sub); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 30em; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 34px; }
.note { margin: 16px 0 0; color: var(--dim); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--sub); font-size: 0.85rem; font-weight: 500;
}
.chips li:first-child { color: var(--ink); border-color: rgba(241, 69, 61, 0.5); background: rgba(241, 69, 61, 0.12); }

.hero-wave { position: absolute; inset-inline: 0; bottom: 0; z-index: 0; width: 100%; height: 140px; opacity: 0.55; pointer-events: none; }
.hero-wave path { fill: none; stroke: url(#wave-grad); stroke-width: 2; stroke-linecap: round; }
.hero-wave .w2 { opacity: 0.45; stroke-width: 1.4; }
.js .hero-wave .w1 { animation: wave 9s linear infinite; }
.js .hero-wave .w2 { animation: wave 14s linear infinite reverse; }

/* ---------------------------------------------------------------- сцены */

.stage {
  position: relative; width: 100%; max-width: 600px; margin-inline: auto;
  aspect-ratio: 1 / 1.08; container-type: inline-size;
}
.stage > * { position: absolute; }

/* Телефон — та же рамка, что на кадрах Play: металлический ободок и 3D-торцы. */
.phone {
  --pw: 48cqi;
  --depth: calc(var(--pw) * 0.11);
  --ry: -14deg; --rz: 2deg; --tx: 0deg; --ty: 0deg;
  width: var(--pw);
  padding: calc(var(--pw) * 0.024);
  border-radius: calc(var(--pw) * 0.115);
  background: #0E0F12;
  box-shadow:
    var(--shadow),
    inset 0 0 0 calc(var(--pw) * 0.005) #8A8E97,
    inset 0 0 0 calc(var(--pw) * 0.011) #2B2D33,
    inset 0 0 0 calc(var(--pw) * 0.013) #50535B;
  z-index: 10;
  transform-origin: 50% 40%;
  transform-style: preserve-3d;
  transform: perspective(2600px) rotateY(calc((var(--ry) + var(--ty)) * var(--flip))) rotateX(var(--tx)) rotateZ(calc(var(--rz) * var(--flip)));
}
.phone .side {
  position: absolute; top: 4.5%; bottom: 4.5%; width: var(--depth);
  border-radius: calc(var(--depth) / 2);
  --metal: #1B1C20 0%, #3A3D44 30%, #6F737C 62%, #A4A8B0 86%, #8A8E97 100%;
}
.phone .side.l { left: 0; transform-origin: 0 50%; transform: rotateY(90deg); background: linear-gradient(270deg, var(--metal)); }
.phone .side.r { right: 0; transform-origin: 100% 50%; transform: rotateY(-90deg); background: linear-gradient(90deg, var(--metal)); }
.phone .side.t, .phone .side.b { top: auto; bottom: auto; left: 9%; right: 9%; width: auto; height: var(--depth); }
.phone .side.t { top: 0; transform-origin: 50% 0; transform: rotateX(-90deg); background: linear-gradient(0deg, var(--metal)); }
.phone .side.b { bottom: 0; transform-origin: 50% 100%; transform: rotateX(90deg); background: linear-gradient(180deg, var(--metal)); }
.phone .key { position: absolute; left: 30%; right: 30%; border-radius: 99px; background: linear-gradient(90deg, #3A3D44, #B5B9C2 50%, #3A3D44); }
.phone .key.k1 { top: 14%; height: 7%; }
.phone .key.k2 { top: 24%; height: 12%; }
.screen { position: relative; overflow: hidden; border-radius: calc(var(--pw) * 0.095); background: var(--nav, #fff); }
.statusbar {
  height: calc(var(--pw) * 0.072); background: var(--status, #F1453D); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--pw) * 0.075);
  font: 600 calc(var(--pw) * 0.034)/1 Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative; direction: ltr;
}
.statusbar .cam {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: calc(var(--pw) * 0.038); height: calc(var(--pw) * 0.038);
  border-radius: 50%; background: #0B0C0F; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.statusbar svg { height: calc(var(--pw) * 0.034); width: auto; fill: #fff; }
/* Время в нарисованном статус-баре — декорация, не текст страницы. */
.statusbar .clock::before { content: "10:30"; }
.statusbar .icons { display: flex; gap: calc(var(--pw) * 0.014); align-items: center; }
.screen img { display: block; width: 100%; height: auto; background: var(--nav, #fff); }
.navbar { height: calc(var(--pw) * 0.045); display: flex; align-items: center; justify-content: center; background: var(--nav, #fff); }
.navbar i { width: 34%; height: calc(var(--pw) * 0.009); border-radius: 99px; background: var(--handle, rgba(0, 0, 0, 0.55)); }

/* Часы: циферблат собран из HTML и canvas, чтобы запись на нём шла по-настоящему. */
.watch {
  --ww: 40cqi;
  width: var(--ww); height: var(--ww);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4A4E57, #15171B 62%);
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(255, 255, 255, 0.08);
  z-index: 20;
}
.watch .face { position: absolute; inset: 7.5%; border-radius: 50%; overflow: hidden; background: #000; container-type: inline-size; }
.watch .face img, .watch .face canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.watch .face img { width: 116%; height: 116%; inset: -8%; }
.js .watch .face img { display: none; }
html:not(.js) .watch .face canvas, html:not(.js) .watch .face .ui { display: none; }
.watch::after {
  content: ""; position: absolute; inset-inline-end: -3.5%; top: 42%; width: 6%; height: 16%;
  border-radius: 6px; background: linear-gradient(90deg, #2A2C31, #50545C);
}
.watch .strap { position: absolute; left: 22%; width: 56%; height: 34%; z-index: -1; background: linear-gradient(90deg, #22252B, #34373E, #22252B); }
.watch .strap.top { bottom: 82%; border-radius: 40px 40px 10px 10px; }
.watch .strap.bottom { top: 82%; border-radius: 10px 10px 40px 40px; }
.watch .ui { position: absolute; inset: 0; direction: ltr; }
.watch .time {
  position: absolute; left: 0; right: 0; top: 28%; text-align: center;
  font: 700 17cqi/1 "Geologica", Roboto, sans-serif; letter-spacing: -0.02em; color: #fff;
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.watch .dot {
  position: absolute; left: 50%; top: 18%; width: 4.2cqi; height: 4.2cqi; translate: -50% 0;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(241, 69, 61, 0.7);
}
.js .watch .dot { animation: pulse 1.6s ease-out infinite; }
.watch .btns { position: absolute; left: 0; right: 0; top: 58%; display: flex; align-items: center; justify-content: center; gap: 4.5cqi; }
.watch .btns i { display: grid; place-items: center; border-radius: 50%; }
.watch .b-x { width: 16cqi; height: 16cqi; background: #8C1D18; }
.watch .b-x::before, .watch .b-x::after { content: ""; position: absolute; width: 6cqi; height: 0.9cqi; border-radius: 1cqi; background: #fff; rotate: 45deg; }
.watch .b-x::after { rotate: -45deg; }
.watch .b-x { position: relative; }
.watch .b-stop { width: 22cqi; height: 22cqi; background: #E8DDFF; }
.watch .b-stop::before { content: ""; width: 6.5cqi; height: 6.5cqi; border-radius: 0.6cqi; background: #21005D; }
.watch .b-pause { width: 16cqi; height: 16cqi; background: #2F2D38; position: relative; }
.watch .b-pause::before, .watch .b-pause::after { content: ""; position: absolute; top: 50%; width: 1.4cqi; height: 5cqi; translate: 0 -50%; border-radius: 0.5cqi; background: #E6E1E5; }
.watch .b-pause::before { left: calc(50% - 2.2cqi); }
.watch .b-pause::after { left: calc(50% + 0.8cqi); }

.accent { z-index: 30; filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.6)); }
.accent img { display: block; width: 100%; height: auto; }

.dash { overflow: visible; pointer-events: none; z-index: 25; }
.dash path { fill: none; stroke: rgba(255, 122, 69, 0.75); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 9; }
.dash circle { fill: rgba(255, 122, 69, 0.9); }

.card {
  background: rgba(21, 25, 32, 0.9); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.file-badge {
  z-index: 35; display: grid; place-items: end center;
  width: 13cqi; height: 16cqi; padding-bottom: 2.4cqi;
  border-radius: 2cqi 4.6cqi 2cqi 2cqi; background: #232833; box-shadow: var(--card-shadow);
  font: 800 3.8cqi/1 "Geologica", sans-serif; color: var(--mark);
}
.file-badge::before {
  content: ""; position: absolute; left: 2.6cqi; right: 2.6cqi; top: 3.2cqi; height: 6cqi;
  background: repeating-linear-gradient(180deg, rgba(160, 160, 160, 0.35) 0 0.8cqi, transparent 0.8cqi 1.8cqi);
  border-radius: 0.4cqi;
}

/* ---------------------------------------------------------------- блоки функций */

.feature { position: relative; padding: clamp(56px, 8vw, 110px) 0; overflow: clip; }
.feature .glow { --s: 760px; top: 50%; translate: 0 -50%; inset-inline-start: -240px; opacity: 0.55; }
.feature.flip .glow { inset-inline-start: auto; inset-inline-end: -240px; }
.feature-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 90px); align-items: center;
}
.feature.flip .copy { order: 2; }
.feature.flip .stage-col { order: 1; }

/* hero: телефон с экраном записи, часы на переднем плане */
.stage-hero { aspect-ratio: 1 / 1.02; }
.stage-hero .phone { --pw: 50cqi; --ry: -18deg; --rz: 4deg; inset-inline-end: 6%; top: 1%; }
.stage-hero .watch { --ww: 42cqi; inset-inline-start: 2%; bottom: 4%; transform: rotate(calc(-8deg * var(--flip))); }
.stage-hero .dash { inset-inline-start: 22%; top: 22%; width: 24%; height: 34%; z-index: 15; }
[dir="rtl"] .dash { transform: scaleX(-1); }

/* запись в текст: карточка в потоке, чтобы длинные языки растягивали сцену, а не вылезали из неё */
.stage-tx .phone { --pw: 46cqi; inset-inline-end: 3%; top: 0; --ry: -12deg; --rz: 2deg; }
.stage-tx .tx { position: relative; margin-top: 15cqi; width: 70cqi; z-index: 30; }
.stage-tx .file-badge.b1 { inset-inline-end: 0; top: 50%; rotate: calc(8deg * var(--flip)); }
.stage-tx .file-badge.b2 { inset-inline-end: 3%; top: 68%; rotate: calc(-6deg * var(--flip)); }

.tx { padding: clamp(14px, 3.2cqi, 22px); }
.tx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: clamp(11px, 2.5cqi, 14px); color: var(--dim); }
.tx-head b { color: var(--ink); font-weight: 600; font-size: clamp(12px, 2.8cqi, 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-head time { font-variant-numeric: tabular-nums; }
.tx-wave { display: block; width: 100%; height: clamp(34px, 8cqi, 52px); margin-bottom: 8px; cursor: pointer; }
.tx-turns { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tx-turn {
  display: grid; grid-template-columns: clamp(26px, 5.6cqi, 36px) 1fr; column-gap: clamp(8px, 2cqi, 14px); align-items: start;
  width: 100%; padding: clamp(6px, 1.4cqi, 10px) clamp(8px, 1.6cqi, 12px); border: 0; border-radius: 14px; background: transparent;
  text-align: start; cursor: pointer; transition: background 0.25s ease;
}
.tx-turn:hover { background: rgba(255, 255, 255, 0.04); }
.tx-turn.on { background: rgba(241, 69, 61, 0.14); }
.tx-ava {
  grid-row: span 2; width: clamp(26px, 5.6cqi, 36px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 700; font-size: clamp(11px, 2.6cqi, 15px);
}
.tx-meta { font-size: clamp(11px, 2.4cqi, 13px); color: var(--dim); line-height: 1.3; }
.tx-meta b { color: var(--ink); font-weight: 600; margin-inline-end: 8px; font-size: clamp(12px, 2.6cqi, 14px); }
.tx-text { font-size: clamp(12px, 2.7cqi, 15.5px); line-height: 1.4; color: var(--sub); }
.tx-turn.on .tx-text { color: var(--ink); }
.tx-hint { margin: 10px 0 0; font-size: clamp(11px, 2.4cqi, 13px); color: var(--dim); display: flex; gap: 8px; align-items: center; }
.tx-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); flex: none; }

/* редактор */
.stage-ed .phone { --pw: 46cqi; inset-inline-start: 4%; top: 0; --ry: 14deg; --rz: -2deg; }
.stage-ed .ed { inset-inline-end: 0; top: 30%; width: 64cqi; z-index: 30; }
.ed { padding: clamp(12px, 3cqi, 20px); }
.ed-wave { display: block; width: 100%; aspect-ratio: 1.55; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ed-bar span {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: clamp(11px, 2.4cqi, 13.5px); color: var(--sub);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.ed-bar svg { width: clamp(13px, 3cqi, 17px); height: clamp(13px, 3cqi, 17px); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ed-bar span.hot { background: rgba(241, 69, 61, 0.2); color: var(--ink); border-color: rgba(241, 69, 61, 0.5); transform: translateY(-2px); }
.ed-bar.off span { opacity: 0.35; }

/* часы с телефона */
.stage-watch .watch { --ww: 56cqi; inset-inline-start: 4%; top: 8%; transform: rotate(calc(-6deg * var(--flip))); }
.stage-watch .accent { inset-inline-end: 0; bottom: 6%; width: 66cqi; rotate: calc(1.5deg * var(--flip)); }
.stage-watch .dash { inset-inline-start: 46%; top: 30%; width: 34%; height: 40%; }

/* чистый звук */
.stage-snd .phone { --pw: 46cqi; inset-inline-end: 4%; top: 0; }
.stage-snd .accent { inset-inline-start: 0; top: 46%; width: 66cqi; rotate: calc(-1.5deg * var(--flip)); }
.stage-snd .snd { inset-inline-start: 4%; top: 10%; width: 54cqi; padding: 3cqi; z-index: 31; }
.snd-wave { display: block; width: 100%; height: 18cqi; }
.snd-legend { display: flex; justify-content: space-between; margin-top: 1.2cqi; font-size: 2.6cqi; color: var(--dim); }
.snd-legend b { color: var(--mark); font-weight: 600; }

/* теги */
.stage-tags .phone { --pw: 46cqi; inset-inline-start: 26%; top: 2%; --ry: -14deg; --rz: 0deg; }
.stage-tags .accent.item { inset-inline-start: 4%; bottom: 8%; width: 82cqi; rotate: calc(-1.5deg * var(--flip)); z-index: 32; }
.stage-tags .accent.chip { height: 7cqi; width: auto; z-index: 33; }
.stage-tags .accent.chip img { height: 100%; width: auto; }
.stage-tags .c0 { inset-inline-start: 0; top: 12%; rotate: calc(-6deg * var(--flip)); }
.stage-tags .c1 { inset-inline-end: 0; top: 18%; rotate: calc(5deg * var(--flip)); }
.stage-tags .c2 { inset-inline-start: 6%; top: 34%; rotate: calc(3deg * var(--flip)); }
.stage-tags .c3 { inset-inline-end: 2%; top: 44%; rotate: calc(-4deg * var(--flip)); }
.stage-tags .c4 { inset-inline-start: 2%; top: 56%; rotate: calc(-2deg * var(--flip)); }

/* облако */
.stage-cloud .phone { --pw: 46cqi; inset-inline-end: 4%; top: 0; }
.stage-cloud .accent { inset-inline-start: 0; top: 36%; width: 56cqi; rotate: calc(-1.5deg * var(--flip)); }
.stage-cloud .cloud {
  inset-inline-start: 6%; top: 6%; width: 22cqi; height: 22cqi; border-radius: 50%; z-index: 32;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #2A303C, #171B22); border: 1px solid var(--line-2); box-shadow: var(--card-shadow);
}
.stage-cloud .cloud svg { width: 48%; fill: var(--mark); }
.stage-cloud .dash { inset-inline-start: 18%; top: 18%; width: 40%; height: 26%; }
.dash .runner { offset-path: var(--path); offset-rotate: 0deg; }
.js .dash .runner { animation: run 3.2s linear infinite; }
.js .dash .runner.r2 { animation-delay: -1.6s; }

/* шифрование */
.stage-lock .phone { --pw: 46cqi; inset-inline-end: 4%; top: 0; }
.stage-lock .accent { inset-inline-start: 0; top: 34%; width: 58cqi; rotate: calc(-2deg * var(--flip)); }
.stage-lock .lock {
  inset-inline-start: 8%; top: 4%; width: 22cqi; height: 22cqi; border-radius: 50%; z-index: 31;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(241, 69, 61, 0.95), rgba(200, 36, 29, 0.95));
  box-shadow: 0 0 0 2cqi rgba(241, 69, 61, 0.16), 0 0 0 4.4cqi rgba(241, 69, 61, 0.07), var(--card-shadow);
}
.stage-lock .lock svg { width: 46%; fill: #fff; }
.stage-lock .scramble {
  inset-inline-start: 0; bottom: 4%; width: 74cqi; z-index: 33;
  padding: 2.6cqi 3.2cqi; border-radius: 3cqi;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 600 3.4cqi/1.35 var(--font); color: #fff; overflow: hidden; white-space: nowrap; text-overflow: clip;
}
.scramble .noise { font-family: "SF Mono", Menlo, Consolas, monospace; color: #FF6B5F; letter-spacing: 0.04em; }
.warn {
  margin: 22px 0 0; padding: 16px 18px; border-radius: 16px; max-width: 36em;
  background: rgba(241, 69, 61, 0.1); border: 1px solid rgba(241, 69, 61, 0.35); color: var(--sub); line-height: 1.5;
}

/* цвета */
.stage-colors { aspect-ratio: 1 / 0.92; }
.stage-colors .phone { --pw: 40cqi; top: 6%; }
.stage-colors .p-light { inset-inline-start: 2%; --rz: -10deg; --ry: 14deg; z-index: 11; top: 12%; }
.stage-colors .p-teal { inset-inline-end: 2%; --rz: 10deg; --ry: -14deg; z-index: 11; top: 12%; }
.stage-colors .p-dark { inset-inline-start: 30%; --rz: 0deg; --ry: -6deg; z-index: 12; top: 2%; }

/* ---------------------------------------------------------------- приватность, вопросы, финал */

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.privacy { position: relative; padding: clamp(70px, 10vw, 130px) 0; overflow: clip; }
.privacy .glow { --s: 900px; left: 50%; top: 40%; translate: -50% -50%; opacity: 0.45; }
.privacy-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.privacy-grid .card { padding: 26px 22px; }
.privacy-grid h3 { margin: 16px 0 10px; }
.privacy-grid p { margin: 0; color: var(--sub); font-size: 0.97rem; line-height: 1.55; }
.privacy-grid .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(241, 69, 61, 0.14); color: var(--mark);
}
.privacy-grid .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-link { position: relative; z-index: 1; margin: 32px 0 0; text-align: center; }
.privacy-link a { color: var(--mark); font-weight: 600; text-underline-offset: 4px; }

.faq { padding: clamp(60px, 9vw, 120px) 0; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s ease, background 0.2s ease; }
.faq details[open] { background: var(--panel-2); border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 600; font-size: 1.06rem; line-height: 1.4;
}
[dir="rtl"] .faq summary { padding: 20px 22px 20px 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-inline-end: 2px solid var(--mark); border-bottom: 2px solid var(--mark); rotate: 45deg; transition: rotate 0.25s ease, margin 0.25s ease;
}
[dir="rtl"] .faq summary::after { rotate: -45deg; }
.faq details[open] summary::after { rotate: 225deg; margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--sub); line-height: 1.6; }

.final { position: relative; padding: clamp(80px, 11vw, 150px) 0; text-align: center; overflow: clip; }
.final .glow { --s: 1000px; left: 50%; top: 50%; translate: -50% -50%; opacity: 0.7; }
.final-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.final-icon { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--shadow); }
.final-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; }
.final .sub { margin: 0; max-width: 32em; }

.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--dim); font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: var(--sub); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot .legal { margin: 22px 0 0; font-size: 0.84rem; line-height: 1.6; }

/* ---------------------------------------------------------------- простые страницы */

.doc { max-width: 760px; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.2rem; margin: 32px 0 8px; letter-spacing: 0; }
.doc p { color: var(--sub); margin: 0 0 12px; }
.doc a { color: var(--mark); }
.doc hr { border: 0; border-top: 1px solid var(--line-2); margin: 48px 0; }

/* ---------------------------------------------------------------- картинка для соцсетей (og.html) */

.og {
  position: relative; width: 1200px; height: 630px; overflow: hidden;
  display: grid; grid-template-columns: 640px 1fr; align-items: center; gap: 24px; padding: 0; padding-inline-start: 72px;
}
.og .glow.g1 { --s: 900px; right: -300px; top: -260px; }
.og-copy { position: relative; z-index: 1; }
.og-brand { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; font-size: 26px; font-weight: 700; }
.og-brand img { width: 56px; height: 56px; border-radius: 15px; }
.og .display { font-size: 84px; }
:lang(ja) .og .display, :lang(zh) .og .display, :lang(ko) .og .display { font-size: 74px; }
.og .sub { font-size: 27px; margin-top: 24px; }
.og-stage { position: relative; z-index: 1; width: 470px; margin-top: 60px; }

/* ---------------------------------------------------------------- появление */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Сцены собираются по частям: телефон, потом то, что «вылетает» из экрана. */
.js .stage .pop { opacity: 0; scale: 0.92; translate: 0 26px; transition: opacity 0.8s ease, scale 0.9s cubic-bezier(0.2, 0.9, 0.2, 1.15), translate 0.9s cubic-bezier(0.2, 0.9, 0.2, 1); transition-delay: calc(var(--d, 0) * 120ms + 150ms); }
.js .stage.in .pop { opacity: 1; scale: 1; translate: 0 0; }
.js .stage .phone.pop { scale: 0.96; translate: 0 40px; }
.js .stage-colors:not(.in) .p-light, .js .stage-colors:not(.in) .p-teal { --rz: 0deg; }
.stage-colors .phone { transition: opacity 0.8s ease, translate 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.9, 0.2, 1); }

.js .dash path.draw { stroke-dasharray: 1 9; }
.js .stage-hero .dash path { animation: dashflow 1.6s linear infinite; }

/* Загрузка: hero появляется сам, без прокрутки. */
.js .hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 90ms); }
.js .stage-hero .phone { animation: phone-in 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
.js .stage-hero .watch { animation: watch-in 1.1s cubic-bezier(0.2, 0.9, 0.2, 1.15) 0.55s both; }
.js .stage-hero .dash { animation: fade 0.8s ease 1.1s both; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes phone-in { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes watch-in { from { opacity: 0; scale: 0.7; } to { opacity: 1; scale: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(241, 69, 61, 0.7); } 80%, 100% { box-shadow: 0 0 0 3cqi rgba(241, 69, 61, 0); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dashflow { to { stroke-dashoffset: -20; } }
@keyframes run { from { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }

/* ---------------------------------------------------------------- адаптив */

@media (max-width: 1080px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .copy, .feature.flip .stage-col { order: initial; }
  .hero-stage-col { order: 2; }
  .stage { max-width: 520px; }
  .feature .glow { inset-inline-start: -360px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-row { height: 60px; gap: 10px; }
  .top .brand span { display: none; }
  .lang summary span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
  .lang ul { grid-template-columns: minmax(140px, 1fr); position: fixed; inset-inline: 12px; top: 64px; width: auto; max-width: none; }
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .play-badge img { height: 52px; }
  .stage-tx .tx { width: 80cqi; }
  .stage-ed .ed { width: 70cqi; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stage .pop { opacity: 1; transform: none; scale: 1; translate: 0 0; }
}
