/* ============================================================================
   ФРИЛАНС-НАВИГАТОР — вёрстка
   Формат: живая переписка со Светланой. Одно сообщение = один смысл (ТЗ, п.4).
   Цвета/шрифты/тени — только из assets/tokens.css (Business Cool).
   Мобайл-фёрст: основной трафик — телефон, hover нигде не является триггером.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Любой явный display (block/flex) перебивает браузерное правило для [hidden],
   и элемент остаётся на экране. Уже дважды поймали: пустая шкала прогресса в
   шапке и вторая иллюстрация на главной. Поэтому правило одно и жёсткое. */
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  font-family: var(--bc-font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--bc-dark);
  background: var(--bc-milk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------- ФОН */
/* Заблюренное фото + молочная вуаль поверх: без тонального разброса под
   стеклом пузыри сливаются с фоном, поэтому фото, а не плоский цвет. */
.bg-stack { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.bg-photo {
  position: absolute; inset: -14%;
  background-size: cover;
  background-position: center;
  filter: blur(64px) saturate(125%);
  transform: scale(1.08);
  opacity: 0;
  transition: opacity .7s ease-out;
}
/* Картинки подключены ВНУТРИ активного состояния, а не на сам слой: иначе
   браузер тянет все три фотографии сразу на первом экране (129 КБ), хотя
   главная их не показывает вообще — там живой градиент. Теперь фото грузится
   ровно тогда, когда этап стал активным. */
#app[data-bg="final"] .bg-final {
  background-image: url('assets/bg/bg-cash.jpg');
  opacity: .58;
}

/* Правка 30.07: в переписке фото было не видно — blur(64px) при opacity .62
   плюс плотная вуаль выбеливали его почти в белое, и экран читался пустым.
   Здесь блюр слабее, картинка ярче, вуаль легче. Значения только для квиза:
   на финале фото с деньгами настроено отдельно, его не трогаем. */
#app[data-bg="quiz"] .bg-quiz {
  background-image: url('assets/bg/bg-bali-balcony.jpg');
  opacity: .8;
  filter: blur(28px) saturate(115%);
}
#app[data-bg="quiz"] .bg-veil {
  background:
    radial-gradient(680px 460px at 12% -6%, rgba(242,238,249,.5), transparent 62%),
    linear-gradient(180deg, rgba(250,250,248,.42), rgba(250,250,248,.6));
}

.bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(720px 480px at 12% -8%, rgba(242,238,249,.78), transparent 62%),
    radial-gradient(640px 460px at 100% 4%, rgba(253,240,241,.66), transparent 58%),
    linear-gradient(180deg, rgba(250,250,248,.58), rgba(250,250,248,.74));
}

/* Фото с деньгами под блюром даёт тёплый песочно-серый — вне пастельной палитры.
   На финале усиливаем лавандово-розовую тонировку поверх блюра. */
#app[data-bg="final"] .bg-veil {
  background:
    radial-gradient(760px 540px at 50% -12%, rgba(232,224,245,.86), transparent 62%),
    radial-gradient(700px 520px at 100% 26%, rgba(250,218,221,.58), transparent 58%),
    linear-gradient(180deg, rgba(250,250,248,.60), rgba(250,250,248,.80));
}

/* ------------------------------------------------------------------ КАРКАС */
.app { position: relative; z-index: 1; }

/* ============================== ГЛАВНАЯ СТРАНИЦА ========================== */
.landing {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--bc-milk);
}

/* --- Переход «за шторкой»: одно движение на 700 мс --- */
.landing.is-opening .landing-chatbg { filter: blur(0); opacity: 1; }
.landing.is-opening .landing-veil   { opacity: 0; }
.landing.is-opening .landing-bg     { opacity: .35; }
/* Весь первый экран уезжает ВВЕРХ одним движением — карточка не растворяется
   на месте, а уходит наверх, освобождая ленту переписки под собой. Кнопка тоже
   идёт вверх, а не вниз: иначе движение распадается на два разных. */
.landing.is-opening .landing-inner {
  transform: translateY(-64px);
}
.landing.is-opening .landing-card {
  opacity: 0;
  transform: translateY(-28px) scale(.98);
}
.landing.is-opening .landing-title {
  opacity: 0;
  transform: translateY(-32px);
}
.landing.is-opening .landing-cta {
  opacity: 0;
  transform: translateY(-20px);
}

