/* Dualog — лендинг. Дизайн-токены и раскладка перенесены из «Dualog Landing.dc.html».
   Макет нарисован под 1280px; здесь он сделан резиновым — сетки схлопываются
   на 1080 / 900 / 640, типографика едет по clamp(). */

:root {
  --promo-h: 40px;  /* высота промо-полосы над шапкой */
  --cream: #F9F9F9;   /* фон страницы и светлый текст на тёмном */
  --mist: #EDEDED;    /* плитки и плашки поверх белых секций */
  --ink: #191A1A;
  --white: #fff;
  --lime: #CFE86B;
  --peach: #F9C09B;
  --lilac: #CDBEF8;
  --pink: #F6C9DF;
  --green: #1F6B4A;

  /* Единая палитра (05.10.2026): коралл первого экрана → персик → роза →
     сирень → небо. Из неё — пятна «сияния» под блоками, чипы, аватары,
     финальная плашка. Лайм со страницы убран, бурый янтарь первого экрана
     заменён кораллом (владелец: «буро-оранжевый не нравится»). */
  --coral: #F08A72;
  --coral-deep: #DD6479;
  --peach-soft: #FFD3BD;
  --rose: #F8C6E1;
  --orchid: #E9C8F4;
  --sky: #CFE0FF;
  --paper: #FCF9F7;
  --plum-1: #3B2A4A;
  --plum-2: #1E1A26;

  --ink-70: rgba(25, 26, 26, .7);
  --ink-68: rgba(25, 26, 26, .68);
  --ink-60: rgba(25, 26, 26, .6);
  --ink-55: rgba(25, 26, 26, .55);
  --ink-45: rgba(25, 26, 26, .45);
  --hair: rgba(25, 26, 26, .07);

  /* глубокие тона пастели: точки, полосы прогресса, текст меток */
  --lime-deep: #A9C93C;
  --peach-deep: #F0995F;
  --lilac-deep: #9C86EA;

  /* Сетка: одна ширина контента на всю страницу — ширина шапки */
  --wrap: 1280px;
  --pad: 48px;

  /* Шкала отступов. Ad-hoc чисел в разметке блоков нет — только эти. */
  --sp-section: clamp(72px, 8vw, 120px);  /* сверху и снизу секции */
  --sp-kicker: 20px;                      /* чип → заголовок */
  --sp-h2: 20px;                          /* заголовок → абзац */
  --sp-lead: 28px;                        /* абзац → список */
  --sp-panel: 40px;                       /* заголовок → плашка; текст → плитка на телефоне */
  --level-gap: clamp(40px, 6vw, 96px);    /* между колонками блока */

  /* Плитки: радиусы, внутренний отступ, одна тень для всех карточек */
  --r-tile: 32px;
  --r-card: 20px;
  --r-row: 14px;
  --tile-pad: clamp(24px, 3vw, 40px);
  --shadow-float: 0 1px 2px rgba(25, 26, 26, .04), 0 10px 30px rgba(25, 26, 26, .07);
  /* карточки иллюстраций парят над градиентом — тень глубже и тёплая */
  --shadow-lift: 0 2px 6px rgba(70, 35, 50, .06), 0 34px 64px -26px rgba(90, 45, 70, .38);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.22, 1.2, .36, 1);

  --mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", monospace;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.i { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }

.shell { max-width: var(--wrap); margin: 0 auto; }

.sect { padding: var(--sp-section) var(--pad); }

