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

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

  --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);

  --pad: 48px;
  --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: 1280px; margin: 0 auto; }

.sect { padding: clamp(48px, 5.6vw, 78px) var(--pad); }

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

.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 249, 249, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.hdr-in {
  max-width: calc(1280px + var(--pad) * 2);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 30px; height: 30px; }
.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(--lime);
  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;
  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(--lime); }
/* Селектор с двумя классами — иначе в подвале побеждает `.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); }

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

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 44px;
  /* колода тянется по высоте текстовой колонки — блоки первого экрана равны */
  align-items: stretch;
  /* max-width учитывает собственные отступы — иначе колонка контента первого
     экрана уже, чем у секций, где отступ задаёт родительский .sect */
  max-width: calc(1280px + var(--pad) * 2);
  /* воздуха по вертикали больше: бегущая строка уходит ниже по экрану */
  padding: clamp(52px, 6vw, 92px) var(--pad) clamp(64px, 7.4vw, 112px);
}
.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; }

/* ---------- Колода дел ---------- */

.deck {
  /* Высоту задаёт соседняя колонка (align-items: stretch), сцена забирает
     весь остаток — нижний край стопки отбит теми же 26px, что и бока.
     width обязателен: при justify-self ширина иначе считается по содержимому. */
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  position: relative;
  padding: 26px;
  border-radius: 34px;
  background: var(--lilac);
  overflow: hidden;
}
.deck-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.deck-hd h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.deck-hd p { margin: 0; font-size: 13px; color: var(--ink-60); }
.deck-stage { position: relative; flex: 1; min-height: 260px; }

/* нижний край самого глубокого ghost-слоя совпадает с низом сцены */
.deck-ghost { position: absolute; border-radius: 26px; height: calc(100% - 16px); }
.deck-ghost.g1 { inset-inline: 16px; top: 16px; background: rgba(255, 255, 255, .4); }
.deck-ghost.g2 { inset-inline: 8px; top: 8px; background: rgba(255, 255, 255, .7); }

.card {
  position: absolute;
  inset-inline: 0; top: 0;
  height: calc(100% - 16px);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 40px -18px rgba(25, 26, 26, .45);
  cursor: grab;
  touch-action: none;
  display: flex;
  flex-direction: column;
  user-select: none;
}
.card.dragging { cursor: grabbing; }
.card:not(.dragging) { transition: transform .28s cubic-bezier(.4, 0, .2, 1); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-tag { padding: 6px 12px; border-radius: 999px; background: rgba(25, 26, 26, .1); font-size: 12px; font-weight: 600; }
.card-idx { font-family: var(--mono); font-size: 10.5px; color: var(--ink-45); }
/* auto сверху и снизу: текст стоит по центру карточки, а не жмётся к краю */
.card-title { margin-top: auto; margin-bottom: 10px; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; text-wrap: pretty; }
.card-meta { margin-bottom: auto; font-size: 14px; color: rgba(25, 26, 26, .62); }

.burst { position: absolute; left: 50%; top: 46%; pointer-events: none; }
.burst i { position: absolute; border-radius: 999px; display: block; }

@keyframes dlPop { 0% { transform: scale(.2); opacity: 0 } 40% { opacity: 1 } 100% { transform: scale(1.9) translateY(-26px); opacity: 0 } }
@keyframes dlRise { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }

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

.marquee {
  padding: 16px 0 22px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  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;
}
.marquee-track li.dot { line-height: 1; }
/* сдвиг ровно на ширину одной копии — стык невидим при любой ширине экрана */
@keyframes dlSlide { to { transform: translateX(calc(var(--shift, 50%) * -1)) } }

/* ---------- Бенто «Помнит то, что важно» ---------- */

.features { background: var(--white); }
.features-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
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; }
.features-hd p { margin: 0; max-width: 300px; font-size: 15.5px; line-height: 1.5; color: var(--ink-60); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { padding: 26px; border-radius: 28px; display: flex; flex-direction: column; }
.tile-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tile-hd h3 { margin: 0; font-size: clamp(20px, 1.9vw, 24px); font-weight: 700; letter-spacing: -.025em; }
.num { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 7px; background: rgba(25, 26, 26, .12); }
.tile p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-68); }

.tile-map { grid-column: span 2; background: var(--ink); overflow: hidden; }
.tile-map .num { background: var(--lime); }
.tile-map h3 { color: var(--cream); }
.tile-map p { color: rgba(249, 249, 249, .6); max-width: 360px; margin-bottom: 12px; }
.tile-map .tile-hd { margin-bottom: 4px; }