/* вкладка неактивна — градиент встаёт на паузу (см. visibilitychange) */
.landing.is-paused .blob { animation-play-state: paused; }

.landing-title, .landing-cta, .landing-inner {
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}

.landing-inner {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 520px;
  margin: 0 auto;
  padding: 26px 20px calc(30px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  gap: 10px;
  text-align: center;
}

.landing-title { line-height: 1; letter-spacing: -.5px; }
.landing-title-1 {
  display: block;
  font-family: var(--bc-font-heading);
  font-weight: 600;
  font-size: clamp(32px, 10vw, 44px);
  color: var(--bc-dark);
}
.landing-title-2 {
  display: block;
  font-family: var(--bc-font-accent);
  font-size: clamp(42px, 14vw, 58px);
  color: var(--bc-lavender);
  margin-top: 4px;
}

/* --- Слой 1: живой градиент. Пять пятен из палитры, медленно плывут друг
   сквозь друга. Блюр один на контейнер — дешевле пяти отдельных фильтров.
   inset отрицательный, чтобы размытые края уходили за экран, а не рисовали
   светлую рамку. Анимируем только transform. --- */
.landing-bg {
  position: absolute;
  inset: -12%;
  z-index: 0;
  filter: blur(60px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1);
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.b1 {
  width: 72vw; aspect-ratio: 1; left: -8vw; top: -4vh;
  background: radial-gradient(circle, var(--bc-lavender) 0%, transparent 70%);
  animation: drift-1 34s ease-in-out infinite alternate;
}
.b2 {
  width: 64vw; aspect-ratio: 1; right: -14vw; top: 8vh;
  background: radial-gradient(circle, var(--bc-lavender-mid) 0%, transparent 70%);
  animation: drift-2 41s ease-in-out infinite alternate;
}
.b3 {
  width: 58vw; aspect-ratio: 1; left: 4vw; bottom: 2vh;
  background: radial-gradient(circle, var(--bc-pink) 0%, transparent 70%);
  animation: drift-3 37s ease-in-out infinite alternate;
}
.b4 {
  width: 50vw; aspect-ratio: 1; right: -6vw; bottom: 12vh;
  background: radial-gradient(circle, var(--bc-caramel) 0%, transparent 70%);
  animation: drift-4 45s ease-in-out infinite alternate;
}
.b5 {
  width: 46vw; aspect-ratio: 1; left: 22vw; top: 34vh;
  background: radial-gradient(circle, var(--bc-green-light) 0%, transparent 70%);
  animation: drift-5 29s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate(14%, 10%) scale(1.12); } }
@keyframes drift-2 { to { transform: translate(-16%, 14%) scale(1.08); } }
@keyframes drift-3 { to { transform: translate(18%, -12%) scale(1.14); } }
@keyframes drift-4 { to { transform: translate(-12%, -16%) scale(1.1); } }
@keyframes drift-5 { to { transform: translate(10%, 16%) scale(1.16); } }

/* --- Слой 2: фоновая переписка под блюром. Те же классы пузырей, что в
   рабочем чате, поэтому стиль совпадает один в один. Размываем сам слой
   (filter), а не то, что под ним: backdrop-filter на такой площади сажает
   мобильные. Текст под блюром нечитаем — это фактура, слой aria-hidden. --- */
/* Лента идёт сверху вниз, а карточка с кнопкой стоят внизу — иначе карточка
   закрывает почти все пузыри и слой не читается (проверено замером: 3 из 5
   строк оказывались точно под ней). */
.landing-chatbg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  /* ТЗ предлагало blur(20px) при opacity .55, но на пузырях высотой ~47px
     это превращало их в невнятные пятна: силуэт переписки не читался.
     13px хватает, чтобы текст остался нечитаемым, а форма — узнаваемой. */
  filter: blur(13px);
  opacity: .85;
  transition: filter .7s cubic-bezier(.22,.61,.36,1), opacity .7s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
/* Под блюром полупрозрачные пузыри растворялись в молочном фоне, и слой
   вообще не читался. В фоновой ленте делаем их плотнее, а исходящие —
   лавандовыми: форма переписки узнаётся по силуэтам, а не по тексту. */
.landing-chatbg .bubble-in { background: rgba(255,255,255,.95); border-color: transparent; }
.landing-chatbg .bubble-out { background: var(--bc-lavender-mid); border-color: transparent; }
.chatbg-feed {
  width: 100%;
  max-width: 520px;
  padding: 6vh 16px 0;
  display: flex; flex-direction: column; gap: 4px;
}
/* внутри фонового слоя блюр на каждом пузыре не нужен — слой и так размыт */
.landing-chatbg .bubble {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.chatbg-feed .row { animation: chatbg-in .4s ease-out both; }
@keyframes chatbg-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.chatbg-feed.is-fading { opacity: 0; transition: opacity .6s ease-out; }

/* --- Слой 3: вуаль. Выравнивает контраст независимо от того, какое пятно
   градиента сейчас проплывает. Снизу плотнее — там кнопка. --- */
.landing-veil {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(250,250,248,.20) 0%,
    rgba(250,250,248,.45) 55%,
    rgba(250,250,248,.68) 100%);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}

/* --- Слой 4: стеклянная карточка — единственный резкий объект на экране --- */
.landing-card {
  width: 100%;
  max-width: 400px;
  margin: 10px auto 4px;
  padding: 24px;
  text-align: left;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 28px;
  box-shadow: var(--bc-shadow-lg);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.8), var(--bc-shadow-sm);
}
.card-who { display: flex; flex-direction: column; gap: 2px; }
.card-name { font-size: 15.5px; font-weight: 600; color: var(--bc-dark); }
.card-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--bc-lavender);
}
.card-dots { display: inline-flex; gap: 3px; }
.card-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--bc-lavender);
  animation: card-dot 1.2s ease-in-out infinite;
}
.card-dots span:nth-child(2) { animation-delay: .2s; }
.card-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes card-dot {
  0%, 60%, 100% { opacity: .3; }
  30%           { opacity: 1; }
}