/* ---------- Шапка ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  /* непрозрачная: под шапкой не должно просвечивать созвездие первого экрана */
  background: var(--cream);
  border-bottom: 1px solid var(--hair);
}
.hdr-in {
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* Знак и слово — одна пара. У бутона в квадрате 512 px по бокам около 20 %
   прозрачных полей, поэтому знак крупнее (40 px вместо 30), а отрицательный
   отступ съедает поле и подтягивает слово к самой форме. */
.brand { display: flex; align-items: center; gap: 0; }
.brand img { width: 40px; height: 40px; margin-inline-end: -3px; flex: none; }
.brand span { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; }
.nav a { color: rgba(25, 26, 26, .72); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.hdr-cta { display: flex; align-items: center; gap: 10px; }
.hdr-cta .pill { white-space: nowrap; }
/* Магазины ужаты: в строку с «Вход» и переключателем языка они помещаются
   только в компактной форме */
.hdr-os { padding-inline: 15px; gap: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pill:active { transform: translateY(1px); }
.pill-dark { background: var(--ink); color: var(--cream); }
.pill-dark:hover { box-shadow: 0 10px 24px -12px rgba(25, 26, 26, .8); }
.pill-light { background: var(--white); color: var(--ink); border: 1px solid rgba(25, 26, 26, .14); }
.pill-light:hover { box-shadow: 0 10px 24px -14px rgba(25, 26, 26, .6); }
.pill-sm { padding: 11px 20px; font-size: 14.5px; }
.pill-md { padding: 15px 26px; font-size: 16.5px; }
.pill-lg { padding: 16px 28px; font-size: 16.5px; }
.pill .arw { margin-inline-start: auto; font-size: 17px; }
/* «скоро» на кнопке iPhone: приложение ждёт ревью, ссылки в App Store ещё нет */
.pill .soon {
  margin-inline-start: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

/* ---------- Модалка «Лист ожидания iPhone» ---------- */

.modal {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(25, 26, 26, .55);
}
.modal::backdrop { background: rgba(25, 26, 26, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: dlRise .28s ease both; }
.modal-in { position: relative; padding: 30px 28px 26px; display: flex; flex-direction: column; }
.modal-x {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 34px; height: 34px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-55);
  background: rgba(25, 26, 26, .06);
}
.modal-x:hover { background: rgba(25, 26, 26, .12); color: var(--ink); }
.modal h3 {
  margin: 10px 0 8px;
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 800;
  max-width: 90%;
}
.modal-lead { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-68); }

.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--ink-60); }
.fld input {
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(25, 26, 26, .16);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.fld input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 107, 74, .14); }
.fld input:invalid:not(:placeholder-shown) { border-color: #C2574A; }

.chk { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-68); cursor: pointer; }
.chk input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--ink); }
.chk a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.chk .req { color: #C2574A; }

.modal-submit { width: 100%; margin: 14px 0 12px; justify-content: center; }
.modal-note { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-45); }
.modal-msg { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; }
.modal-msg.ok { color: var(--green); font-weight: 600; }
.modal-msg.err { color: #C2574A; }

/* ловушка для ботов — Netlify отбрасывает заявки, где это поле заполнено */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Переключатель языка ---------- */

/* <details> вместо выпадающего списка: работает без js и на юридических
   страницах, где скрипта лендинга нет. */
.lang { position: relative; }
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(25, 26, 26, .14);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: "";
  width: 7px; height: 7px;
  margin-inline-start: 2px;
  border-inline-end: 1.6px solid rgba(25, 26, 26, .5);
  border-block-end: 1.6px solid rgba(25, 26, 26, .5);
  transform: rotate(45deg) translate(-1px, -1px);
}
.lang[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
/* Код языка вместо иконки: «RU», «EN», «HE» — читается в любом шрифте и
   не требует объяснений, в отличие от глобуса, который во встроенном
   браузере Messenger вырождался в точку. */
.lang-code { font-weight: 800; letter-spacing: .04em; font-size: 13.5px; }

.lang-menu {
  position: absolute;
  z-index: 50;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  /* 23 языка — в два столбца, сверху вниз: первый столбец 12 строк */
  display: grid;
  grid-template-rows: repeat(12, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 2px 4px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(25, 26, 26, .1);
  box-shadow: 0 24px 48px -24px rgba(25, 26, 26, .6);
}
.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
}
.lang-menu a:hover { background: var(--mist); }
.lang-menu a[aria-current="true"] { font-weight: 700; background: var(--peach); }
/* Селектор с двумя классами — иначе в подвале побеждает `.ftr a` (0,1,1) и
   красит пункты почти белым: на белой карточке меню список был нечитаем,
   виден оставался только выбранный язык на лаймовой плашке. */
.lang .lang-menu a { color: var(--ink); }
.lang .lang-menu a:hover { color: var(--ink); }

/* В подвале фон тёмный, а меню раскрывается вверх — снизу его обрежет край */
.lang-ftr { margin-top: 18px; }
.lang-ftr summary {
  background: rgba(249, 249, 249, .1);
  border-color: rgba(249, 249, 249, .2);
  color: var(--cream);
}
.lang-ftr summary::after { border-color: rgba(249, 249, 249, .55); }
.lang-ftr .lang-code { color: var(--cream); }
.lang-ftr .lang-menu { inset-inline-start: 0; inset-inline-end: auto; top: auto; bottom: calc(100% + 8px); }

/* ---------- Первый экран ---------- */

/* Первый экран в стиле partiful.com: фото справа на весь экран, слева тёплый
   коралловый градиент с зерном, который перетекает в фото. Шапка лежит поверх
   (отрицательный отступ на её высоту) и белая, пока первый экран на виду. */
.hero {
  --hdr-h: 72px;
  --mq-h: 52px;   /* бегущая строка лежит внизу первого экрана */
  --h1: #D65A78;  /* малиновый коралл: белый текст на нём читается */
  --h2: #EC8670;  /* коралл */
  --h3: #F59A7A;  /* персиковый блик слева сверху */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  margin-top: calc(-1 * var(--hdr-h));
  padding-top: var(--hdr-h);
  display: flex;
  align-items: center;
  min-height: max(600px, calc(100vh - var(--promo-h, 0px)));
  min-height: max(600px, calc(100svh - var(--promo-h, 0px)));
  background:
    radial-gradient(60% 80% at 6% 24%, var(--h3) 0%, transparent 62%),
    linear-gradient(110deg, var(--h1) 0%, var(--h2) 58%, var(--h2) 100%);
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 40%;
  z-index: -3;
  /* Фото крупнее рамки на 30 % и прижато вниз: при «cover» оно ровно по
     высоте рамки, и люди, сидящие в нижней половине кадра, оказывались у
     самого края. Так они стоят по центру видимой области первого экрана. */
  background: url(/img/hero-dinner.webp) 60% 100% / auto 130% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 16%, #000 36%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 16%, #000 36%);
}
/* затемнение сверху — под белым меню на светлом окне фотографии */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(25, 26, 26, .32) 0%, transparent 26%),
    linear-gradient(0deg, rgba(25, 26, 26, .26) 0%, transparent calc(var(--mq-h) + 70px));
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-in {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin: 0 auto;
  /* запас снизу — под бегущую строку; от высоты окна, чтобы на ноутбуках
     значки магазинов не уходили за край */
  padding: clamp(20px, 5vh, 96px) var(--pad) calc(var(--mq-h) + clamp(20px, 5vh, 72px));
}
.hero-copy { max-width: 560px; }
.hero .badge {
  background: rgba(255, 255, 255, .22);
  border: 0;
  color: #fff;
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 16px 8px 13px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.hero .badge i { background: #fff; }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, min(6vw, 10vh), 92px);
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}
/* «в одном месте» — всегда одной строкой */
.hero h1 .i { display: block; white-space: nowrap; letter-spacing: -.02em; margin-top: .06em; }
.hero .lead {
  margin: clamp(14px, 2.6vh, 26px) 0 0;
  max-width: 26em;
  color: #fff;
  font-weight: 700;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.22;
  letter-spacing: -.02em;
}
.hero .stores { justify-content: flex-start; margin-top: clamp(20px, 3.6vh, 34px); }
.hero .store img { height: 50px; }

/* плавающая карточка-уведомление на фото */
.hero-note {
  position: absolute;
  right: clamp(24px, 6vw, 110px);
  bottom: calc(var(--mq-h) + clamp(24px, 6vh, 72px));
  width: 320px;
  padding: 16px 18px 18px;
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(25, 26, 26, .06), 0 24px 60px rgba(25, 26, 26, .22);
  rotate: -4deg;
  animation: dlPop .9s var(--ease-spring) .5s both, dlBob 6s ease-in-out 1.4s infinite;
}
.hero-note-hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: rgba(25, 26, 26, .55); }
.hero-note-hd img { width: 28px; height: 28px; margin-inline: -3px -5px; }
.hero-note-hd span:last-child { margin-inline-start: auto; font-weight: 500; }
.hero-note-k { margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--h1); }
.hero-note-t { margin-top: 4px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.hero-note-p { margin-top: 4px; font-size: 14px; line-height: 1.35; color: rgba(25, 26, 26, .68); }

/* иврит и арабский: кадр зеркальный — фото слева, градиент и текст справа */
[dir="rtl"] .hero {
  background:
    radial-gradient(60% 80% at 94% 24%, var(--h3) 0%, transparent 62%),
    linear-gradient(250deg, var(--h1) 0%, var(--h2) 58%, var(--h2) 100%);
}
[dir="rtl"] .hero-photo {
  inset: 0 40% 0 0;
  /* кадр зеркален: переход в градиент справа, люди смещены к левому краю */
  background-position: 74% 100%;
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .6) 16%, #000 36%);
          mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .6) 16%, #000 36%);
}
[dir="rtl"] .hero-note { right: auto; left: clamp(24px, 6vw, 110px); rotate: 4deg; }

/* ---------- Промо-полоса над шапкой ---------- */
.promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px var(--pad);
  background: linear-gradient(90deg, #F8C6E1 0%, #E9C8F4 50%, #CDBEF8 100%);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.01em;
  text-align: center;
}
.promo svg { flex: none; }
/* текст с книжкой — одним блоком: на узком экране кнопка уходит под него
   целиком, а не отрывает книжку от подписи */