.tile-pref { grid-column: 3; grid-row: span 2; background: var(--lime); gap: 16px; }
.tile-goal { grid-column: 1; grid-row: 2; background: var(--lilac); gap: 18px; }
.tile-safe { grid-column: 2; grid-row: 2; background: var(--peach); }

/* Карта близких: внутренний холст 732×196 масштабируется под ширину плитки,
   а на узких экранах — прокручивается по горизонтали */
.map-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.map-scroll::-webkit-scrollbar { display: none; }
.map-scroll.is-scrollable { mask-image: linear-gradient(90deg, #000 88%, transparent); }
.map-fit { position: relative; }
.map {
  position: absolute;
  top: 0; left: 0;
  width: 732px;
  height: 196px;
  transform-origin: 0 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(249, 249, 249, .05);
  background-image: radial-gradient(rgba(249, 249, 249, .13) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
}
.map svg { position: absolute; left: 0; top: 0; }
.node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 7px;
  border-radius: 999px;
  background: rgba(249, 249, 249, .12);
  border: 1px solid rgba(249, 249, 249, .16);
}
.node .av {
  width: 26px; height: 26px;
  border-radius: 999px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
}
.node b { font-size: 13px; font-weight: 700; line-height: 1.15; color: var(--cream); white-space: nowrap; }
.node small { font-size: 10.5px; line-height: 1.2; color: rgba(249, 249, 249, .6); white-space: nowrap; }
.node > div { display: flex; flex-direction: column; }
.pair {
  position: absolute;
  top: 43px;
  width: 46px; height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 4.5px rgba(249, 249, 249, .28);
}
.heart {
  position: absolute;
  left: 357px; top: 75px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--ink);
  border: 1.5px solid rgba(249, 249, 249, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  color: var(--lime);
  z-index: 4;
}

/* Предпочтения */
/* Высоту контейнера фиксирует app.js по самому высокому состоянию. Карточки
   прижаты к верху, запас уходит вниз и читается как отступ плитки — внутри
   короткой карточки или между ними он выглядел бы поломкой. */
.prefs { display: flex; flex-direction: column; gap: 10px; }
.acc { background: var(--white); border-radius: 20px; padding: 14px; }
.acc-hd { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; }
.acc-ico { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.acc-hd b { font-size: 15px; font-weight: 700; display: block; }
.acc-hd small { font-size: 11.5px; color: rgba(25, 26, 26, .5); }
.acc-chev { margin-inline-start: auto; flex: none; transition: transform .25s ease; }
.acc[data-open="1"] .acc-chev { transform: rotate(180deg); }
.acc-body { display: none; flex-direction: column; gap: 10px; margin-top: 13px; }
.acc[data-open="1"] .acc-body { display: flex; }
.lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; }
.lbl.yes { color: #4FA36F; }
.lbl.no { color: #C2574A; }
.lbl.mute { color: rgba(25, 26, 26, .5); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 7px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.tag.yes { background: #E3F0DC; color: #2E5B3C; }
.tag.no { background: #F7DED4; color: #8C3A2E; }
.tag.warn { background: #F6E3C8; color: #8A5A20; }
.sw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sw-sel { width: 26px; height: 26px; border-radius: 999px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(25, 26, 26, .25); }
.sw-div { width: 1px; height: 22px; background: rgba(25, 26, 26, .14); margin: 0 2px; }
/* образцы палитры — не кнопки: выбранные приглушены, добавлять цвета нельзя */
.sw-opt { width: 19px; height: 19px; border-radius: 999px; }
.sw-opt.is-picked { opacity: .3; }
.refs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.refs::-webkit-scrollbar { display: none; }
.refs img { flex: none; width: 74px; height: 88px; border-radius: 14px; object-fit: cover; }

/* Сейф */
.safe-rows { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.safe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  font-size: 13.5px;
  font-weight: 600;
}
.safe-row .dots { font-family: var(--mono); font-size: 11px; color: var(--ink-45); font-weight: 400; }
.safe-row .on { font-size: 12px; color: var(--green); }

/* Цель */
.goal { margin-top: auto; padding: 16px 18px; border-radius: 20px; background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.goal-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.goal-hd b { font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.goal-hd span { font-family: var(--mono); font-size: 11px; color: rgba(25, 26, 26, .5); }
.bar { height: 9px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 11px; border-radius: 999px; background: var(--mist); font-size: 12px; font-weight: 600; }
.chip.done { background: var(--lime); }
.chip.mute { color: var(--ink-55); }

/* ---------- Личное пространство ---------- */

.privacy { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: rgba(25, 26, 26, .42); }
.privacy h2 { margin: 14px 0 18px; }
.privacy .lead { font-size: 17px; max-width: 430px; margin-bottom: 22px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 470px; margin-bottom: 24px; }
.note { padding: 18px; border-radius: 20px; background: var(--white); border: 1px solid rgba(25, 26, 26, .08); }
.note b { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.note p { margin: 0; font-size: 13.5px; line-height: 1.45; color: rgba(25, 26, 26, .62); }

/* Тарифы: заголовок, переключатель и подписи по центру; карточки — те же
   .note, что и в блоке про личное. Показан ровно один план. */
.pricing-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing-in h2 { margin: 16px 0 30px; max-width: 22ch; }

.pseg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(25, 26, 26, .12);
  box-shadow: 0 12px 28px -18px rgba(25, 26, 26, .5);
}
.pseg-thumb {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: var(--ink);
  transition: inset-inline-start .32s cubic-bezier(.4, 0, .2, 1), top .32s cubic-bezier(.4, 0, .2, 1);
}
.pseg[data-plan="pair"] .pseg-thumb { inset-inline-start: 50%; }
.pseg button {
  position: relative;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-55);
  transition: color .2s;
}
.pseg button[aria-selected="true"] { color: var(--cream); }

.plan { display: none; width: 100%; grid-template-columns: repeat(auto-fit, minmax(0, 380px)); justify-content: center; gap: 12px; }
.plan.is-on { display: grid; }

/* строка про 7 дней относится только к парному тарифу */
.price-trial { display: none; margin: 26px 0 16px; font-size: 15.5px; line-height: 1.5; color: var(--ink-68); }
.pricing-in[data-plan="pair"] .price-trial { display: block; }
.pricing-in[data-plan="solo"] .pill-lg { margin-top: 28px; }
.price-note { margin: 30px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(25, 26, 26, .62); max-width: 720px; }
.price-note a { color: inherit; }

.seg-wrap { max-width: 470px; }
/* Три взгляда. Ширина бегунка и его позиции выведены из padding 6px:
   inner = 100% - 12px, ячейка = inner / 3. */
.seg {
  position: relative;
  display: grid;
  /* minmax(0, 1fr), а не 1fr: иначе длинная подпись раздувает свою колонку
     и бегунок фиксированной ширины перестаёт совпадать с кнопкой */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 6px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(25, 26, 26, .12);
  box-shadow: 0 12px 28px -18px rgba(25, 26, 26, .5);
}
.seg-thumb {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  width: calc(33.3333% - 4px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: var(--ink);
  transition: inset-inline-start .32s cubic-bezier(.4, 0, .2, 1);
}
.seg[data-view="partner"] .seg-thumb { inset-inline-start: calc(33.3333% + 2px); }
.seg[data-view="circle"] .seg-thumb { inset-inline-start: calc(66.6667% - 2px); }
.seg button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  /* подписи переносим, а не обрезаем: в армянском, киргизском и узбекском
     «взгляд круга» в одну строку не помещается */
  text-align: center;
  color: var(--ink-55);
  transition: color .2s;
}
.seg button[aria-selected="true"] { color: var(--cream); }
.seg .av { width: 26px; height: 26px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ink); }
.seg-hint { margin-top: 14px; display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.4; color: var(--ink-60); }
.seg-hint i { flex: none; margin-top: 5px; width: 7px; height: 7px; border-radius: 999px; background: var(--lime); transition: background .25s; }

.pane { padding: 24px; border-radius: 32px; background: var(--white); border: 1px solid rgba(25, 26, 26, .08); }
.pane-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 16px; }
.pane-hd b { font-size: 16px; font-weight: 700; max-width: 230px; }
.pane-hd span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-45); }
.pane-rows { display: flex; flex-direction: column; gap: 9px; }
.prow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 52px;
  border-radius: 18px;
  background: var(--lilac);
  transition: background .25s ease, color .25s ease;
}
.prow.both { background: var(--lime); }
.prow.circle { background: var(--peach); }
.prow.hidden { background: var(--mist); }
.prow i { width: 9px; height: 9px; border-radius: 999px; flex: none; background: var(--ink-45); }
.prow.hidden i { background: rgba(25, 26, 26, .2); }
.prow b { font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.prow.hidden b, .prow.hidden .ptag { color: rgba(25, 26, 26, .35); }
.prow .ptag { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--ink-55); white-space: nowrap; }

/* ---------- Отзывы ---------- */

.reviews { background: var(--white); }
.reviews h2 { margin-bottom: 30px; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.05; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.quote { display: flex; flex-direction: column; }
.bubble { position: relative; flex: 1; padding: 26px 28px 28px; border-radius: 26px; }
.bubble p { margin: 0; font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.35; letter-spacing: -.015em; text-wrap: pretty; }
.bubble::after {
  content: "";
  position: absolute;
  left: 38px;
  bottom: -14px;
  width: 0; height: 0;
  border-right: 22px solid transparent;
  border-top: 16px solid var(--tail);
}
.who { display: flex; align-items: center; gap: 13px; padding: 26px 0 0 16px; }
.who img {
  width: 54px; height: 54px;
  border-radius: 999px;
  flex: none;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 8px 20px -10px rgba(25, 26, 26, .55);
}
.who b { display: block; font-size: 15px; font-weight: 700; }
.who small { font-size: 12.5px; color: var(--ink-55); }

/* ---------- Финальный CTA ---------- */

/* Финальный блок собран по центру: правая половина осталась пустой после
   удаления карточки, а текст в полноэкранной заливке прижимался к краю */
.cta { background: var(--lime); padding-block: clamp(66px, 7vw, 104px); }
.cta-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta h2 { max-width: 24ch; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 18px; }
.cta p { margin: 0 0 32px; max-width: 540px; font-size: 17.5px; line-height: 1.5; color: var(--ink-70); }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-note { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-55); }

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

.ftr { background: var(--ink); color: var(--cream); }
.ftr-in {
  max-width: calc(1280px + 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: 30px; height: 30px; }
.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(1280px + 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-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);
}

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

.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); }

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

@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 640px; }
  .hero .deck { justify-self: start; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-map { grid-column: span 2; }
  .tile-pref { grid-column: span 2; grid-row: auto; }
  .tile-goal { grid-column: 1; grid-row: auto; }
  .tile-safe { grid-column: 2; grid-row: auto; }
  .privacy { grid-template-columns: 1fr; gap: 36px; }
  .privacy .lead, .two, .seg-wrap { max-width: none; }
  .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; }
  .quotes { grid-template-columns: 1fr; gap: 34px; }
}

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

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

  /* Языки на телефоне — листом снизу, а не выпадашкой у кнопки.
     Десять пунктов это 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 a { padding: 13px 14px; font-size: 15.5px; }
  /* Подвал: тот же лист, а не «вверх от кнопки». Селектор с двумя классами —
     иначе правило подвала (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; }
  .hdr-os { padding-inline: 12px; }
  /* «скоро» на узком экране не помещается: то же самое написано в модалке,
     которая открывается по нажатию */
  .hdr-os .soon { display: none; }

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

  .bento { grid-template-columns: 1fr; }
  .tile { padding: 22px; border-radius: 24px; }
  .tile-map, .tile-pref, .tile-goal, .tile-safe { grid-column: auto; grid-row: auto; }
  .two { grid-template-columns: 1fr; }
  .privacy { gap: 28px; }

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

  /* Колода: узкий экран — компактнее рамка */
  .deck { padding: 18px; border-radius: 28px; }
  .card { padding: 20px; }

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

  /* Переключатель взглядов: три подписи в строку помещаются только ужатыми */
  .seg button { font-size: 12.5px; gap: 6px; padding: 12px 6px; }
  .seg .av { width: 22px; height: 22px; font-size: 11px; }

  /* Переключатель тарифов: подписи длинные — раскладываем в два ряда,
     бегунок ездит по вертикали */
  .pseg { grid-template-columns: minmax(0, 1fr); border-radius: 30px; }
  .pseg-thumb { width: calc(100% - 12px); height: calc(50% - 6px); }
  .pseg[data-plan="pair"] .pseg-thumb { inset-inline-start: 6px; top: 50%; }
  .pseg button { padding: 12px 16px; font-size: 14px; }

  /* CTA: кнопки на всю ширину — так их проще нажать большим пальцем */
  .cta-btns .pill { flex: 1 1 100%; }

  .quotes { gap: 30px; }
  .bubble { padding: 22px 22px 24px; border-radius: 22px; }
  .who { padding: 22px 0 0 12px; }

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

@media (max-width: 420px) {
  /* аватары уходят первыми: подписи важнее */
  .seg .av { display: none; }
}

@media (max-width: 380px) {
  .prow { flex-wrap: wrap; row-gap: 2px; }
  .prow .ptag { margin-inline-start: 21px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .burst { display: none; }
  * { transition-duration: .01ms !important; }
}


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

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