.landing-card p { font-size: 14.5px; color: var(--bc-dark); }
.landing-card p + p { margin-top: 10px; }
.card-meta {
  margin-top: 14px !important;
  font-size: 12.5px !important;
  color: var(--bc-dark-mid) !important;
}

.landing-cta {
  width: 100%;
  max-width: 340px;
  min-height: 56px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px;
  font-family: var(--bc-font-body);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------- ШАПКА ПЕРЕПИСКИ */
.chat-head {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 10px 16px calc(8px + env(safe-area-inset-top, 0px));
  background: rgba(250,250,248,.82);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(193,171,229,.28);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
/* шапка проявляется навстречу уходящей карточке — то самое «разворачивание» */
.chat.is-entering .chat-head { opacity: 0; transform: translateY(-12px); }
.chat-head-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 520px; margin: 0 auto;
}
.chat-head-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), var(--bc-shadow-xs);
}
.chat-head-who { display: flex; flex-direction: column; line-height: 1.25; }
.chat-head-name { font-size: 14.5px; font-weight: 600; color: var(--bc-dark); }
.chat-head-sub { font-size: 11.5px; color: var(--bc-dark-mid); }

.chat-head .bc-progress-wrap {
  max-width: 520px;
  margin: 9px auto 0;
}
/* patterns.css задаёт .bc-progress-wrap { display: flex }, а это сильнее
   браузерного правила для [hidden] — без явного display:none пустая шкала
   продолжает висеть в шапке на входе и в финале. */
.bc-progress-wrap[hidden] { display: none; }
.chat-head .bc-progress-track { height: 5px; }

/* ---------------------------------------------------------- ЛЕНТА И СООБЩЕНИЯ */
.feed, .dock {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}
.feed { padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.dock { padding-top: 14px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }

.row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: bubble-in .28s ease-out both;
}
.row-in { justify-content: flex-start; }
.row-out { justify-content: flex-end; margin-top: 8px; }
.row-head { margin-top: 12px; }
.feed > .row:first-child { margin-top: 0; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.row-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; flex: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,.8);
}
.row-avatar-gap { width: 30px; flex: none; }