.promo-msg { display: inline-flex; align-items: center; gap: 8px; text-align: start; }
/* маленькая тёмная таблетка, как .pill-dark, только ниже полосы */
.promo-btn {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.promo-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(25, 26, 26, .8); }
.promo-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Шапка поверх первого экрана ---------- */
.hdr { transition: background .25s ease, border-color .25s ease, color .25s ease; }
.hdr.on-hero { background: transparent; border-bottom-color: transparent; color: #fff; }
.hdr.on-hero .brand span { color: #fff; }
.hdr.on-hero .nav a { color: rgba(255, 255, 255, .92); }
.hdr.on-hero .nav a:hover { color: #fff; }
.hdr.on-hero .lang-hdr summary { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.hdr.on-hero .lang-hdr .lang-code { color: #fff; }
.hdr.on-hero .lang-hdr summary::after { border-color: rgba(255, 255, 255, .85); }
.hdr.on-hero #hdrGet { background: #fff; color: var(--ink); }

/* Официальные значки магазинов: одна высота, Google без своих полей (поля
   срезаны в файле), поэтому оба значка выглядят одного роста */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: block; border-radius: 9px; transition: transform .18s ease, box-shadow .18s ease; }
.store:hover { box-shadow: 0 10px 24px -14px rgba(25, 26, 26, .6); }
.store:active { transform: translateY(1px); }
.store[hidden] { display: none; }
.store img { display: block; width: auto; height: 48px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(25, 26, 26, .09);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
}
.badge i { width: 7px; height: 7px; border-radius: 999px; background: var(--green); }

h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: .97;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: pretty;
}
.lead {
  margin: 0 0 32px;
  max-width: 470px;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.5;
  color: var(--ink-68);
  text-wrap: pretty;
}

/* Одна кнопка — демо, подпись под ней */
.getrow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.getrow .pill { white-space: nowrap; }
.getrow .pill .arw { margin-inline-start: 6px; }
/* Второй вход — игра. Меньше демо, но кнопка: подстрочной ссылкой её не
   замечали, а на мобиле пункт «Игры» в шапке ещё и скрыт. */
.pill-games { padding: 15px 28px; font-size: 16px; }
.pill-games .arw { margin-inline-start: 10px; }
.getnote {
  margin: 0;
  padding-inline-start: 2px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-55);
}

/* Ключевое действие страницы — эта кнопка заметно крупнее всех остальных */
.pill-demo { padding: 22px 44px; font-size: 20px; border-radius: 999px; }

@keyframes dlRise { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---------- Бегущая строка ---------- */

/* Бегущая строка лежит внизу первого экрана, поверх коралла и фото (было:
   отдельной полосой под ним), и текст на ней белый. */
.marquee {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: var(--mq-h);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: dlSlide 34s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0 11px;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 8px rgba(25, 26, 26, .28);
}
.marquee-track li.dot { line-height: 1; color: rgba(255, 255, 255, .7) !important; }
/* сдвиг ровно на ширину одной копии — стык невидим при любой ширине экрана */
@keyframes dlSlide { to { transform: translateX(calc(var(--shift, 50%) * -1)) } }

/* ---------- Заголовки секций ---------- */

.features-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: var(--sp-panel); }
h2 {
  margin: 0;
  font-size: clamp(30px, 3.7vw, 47px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: pretty;
}
.features-hd h2 { max-width: 640px; }

/* Подпись над заголовком — цветной чип из палитры: близкие персиковым,
   пара розовым, личное сиреневым, защита небесным */
.kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mist);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .06em;
  color: var(--ink);
}
.k-peach { background: var(--peach); }
.k-rose { background: var(--rose); }
.k-lilac { background: var(--lilac); }
.k-sky { background: var(--sky); }

/* ---------- Блоки уровней: Близкие, Пара, Личное, Защита данных ---------- */

/* Одна сетка на все четыре блока: две равные колонки. Внешние края сетки —
   это края шапки: .sect даёт те же боковые отступы var(--pad), .shell — ту же
   ширину var(--wrap). minmax(0, 1fr) — содержимое никогда не раздвигает
   колонку. */
.level {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--level-gap);
  align-items: center;
}
.level > * { min-width: 0; }
.level-flip > .level-txt { order: 2; }
.level-txt h2 {
  margin: var(--sp-kicker) 0 0;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.06;
}
.level-txt .lead {
  margin: var(--sp-h2) 0 0;
  max-width: 34em;
  font-size: clamp(17px, 1.25vw, 18px);
  line-height: 1.55;
}

