/* чиллачё — сайт. Цвета, «жвачка» и «резина» — один в один из приложения (app/lib/theme, app/lib/ui/tactile.dart). */

:root {
  --bg: #120F17;
  --surface: #1F1A26;
  --surface-high: #2B2433;
  --paper: #2A2331;
  --nav: #2A2432;
  --text: #FFF4EC;
  --muted: #9A90A3;
  --soft: #D6CCDC;
  --divider: rgba(255, 255, 255, .07);
  --online: #3DDC84;

  /* вкус «жвачка» */
  --a-main: #FF2E88;
  --a-light: #FF7DBA;
  --a-deep: #B8005A;
  --a-on: #1A0710;
  --a-second: #6FF5C8;
  --thick: #5A1035;

  /* карта «классика», ночь; днём перекрашивается скриптом */
  --m-land: #232C50;
  --m-road: #5A6794;
  --m-minor: #384370;
  --m-water: #111A3E;
  --m-park: #1D6A60;
  --m-tree: #3FC39C;
  --m-bld: #2F3963;
  --m-label: #D4D9F2;

  --wrap: 1140px;
  --gutter: 18px;
  --spring: cubic-bezier(.3, 1.9, .5, 1);
  color-scheme: dark;
}
html[data-flavour="konfeta"]  { --a-main:#FF6FA3; --a-light:#FFB0CC; --a-deep:#C23A6E; --a-on:#2A0A18; --a-second:#6FF5C8; }
html[data-flavour="klubnika"] { --a-main:#FF6B81; --a-light:#FFA9B6; --a-deep:#C2364D; --a-on:#2A0A10; --a-second:#6FF5C8; }
html[data-flavour="persik"]   { --a-main:#FF8A9B; --a-light:#FFC2CA; --a-deep:#C9566A; --a-on:#2A0C12; --a-second:#7CF2C0; }
html[data-flavour="moloko"]   { --a-main:#FF9EC4; --a-light:#FFD1E3; --a-deep:#CC6690; --a-on:#2E0B1C; --a-second:#7FE8D0; }
html[data-flavour="arbuz"]    { --a-main:#FF3D5A; --a-light:#FF8A9A; --a-deep:#B30F2C; --a-on:#1A0508; --a-second:#7CF29A; }
html[data-flavour="kislaya"]  { --a-main:#C8FF1F; --a-light:#E6FF8A; --a-deep:#6E9400; --a-on:#141A00; --a-second:#FF5FA8; }
html[data-flavour="myata"]    { --a-main:#3DF2C0; --a-light:#A6FFE6; --a-deep:#0E9C7C; --a-on:#03201A; --a-second:#FF7AB8; }
html[data-flavour="limon"]    { --a-main:#FFD23F; --a-light:#FFEA9E; --a-deep:#B38A00; --a-on:#1F1600; --a-second:#7FD8FF; }
html[data-flavour="vinograd"] { --a-main:#A87BFF; --a-light:#D3BDFF; --a-deep:#6A3FD6; --a-on:#150A2B; --a-second:#FFE066; }
@supports (color: color-mix(in oklab, red, blue)) {
  :root { --thick: color-mix(in oklab, var(--a-deep) 55%, var(--bg)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
/* зерно — тонкая плёнка на фоне, как в тактильном стиле приложения */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; }
a { color: var(--a-light); text-underline-offset: 3px; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--a-second); outline-offset: 3px; border-radius: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }

h1, h2 { font-weight: 800; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(42px, 11vw, 88px); line-height: .98; }
h2 { font-size: clamp(32px, 7.4vw, 56px); line-height: 1.02; }
/* заголовки с «толщиной» в тёмном оттенке акцента — как жвачка снизу */
.thick { text-shadow: 0 .06em 0 var(--thick); }
.hl { color: var(--a-main); text-shadow: 0 .06em 0 var(--a-deep); }
p { margin: 0; }
.small { font-size: 14px; color: var(--muted); }

/* ───────── материалы ───────── */

/* глянцевая жвачка: gumBg() + .gum::after из макета приложения */
.gum {
  position: relative;
  isolation: isolate;
  color: var(--a-on);
  background: radial-gradient(120% 90% at 30% 20%, var(--a-light) 0%, var(--a-main) 45%, var(--a-deep) 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--a-deep);
}
.gum::after {
  content: "";
  position: absolute;
  left: 14%; top: 8%;
  width: 46%; height: 32%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  filter: blur(1.5px);
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: -1;
}
/* матовая резина: rubber() из макета */
.rubber {
  background: linear-gradient(180deg, #2A2432, #1D1823);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 10px 22px rgba(0, 0, 0, .45);
}

/* Squish: быстро вдавливается, отпускается пружиной с перелётом */
button.gum, .picker button, .sw-btn, .island a {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .42s var(--spring), box-shadow .2s;
}
button.gum:active, .picker button:active, .sw-btn:active, .island a:active {
  transform: scale(.93) translateY(2px);
  transition-duration: .08s;
  transition-timing-function: ease-out;
}
button.gum:active { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .35), 0 2px 0 var(--a-deep); }

/* ───────── кнопки сторов ───────── */
.stores { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0;
  padding: 11px 22px 12px 16px;
  min-height: 58px;
  border-radius: 22px 22px 22px 8px;           /* «липкий угол» */
  font-weight: 800; font-size: 18px; line-height: 1.05; text-align: left;
}
.store small { display: block; font-weight: 600; font-size: 12px; opacity: .8; margin-bottom: 1px; }
.store .ico { width: 24px; height: 24px; flex: none; }
.store.soon { filter: saturate(.8); }
/* скотч «скоро» — та же полоска, что держит фотки на карте */
.tape {
  position: absolute;
  right: -12px; top: -11px;
  padding: 3px 12px 4px;
  font: 800 12px/1 Onest, sans-serif;
  font-style: normal;
  color: var(--bg);
  letter-spacing: .02em;
  transform: rotate(8deg);
  background: repeating-linear-gradient(-45deg, rgba(255, 244, 236, .92) 0 5px, rgba(255, 244, 236, .78) 5px 10px);
  clip-path: polygon(0 8%, 6% 0, 10% 10%, 16% 0, 22% 6%, 30% 0, 100% 0, 97% 30%, 100% 55%, 96% 100%, 88% 92%, 80% 100%, 0 100%, 3% 60%);
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ───────── телефон ───────── */
.phone {
  --w: min(300px, 76vw);
  margin: 0;
  width: var(--w);
  aspect-ratio: 300 / 650;
  position: relative;
  flex: none;
  container-type: inline-size;
  padding: calc(var(--w) * .034);
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(155deg, #463C50 0%, #1B1620 30%, #0D0B10 70%, #2A2331 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    inset 0 0 0 4px #0B090D,
    0 1px 0 1px rgba(255, 255, 255, .04),
    0 40px 70px -24px rgba(0, 0, 0, .8),
    0 18px 30px -18px rgba(0, 0, 0, .6);
}
.phone::after { /* dynamic island */
  content: "";
  position: absolute;
  z-index: 10;
  top: calc(var(--w) * .058);
  left: 50%;
  width: 31%;
  height: calc(var(--w) * .088);
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}
.tilt-r { transform: rotate(3deg); }
.tilt-l { transform: rotate(-3deg); }
.screen {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * .135);
  background: var(--bg);
  container-type: inline-size;
  font-size: 12px;
  line-height: 1.25;
  isolation: isolate;
}
@supports (width: 1cqw) { .screen { font-size: 4cqw; } }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 8; opacity: 0; transition: opacity .35s; }
.shot.ok { opacity: 1; }
.has-shot .mock { visibility: hidden; }
.has-shot .mock * { animation: none !important; }
.mock { position: absolute; inset: 0; overflow: hidden; }
.mock .map { position: absolute; inset: 0; width: 100%; height: 100%; }

.sb {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.15em 2.1em 0 2.5em;
  font-weight: 600; font-size: .98em;
}
.sb svg { width: 4.6em; height: .9em; }

/* островок навбара (в приложении — подписи под каждой вкладкой) */
.inav {
  position: absolute; z-index: 5;
  left: 5%; right: 5%; bottom: 2.6%;
  display: flex; justify-content: space-around;
  padding: .42em .35em;
  border-radius: 1.7em;
  background: linear-gradient(180deg, #2A2432, #1D1823);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.35), 0 .7em 1.4em rgba(0,0,0,.45);
}
.inav span {
  display: flex; flex-direction: column; align-items: center; gap: .12em;
  padding: .38em .7em .32em;
  border-radius: 1.2em;
  font-size: .68em; font-weight: 600; color: var(--muted);
}
.inav svg { width: 1.9em; height: 1.9em; }
.inav .on {
  position: relative; isolation: isolate;
  color: var(--a-on);
  background: radial-gradient(120% 90% at 30% 20%, var(--a-light) 0%, var(--a-main) 45%, var(--a-deep) 100%);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), inset 0 1.5px 0 rgba(255,255,255,.35), 0 .2em 0 var(--a-deep);
}

/* ───────── карта: стикеры друзей ───────── */
.pin {
  --s: 3.5em;
  position: absolute; z-index: 2;
  left: var(--x); top: var(--y);
  width: var(--s);
  padding-bottom: .62em;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  animation: breathe 3.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.pin.big { --s: 4.3em; z-index: 3; }
.pin .face {
  position: relative;
  width: var(--s); height: var(--s);
  padding: .2em;
  border-radius: 32%;
  background: #FFF4EC;
  box-shadow: 0 .45em .9em rgba(0, 0, 0, .45);
}
.pin .face::after { /* хвостик */
  content: "";
  position: absolute; left: 50%; bottom: -.55em;
  width: 1.05em; height: .66em;
  transform: translateX(-50%);
  background: #FFF4EC;
  clip-path: polygon(0 0, 100% 0, 55% 100%, 45% 100%);
}
.pin .face img { width: 100%; height: 100%; border-radius: 26%; object-fit: cover; }
.dot {
  position: absolute;
  right: -.22em; bottom: .42em;
  width: .98em; height: .98em;
  border-radius: 50%;
  background: var(--online);
  border: .2em solid var(--m-land);
}
.badge {
  position: absolute;
  left: -.62em; bottom: .3em;
  font-size: 1.3em; line-height: 1; font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.pin.big .badge { font-size: 1.5em; }
.me {
  position: absolute; z-index: 2;
  left: var(--x); top: var(--y);
  width: 1.35em; height: 1.35em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: .24em solid #FFF4EC;
  background: var(--a-main);
  box-shadow: 0 0 0 0 var(--a-main);
  animation: ping 2.4s ease-out infinite;
}
.spot { position: absolute; left: var(--x); top: var(--y); width: .6em; height: .6em; transform: translate(-50%, -50%); border-radius: 50%; background: #FFF4EC; box-shadow: 0 0 0 .2em rgba(255,244,236,.25); }
.beams { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

/* плашка со статусом: карточка с острым хвостиком */
.say {
  position: absolute; z-index: 4;
  left: var(--x); top: var(--y);
  max-width: 86%;
  padding: .6em .9em;
  border-radius: 1.1em 1.1em 1.1em .4em;
  background: linear-gradient(180deg, #332B3C, #231D2A);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 .6em 1.2em rgba(0,0,0,.45);
  font-size: .95em; white-space: nowrap;
}
.say::after {
  content: "";
  position: absolute; top: 100%; left: var(--tail, 20%);
  width: 1em; height: .6em;
  background: #231D2A;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.say b { font-weight: 800; }
.typer::after, .typer-mirror::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 2px;
  vertical-align: -.15em;
  background: var(--a-main);
  animation: caret 1s steps(1) infinite;
}
.chip-row { position: absolute; z-index: 4; top: 11.5%; left: 5%; }
.chip-free { display: inline-flex; align-items: center; gap: .5em; padding: .5em .85em .5em .55em; border-radius: 1.2em; font-weight: 600; font-size: .88em; }
.sw { display: inline-block; position: relative; width: 2.3em; height: 1.35em; border-radius: 1em; background: #3A3242; transition: background .25s; flex: none; }
.sw::after { content: ""; position: absolute; top: .17em; left: .17em; width: 1em; height: 1em; border-radius: 50%; background: #FFF4EC; transition: transform .4s var(--spring); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.sw.on { background: var(--a-second); }
.sw.on::after { transform: translateX(.95em); }
.chip-free .sw { font-size: .8em; }

.fab {
  position: absolute; z-index: 5;
  right: 6%; bottom: 13.5%;
  width: 3.5em; height: 3.5em;
  display: grid; place-items: center;
  border-radius: 1.3em 1.3em 1.3em .5em;
}
.fab svg { width: 1.6em; height: 1.6em; }

/* полароид со скотчем цвета темы */
.polaroid {
  position: absolute; z-index: 2;
  left: var(--x); top: var(--y);
  width: var(--w);
  padding: 4% 4% 13%;
  transform: translate(-50%, -50%) rotate(var(--r));
  background: #FFF9F2;
  border-radius: .25em;
  box-shadow: 0 .5em 1em rgba(0,0,0,.45);
}
.polaroid > svg { width: 100%; aspect-ratio: 1; border-radius: .12em; }
.polaroid.tape::before {
  content: "";
  position: absolute; z-index: 1; left: 50%; top: -.55em;
  width: 58%; height: 1.15em;
  transform: translateX(-50%) rotate(-5deg);
  background: repeating-linear-gradient(-45deg, var(--a-light) 0 .3em, var(--a-main) .3em .6em);
  opacity: .72;
  clip-path: polygon(0 12%, 5% 0, 9% 14%, 14% 0, 100% 0, 96% 40%, 100% 70%, 95% 100%, 0 100%, 4% 55%);
}
.polaroid .by { position: absolute; right: -.7em; bottom: -.6em; width: 2.2em; height: 2.2em; border-radius: 32%; border: .16em solid #FFF4EC; box-shadow: 0 .2em .4em rgba(0,0,0,.4); }

/* кружочек на карте — «играет» */
.round-post {
  position: absolute; z-index: 2;
  left: var(--x); top: var(--y);
  width: var(--w); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: .26em solid #FFF;
  box-shadow: 0 .5em 1em rgba(0,0,0,.5);
}
.round-post .rv { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.round-post img { width: 100%; height: 100%; object-fit: cover; animation: talk 2.6s ease-in-out infinite; }
.round-post .ring { position: absolute; inset: -.6em; width: calc(100% + 1.2em); height: calc(100% + 1.2em); transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--a-main); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 295.3; stroke-dashoffset: 295.3; animation: fill 6s linear infinite; }

/* карточка поста с хвостиком */
.post-card {
  position: absolute; z-index: 4;
  left: var(--x); top: var(--y);
  width: 58%;
  padding: .5em;
  transform: translate(-50%, -100%) translateY(-.7em);
  border-radius: 1.1em;
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 .8em 1.6em rgba(0,0,0,.5);
}
.post-card::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  width: 1.3em; height: .75em; transform: translateX(-50%);
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 52% 100%, 48% 100%);
}
.pc-head { display: flex; align-items: center; gap: .45em; font-size: .85em; margin: .05em .1em .45em; }
.pc-head img { width: 1.9em; height: 1.9em; border-radius: 32%; }
.pc-head span { color: var(--muted); margin-left: auto; font-size: .9em; }
.pc-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: .7em; }
.pc-react { display: flex; gap: .35em; margin-top: .45em; }
.pc-react span { display: inline-flex; align-items: center; gap: .2em; padding: .2em .5em .2em .3em; border-radius: 1em; background: var(--surface-high); font-size: .8em; font-weight: 600; }
.pc-react img { width: 1.3em; height: 1.3em; }
.pc-react .add { padding: .2em .55em; color: var(--muted); }
.hang {
  position: absolute; z-index: 5; left: 50%; bottom: 4.5%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .35em;
  padding: .8em 1.3em .85em 1em;
  border-radius: 1.4em 1.4em 1.4em .5em;
  font-weight: 800; white-space: nowrap;
}
.hang svg { width: 1.2em; height: 1.2em; }

/* запись кружочка */
.rec-mock .dim { position: absolute; inset: 0; background: rgba(18, 15, 23, .66); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.rec-circle { position: absolute; left: 50%; top: 36%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.rec-video { position: absolute; inset: 5%; border-radius: 50%; overflow: hidden; border: .3em solid #fff; box-shadow: 0 1em 2em rgba(0,0,0,.5); }
.rec-video img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); animation: talk 2.2s ease-in-out infinite; }
.rec-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.rec-ring circle { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.rec-ring .track { stroke: rgba(255, 255, 255, .14); }
.rec-ring .prog { stroke: var(--a-main); stroke-dasharray: 301.6; stroke-dashoffset: 301.6; animation: fill 8s linear infinite; }
.rec-time { position: absolute; left: 50%; top: 65%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .45em; padding: .45em .9em; border-radius: 1em; font-weight: 700; font-variant-numeric: tabular-nums; }
.rec-time i { width: .6em; height: .6em; border-radius: 50%; background: #FF3D5A; animation: blink 1s steps(1) infinite; }
.pull { position: absolute; right: 7%; bottom: 5%; width: 3.9em; height: 11em; }
.pull-track { position: absolute; inset: 0; border-radius: 2em; display: flex; flex-direction: column; align-items: center; padding-top: .7em; color: var(--muted); }
.pull-track svg { width: 1.4em; height: 1.4em; margin-top: -.35em; animation: chev 1.6s ease-in-out infinite; }
.pull-track svg:nth-child(2) { animation-delay: .2s; }
.pull-btn { position: absolute; left: .2em; bottom: .2em; width: 3.5em; height: 3.5em; border-radius: 50%; display: grid; place-items: center; animation: pull 3.2s var(--spring) infinite; }
.pull-btn svg { width: 1.7em; height: 1.7em; }
.pull-hint { position: absolute; right: 25%; bottom: 13%; font-weight: 600; font-size: .9em; color: var(--soft); transform: rotate(-4deg); }

/* две камеры */
.cam-mock { background: #000; touch-action: none; }
.cam-back { position: absolute; inset: 0; }
.cam-back > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-back .selfie, .cam-front .scene { display: none; }
.swapped .cam-back .selfie, .swapped .cam-front .scene { display: block; }
.swapped .cam-back .scene, .swapped .cam-front .selfie { display: none; }
.cam-top { position: absolute; z-index: 3; top: 11%; left: 5%; right: 5%; display: flex; justify-content: space-between; }
.ic { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.ic svg { width: 1.3em; height: 1.3em; }
.cam-front {
  position: absolute; z-index: 4;
  left: 0; top: 0;
  width: 38%; aspect-ratio: 1;
  padding: 0; border: .28em solid #fff; border-radius: 50%;
  overflow: hidden;
  background: #E9D5FF;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 .6em 1.4em rgba(0,0,0,.5);
  transform: translate(var(--cx, 55%), var(--cy, 34%));
  transform: translate(calc(var(--px, 55) * 1cqw), calc(var(--py, 58) * 1cqw));
}
.cam-front:active { cursor: grabbing; }
.cam-front > * { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cam-front.hint { animation: nudge 2.4s ease-in-out 1s 2; }
.cam-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 5%; display: flex; justify-content: space-around; align-items: center; }
.shutter { width: 4.6em; height: 4.6em; border-radius: 50%; border: .3em solid #fff; background: rgba(255,255,255,.25); box-shadow: inset 0 0 0 .3em rgba(0,0,0,.25); }
.thumb { width: 2.6em; height: 2.6em; border-radius: .7em; overflow: hidden; border: .14em solid rgba(255,255,255,.8); }
.thumb svg { width: 100%; height: 100%; }

/* список чатов */
.list-mock { background: var(--bg); }
.lm-head { position: absolute; top: 11%; left: 6%; right: 6%; display: flex; justify-content: space-between; align-items: center; }
.lm-head b { font-size: 2.1em; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 .06em 0 var(--thick); }
.gum.mini { width: 2.6em; height: 2.6em; border-radius: 1em 1em 1em .4em; display: grid; place-items: center; }
.gum.mini svg { width: 1.25em; height: 1.25em; }
.field { position: absolute; top: 20.5%; left: 5%; right: 5%; display: flex; align-items: center; gap: .5em; padding: .65em .9em; border-radius: 1.3em; background: var(--surface-high); color: var(--muted); font-size: .92em; }
.field svg { width: 1.2em; height: 1.2em; }
.rows { position: absolute; top: 29%; left: 0; right: 0; margin: 0; padding: 0 4.5%; list-style: none; }
.rows li { display: flex; align-items: center; gap: .75em; padding: .55em .15em; border-bottom: 1px solid var(--divider); }
.av { position: relative; flex: none; width: 3.2em; height: 3.2em; }
.av img { width: 100%; height: 100%; border-radius: 32%; }
.av .dot { right: -.25em; bottom: -.2em; border-color: var(--bg); }
.av .badge { left: -.5em; bottom: -.45em; font-size: 1.15em; }
.av.saved { display: grid; place-items: center; border-radius: 32%; }
.av.saved svg { width: 1.4em; height: 1.4em; }
.c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.t { display: flex; align-items: center; gap: .4em; min-width: 0; }
.t b { font-weight: 600; white-space: nowrap; }
.km { font-style: normal; font-size: .72em; font-weight: 600; padding: .15em .5em .18em .35em; border-radius: 1em; background: var(--surface-high); color: var(--soft); white-space: nowrap; }
.m { color: var(--muted); font-size: .86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r { display: flex; flex-direction: column; align-items: flex-end; gap: .3em; flex: none; }
.r time { font-size: .72em; color: var(--muted); }
.cnt { font-style: normal; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 1em; display: grid; place-items: center; font-size: .75em; font-weight: 800; }
.cnt::after { display: none; }
.read { font-style: normal; font-size: .75em; color: var(--a-second); letter-spacing: -.2em; }

/* пузыри рядом с телефоном */
.bub { max-width: 84%; padding: 10px 14px; border-radius: 20px 20px 20px 6px; line-height: 1.35; }
.bub.in {
  align-self: flex-start;
  background: linear-gradient(180deg, #3A3342, #302939);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.18), 0 3px 0 rgba(0,0,0,.5);
}
.bub.mine {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: var(--surface);
  background: color-mix(in oklab, var(--surface) 88%, var(--a-main));
}
.bub i { font-style: normal; font-size: .75em; color: var(--a-second); margin-left: .5em; letter-spacing: -.2em; }
.voice { display: flex; align-items: center; gap: 10px; }
.voice .play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.voice .play svg { width: 14px; height: 14px; margin-left: 2px; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: var(--a-light); height: 40%; animation: wave 1.3s ease-in-out infinite; }
.wave i:nth-child(3n) { height: 80%; animation-delay: -.3s; }
.wave i:nth-child(3n+1) { height: 55%; animation-delay: -.7s; }
.wave i:nth-child(4n) { height: 95%; animation-delay: -1s; }
.voice em { font-style: normal; font-size: 13px; color: var(--muted); }
.reacts { align-self: flex-start; display: flex; gap: 6px; padding: 8px 12px; border-radius: 26px 26px 26px 8px; }
.reacts img { width: 32px; height: 32px; }
.reacts .pop { animation: inflate 2.2s var(--spring) infinite; }

/* оформление */
.look-mock { background: var(--bg); }
.lk-head { position: absolute; top: 11%; left: 5%; display: flex; align-items: center; gap: .5em; }
.lk-head svg { width: 1.5em; height: 1.5em; color: var(--muted); }
.lk-head b { font-size: 1.35em; font-weight: 800; }
.lk-preview { position: absolute; top: 19%; left: 5%; right: 5%; padding: .9em; border-radius: 1.4em; display: flex; flex-direction: column; gap: .5em; }
.lk-preview .bub { font-size: .92em; padding: .55em .85em; }
.lk-btn { align-self: center; margin-top: .3em; padding: .6em 1.4em .65em; border-radius: 1.2em 1.2em 1.2em .45em; font-weight: 800; font-size: .92em; }
.lk-label { position: absolute; left: 6%; font-size: .8em; font-weight: 600; color: var(--muted); }
.lk-label:nth-of-type(1) { top: 46%; }
.lk-label:nth-of-type(2) { top: 66.5%; }
.lk-dots { position: absolute; top: 50%; left: 5%; right: 5%; display: grid; grid-template-columns: repeat(5, 1fr); gap: .7em .5em; justify-items: center; }
.lk-dots i, .picker i {
  display: block; position: relative;
  border-radius: 50%;
  background: radial-gradient(120% 90% at 30% 20%, var(--c1) 0%, var(--c2) 45%, var(--c3) 100%);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), inset 0 1.5px 0 rgba(255,255,255,.35), 0 .18em 0 var(--c3);
}
.lk-dots i { width: 2.6em; height: 2.6em; transition: transform .4s var(--spring); }
.lk-dots i::after, .picker i::after { content: ""; position: absolute; left: 18%; top: 12%; width: 40%; height: 28%; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(1px); transform: rotate(-20deg); }
.lk-dots i.on { outline: .18em solid #FFF4EC; outline-offset: .18em; transform: scale(1.06); }
.seg { position: absolute; top: 70%; left: 5%; right: 5%; display: flex; padding: .3em; border-radius: 1.3em; font-size: .82em; font-weight: 600; }
.seg span { flex: 1; text-align: center; padding: .55em 0; border-radius: 1em; color: var(--muted); }
.seg .gum { color: var(--a-on); }
.lk-row { position: absolute; top: 79%; left: 6%; right: 6%; display: flex; justify-content: space-between; align-items: center; font-size: .88em; font-weight: 500; }
.lk-row .sw { font-size: .9em; }

/* выбор вкуса на странице */
.picker { display: flex; flex-wrap: wrap; gap: 14px 8px; margin: 26px 0 18px; padding: 0; }
.picker button {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  width: 64px;
  padding: 4px 0;
  border: 0; background: none;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.picker i { width: 46px; height: 46px; transition: transform .45s var(--spring); }
.picker button[aria-checked="true"] { color: var(--text); }
.picker button[aria-checked="true"] i { outline: 3px solid #FFF4EC; outline-offset: 3px; transform: scale(1.08) rotate(-8deg); }

/* время суток */
.clock { margin-top: 26px; padding: 18px 18px 14px; border-radius: 24px 24px 24px 8px; max-width: 420px; }
.clock label { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--soft); }
.clock label b { font-size: 28px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.clock input { width: 100%; margin: 14px 0 6px; -webkit-appearance: none; appearance: none; background: transparent; height: 34px; cursor: pointer; }
.clock input::-webkit-slider-runnable-track { height: 12px; border-radius: 8px; background: linear-gradient(90deg, #232C50, #232C50 17%, #2E3660 25%, #2F3D72 36%, #2F3D72 68%, #28304F 78%, #232C50 88%); box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
.clock input::-moz-range-track { height: 12px; border-radius: 8px; background: linear-gradient(90deg, #232C50, #232C50 17%, #2E3660 25%, #2F3D72 36%, #2F3D72 68%, #28304F 78%, #232C50 88%); box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
.clock input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border: 0; border-radius: 50%;
  background: radial-gradient(120% 90% at 30% 20%, var(--a-light) 0%, var(--a-main) 45%, var(--a-deep) 100%);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.35), 0 3px 0 var(--a-deep);
}
.clock input::-moz-range-thumb {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: radial-gradient(120% 90% at 30% 20%, var(--a-light) 0%, var(--a-main) 45%, var(--a-deep) 100%);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.35), 0 3px 0 var(--a-deep);
}
.clock input:focus-visible { outline: none; }
.clock input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--a-second); outline-offset: 2px; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 0 6px; }
[data-daymap] .map * { transition: none; }


/* ═════════════ история на карте ═════════════ */
.story { position: relative; }
.world {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--m-land);
  --fx: 50vw; --fy: 30vh;
}
.cam {
  position: absolute; left: 0; top: 0;
  width: 2000px; height: 1500px;
  transform-origin: 0 0;
  transition: transform 1.4s cubic-bezier(.55, 0, .15, 1);
  will-change: transform;
  font-size: 16px; line-height: 1.25;
}
.cam.instant { transition: none; }
.wmap { position: absolute; left: 0; top: 0; width: 2000px; height: 1500px; }
.wmap.wbase { left: -600px; top: -600px; width: 3200px; height: 2700px; }
.o { position: absolute; }
.cam .pin { z-index: 3; animation: none; }
.cam .pin .face { animation: breathe2 3.8s ease-in-out infinite; transform-origin: 50% 100%; }
.cam .pin:nth-of-type(2n) .face { animation-delay: -1.3s; }
.cam .pin:nth-of-type(3n) .face { animation-delay: -2.4s; }
.cam .dot { border-color: var(--m-land); }
.walk { position: relative; animation: walk var(--dur, 14s) ease-in-out infinite alternate; }
.cam .polaroid { z-index: 2; padding: 6px 6px 20px; border-radius: 4px; }
.cam .round-post { z-index: 2; }
.cam .me { z-index: 2; }

/* подпись-статус над стикером */
.wsay {
  z-index: 5;
  transform: translate(-24px, -100%);
  padding: 9px 14px 10px;
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(180deg, #332B3C, #231D2A);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 22px rgba(0,0,0,.45);
  font-size: 15px; white-space: nowrap;
}
.wsay::after { content: ""; position: absolute; top: 100%; left: 14px; width: 18px; height: 10px; background: #231D2A; clip-path: polygon(0 0, 100% 0, 30% 100%); }
.wsay b { font-weight: 800; }
.wsay.focus { margin-top: -88px; transition: opacity .3s; }
.wsay.pop { opacity: 0; margin-top: -72px; transform-origin: 14px 100%; }
.wsay.pop.show { animation: popin 3.2s var(--spring) both; }

/* посты: падают и приклеиваются */
.p1 { animation: drop 1.1s var(--spring) .9s both; }
.p4, .r2, .d1 { opacity: 0; }
.seen-posts .p4 { animation: drop 1s var(--spring) .7s both; }
.seen-rounds .r2 { opacity: 1; }
[data-scene="rounds"] .r2 { animation: r2 8s linear infinite; }
.d1-front { position: absolute; left: 10%; top: 8%; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.4); background: #E9D5FF; }
.d1-front img { width: 100%; height: 100%; object-fit: cover; }

/* карточка поста с хвостиком — раскрывается в сцене «посты» */
.wcard {
  z-index: 6;
  width: 230px;
  padding: 8px;
  transform: translate(-50%, -100%) translateY(-18px);
  transform-origin: 50% 100%;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 36px rgba(0,0,0,.55);
  font-size: 14px;
  opacity: 0; scale: .4;
  transition: opacity .3s, scale .6s var(--spring);
}
.wcard::after { content: ""; position: absolute; top: 100%; left: 50%; width: 22px; height: 13px; transform: translateX(-50%); background: var(--paper); clip-path: polygon(0 0, 100% 0, 52% 100%, 48% 100%); }
.wcard .pc-head { font-size: 14px; }
.wcard-t { margin: 8px 4px 2px; font-size: 14px; }
.wcard .pc-react span { font-size: 12px; }
[data-scene="posts"] .wcard { opacity: 1; scale: 1; transition-delay: 1.4s; }

.dcard { width: 220px; }
.dshot { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; }
.dshot > svg { width: 100%; height: 100%; }
.dshot .d1-front { left: 8%; top: 6%; width: 42%; }
[data-scene="posts"] .dcard { opacity: 0; scale: .4; }
[data-scene="dualcam"] .dcard { animation: dropcard 1s var(--spring) 2.1s both; transition: none; }
.seen-dualcam:not([data-scene="dualcam"]) .d1 { opacity: 1; animation: none; }
.seen-dualcam .d1 { animation: none; }
[data-scene="dualcam"] .d1 { opacity: 0; }

/* переписка поднимается от стикера */
.wchat { z-index: 6; width: 250px; transform: translateY(-100%); display: flex; flex-direction: column; gap: 8px; font-size: 15px; pointer-events: none; }
.wchat > * { opacity: 0; transform: translateY(24px) scale(.9); transform-origin: 0 100%; transition: opacity .3s, transform .5s var(--spring); }
[data-scene="chats"] .wchat > * { opacity: 1; transform: none; }
[data-scene="chats"] .wchat > :nth-child(1) { transition-delay: 1.2s; }
[data-scene="chats"] .wchat > :nth-child(2) { transition-delay: 1.9s; }
[data-scene="chats"] .wchat > :nth-child(3) { transition-delay: 2.6s; }
[data-scene="chats"] .wchat > :nth-child(4) { transition-delay: 3.2s; }
[data-scene="chats"] .wsay.focus { opacity: 0; }
.wchat .bub { max-width: 100%; }

/* экранный слой: кнопка поста (только в сценах постов) и запись кружочка */
.ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; --faby: 70vh; --recy: 35vh; --recd: 220px; }
.fab-wrap { position: absolute; left: var(--fx); top: var(--faby); width: 62px; height: 62px; margin: -31px 0 0 -31px; opacity: 0; scale: .6; transition: opacity .3s, scale .5s var(--spring); }
[data-scene="posts"] .fab-wrap, [data-scene="rounds"] .fab-wrap, [data-scene="dualcam"] .fab-wrap { opacity: 1; scale: 1; }
.wfab { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 22px 22px 22px 8px; z-index: 1; }
.wfab svg { width: 28px; height: 28px; }
.fab-track { position: absolute; border-radius: 31px; display: flex; align-items: center; color: var(--muted); opacity: 0; }
.fab-track.v { left: 0; right: 0; bottom: 0; height: 170px; flex-direction: column; padding-top: 12px; }
.fab-track.h { top: 0; bottom: 0; left: 0; width: 170px; flex-direction: row-reverse; padding-right: 10px; }
.fab-track.h svg { transform: rotate(90deg); }
.fab-track svg { width: 22px; height: 22px; margin: -3px; animation: chev 1.6s ease-in-out infinite; }
.fab-track svg:nth-child(2) { animation-delay: .2s; }
[data-scene="rounds"] .wfab { animation: fabpull 8s var(--spring) infinite; }
[data-scene="rounds"] .fab-track.v { animation: track 8s ease infinite; }
[data-scene="dualcam"] .wfab { animation: fabswipe 5s var(--spring) infinite; }
[data-scene="dualcam"] .fab-track.h { animation: trackh 5s ease infinite; }

.rec { position: absolute; left: var(--fx); top: var(--recy); width: 0; height: 0; display: none; }
[data-scene="rounds"] .rec, [data-scene="rounds"] .rec-hang { display: block; }
.rec .rec-circle { position: absolute; left: 0; top: 0; width: var(--recd); aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); animation: reccircle 8s cubic-bezier(.3,1.4,.5,1) infinite; }
.rec .rec-ring .prog { animation: recring 8s linear infinite; }
.rec-state { position: absolute; left: 0; top: calc(var(--recd) / -2 - 44px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 16px; font-size: 14px; opacity: 0; animation: recstate 8s linear infinite; white-space: nowrap; }
.rec-state i { width: 9px; height: 9px; border-radius: 50%; background: #FF3D5A; animation: blink 1s steps(1) infinite; }
.rec-state b { font-weight: 700; }
.rec-state .s-rec { animation: showrec 8s steps(1) infinite; }
.rec-state .s-pause { position: absolute; left: 14px; opacity: 0; animation: showpause 8s steps(1) infinite; padding-left: 16px; background: linear-gradient(var(--text), var(--text)) 0 50% / 3px 11px no-repeat, linear-gradient(var(--text), var(--text)) 6px 50% / 3px 11px no-repeat; }
.rec-hang { display: none; position: absolute; left: var(--fx); top: calc(var(--faby) - 72px); transform: translate(-50%, -50%) scale(0); padding: 13px 20px 14px 16px; border-radius: 20px 20px 20px 7px; font-weight: 800; white-space: nowrap; animation: rechang 8s var(--spring) infinite; z-index: 2; }
.rec-hang svg { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; margin-right: 4px; }

.scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to top, var(--bg) 0%, rgba(18,15,23,.94) 34%, rgba(18,15,23,0) 64%); transition: opacity .8s; }
.world:not([data-scene="hero"]) .scrim { opacity: 0; }

/* шаги поверх карты */
.steps { position: relative; z-index: 5; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.step { position: relative; min-height: 125vh; min-height: 125svh; display: flex; flex-direction: column; padding: 0 var(--gutter); }
.step .cap { margin-top: auto; position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); margin-bottom: calc(92px + env(safe-area-inset-bottom)); }
.cap {
  pointer-events: auto;
  width: 100%; max-width: 440px;
  padding: 18px 20px 20px;
  border-radius: 28px 28px 28px 10px;
  transition: opacity .45s, transform .6s var(--spring);
}
.cap h2 { font-size: clamp(26px, 7vw, 40px); }
.cap p { margin-top: 10px; font-size: 16px; color: var(--soft); }
.cap .small { font-size: 13.5px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 600; font-size: 13px; color: var(--a-light); letter-spacing: .01em; }
.tag svg { width: 17px; height: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 7px 9px; border-radius: 12px 12px 12px 4px; background: var(--surface-high); font-size: 14px; font-weight: 500; color: var(--soft); }
.tags svg { width: 17px; height: 17px; color: var(--a-light); }

.hero-step { min-height: 100vh; min-height: 100svh; padding-bottom: 24px; }
.hero-step > * { pointer-events: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding-top: calc(14px + env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-icon { width: 44px; height: 44px; border-radius: 28%; transform: rotate(-5deg); box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-shadow: 0 2px 0 var(--thick), 0 2px 10px rgba(0,0,0,.5); }
.top-link { padding: 8px 14px 9px; border-radius: 14px 14px 14px 5px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
.hero-plate { margin-top: auto; max-width: 620px; }
.hero-plate h1 { font-size: clamp(38px, 10.5vw, 62px); }
.lead { margin-top: 14px; font-size: clamp(16px, 2.2vw, 20px); color: var(--soft); max-width: 30em; }
.hero-plate .stores { margin-top: 20px; gap: 12px 8px; }
.hero-plate .note { margin-top: 10px; }
.scroll-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.scroll-hint svg { width: 18px; height: 18px; animation: hint 1.8s ease-in-out infinite; }

/* список чатов в подписи */
.clist { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; }
.clist li { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--divider); }
.clist li:last-child { border-bottom: 0; }
.clist .av { width: 42px; height: 42px; font-size: 14px; }
.clist .av .dot { border-color: #221D29; }
.clist .m { font-size: 13.5px; }
.clist .km { font-size: 11.5px; }
.clist time { font-size: 12px; color: var(--muted); }
.clist .cnt { font-size: 12px; }
.cap .picker { margin: 14px 0 0; gap: 10px 4px; }
.cap .picker button { width: 58px; font-size: 12px; gap: 5px; }
.cap .picker i { width: 38px; height: 38px; }
.cap .clock { margin-top: 12px; padding: 0; }

/* ═════════════ разделы ниже ═════════════ */
main > section { scroll-margin-top: 20px; }
.sec-lead { margin-top: 14px; font-size: 18px; color: var(--soft); max-width: 36em; }

/* для своих */
.manifesto { padding-top: 96px; }
.mf-grid { display: grid; gap: 30px; margin-top: 30px; }
.mf-list { margin: 0; padding: 0; list-style: none; counter-reset: mf; display: grid; gap: 22px; }
.mf-list li { position: relative; padding-left: 48px; font-size: 17px; color: var(--soft); counter-increment: mf; }
.mf-list li::before { content: counter(mf); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px 12px 12px 4px; font-weight: 800; font-size: 16px; color: var(--a-on); background: radial-gradient(120% 90% at 30% 20%, var(--a-light) 0%, var(--a-main) 45%, var(--a-deep) 100%); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), inset 0 1.5px 0 rgba(255,255,255,.35), 0 3px 0 var(--a-deep); }
.mf-list b { display: block; font-size: clamp(22px, 4.6vw, 30px); font-weight: 800; line-height: 1.1; color: var(--text); letter-spacing: -.015em; margin-bottom: 4px; }
.settings { border-radius: 28px 28px 28px 10px; padding: 8px 0 6px; align-self: start; }
.set-title { padding: 12px 20px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.set-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 13px 18px 13px 20px; }
.set-row + .set-row { border-top: 1px solid var(--divider); }
.set-row .e { width: 22px; height: 22px; color: var(--a-light); }
.set-row b { font-weight: 600; font-size: 16px; }
.set-row p { color: var(--muted); font-size: 14px; margin-top: 1px; }
.val { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--soft); background: var(--surface-high); padding: 5px 10px; border-radius: 12px; white-space: nowrap; }
.val svg { width: 14px; height: 14px; }
.sw-btn { border: 0; background: none; padding: 4px; font-size: 17px; }

/* доска планов */
.board-sec { padding-top: 110px; }
.board { list-style: none; margin: 30px 0 0; padding: 26px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 24px 12px; border-radius: 32px 32px 32px 12px; background: var(--surface); box-shadow: inset 0 2px 10px rgba(0,0,0,.35); }
.snote { position: relative; padding: 20px 14px 16px; border-radius: 4px 4px 14px 4px; background: var(--p); color: #1A1320; font-size: 14px; line-height: 1.35; transform: rotate(var(--r)); box-shadow: 0 10px 18px -6px rgba(0,0,0,.6); }
.snote b { display: block; font-weight: 800; font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.snote::before { content: ""; position: absolute; left: 50%; top: -9px; width: 60px; height: 18px; transform: translateX(-50%) rotate(-4deg); background: repeating-linear-gradient(-45deg, var(--a-light) 0 5px, var(--a-main) 5px 10px); opacity: .75; clip-path: polygon(0 12%, 5% 0, 9% 14%, 14% 0, 100% 0, 96% 40%, 100% 70%, 95% 100%, 0 100%, 4% 55%); }
.snote:nth-child(3n)::before { transform: translateX(-40%) rotate(5deg); }

/* экраны приложения */
.gallery-sec { padding-top: 110px; }
.strip { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 26px; scrollbar-width: thin; scrollbar-color: var(--surface-high) transparent; }
.strip:focus-visible { outline-offset: -3px; }
.shot-card { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shot-card .phone { --w: 220px; }
.shot-card p { font-weight: 600; font-size: 15px; text-align: center; }
.shot-card p span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* вопросы */
.faq { padding-top: 100px; }
.faq-list { display: grid; gap: 10px; margin-top: 26px; max-width: 760px; }
.faq details { border-radius: 20px 20px 20px 7px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 8px 8px 8px 3px; background: var(--surface-high) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23FFF4EC' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .4s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--soft); font-size: 16px; }

/* позвать + контакты */
.cta { padding-top: 100px; }
.cta-card { position: relative; border-radius: 36px 36px 36px 12px; padding: 32px 22px 30px; }
.cta-icon { width: 80px; height: 80px; border-radius: 28%; transform: rotate(-6deg); margin-bottom: 20px; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.cta-card p { margin-top: 12px; color: var(--soft); font-size: 17px; max-width: 30em; }
.contacts { display: grid; gap: 12px; margin-top: 16px; }
.contact { display: flex; flex-direction: column; gap: 3px; padding: 18px 20px; border-radius: 22px 22px 22px 8px; text-decoration: none; color: var(--text); transition: transform .4s var(--spring); }
.contact:hover { transform: translateY(-2px); color: var(--text); }
.contact b { font-weight: 800; font-size: 18px; color: var(--a-light); }
.contact span { font-size: 14px; color: var(--muted); }

.foot { padding-top: 60px; padding-bottom: 30px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--soft); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--text); }
.foot-brand img { width: 40px; height: 40px; border-radius: 28%; }

/* островок */
.island {
  position: fixed; z-index: 50;
  left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(42,36,50,.97), rgba(29,24,35,.97));
  transition: transform .45s var(--spring), opacity .3s;
}
.island a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 7px 8px 6px; border-radius: 20px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.island svg { width: 22px; height: 22px; }
.island a.on { position: relative; isolation: isolate; color: var(--a-on); background: radial-gradient(120% 90% at 30% 20%, var(--a-light) 0%, var(--a-main) 45%, var(--a-deep) 100%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.35), 0 3px 0 var(--a-deep); }
.island a:not(.on):hover { color: var(--text); }
.island.hide { transform: translateX(-50%) translateY(150%); opacity: 0; pointer-events: none; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px) scale(.9); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 20px 20px 20px 6px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .45s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ═════════════ анимации ═════════════ */
@keyframes breathe { 0%, 100% { transform: translate(-50%, -100%) scale(1); } 50% { transform: translate(-50%, -100%) scale(1.045); } }
@keyframes breathe2 { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes walk { 0%, 12% { translate: 0 0; } 88%, 100% { translate: var(--dx) var(--dy); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--a-main) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 1.4em transparent; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes fill { to { stroke-dashoffset: 0; } }
@keyframes talk { 0%, 100% { transform: scale(1.1) translateY(0) rotate(0); } 30% { transform: scale(1.12) translateY(-1.5%) rotate(-1.5deg); } 65% { transform: scale(1.1) translateY(1%) rotate(1deg); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes chev { 0%, 100% { opacity: .3; transform: translateY(.2em); } 50% { opacity: 1; transform: translateY(-.1em); } }
@keyframes wave { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }
@keyframes inflate { 0%, 55%, 100% { transform: scale(1); } 70% { transform: scale(1.35) translateY(-4px); } 82% { transform: scale(.95); } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 25% { translate: -6% 4%; } 60% { translate: 5% -3%; } }
@keyframes hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes drop { 0% { opacity: 0; translate: 0 -220px; scale: 1.5; } 55% { opacity: 1; translate: 0 8px; scale: .96; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes popin { 0% { opacity: 0; scale: .3; } 12% { opacity: 1; scale: 1; } 85% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .8; } }
/* кружочек: 0–14% кнопку тянут вверх, 14–62% запись, 62% пауза, 66% «повесить», 76% кружок улетает на карту */
@keyframes fabpull { 0%, 3% { transform: translateY(0); } 13% { transform: translateY(-120px); } 19%, 100% { transform: translateY(0); } }
@keyframes track { 0% { opacity: 0; } 3%, 13% { opacity: 1; } 17%, 100% { opacity: 0; } }
@keyframes fabswipe { 0%, 10% { transform: translateX(0); } 32% { transform: translateX(108px); } 42%, 100% { transform: translateX(0); } }
@keyframes trackh { 0% { opacity: 0; } 6%, 34% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes reccircle { 0%, 13% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 19%, 72% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 80% { transform: translate(-50%, -30%) scale(.3); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; } }
@keyframes recring { 0%, 18% { stroke-dashoffset: 301.6; } 62%, 100% { stroke-dashoffset: 120; } }
@keyframes recstate { 0%, 17% { opacity: 0; } 20%, 72% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes showrec { 0% { opacity: 1; } 62% { opacity: 0; } }
@keyframes showpause { 0% { opacity: 0; } 62% { opacity: 1; } }
@keyframes rechang { 0%, 64% { transform: translate(-50%, -50%) scale(0); } 67% { transform: translate(-50%, -50%) scale(1); } 71% { transform: translate(-50%, -50%) scale(.9); } 73% { transform: translate(-50%, -50%) scale(1); } 78%, 100% { transform: translate(-50%, -50%) scale(0); } }
@keyframes dropcard { 0% { opacity: 0; scale: 1.4; translate: 0 -160px; } 60% { opacity: 1; scale: .97; translate: 0 6px; } 100% { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes r2 { 0%, 76% { opacity: 0; scale: .2; } 82% { opacity: 1; scale: 1.08; } 86%, 100% { opacity: 1; scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ring circle, .rec-ring .prog { stroke-dashoffset: 110; }
  .typer::after, .typer-mirror::after { display: none; }
  .p4, .r2, .seen-dualcam:not([data-scene="dualcam"]) .d1 { opacity: 1; }
  .rec .rec-circle { transform: translate(-50%, -50%) scale(1); }
  .rec-state { opacity: 1; }
  [data-scene="dualcam"] .dcard { opacity: 1; scale: 1; }
  .rec-state .s-rec { display: none; }
  .rec-state .s-pause { opacity: 1; position: static; display: inline; }
  .rec-hang { transform: translate(-50%, -50%) scale(1); }
}

/* ═════════════ шире ═════════════ */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .mf-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .contacts { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 44px 40px; }
}
@media (max-width: 400px) {
  .store { padding: 8px 12px 9px 10px; min-height: 52px; font-size: 15px; gap: 7px; border-radius: 18px 18px 18px 7px; }
  .store small { font-size: 11px; }
  .store .ico { width: 20px; height: 20px; }
  .tape { font-size: 11px; padding: 2px 9px 3px; right: -8px; top: -9px; }
  .cap p { font-size: 15px; }
}
@media (min-width: 900px) {
  :root { --gutter: 48px; }
  body { font-size: 18px; }
  .scrim { background: linear-gradient(to right, var(--bg) 0%, rgba(18,15,23,.9) 32%, rgba(18,15,23,0) 60%); }
  .step { min-height: 130vh; }
  .step .cap { margin: 0; position: sticky; top: max(24px, calc(50vh - 230px)); bottom: auto; margin-top: 16vh; margin-bottom: 30vh; }
  .hero-step { min-height: 100vh; }
  .hero-plate { margin-top: auto; margin-bottom: auto; padding-top: 40px; }
  .hero-plate h1 { font-size: clamp(56px, 6.4vw, 96px); }
  .island { bottom: 16px; }
  .cta-card { display: grid; grid-template-columns: auto 1fr; column-gap: 36px; align-items: center; padding: 56px; }
  .cta-icon { grid-row: span 3; width: 140px; height: 140px; margin: 0; }
  .cta-card .stores { margin-top: 24px; }
  .foot { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
  .board { grid-template-columns: repeat(4, 1fr); padding: 40px 34px; gap: 34px 26px; }
  .shot-card .phone { --w: 250px; }
}
@media (max-width: 559px) {
  #chats .tags { display: none; }
  .clist li { padding: 6px 2px; }
  .step { min-height: 140vh; min-height: 140svh; }
}
@media (max-width: 400px) {
  .board { padding: 24px 10px; }
  .snote { padding: 18px 11px 13px; font-size: 13px; }
  .snote b { font-size: 15px; }
}

/* узкие экраны: подпись — компактный лист снизу, сцена — в верхней части */
.more { display: none; }
@media (max-width: 899px) {
  .cap { padding: 14px 16px 14px; }
  .cap h2 { font-size: clamp(22px, 6.4vw, 30px); }
  .cap > p:not(.small) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 15px; }
  .cap .small, .cap .tags, .cap .clist { display: none; }
  .cap.open > p:not(.small) { display: block; }
  .cap.open .small, .cap.open .clist { display: block; }
  .cap.open .tags { display: flex; }
  .more { display: inline-block; margin-top: 6px; padding: 2px 0; border: 0; background: none; font: 600 13px/1.4 Onest, sans-serif; color: var(--a-light); cursor: pointer; }
  .cap .picker { gap: 8px 2px; margin-top: 10px; }
  .cap .picker button { width: 54px; font-size: 11px; gap: 4px; }
  .cap .picker i { width: 32px; height: 32px; }
  .cap .clock { margin-top: 6px; }
  .cap .clock input { margin: 6px 0 2px; }
  .tag { margin-bottom: 6px; }
}
.island.near { transform: translateX(-50%) translateY(150%); opacity: 0; pointer-events: none; }

/* подпись закреплена в карте: меняется содержимое, сама карточка не ездит */
.capdock { position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: calc(92px + env(safe-area-inset-bottom)); height: 0; pointer-events: none; }
.capdock .cap { position: absolute; left: 0; bottom: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .5s var(--spring), visibility 0s linear .35s; pointer-events: none; }
.capdock .cap.on { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; pointer-events: auto; }
@media (min-width: 900px) {
  .capdock { top: 0; bottom: 0; height: auto; right: auto; width: 440px; }
  .capdock .cap { top: 50%; bottom: auto; transform: translateY(calc(-50% + 14px)); }
  .capdock .cap.on { transform: translateY(-50%); }
}