.bubble {
  max-width: 82%;
  padding: 11px 14px 12px;
  font-size: 14.5px;
  border-radius: 18px;
}
.bubble-text > * + * { margin-top: 9px; }
/* эмодзи — отдельный слой поверх текстов Светланы, см. DECOR в script.js */
.msg-emoji { font-size: 1.12em; white-space: nowrap; }

/* входящее — матовое стекло, «хвостик» скруглением снизу слева */
.bubble-in {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(193,171,229,.32);
  box-shadow: var(--bc-shadow-sm);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-left-radius: 6px;
}
.bubble-name {
  display: block;
  margin-bottom: 3px;
  font-size: 12px; font-weight: 600;
  color: var(--bc-lavender);
}

/* сам вопрос — жирнее остальных реплик (правка 30.07) */
.bubble-q { font-weight: 600; }

/* Акцентная плашка: та же стеклянная логика, но зелёная — чтобы ключевая
   реплика финала не выпадала из общего стиля, а читалась как выделенная.
   Зелёный из палитры, заливка полупрозрачная, как у обычного пузыря. */
.bubble-accent {
  background: linear-gradient(135deg, rgba(230,240,238,.88), rgba(184,213,209,.78));
  border-color: rgba(101,149,141,.45);
}

/* исходящее — её собственный ответ */
.bubble-out {
  background: linear-gradient(135deg, var(--bc-lavender-light), var(--bc-lavender-mid));
  border: 1px solid rgba(193,171,229,.5);
  color: var(--bc-dark-mid);
  box-shadow: var(--bc-shadow-xs);
  border-bottom-right-radius: 6px;
}

/* индикатор набора */
.bubble-typing {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
}
.typing-label {
  font-size: 13px;
  color: var(--bc-dark-mid);
}
.typing-dots { display: flex; align-items: center; gap: 5px; }
.bubble-typing .typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bc-lavender);
  animation: typing 1.15s ease-in-out infinite;
}
.bubble-typing span:nth-child(2) { animation-delay: .18s; }
.bubble-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* ------------------------------------------------- ГОЛОСОВОЕ СООБЩЕНИЕ */
.bubble-voice { min-width: 250px; }

.voice-row { display: flex; align-items: center; gap: 10px; }

.voice-play {
  flex: none;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--bc-lavender), var(--bc-lavender-mid));
  color: #fff;
  box-shadow: var(--bc-shadow-xs);
  cursor: pointer;
}
.voice-play svg { width: 19px; height: 19px; }
.voice-play .ico-pause { display: none; }
.is-playing .voice-play .ico-play { display: none; }
.is-playing .voice-play .ico-pause { display: block; }

/* волна: серые столбики, проигранная часть закрашивается лавандой */
.voice-wave {
  --played: 0%;
  flex: 1;
  display: flex; align-items: center; gap: 2px;
  height: 26px;
  position: relative;
}
.voice-wave span {
  flex: 1;
  height: var(--h, 50%);
  min-height: 3px;
  border-radius: 2px;
  background: var(--bc-gray-light);
}
/* закрашенная часть — отдельным слоем поверх, обрезается по ширине --played */
.voice-wave::after {
  content: '';
  position: absolute; inset: 0;
  width: var(--played);
  overflow: hidden;
  background: linear-gradient(90deg, var(--bc-lavender), var(--bc-lavender-mid));
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 5px);
  mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 5px);
  transition: width .15s linear;
}

.voice-time {
  flex: none;
  font-size: 12px;
  color: var(--bc-dark-mid);
  font-variant-numeric: tabular-nums;
}

.voice-rate {
  flex: none;
  padding: 3px 7px;
  border: 1px solid rgba(193,171,229,.5);
  border-radius: 100px;
  background: var(--bc-lavender-pale);
  font-family: inherit;
  font-size: 11px;
  color: var(--bc-dark-mid);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.voice-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px;
  padding: 5px 11px 5px 12px;
  border: 1px solid rgba(193,171,229,.5);
  border-radius: 100px;
  background: rgba(255,255,255,.6);
  font-family: inherit;
  font-size: 12.5px;
  color: var(--bc-dark-mid);
  cursor: pointer;
}
.voice-toggle svg { width: 13px; height: 13px; transition: transform .2s; }
.voice-toggle.is-open svg { transform: rotate(180deg); }

