/* Лендинг «Неза» (/neza/) — по мобильному макету Figma 682:365, ширина кадра 402.
   Декоративные сцены — «сцены» с абсолютными координатами из макета: X отсчитывается
   от центра (calc(50% - 201px + X)), чтобы на узких экранах композиция не уезжала вбок. */

@font-face {
  font-family: "Medeo Sans";
  src: url("assets/MedeoSansVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Вся страница — Medeo Sans 1.1 (prtner.ai/font, OFL 1.1). В макете часть текста набрана SF Pro,
     по решению от 29.11 заменено на Medeo; системный шрифт — только запасной */
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --medeo: "Medeo Sans", var(--system);
  --sf: var(--medeo);
  --ink: #121217;
  --ink-2: #1a1a1f;
  --muted: #71706f;
  --label-2: rgba(60, 60, 67, .6);
  --accent: #4040eb;
  --hero-top: #5359ff;
  --hero-bottom: #2729dc;
  --tile: #f5f5f7;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 87px; }
body { margin: 0; background: #fff; color: #000; font-family: var(--sf); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.stage { position: relative; margin: 0 auto; max-width: 480px; }
.wrap { max-width: 402px; margin: 0 auto; padding: 0 25px; }

/* Заголовки секций в стиле Medeo */
.title { font: 600 28px/33px var(--medeo); color: #000; max-width: 325px; }
.sub { margin-top: 6px; font: 400 16px/20px var(--medeo); color: var(--muted); max-width: 297px; }
.sub-narrow { max-width: 246px; }

/* ── Hero ─────────────────────────────────────────── */
.hero { background: linear-gradient(to bottom, var(--hero-top), var(--hero-bottom)); overflow: hidden; color: #fff; }
/* −27: строка шапки в макете hero занимает 42–114 (с местом под статус-бар), на сайте — 0–87 */
.hero-stage { height: 874px; max-width: none; margin-top: -27px; }
.hero-stage > * { position: absolute; }

/* ── Фиксированная шапка ─────────────────────────── */
/* Два состояния одной строки высотой 87 (Figma 684:367): над hero — прозрачная, после прокрутки —
   белая с линией снизу. Логотип и кнопки в обоих состояниях на одном месте, меняется только вид.
   Отступ 42 сверху в кадре hero — место под статус-бар, на сайте его нет. */
.bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 87px; pointer-events: none; }
.bar-bg { position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity .25s ease; }
.bar-bg img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(378px, calc(100% - 24px)); height: 1px; }
.bar-row { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(100%, 402px); height: 87px; display: flex; align-items: center; justify-content: space-between; pointer-events: auto; transition: opacity .25s ease, visibility 0s; }
.bar-hero { padding: 0 25px; }
.bar-compact { padding: 0 12px 0 25px; opacity: 0; visibility: hidden; transition-delay: 0s, .25s; }
.bar.is-scrolled .bar-bg { opacity: 1; }
.bar.is-scrolled .bar-hero { opacity: 0; visibility: hidden; transition-delay: 0s, .25s; }
.bar.is-scrolled .bar-compact { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Логотип одного размера в обоих состояниях (как в 684:367), чтобы при смене ничего не сдвигалось */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 45.37px; height: 44px; object-fit: contain; }
.brand span { font: 600 15.96px/1 var(--medeo); color: #cbccfc; }
.brand-dark span { color: #1b1b1f; }
.topbar-stores { display: flex; gap: 20.7px; }
.topbar-stores a { display: block; padding: 2px; margin: -2px; }
.bar-get { display: flex; align-items: center; justify-content: center; gap: 9px; width: 148px; height: 44px; border: 2px solid #e7e7e7; border-radius: 100px; background: #fff; text-decoration: none; font: 600 20px/1 var(--medeo); color: #292828; transition: border-color .2s, transform .2s var(--ease-out); }
.bar-get:hover { border-color: #d6d6d6; }
.bar-get:active { transform: scale(.96); }
.bar-web { width: auto; padding: 0 16px; font-size: 17px; white-space: nowrap; }

.badge { top: 134px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 20px; background: rgba(255, 255, 255, .16); font: 590 15px/normal var(--sf); white-space: nowrap; }
.badge img { width: 22px; height: 21px; }

.hero-title { top: 183px; left: 50%; transform: translateX(-50%); width: max-content; text-align: center; font: 700 42px/1.05 var(--sf); letter-spacing: -1.26px; }
.hero-sub { top: 283px; left: 50%; transform: translateX(-50%); width: max-content; text-align: center; font: 400 17px/1.3 var(--sf); color: rgba(255, 255, 255, .8); }
.hero-get { top: 349px; left: 50%; transform: translateX(-50%); width: 130px; height: 44px; display: grid; place-items: center; border-radius: 100px; background: #fff; color: #4044f0; text-decoration: none; font: 600 20px/1 var(--medeo); transition: transform .2s var(--ease-out); }
.hero-get:active { transform: translateX(-50%) scale(.96); }

/* Сцена в кадре макета шириной 402: координаты потомков считаются от её центра, как раньше от центра экрана */
.hero-art { top: 0; left: calc(50% - 201px); width: 402px; height: 874px; }
.hero-art > * { position: absolute; }
.hero-mascot { top: 518.6px; left: calc(50% - 235px); width: 470px; height: 470px; }

.voice { top: 431px; left: calc(50% - 180.14px); width: 336.68px; height: 77.4px; display: flex; align-items: center; justify-content: center; }
.voice-inner { transform: rotate(3deg); display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 28px; background: #e3f0ff; box-shadow: 0 6px 18px rgba(0, 0, 0, .07); white-space: nowrap; }
.voice-mic { width: 36px; height: 36px; border-radius: 18px; background: #08f; display: grid; place-items: center; flex: none; }
.voice-text { font: 590 17px/22px var(--sf); color: #08f; min-width: 224px; }

.hero-arrow { top: 520px; left: calc(50% - 110px); width: 90px; height: 58px; overflow: visible; }

.sticker { top: 546px; left: calc(50% + 0.87px); width: 175.49px; transform: rotate(4.97deg); display: flex; flex-direction: column; gap: 6.62px; padding: 15.45px; border-radius: 19.87px; background: #fff; box-shadow: 0 0 16.56px rgba(27, 26, 24, .1); color: #000; }
.sticker-row { display: flex; align-items: flex-start; gap: 11.04px; }
.sticker-row img { flex: none; }
.sticker-title { font: 590 16.56px/22.08px var(--sf); }
.sticker-meta { padding-left: 33.11px; font: 590 14.35px/19.87px var(--sf); color: #ff3b30; white-space: nowrap; }

/* ── Экран 2: «Всё в одном месте» ───────────────── */
.product-stage { height: 860px; overflow: hidden; }
.product-stage > * { position: absolute; }
.sf-title { top: 64px; left: 0; right: 0; text-align: center; font: 700 34px/normal var(--sf); letter-spacing: -.85px; color: var(--ink); }
.sf-sub { top: 115px; left: 0; right: 0; text-align: center; font: 400 17px/1.3 var(--sf); color: rgba(60, 60, 67, .75); }

.product-phone { top: 376px; left: calc(50% - 163px); width: 326px; height: 484px; overflow: hidden; }
.product-phone img { position: absolute; top: 0; left: -45.83%; width: 191.67%; max-width: none; height: 624px; object-fit: cover; }
.product-fade { position: absolute; left: -38px; right: -39px; bottom: 0; height: 175px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .8) 59.76%, #fff); }
/* Маскот за корпусом телефона: задняя копия обрезана по верхнему краю телефона,
   передняя (лапки поверх корпуса) — полоса ниже этого края */
.peek-back { top: 120px; left: calc(50% - 177px); width: 327px; height: 256px; overflow: hidden; }
.peek-back img { position: absolute; left: 0; top: 111px; width: 327px; height: 180px; }
.peek-front { top: 376px; left: calc(50% - 177px); width: 327px; height: 35px; overflow: hidden; z-index: 1; }
.peek-front img { position: absolute; left: 0; top: -145px; width: 327px; height: 180px; }

.callout { z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 18px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 6px 20px rgba(26, 26, 51, .12); font: 590 15px/normal var(--sf); color: var(--ink); white-space: nowrap; }
.callout-tasks { top: 644px; left: calc(50% - 197px); rotate: 4deg; }
.callout-meetings { top: 749px; left: calc(50% - 195px); rotate: -3deg; }
.callout-ideas { top: 673px; left: calc(50% + 111px); rotate: -4deg; }

/* ── Способы записи ──────────────────────────────── */
.capture { padding-top: 72px; }
.tabs { display: flex; gap: 15px; margin: 12px auto 0; max-width: 402px; padding: 1px 25px 6px; /* слева — по гайду заголовка, как .wrap */ overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; position: relative; isolation: isolate; overflow: hidden; padding: 6px 12px; border-radius: 100px; border: 1px solid #e7e7e7; background: #fff; font: 500 14px/normal var(--medeo); color: #000; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.tab[aria-selected="true"] { background: #292828; border-color: #292828; color: #fff; font-weight: 600; }
/* Полоска прогресса автопереключения под активным табом */
/* Прогресс автопереключения: активная пилюля заполняется светлой заливкой слева направо за 4 с,
   под текстом (z-index −1 внутри isolation) — заполнилась, таб сменился */
.tab i { position: absolute; z-index: -1; inset: 0; background: rgba(255, 255, 255, .2); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .2s; }
.tab.is-timing i { opacity: 1; animation: tab-progress 4s linear forwards; }
.tab.is-paused i { animation-play-state: paused; }
@keyframes tab-progress { to { transform: scaleX(1); } }

.capture-stage { height: 619px; margin-top: 24px; overflow: hidden; }
/* Ролик в рамке телефона. Центр экрана — на 31px левее середины, как у телефона в макете. */
.capture-video { position: absolute; top: 0; left: calc(50% - 31px); height: 100%; aspect-ratio: 676 / 1380; transform: translateX(-50%); background: #fff; }
.is-android .capture-video { aspect-ratio: 704 / 1488; }

/* ── Напоминания ─────────────────────────────────── */
.remind { padding-top: 107px; }
.remind-stage { height: 453px; }
.remind-stage > * { position: absolute; }
.remind-art { top: 79px; left: calc(50% - 210px); width: 382px; height: 374px; }

/* ── Итоги дня ───────────────────────────────────── */
.summary { padding-top: 85px; }
.digest { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 24px; background: #fff; border: 1px solid rgba(0, 0, 0, .05); box-shadow: 0 8px 32px rgba(26, 26, 51, .1); }
.digest-head { display: flex; flex-direction: column; gap: 4px; }
.digest-head b { font: 700 20px/normal var(--sf); color: var(--ink-2); }
.digest-head span { font: 400 14px/normal var(--sf); color: var(--label-2); }
.digest-bar { height: 6px; border-radius: 3px; background: #ededf2; overflow: hidden; }
.digest-bar span { display: block; height: 100%; width: 50.3%; border-radius: 3px; background: var(--accent); transform-origin: left; }
.digest-list { display: flex; flex-direction: column; gap: 14px; }
.digest-list li { display: flex; align-items: flex-start; gap: 12px; }
.digest-list .box { flex: none; position: relative; width: 22px; height: 22px; border-radius: 11px; border: 1.6px solid rgba(60, 60, 67, .35); }
.digest-list .is-done .box { border: 0; background: linear-gradient(to bottom, var(--hero-top), var(--hero-bottom)); }
.digest-list .box img { position: absolute; left: 5px; top: 5px; }
.digest-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.digest-list b, .digest-list s { font: 590 16px/normal var(--sf); color: var(--ink-2); }
/* Зачёркивание — отдельной линией, чтобы его можно было «протянуть» слева направо */
.digest-list s { position: relative; text-decoration: none; color: rgba(60, 60, 67, .45); align-self: flex-start; }
.digest-list s::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1.2px; background: currentColor; transform-origin: left; }
.digest-list small { font: 400 13px/normal var(--sf); color: var(--label-2); }
.digest-list small.due { color: #ff3b30; }
.chips { display: flex; gap: 6px; padding-top: 6px; }
.chip { padding: 6px 12px; border-radius: 14px; background: #f2f2f5; font: 510 13px/normal var(--sf); color: rgba(60, 60, 67, .85); white-space: nowrap; }
.chip-accent { background: rgba(64, 64, 235, .1); color: var(--accent); }

/* ── Поиск по заметкам ───────────────────────────── */
.find { padding-top: 96px; }
.chat { margin-top: 65px; display: flex; flex-direction: column; gap: 14px; }
.chat-user { align-self: flex-end; width: 262px; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: var(--accent); color: #fff; font: 510 15px/normal var(--sf); }
.chat-bot { width: 250px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 8px 32px rgba(26, 26, 51, .1); }
.chat-name { display: flex; align-items: center; gap: 6px; font: 590 13px/normal var(--sf); color: rgba(60, 60, 67, .7); }
.chat-bot > b { font: 590 16px/normal var(--sf); color: var(--ink-2); }
.chat-source { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #dedfff; }
.chat-source i { flex: none; width: 3px; height: 34px; border-radius: 2px; background: var(--accent); }
.chat-source > span { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.chat-source b { font: 590 13px/normal var(--sf); color: var(--ink-2); }
.chat-source small { font: 400 12px/normal var(--sf); color: var(--label-2); }

/* ── Больше жизни ────────────────────────────────── */
.life { padding-top: 96px; }
.life-cards { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.life-cards li { position: relative; height: 123px; border-radius: 20px; overflow: hidden; }
.life-cards img { width: 100%; height: 100%; object-fit: cover; }
.life-cards span { position: absolute; left: 15px; bottom: 15px; font: 600 16px/20px var(--medeo); color: #fff; }

/* ── Скачать ─────────────────────────────────────── */
.download { padding-top: 116px; scroll-margin-top: 0; }
.download-stage { max-width: none; overflow: hidden; }
/* Текст и кнопки — потоком (раскрывашка сдвигает маскота вниз), маскот заходит под них на 38 px, как в макете */
.download-head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 0 16px; text-align: center; }
.download-mascot { position: relative; display: block; margin: -38px 0 0 calc(50% - 120px); width: 386px; height: 515px; object-fit: cover; }
.download-title { font: 600 32px/38px var(--medeo); color: #000; }
.download-main { margin-top: 27px; }
.store-btn { display: flex; align-items: center; gap: 11px; padding: 14px 22px 14px 18px; border: 0; border-radius: 100px; background: linear-gradient(to bottom, #5157fd, #282add); color: #fff; text-decoration: none; font: 600 20px/normal var(--medeo); white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease-out), filter .2s; }
.store-btn:hover { filter: brightness(1.08); }
.store-btn:active { transform: scale(.96); }
.other-ways { margin-top: 18px; padding: 0; border: 0; background: none; font: 400 16px/20px var(--medeo); color: var(--muted); text-decoration: underline; text-decoration-thickness: 3.5%; text-underline-offset: 2px; cursor: pointer; }
.other-ways::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s; }
.other-ways[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.ways { margin-top: 16px; max-width: 360px; }
.ways-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.way { padding: 9px 16px; border: 1px solid #e7e7e7; border-radius: 100px; background: #fff; color: #292828; text-decoration: none; font: 500 15px/normal var(--medeo); cursor: pointer; transition: border-color .2s, background .2s; }
.way:hover { background: var(--tile); border-color: #d6d6d6; }
.ways-note { margin-top: 12px; font: 400 13px/18px var(--medeo); color: var(--muted); }
/* Без JS раскрывашка не работает — показываем способы сразу */
html:not(.js) .ways { display: block; }
html:not(.js) .other-ways { display: none; }

/* Платформа: основная кнопка и подпись раскрывашки — своя, в списке нет того, что уже на основной кнопке.
   По умолчанию (нет класса платформы) — как на компьютере */
.for-ios, .for-android { display: none; }
.is-ios .for-ios, .is-android .for-android { display: flex; }
.other-ways .for-ios, .other-ways .for-android { display: none; }
.is-ios .other-ways .for-ios, .is-android .other-ways .for-android { display: inline; }
.is-ios .for-web, .is-android .for-web { display: none !important; }
.is-ios .not-ios, .is-android .not-android, .is-web .not-web { display: none; }

/* Окно «Google Play — тест» */
.door { width: min(420px, calc(100% - 32px)); padding: 30px 26px 26px; border: 0; border-radius: 28px; background: #fff; color: #000; box-shadow: 0 40px 100px rgba(18, 18, 23, .3); font-family: var(--medeo); }
.door::backdrop { background: rgba(18, 18, 23, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.door h3 { margin: 0 32px 10px 0; font: 600 24px/1.15 var(--medeo); }
.door p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.door-steps { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.door-steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; line-height: 1.45; color: #3c3c43; }
.door-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(to bottom, var(--hero-top), var(--hero-bottom)); color: #fff; font-size: 14px; font-weight: 600; }
.door a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.door .door-fine { margin-top: 18px; font-size: 13px; }
.door-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--tile); font-size: 20px; line-height: 1; cursor: pointer; }

/* ── А ещё ───────────────────────────────────────── */
.more-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 15px; }
.tile { position: relative; height: 168px; border-radius: 15px; background: var(--tile); overflow: hidden; }
.tile-wide { grid-column: 1 / -1; }
.tile > b { position: absolute; left: 16px; top: 14px; max-width: 138px; font: 600 15px/normal var(--medeo); color: rgba(41, 40, 40, .8); }
.tile-wide > b { max-width: 171px; }
.tile-note { position: absolute; left: 16px; top: 36px; font: 400 12px/normal var(--sf); color: rgba(60, 60, 67, .65); }
.ill { position: absolute; left: 0; width: 100%; height: 110px; }
.ill > * { position: absolute; }
.shadow-s { box-shadow: 0 4px 12px rgba(26, 26, 51, .08); }

.ill-search { top: 46px; }
.search-field { left: 14px; top: 8px; width: 172px; height: 34px; border-radius: 17px; background: #fff; box-shadow: 0 4px 12px rgba(26, 26, 51, .08); display: flex; align-items: center; gap: 6px; padding-left: 12px; font: 510 13px/normal var(--sf); color: var(--ink); }
.search-field i { width: 1.5px; height: 16px; margin-left: -6px; background: var(--accent); }
.search-hit { left: 14px; top: 50px; width: 172px; height: 58px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(26, 26, 51, .08); padding: 10px 12px 0; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.search-hit b { font: 590 12px/normal var(--sf); color: var(--ink); }
.search-hit span { font: 400 11px/normal var(--sf); color: rgba(60, 60, 67, .75); }
.search-hit em { font-style: normal; font-weight: 590; color: var(--accent); }

.ill-cal { top: 58px; }
.event { left: 14px; width: 172px; height: 42px; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(26, 26, 51, .08); padding: 7px 0 0 18px; display: flex; flex-direction: column; font: 510 12px/normal var(--sf); color: var(--ink); white-space: nowrap; }
.event:nth-child(1) { top: 12px; }
.event:nth-child(2) { top: 62px; }
.event i { position: absolute; left: 8px; top: 8px; width: 4px; height: 26px; border-radius: 2px; background: var(--accent); }
.event small { font: 590 11px/normal var(--sf); color: var(--accent); }
.event-orange i { background: #ff9433; }
.event-orange small { color: #ff9433; }
.ill-badge, .sync-badge { display: grid; place-items: center; background: var(--accent); box-shadow: 0 4px 12px rgba(26, 26, 51, .08); }
.ill-badge { left: 128px; top: -2px; width: 28px; height: 28px; border-radius: 14px; }

.month { position: absolute; left: 24px; top: 63px; font: 500 11.5px/normal var(--sf); color: #706d69; }
.week { position: absolute; left: 19px; top: 86px; display: flex; gap: 10px; }
.week span { position: relative; width: 36px; height: 62px; border-radius: 9px; background: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 8px; gap: 6px; font: 500 15px/normal var(--sf); color: #555350; }
.week small { font: 400 10.5px/normal var(--sf); color: #777470; }
.week .is-today { background: #fff1df; color: #a55b27; }
.week .is-today small { color: #a55b27; }
.week .is-today i { position: absolute; left: 16px; top: 52px; width: 4px; height: 4px; border-radius: 2px; background: #a55b27; }

.ill-sync { top: 58px; }
.browser { left: 40px; top: 10px; width: 150px; height: 110px; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(26, 26, 51, .08); overflow: hidden; }
.browser > * { position: absolute; }
.browser .bar { left: 0; top: 0; width: 150px; height: 18px; background: #f0f0f2; }
.browser .d1 { left: 8px; top: 6px; } .browser .d2 { left: 18px; top: 6px; } .browser .d3 { left: 28px; top: 6px; }
.browser .side { left: 0; top: 18px; width: 30px; height: 92px; background: #f7f7fa; }
.browser .n { width: 44px; height: 34px; border-radius: 6px; }
.browser .n::before, .browser .n::after { content: ""; position: absolute; left: 6px; height: 4px; border-radius: 2px; }
.browser .n::before { top: 8px; width: 30px; background: rgba(18, 18, 23, .5); }
.browser .n::after { top: 16px; width: 22px; background: rgba(18, 18, 23, .2); }
.n1 { left: 44px; top: 26px; background: #fcf2d9; } .n2 { left: 94px; top: 26px; background: #fae5eb; }
.n3 { left: 44px; top: 66px; background: #ededff; } .n4 { left: 94px; top: 66px; background: #e5f5eb; }
.mini-phone { left: 14px; top: 34px; width: 46px; height: 86px; border-radius: 11px; background: var(--ink); box-shadow: 0 6px 14px rgba(26, 26, 51, .18); padding: 3px; }
.mini-phone > span { display: flex; flex-direction: column; gap: 4px; height: 80px; padding: 10px 4px 0; border-radius: 8px; background: #fff; }
.mini-phone i { height: 17px; border-radius: 4px; background: #fcf2d9; }
.mini-phone i:nth-child(2) { background: #ededff; } .mini-phone i:nth-child(3) { background: #fae5eb; }
.sync-badge { left: 46px; top: 22px; width: 22px; height: 22px; border-radius: 11px; }

.ill-mcp { top: 76px; height: 90px; }
.ask { left: -3px; top: 4px; width: 158px; height: 30px; border-radius: 15px 15px 4px 15px; background: var(--accent); padding: 7px 0 0 12px; font: 510 12px/normal var(--sf); color: #fff; white-space: nowrap; }
.answer { left: 14px; top: 42px; width: 150px; height: 40px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 4px 12px rgba(26, 26, 51, .08); padding: 6px 0 0 32px; display: flex; flex-direction: column; white-space: nowrap; }
.answer img { position: absolute; left: 10px; top: 12px; }
.answer b { font: 590 12px/normal var(--sf); color: var(--ink); }
.answer small { margin-top: 1px; font: 400 11px/normal var(--sf); color: rgba(60, 60, 67, .6); }

/* ── Подвал ──────────────────────────────────────── */
.footer { padding: 32px 0 27px; }
.footer-line { width: 100%; height: 1px; }
.footer-brand { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15.96px/1 var(--medeo); color: #1b1b1f; }
.footer-links { margin-top: 25px; display: flex; flex-direction: column; gap: 10px; max-width: 259px; }
.footer-links a, #analytics-toggle { font: 400 14px/18px var(--medeo); color: var(--muted); text-decoration-thickness: 3.5%; text-underline-offset: 2px; }
#analytics-toggle { padding: 0; background: none; border: 0; text-decoration-line: underline; cursor: pointer; }

.cookie-notice {
  position: fixed; z-index: 51; left: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  align-items: center; gap: 10px; padding: 4px 4px 4px 12px;
  background: #fff; border: 1px solid var(--tile); border-radius: 999px;
  box-shadow: 0 3px 14px rgba(26, 26, 51, .12); font: 400 14px/1.25 var(--medeo);
}
.cookie-notice:not([hidden]) { display: flex; }
.cookie-notice a { text-underline-offset: 2px; }
.cookie-notice button {
  min-width: 36px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; cursor: pointer;
}

.copy { margin-top: 35px; font: 600 16px/18px var(--medeo); color: var(--muted); }

/* ── Анимации (аннотации макета) ─────────────────── */
/* Без JS всё видно сразу; с JS начальные состояния задаёт класс .js */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; transform: translateY(24px); }
.js .is-in[data-reveal], .js [data-stagger] > .is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js [data-stagger] > .is-in { transition-delay: calc(var(--i, 0) * 80ms); }
.js .sf-title[data-reveal], .js .sf-sub[data-reveal] { transform: translateY(24px); }

.js .hero-mascot, .js .voice, .js .sticker, .js .peek-front, .js .callout, .js .chat-user, .js .chat-bot { opacity: 0; }
.js .peek-back img { opacity: 0; transform: translateY(80px); }
.js .hero-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.voice.is-typing .voice-mic { animation: mic-pulse .9s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 7px rgba(0, 136, 255, .18); transform: scale(1.06); } }

.js .digest .is-done .box { background: transparent; border: 1.6px solid rgba(60, 60, 67, .35); }
.js .digest .is-done .box img { clip-path: inset(0 100% 0 0); }
.js .digest .is-done s::after { transform: scaleX(0); }
.js .digest .is-done s { color: var(--ink-2); }
.js .digest-bar span { transform: scaleX(0); }
.digest .is-done.is-checked .box { background: linear-gradient(to bottom, var(--hero-top), var(--hero-bottom)); border-color: transparent; transition: background .25s, border-color .25s; }
.digest .is-done.is-checked .box img { clip-path: inset(0 0 0 0); transition: clip-path .25s ease-out; }
.digest .is-done.is-checked s { color: rgba(60, 60, 67, .45); transition: color .3s; }
.digest .is-done.is-checked s::after { transform: scaleX(1); transition: transform .3s ease-out .1s; }
.digest.is-run .digest-bar span { transform: scaleX(1); transition: transform .8s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-stagger] > * { transform: none !important; }
  .js .is-in[data-reveal], .js [data-stagger] > .is-in { transition: opacity .2s linear; transition-delay: 0s; }
  .voice.is-typing .voice-mic { animation: none; }
  .tab.is-timing i { animation: none; opacity: 0; }
}

/* Узкие телефоны: выноски не должны уезжать за край экрана */
@media (max-width: 390px) {
  .callout-tasks { left: 4px; }
  .callout-meetings { left: 6px; }
  .callout-ideas { left: auto; right: 4px; }
}

/* ── Планшет: макет мобильный, держим колонку и даём воздуха ── */
@media (min-width: 720px) and (max-width: 999px) {
  .hero-stage { height: 920px; }
  .hero-mascot { top: 540px; }
}

/* ── Компьютер (макета нет, собрано из мобильных блоков) ──
   Колонка 1120: первый экран — текст слева, сцена справа; разделы — текст и иллюстрация
   в две колонки, стороны чередуются; «А ещё» — сетка в три колонки; подвал — в строку. */
@media (min-width: 1000px) {
  :root { --desk: 1120px; --desk-left: max(40px, calc(50% - var(--desk) / 2)); }
  html { scroll-padding-top: 96px; }

  /* Шапка по ширине колонки */
  .bar-row { width: min(100%, calc(var(--desk) + 80px)); }
  .bar-hero, .bar-compact { padding: 0 40px; }
  .bar-bg img { width: min(var(--desk), calc(100% - 80px)); }

  /* Первый экран */
  .hero-stage { height: 800px; margin-top: 0; }
  .badge, .hero-title, .hero-sub, .hero-get { left: var(--desk-left); transform: none; text-align: left; }
  .badge { top: 210px; }
  .hero-title { top: 262px; font-size: clamp(64px, 5.6vw, 84px); letter-spacing: -.03em; }
  .hero-sub { top: 450px; font-size: 22px; line-height: 1.35; }
  .hero-get { top: 540px; width: 172px; height: 56px; font-size: 22px; }
  .hero-get:hover { background: #eef0ff; }
  .hero-get:active { transform: scale(.96); }
  /* Сцена ×1.25, правее центра; маскот обрезан низом экрана, как на телефоне */
  .hero-art { left: calc(50% + min(300px, 22vw) - 201px); top: -315px; transform: scale(1.25); transform-origin: 50% 0; }

  /* Общие заголовки разделов */
  .title { max-width: 520px; font-size: clamp(40px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
  .sub, .sub-narrow { max-width: 440px; margin-top: 18px; font-size: 21px; line-height: 1.4; }

  /* «Всё в одном месте» — витрина по центру, крупнее */
  .product-stage { zoom: 1.2; }
  .sf-title { font-size: 44px; top: 48px; }
  .sf-sub { top: 116px; }

  /* Две колонки: секция (или её .wrap) — сетка, текст в центральных строках, арт — на всю высоту */
  .capture, .remind {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr;
    column-gap: 80px; width: min(var(--desk), calc(100% - 80px)); margin: 0 auto; padding-top: 150px;
  }
  .capture > .wrap, .remind > .wrap { max-width: none; margin: 0; padding: 0; }
  .capture > .wrap { grid-area: 2 / 1; }
  .tabs { grid-area: 3 / 1; flex-wrap: wrap; gap: 10px; max-width: 460px; margin: 32px 0 0; padding: 0; overflow: visible; }
  .tab { padding: 9px 18px; font-size: 17px; }
  .capture .title br { display: none; }
  .capture-stage { grid-area: 1 / 2 / 5 / 3; width: 100%; max-width: none; margin: 0; }

  .remind > .wrap { grid-area: 2 / 2 / 4 / 3; }
  .remind-stage { grid-area: 1 / 1 / 5 / 2; width: 100%; max-width: none; height: 440px; zoom: 1.1; }
  .remind-art { top: 20px; }

  .summary, .find, .life { padding-top: 150px; }
  .summary > .wrap, .find > .wrap, .life > .wrap {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr;
    column-gap: 80px; max-width: calc(var(--desk) + 50px);
  }
  .summary .title, .life .title { grid-area: 2 / 1; }
  .summary .sub, .life .sub { grid-area: 3 / 1; }
  .digest { grid-area: 1 / 2 / 5 / 3; width: min(100%, 440px); justify-self: center; margin: 0; }
  .life-cards { grid-area: 1 / 2 / 5 / 3; margin: 0; }
  .life-cards li { height: 150px; }
  .life-cards span { left: 20px; bottom: 18px; font-size: 19px; }

  .find .title { grid-area: 2 / 2; }
  .find .sub { grid-area: 3 / 2; }
  .chat { grid-area: 1 / 1 / 5 / 2; width: min(100%, 420px); justify-self: center; margin: 0; zoom: 1.15; }

  /* «Скачать» — по центру, крупнее */
  .download { padding-top: 170px; }
  .download-stage { zoom: 1.2; }

  /* «А ещё» — три колонки; широкая карточка календаря на две */
  .more { padding-top: 40px; }
  .more > .wrap { max-width: calc(var(--desk) + 50px); }
  .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; margin-top: 36px; }
  .tile { height: 200px; border-radius: 20px; }
  .tile-wide { grid-column: span 2; }
  .tile > b { left: 22px; top: 20px; max-width: 240px; font-size: 18px; }
  .tile-wide > b { max-width: 320px; }
  .tile-note { left: 22px; top: 46px; font-size: 14px; }
  .ill { top: auto; bottom: 22px; left: 8px; }
  .month { left: 30px; top: 86px; }
  .week { left: 25px; top: 108px; }

  /* Подвал в строку */
  .footer { padding: 80px 0 40px; }
  .footer > .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 48px; max-width: calc(var(--desk) + 50px); }
  .footer-line { grid-column: 1 / -1; }
  .footer-brand { margin-top: 28px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; max-width: none; margin-top: 28px; }
  .copy { margin-top: 28px; text-align: right; font-size: 14px; }
}