.card { position: relative; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-float); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* общий маленький аватар: я — медовый, партнёр — розовый */
.mini {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.mini-m { background: var(--peach-soft); }
.mini-a { background: var(--pink); }

/* --- Близкие: дерево на белом холсте в точку, как карта в приложении --- */
.tree {
  --avs: 40px;          /* аватар */
  --lbl: 40px;          /* подпись под аватаром: зазор + имя + роль */
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background-color: var(--white);
  background-image: radial-gradient(circle, rgba(25, 26, 26, .1) 1px, transparent 1.4px);
  background-size: 18px 18px;
  background-position: center;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.tree-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
/* Поле узлов: строки — центры аватаров (0 %, 50 %, 100 %). Снизу поле
   короче на высоту подписи — тогда видимые поля сверху и снизу равны. */
.tree-in { position: absolute; inset: 15% 5% calc(15% + var(--lbl)); }
/* места узлов: родители — верхняя строка, друзья и кот — нижняя */
.p-f1 { --x: 11%; --y: 0%; }
.p-f2 { --x: 32%; --y: 0%; }
.p-f3 { --x: 68%; --y: 0%; }
.p-f4 { --x: 89%; --y: 0%; }
.p-k1 { --x: 20%; --y: 100%; }
.p-k2 { --x: 50%; --y: 100%; }
.p-k3 { --x: 80%; --y: 100%; }
.person {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  margin-top: calc(var(--avs) / -2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.person .av {
  flex: none;
  width: var(--avs); height: var(--avs);
  border-radius: 999px;
  background: var(--av);
  display: grid;
  place-items: center;
  font-size: calc(var(--avs) * .36);
  font-weight: 600;
  color: rgba(25, 26, 26, .72);
  /* белое кольцо и тонкое золотистое снаружи, как у аватаров в приложении */
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px rgba(198, 163, 104, .5), 0 4px 10px -3px rgba(25, 26, 26, .16);
}
/* у подписей белая подложка: линия от аватара уходит под подпись и
   выходит из-под неё, а не перечёркивает имя */
.person b, .person small { padding: 0 3px; border-radius: 4px; background: var(--white); white-space: nowrap; }
.person b { margin-top: 8px; padding-top: 1px; padding-bottom: 1px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.person small { padding-bottom: 1px; font-size: 11.5px; line-height: 1.25; color: var(--ink-55); }
/* длинная роль («папа Анны» на немецком) переносится в две строки, а не
   наезжает на соседа */
.person small { width: max-content; max-width: var(--rolew, 96px); white-space: normal; text-wrap: balance; }
/* пара: два тёмных кружка в светлой капсуле, чуть ниже середины — так
   зазоры до подписей родителей и до аватаров друзей выходят равными.
   По центру — полями, а не transform: app.js меряет узлы через offset*,
   которые сдвиг transform не видят (карточка дерева повёрнута, и
   getBoundingClientRect дал бы рамку поворота). */
.couple {
  position: absolute;
  left: 0;
  right: 0;
  width: max-content;
  margin: -18px auto 0;
  top: calc(50% + 20px);
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: #ECECEC;
  box-shadow: 0 0 0 2px var(--white), 0 4px 12px -4px rgba(25, 26, 26, .2);
}
.cp {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #3A3C3C;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* --- Пара: общая цель одной карточкой --- */
.goal { padding: 24px 24px 10px; }
.goal-hd { display: flex; align-items: flex-start; gap: 16px; }
.goal-t { flex: 1; min-width: 0; }
.goal-t b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.goal-pr { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(25, 26, 26, .07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #EE8FB4); }
.pct { font-size: 12.5px; font-weight: 500; line-height: 1; color: var(--ink-55); font-variant-numeric: tabular-nums; }
.duo { flex: none; display: flex; }
.duo .mini { box-shadow: 0 0 0 2px var(--white); }
.duo .mini + .mini { margin-inline-start: -7px; }
.goal-sub { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 12.5px; font-weight: 500; color: var(--ink-55); }
.steps { margin: 4px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 12px; padding: clamp(11px, .95vw, 13px) 0; font-size: 15px; font-weight: 500; line-height: 1.3; }
.steps li + li { border-top: 1px solid var(--hair); }
.steps .st { flex: 1; min-width: 0; }
.steps .mini { width: 24px; height: 24px; font-size: 10.5px; }
.cb {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(25, 26, 26, .22);
  display: grid;
  place-items: center;
}
.cb svg { width: 14px; height: 14px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps .done .cb { background: var(--ink); border-color: var(--ink); }
.steps .done .st { color: var(--ink-45); text-decoration: line-through; text-decoration-color: rgba(25, 26, 26, .3); }
.steps .done .mini { opacity: .5; }

/* --- Личное: вкладки «чей взгляд» и одна карточка строк --- */
/* .pv держит высоту самого полного вида (app.js): строки схлопываются
   внутри, вкладки остаются на месте */
.pv { display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; }
.seg {
  position: relative;
  flex: none;
  display: grid;
  /* minmax(0, 1fr): длинная подпись не раздувает свою колонку */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
}
.seg-thumb {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-float);
  transition: transform .32s var(--ease-out);
}
.seg[data-view="partner"] .seg-thumb { transform: translateX(100%); }
.seg[data-view="circle"] .seg-thumb { transform: translateX(200%); }
[dir="rtl"] .seg[data-view="partner"] .seg-thumb { transform: translateX(-100%); }
[dir="rtl"] .seg[data-view="circle"] .seg-thumb { transform: translateX(-200%); }
.seg button {
  position: relative;
  padding: 9px 6px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  /* подписи переносим, а не обрезаем: в длинных языках вкладка в одну
     строку не помещается */
  text-align: center;
  color: var(--ink-60);
  transition: color .2s;
}
.seg button:hover, .seg button[aria-selected="true"] { color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.pv-card { padding: 0 20px; overflow: hidden; }
/* верхняя линия первой видимой строки уходит за край карточки */
.pv-rows { margin-top: -1px; }
/* Строка схлопывается сеткой 1fr → 0fr: без измерения высоты в js */
.prow { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s var(--ease-out), opacity .25s ease; }
.prow.is-off { grid-template-rows: 0fr; opacity: 0; }
.pr-clip { min-height: 0; overflow: hidden; }
.pr-in { display: flex; align-items: center; gap: 12px; padding: clamp(9px, .85vw, 12px) 0; border-top: 1px solid var(--hair); }
.pr-in i { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--lilac-deep); }
.pr-in b { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.3; }
.ptag {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: #7259D2;
  background: rgba(156, 134, 234, .14);
}
.prow.both i { background: var(--coral); }
.prow.both .ptag { color: #B8484F; background: rgba(240, 138, 114, .18); }
.prow.circle i { background: var(--peach-deep); }
.prow.circle .ptag { color: #B9601F; background: rgba(240, 153, 95, .16); }
.pv.is-measuring .prow { grid-template-rows: 1fr; transition: none; }

/* --- Защита данных: сейф --- */
.safe-hd { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.safe-lock {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
}
.safe-hd b { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.chip {
  margin-inline-start: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-60);
  white-space: nowrap;
}
.safe-card { padding: 0 18px; box-shadow: 0 0 0 1px rgba(25, 26, 26, .07), var(--shadow-float); }
.srow { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.srow + .srow { border-top: 1px solid var(--hair); }
.sq {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #F2F2F2;
  color: rgba(25, 26, 26, .62);
}
.srow .st { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.3; }
.mask { flex: none; font-size: 13px; letter-spacing: .2em; color: rgba(25, 26, 26, .32); }

/* ---------- Несколько приложений — в одном ---------- */

/* Слева аккордеон (открыт ровно один пункт), справа стопка снимков. */
.apps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
/* Весь блок — одна плашка из светлого стекла поверх «сияния». Без
   backdrop-filter: под плашкой дрейфуют пятна, и размытие пересчитывалось
   бы каждый кадр. */
.apps-panel {
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--r-tile);
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 40px 90px -50px rgba(110, 50, 80, .4);
}
.apps-list { display: flex; flex-direction: column; gap: 8px; }
.ai { padding: 20px 24px; border-radius: var(--r-card); background: var(--white); box-shadow: 0 0 0 1px rgba(25, 26, 26, .05); }
.ai h3 { margin: 0; font: inherit; }
.ai-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: start;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  border-radius: 8px;
}
.ai-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.num { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 7px; background: rgba(25, 26, 26, .08); }
.ai-btn .num { flex: none; font-weight: 400; letter-spacing: 0; }
.ai-t { flex: 1; color: var(--ink-60); transition: color .2s; }
.ai-btn:hover .ai-t, .ai.is-open .ai-t { color: var(--ink); }
.ai-sg { flex: none; width: 16px; text-align: center; font-size: 20px; font-weight: 400; color: var(--ink-55); }
.ai-sg::before { content: "+"; }
.ai.is-open .ai-sg::before { content: "\2212"; }
/* строки 0fr → 1fr: раскрытие без измерения высоты в js */
.ai-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.ai.is-open .ai-body { grid-template-rows: 1fr; }
.ai-body > div { overflow: hidden; }
.ai-body p { margin: 0; padding-top: 12px; padding-inline-start: 46px; font-size: 14.5px; line-height: 1.5; color: var(--ink-68); text-wrap: pretty; }

.apps-stage { display: flex; justify-content: center; min-width: 0; }
/* Стопка снимков — одна кнопка «Следующий экран». Три снимка — веер
   (передний по центру, два позади на равных ±--off, уменьшены, повёрнуты,
   приглушены; низ у всех на одной линии), два — симметричная пара (оба
   .94, ±3°, ±--off2, передний только выше по z), один — по центру. app.js
   меняет только классы мест и data-count; движение — transform и opacity.
   z-index меняется на середине пути (задержка в полдлительности), чтобы
   снимки не проходили друг сквозь друга. */
.apps-fan {
  --h: 560px;
  --off: calc(var(--h) * .27);
  --off2: calc(var(--h) * .15);
  --dur: 520ms;
  position: relative;
  display: block;
  width: 100%;
  height: var(--h);
  margin: 0;
  padding: 0;
  border-radius: var(--r-tile);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .22s ease, transform .22s ease;
}
.apps-fan:disabled { cursor: default; }
.apps-fan:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
.apps-fan.is-leaving { opacity: 0; transform: translateY(16px) scale(.97); }
.apps-fan img {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  aspect-ratio: 1280 / 2800;
  border-radius: calc(var(--h) * .052);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(25, 26, 26, .06), 0 22px 44px -22px rgba(25, 26, 26, .4);
  display: none;
  transform-origin: 50% 100%;
  transition:
    transform var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out),
    z-index 0s linear calc(var(--dur) / 2);
}
.apps-fan img.is-front, .apps-fan img.is-right, .apps-fan img.is-left, .apps-fan img.is-pre { display: block; }
.apps-fan img.is-front { z-index: 3; transform: translateX(-50%); opacity: 1; }
.apps-fan img.is-right { z-index: 1; transform: translateX(calc(-50% + var(--off))) scale(.88) rotate(4deg); opacity: .6; }
.apps-fan img.is-left { z-index: 2; transform: translateX(calc(-50% - var(--off))) scale(.88) rotate(-4deg); opacity: .6; }
.apps-fan[data-count="2"] img.is-front { z-index: 2; transform: translateX(calc(-50% - var(--off2))) scale(.94) rotate(-3deg); }
.apps-fan[data-count="2"] img.is-right { z-index: 1; transform: translateX(calc(-50% + var(--off2))) scale(.94) rotate(3deg); opacity: 1; }
/* исходная точка появления: все в центре, мельче и прозрачные */
.apps-fan img.is-pre { z-index: 1; transform: translateX(-50%) scale(.92); opacity: 0; transition: none; }

@media (max-width: 1080px) {
  .apps-fan { --h: 500px; }
}
@media (max-width: 900px) {
  .apps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .ai { padding: 16px 18px; }
  .ai-body p { padding-inline-start: 0; }
  .apps-panel { padding: 20px 16px 28px; border-radius: 24px; overflow: hidden; }
  /* стопка мельче и уже: края задних снимков остаются внутри плашки */
  .apps-fan { --h: 400px; --off: calc(var(--h) * .14); --off2: calc(var(--h) * .12); }
  .store img { height: 44px; }
}

/* ---------- Защита данных: список фактов ---------- */

.facts { margin: var(--sp-lead) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 34em; }
.facts li { position: relative; padding-inline-start: 26px; font-size: 15px; line-height: 1.5; color: var(--ink-68); text-wrap: pretty; }
.facts li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-weight: 700;
  color: var(--coral-deep);
}

/* ---------- Подвал ---------- */

.ftr { background: var(--ink); color: var(--cream); }
.ftr-in {
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin: 0 auto;
  padding: 46px var(--pad) 30px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 40px;
}
.ftr .brand span { font-size: 16px; font-weight: 700; color: var(--cream); }
.ftr .brand img { width: 40px; height: 40px; }
.ftr-about { margin: 14px 0 0; max-width: 300px; font-size: 13.5px; line-height: 1.5; color: rgba(249, 249, 249, .55); }
.ftr-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ftr-cols h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(249, 249, 249, .42);
  text-transform: uppercase;
}
.ftr-cols ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ftr-cols li { font-size: 13.5px; line-height: 1.4; color: rgba(249, 249, 249, .6); }
.ftr a { color: rgba(249, 249, 249, .6); text-decoration: none; }
.ftr a:hover { color: var(--cream); }

.ftr-legal {
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin: 0 auto;
  padding: 22px var(--pad) 30px;
  border-top: 1px solid rgba(249, 249, 249, .12);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(249, 249, 249, .45);
}
.ftr-badges {
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad) 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ftr-badges img { display: block; height: 40px; width: auto; }
.ftr-legal p { margin: 0; }
.ftr-legal ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ftr-legal li { position: relative; }
.ftr-legal li + li::before {
  content: "·";
  position: absolute;
  left: -11px;
  color: rgba(249, 249, 249, .3);
}

/* Подвал лендинга (05.10.2026): .ftr-site, чтобы не задеть подвалы
   юридических страниц со старой разметкой. Три яруса по всей ширине:
   знак слева и колонки ссылок у правого края; значки каталогов на своей
   строке, разнесённые от края до края; внизу копирайт с подписью к фото
   и язык справа. */
.ftr-site .ftr-in {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px 64px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.ftr-site .brand span { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.ftr-site .ftr-about { margin-top: 12px; max-width: 340px; font-size: 14px; }
.ftr-site .ftr-cols { grid-template-columns: repeat(2, max-content); gap: 32px clamp(48px, 7vw, 112px); }
.ftr-site .ftr-cols li { font-size: 14px; }
/* линии-разделители ровно по ширине контента, а не до полей экрана */
.ftr-site .ftr-badges,
.ftr-site .ftr-legal {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  max-width: none;
  padding-inline: 0;
}
.ftr-site .ftr-badges {
  padding-block: 24px;
  border-top: 1px solid rgba(249, 249, 249, .12);
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
}
.ftr-site .ftr-badges a { display: block; }
.ftr-site .ftr-legal { align-items: center; padding-block: 18px 26px; }
.ftr-site .ftr-legal a { color: rgba(249, 249, 249, .6); text-decoration: underline; text-decoration-color: rgba(249, 249, 249, .25); text-underline-offset: 3px; }
.ftr-site .ftr-legal a:hover { color: var(--cream); }
.ftr-site .ftr-sep { margin-inline: 5px; color: rgba(249, 249, 249, .3); }
.ftr-site .lang-ftr { margin-top: 0; }
.ftr-site .lang-ftr .lang-menu { inset-inline-start: auto; inset-inline-end: 0; }
.ftr-site .lang-ftr summary { padding: 7px 13px; }
@media (max-width: 760px) {
  .ftr-site .ftr-in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 32px; }
  .ftr-site .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .ftr-site .ftr-cols li { overflow-wrap: anywhere; }
  .ftr-site .ftr-badges { justify-content: flex-start; }
  .ftr-site .ftr-badges img { height: 36px; }
  .ftr-site .ftr-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- Юридические страницы ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 5vw, 68px) var(--pad) clamp(56px, 6vw, 88px); }
.doc h1 { margin: 0 0 8px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; text-wrap: pretty; }
.doc .upd { display: inline-block; margin: 0 0 30px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: rgba(25, 26, 26, .45); }
.doc h2 { margin: 36px 0 12px; font-size: clamp(20px, 2.1vw, 24px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.doc h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 700; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; color: rgba(25, 26, 26, .78); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-inline-start: 22px; }
.doc li { margin: 8px 0; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.doc blockquote {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(25, 26, 26, .08);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-60);
}
.doc blockquote p:last-child { margin: 0; }
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.doc-back:hover { color: var(--green); }

/* ---------- «Сияние»: общий градиент под блоками (05.10.2026) ---------- */

/* Как раздел «We're not like other invites» на partiful.com: под всеми
   блоками ниже первого экрана лежит одно поле мягких пятен палитры.
   Пятна — радиальные градиенты без filter: blur (дёшево), позиции в
   процентах высоты .aura, поэтому на телефоне, где страница длиннее, они
   расходятся так же. b1 у левого верхнего края продолжает коралл первого
   экрана, b8 внизу подводит к коралловой финальной плашке. */
.aura { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.aura-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aura-bg i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 55%, transparent) 50%, transparent 100%);
  animation: dlDrift var(--t, 24s) ease-in-out infinite alternate;
  will-change: transform;
}
.aura-bg .b1 { --x: 4%;  --y: 1%;  --s: min(1100px, 150vw); --c: rgba(240, 132, 116, .62); --t: 26s; }
.aura-bg .b2 { --x: 86%; --y: 13%; --s: min(1000px, 140vw); --c: rgba(255, 178, 140, .78); --t: 22s; --dx: -70px; }
.aura-bg .b3 { --x: 14%; --y: 31%; --s: min(980px, 140vw);  --c: rgba(246, 170, 210, .75); --t: 28s; }
.aura-bg .b4 { --x: 98%; --y: 38%; --s: min(760px, 120vw);  --c: rgba(166, 202, 255, .8);  --t: 20s; --dx: -50px; }
.aura-bg .b5 { --x: 80%; --y: 53%; --s: min(1000px, 140vw); --c: rgba(192, 172, 250, .8);  --t: 25s; }
.aura-bg .b6 { --x: 14%; --y: 69%; --s: min(1000px, 140vw); --c: rgba(162, 200, 255, .8);  --t: 23s; --dy: 50px; }
.aura-bg .b7 { --x: 92%; --y: 82%; --s: min(900px, 130vw);  --c: rgba(228, 180, 246, .78); --t: 27s; --dx: -60px; }
.aura-bg .b8 { --x: 34%; --y: 97%; --s: min(1200px, 160vw); --c: rgba(242, 146, 128, .62); --t: 30s; }
@keyframes dlDrift {
  to { transform: translate(var(--dx, 60px), var(--dy, -40px)) scale(1.12); }
}

/* ---------- Раздел блоков уровней ---------- */

.story { padding: clamp(80px, 9vw, 140px) var(--pad) clamp(40px, 5vw, 80px); }
.story-hd { text-align: center; margin-bottom: clamp(64px, 8vw, 120px); }
/* Крупный заголовок раздела по центру — как у partiful.com */
.display {
  margin: 0 auto;
  max-width: 15ch;
  font-size: clamp(42px, 6vw, 88px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 800;
  text-wrap: balance;
}
.display .i { letter-spacing: -.02em; }
.row + .row { margin-top: clamp(96px, 10vw, 160px); }
.row-btn { margin-top: 32px; padding: 15px 24px 15px 26px; }
.row-btn .arw { margin-inline-start: 2px; transition: translate .2s var(--ease-out); }
.row-btn:hover .arw { translate: 4px 0; }
[dir="rtl"] .row-btn:hover .arw { translate: -4px 0; }
.pill-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(25, 26, 26, .7); }

/* ---------- Иллюстрации: сцена 560 × 520 ---------- */

/* Сцена нарисована в фиксированных пикселях и масштабируется целиком
   (--k = ширина колонки / 560, ставит app.js). Карточки .fx стоят по
   своим координатам, наклон — свойство rotate, появление — translate и
   scale, сдвиг при прокрутке — transform (--p от app.js, глубина --z).
   Три независимых свойства не мешают друг другу. */
.stage-box { position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 560 / 520; }
.stage { position: absolute; top: 0; left: 0; width: 560px; height: 520px; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.fx {
  position: absolute;
  transform: translate3d(0, calc(var(--p, 0) * var(--z, 0) * 1px), 0);
}
.dark {
  color: #fff;
  border-radius: 22px;
  background: linear-gradient(155deg, var(--plum-1) 0%, var(--plum-2) 100%);
  box-shadow: 0 2px 6px rgba(30, 20, 40, .2), 0 34px 70px -24px rgba(45, 25, 70, .55);
}
.em { font-size: 15px; line-height: 1; }

/* Наклейка-эмодзи сидит на углу карточки, наполовину на ней, как
   приклеенная, и чуть покачивается. Отдельно в воздухе она выглядела
   одинокой (владелец, 05.10). */
.sticker { width: 58px; height: 58px; z-index: 3; rotate: var(--sr, 12deg); }
.sticker span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  font-size: 28px;
  box-shadow: 0 0 0 1px rgba(25, 26, 26, .04), 0 10px 22px -8px rgba(90, 45, 70, .35);
  animation: dlBob 5.5s ease-in-out infinite;
}

/* Появление. Прячет только класс .anim на <html>, который ставит сам
   app.js (scenes): без скрипта или со старым app.js из кеша всё видно
   сразу. Все .reveal ниже первого экрана, поэтому мигания нет. */
.anim .reveal .fx {
  opacity: 0;
  translate: 0 80px;
  scale: .9;
  transition: opacity .6s ease var(--d, 0ms), translate 1.1s var(--ease-spring) var(--d, 0ms), scale 1.1s var(--ease-spring) var(--d, 0ms);
}
.anim .reveal.is-in .fx { opacity: 1; translate: 0 0; scale: 1; }
.anim .level-txt.reveal > * { opacity: 0; translate: 0 28px; transition: opacity .6s ease, translate .9s var(--ease-out); }
.anim .level-txt.reveal.is-in > * { opacity: 1; translate: 0 0; }
.anim .level-txt.reveal > :nth-child(2) { transition-delay: 70ms; }
.anim .level-txt.reveal > :nth-child(3) { transition-delay: 140ms; }
.anim .level-txt.reveal > :nth-child(4) { transition-delay: 210ms; }
.anim .level-txt.reveal > :nth-child(5) { transition-delay: 280ms; }
.anim .story-hd.reveal, .anim .features-hd.reveal, .anim .apps-panel.reveal, .anim .cta-card.reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity .7s ease, translate 1s var(--ease-out);
}
.anim .story-hd.is-in, .anim .features-hd.is-in, .anim .apps-panel.is-in, .anim .cta-card.is-in { opacity: 1; translate: 0 0; }

@keyframes dlBob { 50% { transform: translateY(-9px); } }
@keyframes dlPop { from { opacity: 0; translate: 0 40px; scale: .9; } }

/* --- Близкие --- */
.sc-tree { left: 0; top: 18px; width: 412px; height: 372px; rotate: -3deg; }
.stage-people .p-k3 { --x: 68%; }
.stage-people .p-k1 { --x: 22%; }
.sc-person { left: 336px; top: 262px; width: 222px; padding: 18px 18px 16px; rotate: 4deg; }
.pc-hd { display: flex; align-items: center; gap: 11px; }
.pc-hd b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.pc-hd small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.pc-av {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #F6CADF;
  color: rgba(25, 26, 26, .75);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.pc-list { margin: 14px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 10px; }
.pc-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, .88); }
.pc-list .em {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  font-size: 14px;
}

/* --- Пара --- */
.sc-feed { left: 0; top: 36px; width: 268px; padding: 18px 56px 18px 18px; rotate: -5deg; }
[dir="rtl"] .sc-feed { padding: 18px 18px 18px 56px; }
.feed-t { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.act { display: flex; gap: 10px; margin-top: 14px; }
.act + .act { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.act .mini { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.act p { margin: 2px 0 0; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.act small { color: rgba(255, 255, 255, .45); font-weight: 400; white-space: nowrap; }
.reacts { display: flex; gap: 6px; margin-top: 9px; }
.reacts span { padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .1); }
.reacts .on { background: rgba(240, 138, 114, .32); box-shadow: inset 0 0 0 1px rgba(255, 170, 150, .55); }
.sc-goal { left: 214px; top: 92px; width: 342px; rotate: 3deg; box-shadow: var(--shadow-lift); }

/* --- Личное --- */
.ghost {
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(205, 190, 248, .95) 0%, rgba(207, 224, 255, .95) 100%);
  box-shadow: var(--shadow-lift);
}
.sc-ghost { left: 84px; top: 6px; width: 420px; height: 470px; rotate: 6deg; }
.sc-pane {
  left: 36px; top: 28px; width: 476px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lift);
  rotate: -2deg;
}
.sc-pane .pv-card { box-shadow: 0 0 0 1px rgba(25, 26, 26, .05); }
.chip-float {
  left: 250px; top: 478px;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  rotate: 3deg;
}

/* --- Защита данных --- */
.sc-lock {
  left: 4px; top: 44px; width: 250px; height: 318px;
  padding: 28px 24px;
  display: flex; flex-direction: column; align-items: flex-start;
  rotate: -6deg;
}
.lock-ring {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--coral), #EE8FB4 60%, #A98BF0);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(238, 143, 180, .6);
}
.lock-ring .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.sc-lock b { margin-top: 22px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sc-lock small { margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.pin { display: flex; gap: 10px; margin-top: 22px; }
.pin i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.pin i:last-child { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.sc-safe {
  left: 196px; top: 86px; width: 360px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column; gap: 14px;
  rotate: 3deg;
}
.sc-safe .chip { background: rgba(255, 255, 255, .85); }

/* углы: дерево — правый верхний, цель — правый верхний, сейф — правый нижний */
.stk-people { left: 380px; top: -14px; }
.stk-pair { left: 516px; top: 66px; --sr: -10deg; }
.stk-safe { left: 518px; top: 424px; }

/* Иврит и арабский: сцена зеркальная — карточки меняются местами и
   наклоном, иначе текст, прижатый к правому краю, уходит под соседнюю
   карточку. Координаты — 560 минус левый край плюс ширина. */
[dir="rtl"] .sc-tree { left: 148px; rotate: 3deg; }
[dir="rtl"] .sc-person { left: 2px; rotate: -4deg; }
[dir="rtl"] .stk-people { left: 122px; --sr: -12deg; }
[dir="rtl"] .sc-feed { left: 292px; rotate: 5deg; }
[dir="rtl"] .sc-goal { left: 4px; rotate: -3deg; }
[dir="rtl"] .stk-pair { left: -14px; --sr: 10deg; }
[dir="rtl"] .sc-ghost { left: 56px; rotate: -6deg; }
[dir="rtl"] .sc-pane { left: 48px; rotate: 2deg; }
[dir="rtl"] .chip-float { left: auto; right: 262px; rotate: -3deg; }
[dir="rtl"] .sc-lock { left: 306px; rotate: 6deg; }
[dir="rtl"] .sc-safe { left: 4px; rotate: -3deg; }
[dir="rtl"] .stk-safe { left: -16px; --sr: -12deg; }

/* ---------- Несколько приложений — в одном ---------- */

.apps-sect { padding-top: clamp(56px, 6vw, 100px); }
.apps-sect .features-hd { justify-content: center; text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.apps-sect .features-hd h2 { max-width: 16ch; }
.ai { background: rgba(255, 255, 255, .88); }
.apps-btn { align-self: flex-start; margin-top: 16px; }
/* телефон: стопка снимков внутри открытого пункта, под текстом */
.ai .apps-stage { padding-top: 20px; }
/* тело пункта режет всё, что вылезает (overflow: hidden для раскрытия),
   поэтому стопка здесь ниже и уже: наклонённые задние снимки целиком
   внутри карточки пункта */
.ai .apps-fan { --h: 340px; --off: calc(var(--h) * .13); --off2: calc(var(--h) * .11); }

/* ---------- Финальная плашка ---------- */

.cta { padding: clamp(24px, 4vw, 64px) var(--pad) clamp(56px, 7vw, 104px); }
.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(28px, 3vw, 44px);
  padding: clamp(64px, 8vw, 120px) clamp(24px, 4vw, 64px);
  color: #fff;
  background:
    radial-gradient(55% 90% at 6% 8%, #F59A7A 0%, transparent 62%),
    radial-gradient(50% 90% at 96% 100%, #B9A2EE 0%, transparent 64%),
    linear-gradient(110deg, #D65A78 0%, #EC8670 34%, #E58FB4 70%, #B79BEA 100%);
  box-shadow: 0 50px 100px -50px rgba(160, 60, 90, .5);
}
.cta-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta h2 { max-width: 14ch; font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -.045em; margin-bottom: 20px; text-wrap: balance; }
.cta p { margin: 0 0 36px; max-width: 30em; font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.cta .store img { height: 54px; }
/* ---------- Телефон ---------- */

@media (max-width: 900px) {
  .stage-box { max-width: 560px; }
  .row-btn { margin-top: 26px; }
}
@media (max-width: 640px) {
  .story { padding-top: 72px; }
  .story-hd { margin-bottom: 56px; }
  .row + .row { margin-top: 88px; }
  .row-btn, .apps-btn { width: 100%; justify-content: center; }
  /* иллюстрация выходит к краям экрана: так она на треть крупнее */
  .stage-box { width: calc(100% + var(--pad) * 2 - 8px); max-width: none; margin-inline: calc(var(--pad) * -1 + 4px); }
  .cta { padding-inline: 12px; }
  .cta .store img { height: 48px; }
}

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

@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .plan { grid-template-columns: 1fr; }
  .nav { display: none; }
  .ftr-in { grid-template-columns: 1fr; gap: 32px; }
  .ftr-about { max-width: none; }
}

@media (max-width: 900px) {
  .features-hd { flex-direction: column; align-items: flex-start; gap: 16px; }
  .features-hd h2, .features-hd p { max-width: none; }
  /* блоки уровней — столбиком, текст сверху, плитка на всю ширину */
  .level, .level-flip { grid-template-columns: minmax(0, 1fr); gap: var(--sp-panel); }
  .level-flip > .level-txt { order: 0; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }

  /* backdrop-filter у шапки делает её точкой отсчёта для position:fixed
     внутри — лист языков уезжал вверх на пол-экрана. На телефоне размытие
     не стоит того: заменяем почти непрозрачным фоном. */
  .hdr { backdrop-filter: none; background: var(--cream); }

  /* Языки на телефоне — листом снизу, а не выпадашкой у кнопки.
     Десять пунктов это 380px: у кнопки в подвале список уезжал вверх на
     половину экрана и наползал на соседний блок, а во встроенном браузере
     Messenger обрезался краем окна. Лист всегда влезает и всегда виден. */
  .lang[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(25, 26, 26, .35);
  }
  .lang-menu {
    position: fixed;
    z-index: 61;
    inset-inline: 12px;
    inset-block: auto 12px;
    top: auto;
    min-width: 0;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 8px;
    border-radius: 22px;
    box-shadow: 0 -12px 40px -18px rgba(25, 26, 26, .55);
  }
  .lang-menu { grid-auto-columns: minmax(0, 1fr); }
  .lang-menu a { padding: 12px 12px; font-size: 15px; }
  /* Подвал: тот же лист, а не «вверх от кнопки». Селектор с двумя классами —
     иначе правило подвала (0,2,0) перебивает лист и оставляет его шириной
     с кнопку. */
  .lang-ftr .lang-menu {
    inset-inline: 12px;
    inset-block: auto 12px;
  }

  /* В шапке пять блоков — ужимаем, иначе кнопки переносятся на вторую строку */
  .hdr-in { gap: 10px; }
  .brand span { font-size: 19px; }
  .hdr-cta { gap: 6px; }
  .hdr-cta .pill { padding: 10px 14px; font-size: 14px; }

  /* Переключатель языка сжимается до глобуса: с длинными подписями
     («Dualog-ში გადასვლა») строка шапки иначе не помещается */
  .lang-hdr summary { padding: 10px 13px; }



  /* Кнопка демо на всю ширину — так её проще нажать большим пальцем */
  .getrow { align-items: stretch; }
  .getrow .pill { width: 100%; }
  .getnote { text-align: center; padding-inline: 0; }
  .pill-demo { padding: 20px 32px; font-size: 18.5px; }

  /* ручные переносы в подзаголовке — решение для широкого экрана;
     в узкой колонке строки и так переносятся */
  .lead br { display: none; }

  /* Переключатель взглядов: три подписи в строку помещаются только ужатыми */
  .seg button { font-size: 12.5px; padding: 9px 4px; }
  .pv-card { padding: 0 16px; }
  .pr-in { padding: 10px 0; gap: 10px; }
  .pr-in b, .steps li, .srow .st { font-size: 14.5px; }
  .goal { padding: 20px 20px 8px; }
  .steps li { padding: 11px 0; }
  .safe-card { padding: 0 14px; }
  .srow { padding: 10px 0; gap: 12px; }




  .ftr-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* Дерево на телефоне: аватары и подписи мельче — четыре родителя в ряд
   помещаются в холст шириной 270 px */
@media (max-width: 480px) {
  .tree { --avs: 34px; --lbl: 35px; background-size: 16px 16px; }
  .person b { margin-top: 7px; font-size: 12px; }
  .person small { font-size: 10.5px; }
  .cp { width: 26px; height: 26px; font-size: 11px; }
  .couple { top: calc(50% + 14px); }
  /* четыре родителя в ряд на узком холсте: поле во всю ширину, пары
     родителей раздвинуты к краям, подписи плотнее */
  .tree-in { left: 0; right: 0; }
  .p-f1 { --x: 11%; } .p-f2 { --x: 32.5%; } .p-f3 { --x: 67.5%; } .p-f4 { --x: 89%; }
  .p-k1 { --x: 18%; } .p-k3 { --x: 82%; }
  .person b, .person small { padding-inline: 2px; }
  .tree { --rolew: 64px; }
  /* в нижней строке узлов три, места вдвое больше — роль в одну строку */
  .tree .p-k1, .tree .p-k3 { --rolew: 92px; }
}

@media (max-width: 380px) {
  .tree { --rolew: 56px; }
}

/* Совсем узкие экраны (360-400px): в шапке пять блоков, и подпись логотипа
   уходит первой — сам знак остаётся */
@media (max-width: 400px) {
  .hdr .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .aura-bg i, .hero-note, .sticker span { animation: none !important; }
  * { transition-duration: .01ms !important; }
}


/* ---------- Письмо справа налево (иврит, арабский) ---------- */

/* Логические свойства закрывают почти всё; здесь — остатки на физических
   координатах. Карта близких остаётся LTR (dir="ltr" в разметке): это холст
   с абсолютными координатами, зеркалить его нечем и незачем. */
[dir="rtl"] .arw { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .ftr-legal li + li::before { left: auto; right: -11px; }
[dir="rtl"] .marquee-track { direction: ltr; }


/* Раздел «Сервисы» в шапке — раскрывающийся список без скриптов. Раньше
   здесь была одна ссылка прямо в игру: человек попадал в конструктор, не
   узнав, что это. */
.nav-menu { position: relative; }
/* Пункт выглядит и весит ровно как соседние ссылки: `summary` наследует
   цвет от body, и раздел смотрелся выбранным, даже когда закрыт. */
.nav-menu > summary { list-style: none; cursor: pointer; display: inline-flex;
  align-items: center; gap: 6px; color: rgba(25, 26, 26, .72); font-weight: 500; }
.nav-menu > summary:hover, .nav-menu[open] > summary { color: var(--ink); }
.nav-menu > summary::-webkit-details-marker { display: none; }
/* Стрелка — иконка, а не текстовый знак: у символа своя метрика в каждом
   шрифте, и на открытии он прыгал вместе со строкой. */
.nav-menu .caret { flex: none; transition: transform .15s ease; }
.nav-menu[open] .caret { transform: rotate(180deg); }
.nav-drop { position: absolute; z-index: 60; inset-inline-start: 0; top: calc(100% + 12px);
  min-width: 250px; display: grid; gap: 2px; padding: 8px;
  border-radius: 18px; background: #fff; border: 1px solid rgba(25,26,26,.09);
  box-shadow: 0 18px 44px -20px rgba(25,26,26,.45); }
.nav-drop a { padding: 10px 12px; border-radius: 12px; text-decoration: none;
  font-size: 14.5px; color: inherit; white-space: nowrap; }
.nav-drop a:hover { background: var(--mist, #F1EFEA); }
@media (max-width: 900px) {
  .nav-drop { position: static; min-width: 0; box-shadow: none; margin-top: 8px; }
}

/* ---------- Первый экран на телефоне: фото сверху, текст на градиенте снизу ---------- */
@media (max-width: 760px) {
  .hero {
    min-height: 0;
    align-items: flex-end;
    background: linear-gradient(180deg, var(--h2) 0%, var(--h1) 100%);
  }
  .hero-photo {
    inset: 0 0 auto 0;
    height: 46vh;
    min-height: 300px;
    background-image: url(/img/hero-dinner-m.webp);
    /* лица всех четверых целиком и в середине полосы над текстом */
    background-size: auto 112%;
    background-position: 66% 60%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero-shade { background: linear-gradient(180deg, rgba(25, 26, 26, .32) 0%, transparent 22%); }
  .hero-in { padding: calc(max(300px, 46vh) - 150px) var(--pad) calc(var(--mq-h) + 28px); }
  .hero h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .hero .badge { margin-bottom: 18px; }
  .hero .lead { font-size: 18px; margin-top: 18px; }
  .hero .stores { margin-top: 26px; }
  .hero .store img { height: 44px; }
  .hero-note { display: none; }
  [dir="rtl"] .hero-photo { inset: 0 0 auto 0; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .promo { font-size: 13px; flex-wrap: wrap; justify-content: center; column-gap: 12px; row-gap: 6px; padding-block: 9px; }
  .promo-msg { justify-content: center; }
  .promo-btn { padding: 6px 14px; font-size: 12.5px; }
}