.voice-text {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(193,171,229,.45);
  font-size: 14.5px;
  animation: bubble-in .25s ease-out both;
}
/* одно голосовое обычно покрывает несколько реплик — под кнопкой они лежат
   отдельными абзацами, а не слипшейся стеной */
.voice-text p + p { margin-top: 9px; }

/* блок «Что будет дальше?» внутри сообщения */
.rational-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--bc-font-heading);
  font-size: 15px;
  color: var(--bc-dark);
}
.rational-list {
  margin: 8px 0;
  padding-left: 2px;
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.rational-list li { position: relative; padding-left: 18px; }
.rational-list li::before {
  content: '';
  position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bc-lavender);
}

/* ------------------------------------------------------- ВАРИАНТЫ ОТВЕТА */
.options { display: flex; flex-direction: column; gap: 9px; }

.option {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 11px 13px;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--bc-dark);
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(193,171,229,.4);
  border-radius: 18px;
  box-shadow: var(--bc-shadow-sm);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  cursor: pointer;
  animation: bubble-in .3s ease-out both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: background .2s, border-color .2s, transform .2s, opacity .25s;
}

/* Кружок-подложка под иконку. Сама иконка приходит на прозрачном фоне —
   поэтому цвет подложки живёт здесь, а не запечён в картинку: перекрасить
   экран можно правкой одной строки, без перегенерации иконок. */
.option-icon {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;               /* размер эмодзи-фолбэка */
  border-radius: 50%;
  background: var(--bc-lavender-light);
  overflow: hidden;
}
.option-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.option-label { flex: 1; }

/* Цвет подложки — свой на каждый вопрос, чтобы варианты читались как набор */
.options[data-q="q2"] .option-icon,
.options[data-q="q8"] .option-icon { background: var(--bc-pink-light); }
.options[data-q="q3"] .option-icon,
.options[data-q="q6"] .option-icon { background: var(--bc-caramel-light); }
.options[data-q="q5"] .option-icon,
.options[data-q="q9"] .option-icon { background: var(--bc-green-pale); }

/* чекбокс: пустой кружок, при выборе наливается лавандой с галочкой */
.option-check {
  flex: none;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bc-lavender-mid);
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
}
.option-check svg { width: 14px; height: 14px; opacity: 0; transition: opacity .18s; }

.option:active { transform: scale(.99); }
.option.is-chosen {
  background: linear-gradient(135deg, var(--bc-lavender-pale), var(--bc-lavender-light));
  border-color: var(--bc-lavender);
  box-shadow: var(--bc-shadow-lavender);
}
.option.is-chosen .option-check {
  background: var(--bc-lavender);
  border-color: var(--bc-lavender);
  transform: scale(1.06);
}
.option.is-chosen .option-check svg { opacity: 1; }
.option.is-dimmed { opacity: .4; }

/* ------------------------------------------------------------------- КНОПКИ */
.dock-cta, .feed-cta {
  display: flex;
  align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 15px 26px;
  font-family: var(--bc-font-body);
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.cta-arrow { display: inline-block; }

.row-cta { margin: 14px 0 4px; }
.feed-cta { max-width: 100%; }

.dock-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  margin: 4px auto 0;
  border: 1px solid rgba(193,171,229,.5);
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  color: var(--bc-lavender);
  box-shadow: var(--bc-shadow-md);
  cursor: pointer;
  animation: nudge 1.8s ease-in-out infinite;
}
.dock-arrow svg { width: 22px; height: 22px; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

.feed-signature {
  margin: 18px 0 4px;
  text-align: center;
  font-size: 12px;
  color: var(--bc-dark-mid);
}

/* ------------------------------------------------------------- АДАПТИВНОСТЬ */
@media (min-width: 620px) {
  body { font-size: 15.5px; }
  .bubble { font-size: 15px; max-width: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  .row, .option { animation: none; }
  .bubble-typing span, .dock-arrow, .bc-cta-pulse { animation: none; }
  .bg-photo { transition: none; }

  /* главная: градиент статичный, лента без набора по очереди, переход мгновенный */
  .blob, .card-dots span, .chatbg-feed .row { animation: none; }
  .landing-bg, .landing-chatbg, .landing-veil,
  .landing-card, .landing-title, .landing-cta, .landing-inner, .chat-head { transition: none; }
}
