/* 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; }

.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-left: auto; font-size: 17px; }

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

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 44px;
  align-items: start;
  /* 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(38px, 5.4vw, 69px);
  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; align-items: stretch; gap: 14px; flex-wrap: wrap; }
/* кнопки магазинов в строку: с короткими подписями столбец выглядел пустым */
.getcol { display: flex; flex-wrap: wrap; gap: 10px; }
.getcol .pill { white-space: nowrap; }
.getcol .pill .arw { margin-left: 4px; }

/* Кнопка «Web · скоро» — не ссылка, а открывашка модалки */
.pill-soon {
  background: var(--white);
  color: var(--ink);
  border: 1px dashed rgba(25, 26, 26, .28);
}
.pill-soon:hover { border-style: solid; box-shadow: 0 10px 24px -14px rgba(25, 26, 26, .6); }
.pill-soon .soon {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lime);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Модалка «Веб-версия» ---------- */

.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; right: 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; }

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

.deck {
  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-count {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}
.deck-stage { position: relative; height: 296px; }

.deck-ghost { position: absolute; border-radius: 26px; }
.deck-ghost.g1 { left: 16px; right: 16px; top: 26px; height: 236px; background: rgba(255, 255, 255, .4); }
.deck-ghost.g2 { left: 8px; right: 8px; top: 14px; height: 246px; background: rgba(255, 255, 255, .7); }

.card {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 252px;
  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; margin-bottom: auto; }
.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); }
.card-title { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; text-wrap: pretty; margin-bottom: 10px; }
.card-meta { font-size: 14px; color: rgba(25, 26, 26, .62); margin-bottom: 18px; }
.card-acts { display: flex; gap: 10px; }
.card-acts .yes { flex: 1; padding: 13px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 14.5px; font-weight: 600; }
.card-acts .no { padding: 13px 20px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-size: 14.5px; font-weight: 600; }

.deck-empty {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, .85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  animation: dlRise .35s ease both;
}
.deck-empty b { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.deck-empty p { margin: 0; font-size: 15px; color: var(--ink-60); max-width: 250px; }

.deck-hint {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-55);
}
.deck-hint span:nth-child(2) { opacity: .4; }

.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: left; }
.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-left: 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; padding: 0; transition: transform .15s ease, opacity .15s ease; }
.sw-opt:hover { transform: scale(1.18); }
.sw-opt[aria-pressed="true"] { 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); }

.seg-wrap { max-width: 470px; }
.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 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;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: var(--ink);
  transition: left .32s cubic-bezier(.4, 0, .2, 1);
}
.seg[data-view="partner"] .seg-thumb { left: 50%; }
.seg button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  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.shared { background: var(--lime); }
.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-left: 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; }

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

.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-left: 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; }
  .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; }
  .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; }

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

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

  .getcol { flex: 1 1 100%; }

  /* Колода: узкий экран — компактнее рамка, счётчик уезжает на свою строку */
  .deck { padding: 18px; border-radius: 28px; }
  .deck-hd { flex-wrap: wrap; row-gap: 8px; }
  .deck-hd > div:not(.deck-count) { flex: 1 1 100%; order: 1; }
  .deck-count { order: 2; flex: 0 0 auto; }
  .deck-stage { height: 300px; }
  .card { height: 268px; padding: 20px; }
  .card-acts { font-size: 14px; }
  .card-acts .yes, .card-acts .no { 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: 380px) {
  .prow { flex-wrap: wrap; row-gap: 2px; }
  .prow .ptag { margin-left: 21px; }
}

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