/* Публичный сайт SAYTRUE. Одна спокойная светлая страница: тёплый почти белый фон, мягкий чёрный текст,
   белые карточки. Тёмный только первый экран — переход презентации (#2a0d06 → #8c2411 → #f0602b),
   и он плавно, без границы, уходит в светлую страницу. Чистого чёрного и чистого белого большими
   плоскостями нет. Внешних запросов нет: шрифт Onest лежит рядом (fonts/). */

@font-face {
  font-family: Onest;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Onest-Regular.woff2') format('woff2');
}
@font-face {
  font-family: Onest;
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Onest-Medium.woff2') format('woff2');
}
@font-face {
  font-family: Onest;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Onest-SemiBold.woff2') format('woff2');
}

:root {
  --page: #f7f4f0;
  --card: #ffffff;
  --ink: #1d1d1f;
  --mute: #6e6e73; /* контраст с фоном страницы — 4,6 */
  --tint: #efeae4; /* тихие плашки на карточках и поля формы */
  --dawn: #f5f1ec; /* почти белый текст на тёмном первом экране */
  --acc: #e2571f;
  --shadow: 0 30px 70px rgb(120 62 22 / 0.13);
  --gut: 20px;
  --font: Onest, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
p,
ul,
ol,
address {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
address {
  font-style: normal;
}
a {
  color: inherit;
}
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 8px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}
.skip:focus {
  left: 12px;
}

/* ---------- Кнопка: одна форма на всю страницу ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--dawn);
  font: 600 1.0625rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.btn:hover {
  background: #343436;
  box-shadow: 0 10px 24px rgb(60 30 12 / 0.22);
  transform: translateY(-1px) scale(1.015);
}
.btn:active {
  box-shadow: none;
  transform: scale(0.97);
}
.btn--light {
  background: var(--dawn);
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
}
.btn--s {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Шапка: прозрачная над первым экраном, дальше — светлая закреплённая полоса с кнопкой ---------- */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 var(--gut);
  color: var(--dawn);
}
.top__logo {
  margin-inline-end: auto;
}
.top__logo svg {
  width: 126px;
  height: 28px;
}
.top__login {
  padding: 8px 2px;
  font-size: 1rem;
  text-decoration: none;
}
.top__login:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.top__cta {
  display: none;
}
.top--stuck {
  position: fixed;
  background: rgb(247 244 240 / 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  color: var(--ink);
}

/* Телефон: кнопка заявки тонкой полосой внизу экрана, пока не видны ни кнопка первого экрана, ни форма. */
.bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgb(247 244 240 / 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}
.bar .btn {
  width: 100%;
  min-height: 48px;
}

/* ---------- Экран ---------- */
.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 72px var(--gut);
  text-align: center;
}
.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1040px;
}
h1,
h2 {
  font-size: clamp(2rem, 1.05rem + 4.1vw, 4.25rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.lead {
  max-width: 640px;
  margin-top: 18px;
  color: var(--mute);
  font-size: clamp(1.1875rem, 1.12rem + 0.2vw, 1.25rem);
  text-wrap: balance;
}
.lead--after {
  margin-top: 0;
  color: var(--ink);
}
.quiet {
  max-width: 640px;
  color: var(--mute);
  font-size: 1rem;
  text-wrap: balance;
}
.visual {
  width: 100%;
  flex: none;
}

/* ---------- 1. Первый экран: тёмный верх плавно становится светлой страницей ---------- */
.hero {
  padding-top: 112px;
  padding-bottom: 48px;
  background: linear-gradient(
    180deg,
    #0d0504 0%,
    #1b0906 20%,
    #561a0c 40%,
    #a93f1b 57%,
    #e2703f 71%,
    #f3b08a 83%,
    #f7dfd0 92%,
    var(--page) 100%
  );
  color: var(--dawn);
}
.hero .btn {
  margin-top: 30px;
}
.promise {
  max-width: 520px;
  margin-top: 16px;
  color: rgb(245 241 236 / 0.82);
  font-size: 1rem;
  text-wrap: balance;
}
.morning {
  max-width: 820px;
  padding: 22px 16px 16px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 40px 90px rgb(70 22 6 / 0.34);
  color: var(--ink);
  text-align: start;
}
.morning__day {
  padding-inline: 6px;
  color: var(--mute);
  font-size: 0.9375rem;
}
.morning__title {
  margin: 2px 0 14px;
  padding-inline: 6px;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.deal {
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--page);
}
.deal__t {
  line-height: 1.3;
}
.deal__t b {
  font-weight: 600;
}
.deal__q {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
}
.play {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--dawn);
}
.play svg {
  width: 11px;
  height: 11px;
}
.deal__time {
  margin-inline-start: auto;
  padding-inline-start: 8px;
  color: var(--mute);
  font-size: 0.9375rem;
  font-weight: 400;
}
.deal__do {
  margin-top: 10px;
  padding-inline: 2px;
  font-size: 1rem;
}
.deal__do span {
  color: var(--mute);
}

/* ---------- 2. Разговор: три реплики ---------- */
.talk {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.say {
  display: flex;
}
.say span {
  max-width: 86%;
  padding: 0.62em 1em;
  border-radius: 1.3em;
  border-end-start-radius: 0.4em;
  background: #e9e3db;
  font-size: clamp(1.1875rem, 0.9rem + 1.4vw, 1.75rem);
  line-height: 1.25;
  text-align: start;
}
.say--me {
  justify-content: flex-end;
}
.say--me span {
  border-end-start-radius: 1.3em;
  border-end-end-radius: 0.4em;
  background: var(--ink);
  color: var(--dawn);
}

/* ---------- 3. День за столом одной полосой ---------- */
.day {
  max-width: 1080px;
  overflow: hidden;
  padding: 26px 22px 18px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}
/* На телефоне полоса не сжимается до нечитаемой: видно утро, остальной день уходит за край карточки. */
.day svg {
  width: 760px;
  max-width: none;
  height: auto;
  font-family: var(--font);
}
.w-off {
  fill: #ddd5cb;
}
.w-on {
  fill: var(--acc);
}
.w-time {
  fill: var(--ink);
  font-size: 19px;
  font-weight: 600;
}
.w-kind {
  fill: var(--mute);
  font-size: 16px;
}
.w-edge {
  fill: var(--mute);
  font-size: 14px;
}
.w-edge--end {
  text-anchor: end;
}

/* ---------- 4. Находка и двое проверивших ---------- */
.checked {
  max-width: 700px;
  padding: 28px 24px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: start;
}
.checked__kind {
  color: var(--mute);
  font-weight: 500;
}
.checked__q {
  margin-top: 8px;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.125rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.checked__by {
  display: flex;
  align-items: center;
  margin-top: 26px;
}
.who {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-inline-end: 14px;
  border-radius: 50%;
  background: var(--tint);
  font-size: 0.8125rem;
  font-weight: 600;
}
.who svg {
  position: absolute;
  inset: auto -6px -3px auto;
  padding: 3px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--ink);
  color: var(--dawn);
  box-sizing: content-box;
  width: 10px;
  height: 10px;
}
.checked__ok {
  margin-inline-start: 4px;
  font-weight: 500;
}

/* ---------- 5. Что будет после заявки: шесть дней одной линией ---------- */
.tl {
  position: relative;
  max-width: 1120px;
}
.tl__track {
  display: none;
}
.tl__days {
  display: grid;
  gap: 48px;
}
.tl__pic {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 84px;
}
.tl__on {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.tl__mark {
  width: 26px;
  height: 26px;
}
.tl__wave {
  width: 128px;
  height: 52px;
}
.tl__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 150px));
  gap: 10px;
}
.mchip {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 14px 34px rgb(120 62 22 / 0.1);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
  text-align: start;
}
.mchip small {
  display: block;
  margin-bottom: 2px;
  color: var(--mute);
  font-size: 0.8125rem;
  font-weight: 400;
}
.result {
  width: 100%;
  max-width: 290px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: start;
}
.result__t {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.result ul {
  margin-top: 10px;
  color: var(--mute);
}
.result li + li {
  margin-top: 2px;
}
.tl__when {
  margin-top: 22px;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.tl__what {
  max-width: 300px;
  margin: 8px auto 0;
  color: var(--mute);
  text-wrap: balance;
}

/* ---------- 6. Заявка: тёплая панель с формой ---------- */
.screen--last {
  padding-bottom: 40px;
}
.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1180px;
  padding: 44px 18px 32px;
  border-radius: 32px;
  background: linear-gradient(165deg, #fbe3d2 0%, #f9ebdf 48%, #f5ede4 100%);
}
.panel__grid {
  display: grid;
  gap: 28px;
  width: 100%;
  text-align: start;
}
.offer {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.panel .quiet {
  margin-top: 8px;
}
.facts {
  display: grid;
  gap: 14px;
  align-content: start;
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 500;
}
.facts li {
  display: flex;
  gap: 12px;
}
.tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--dawn);
}
.terms {
  display: grid;
  gap: 4px;
  color: var(--mute);
  font-size: 1rem;
}
.lead__next {
  margin-top: 12px;
  color: var(--mute);
  font-size: 0.9375rem;
  text-align: center;
}
.lead__alt {
  margin-top: 16px;
  color: var(--mute);
  text-align: center;
}
.lead__alt a {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  text-underline-offset: 4px;
}
.panel__form {
  padding: 22px 18px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 24px 60px rgb(120 62 22 / 0.1);
}
.soon {
  color: var(--mute);
  font-size: 0.9375rem;
}
.draft-note {
  margin-top: 18px;
  color: var(--mute);
}
.draft-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 2px 12px;
  background: #ffd84d;
  color: var(--ink);
  font-size: 0.6875rem;
  text-align: center;
  pointer-events: none;
}

/* ---------- Форма (одна и та же в окне и на странице) ---------- */
.lead__sub {
  font-weight: 500;
}
.lead__sub span {
  display: block;
}
.field {
  margin-top: 16px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--mute);
  font-size: 0.9375rem;
}
.field input[type='text'],
.field input[type='tel'] {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--tint);
  color: var(--ink);
  font: 400 1.1875rem/1.4 var(--font);
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.field input:focus {
  outline: 0;
  border-color: var(--ink);
  background: var(--card);
}
.field [aria-invalid='true'] {
  border-color: #b3261e;
}
.field__err {
  margin-top: 6px;
  color: #b3261e;
  font-size: 0.9375rem;
}
.field .check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead__alert {
  margin-top: 16px;
  color: #b3261e;
}
.lead__reach {
  margin-top: 6px;
  font-weight: 600;
}
.lead__send {
  width: 100%;
  margin-top: 20px;
}
.lead__done:focus {
  outline: 0;
}
.lead__thanks {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead__done .btn {
  width: 100%;
  margin-top: 22px;
}

/* ---------- Окно заявки: карточка по центру, на телефоне — лист снизу ---------- */
.lead[open] {
  width: 100%;
  max-width: 100%;
  max-height: 94vh;
  max-height: 94dvh;
  margin: auto 0 0;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--card);
  color: var(--ink);
  text-align: start;
}
.lead:focus-visible {
  outline: 0;
}
.lead::backdrop {
  background: rgb(52 30 18 / 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lead__close {
  position: absolute;
  inset: 14px 14px auto auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink);
  cursor: pointer;
}
.lead__close svg {
  width: 14px;
  height: 14px;
}
.lead__title {
  margin-bottom: 6px;
  padding-inline-end: 44px;
  font-size: 1.75rem;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Подвал ---------- */
.foot {
  padding: 24px var(--gut) 96px;
  color: var(--mute);
  font-size: 0.875rem;
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  max-width: 1180px;
  margin-inline: auto;
}
.foot__logo {
  width: 116px;
  height: 26px;
  color: var(--ink);
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.foot__links a {
  text-decoration: none;
}
.foot__links a:hover {
  color: var(--ink);
}
.foot__req,
.foot__fine {
  max-width: 1180px;
  margin: 18px auto 0;
  font-size: 0.8125rem;
}

/* ---------- Страницы документов (/privacy/, /consent/): спокойная колонка для длинного текста ---------- */
.top--doc {
  position: static;
  max-width: 1180px;
  margin-inline: auto;
  color: var(--ink);
}
.doc {
  max-width: calc(720px + 2 * var(--gut));
  margin-inline: auto;
  padding: 28px var(--gut) 72px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.doc h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.doc h2 {
  margin-top: 44px;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.doc p,
.doc ul {
  margin-top: 14px;
}
.doc ul {
  padding-left: 1.25em;
  list-style: disc;
}
.doc li + li {
  margin-top: 8px;
}
.doc a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.doc strong {
  font-weight: 600;
}
.doc .doc__ver {
  margin-top: 12px;
  color: var(--mute);
  font-size: 0.9375rem;
}
.doc__op {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  font-size: 1rem;
}
.doc .doc__op p {
  margin-top: 0;
}
.doc .doc__op p + p {
  margin-top: 6px;
}
.doc__op span {
  color: var(--mute);
}
.doc .doc__lead {
  margin-top: 28px;
  font-size: 1.125rem;
}
/* Абзац о передаче за границу: отделён от остального текста, но без тревожных цветов. */
.doc .doc__note {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--tint);
}
.docpage .foot {
  padding-bottom: 40px;
}
/* Отметка согласия в форме: ссылки видны как ссылки, строка не шире формы. */
.check a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.check span {
  font-size: 0.9375rem;
}

/* ---------- Шире телефона ---------- */
@media (min-width: 600px) {
  :root {
    --gut: 40px;
  }
  .morning {
    padding: 34px 28px 28px;
    border-radius: 36px;
  }
  .morning__day {
    font-size: 1.0625rem;
  }
  .morning__title {
    margin-bottom: 18px;
    font-size: 2rem;
  }
  .deal {
    margin-top: 10px;
    padding: 20px 22px;
    border-radius: 22px;
  }
  .deal__t {
    font-size: 1.1875rem;
  }
  .deal__q {
    margin-top: 14px;
    padding: 13px 16px;
    font-size: 1.125rem;
  }
  .deal__do {
    font-size: 1.0625rem;
  }
  .play {
    width: 32px;
    height: 32px;
  }
  .talk {
    gap: 16px;
  }
  .checked {
    padding: 40px 44px;
    border-radius: 36px;
  }
  .panel {
    padding: 64px 40px 40px;
    border-radius: 44px;
  }
  .panel__form {
    padding: 32px;
    border-radius: 28px;
  }
  .lead[open] {
    width: 500px;
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 38px 40px 36px;
    border-radius: 32px;
  }
}
@media (min-width: 760px) {
  .bar {
    display: none;
  }
  .top--stuck .top__cta {
    display: inline-flex;
  }
  .foot {
    padding-bottom: 44px;
  }
}
@media (min-width: 900px) {
  .screen {
    gap: 56px;
    padding-block: 110px;
  }
  .hero {
    padding-top: 150px;
    padding-bottom: 72px;
  }
  .screen--last {
    padding-bottom: 56px;
  }
  h1 span,
  h2 span,
  .offer span {
    display: block;
  }
  .day {
    padding: 44px 48px 30px;
    border-radius: 36px;
  }
  .day svg {
    width: 100%;
  }
  .panel {
    gap: 48px;
  }
  .panel__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: start;
  }
  .facts {
    gap: 18px;
    padding-top: 28px;
    font-size: 1.375rem;
  }
  /* Линия дней: картинки над линией, подписи под ней. */
  .tl__days {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1.25fr);
    gap: 28px;
  }
  .tl__pic {
    height: 170px;
    min-height: 0;
  }
  .tl__chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    width: 100%;
  }
  .tl__track {
    position: absolute;
    inset: 196px 0 auto;
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: #e6dfd6;
  }
  .tl__fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--acc);
    transform: scaleX(var(--p, 1));
    transform-origin: left;
  }
  .tl__when {
    margin-top: 56px;
  }
}

/* ---------- Живые детали: в покое их нет ---------- */
.play {
  position: relative;
}
.eq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
}
.eq i {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--dawn);
}
.deal__q {
  position: relative;
  overflow: hidden;
}
.deal__bar {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--acc);
  opacity: 0;
  transform-origin: left;
}
.deal__act {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  position: relative;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--card);
  font-size: 1rem;
  font-weight: 500;
}
.chip--ink {
  background: var(--ink);
  color: var(--dawn);
}
.chip__ok {
  position: absolute;
  inset: -6px -6px auto auto;
  width: 22px;
  height: 22px;
  padding: 4px;
  border: 2px solid var(--page);
  border-radius: 50%;
  background: var(--acc);
  color: #fff;
  opacity: 0;
}
.say {
  position: relative;
}
.dots {
  position: absolute;
  inset: 50% auto auto 0;
  display: flex;
  gap: 5px;
  margin-top: -18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #e9e3db;
  opacity: 0;
}
.say--me .dots {
  inset: 50% 0 auto auto;
}
.dots b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a39a90;
}
.w-cover {
  fill: var(--card);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: right;
}
.w-now {
  fill: var(--ink);
  opacity: 0;
}

/* ---------- Движение: только если человек его не отключил ----------
   Скрипт ставит на <html> класс .anim (и только если движение разрешено), а секции (.stage) — класс .go,
   когда она входит в экран. Пока .go нет, детали секции (.a) ждут невидимыми; без скрипта класса .anim нет
   и всё видно сразу. Задержка каждой детали — в переменной --d: все сцены читаются в одном месте.
   Двигаются только transform и opacity. */
@media (prefers-reduced-motion: no-preference) {
  .anim .stage:not(.go) .a {
    opacity: 0;
  }
  .anim .stage:not(.go) .w-cover {
    opacity: 1;
  }
  .anim .stage.go .a {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--d, 0s);
  }
  .anim .stage.go .who .a,
  .anim .stage.go .mchip {
    animation-name: pop;
    animation-duration: 0.45s;
  }

  /* 1. Первый экран: заголовок, кнопка, карточка, три дела по очереди. */
  .hero .btn {
    --d: 0.15s;
  }
  .promise {
    --d: 0.25s;
  }
  .morning {
    --d: 0.4s;
  }
  .morning .deal:nth-of-type(1) {
    --d: 0.8s;
  }
  .morning .deal:nth-of-type(2) {
    --d: 1.05s;
  }
  .morning .deal:nth-of-type(3) {
    --d: 1.3s;
  }
  /* Петля первого дела, 12 секунд: пауза → цитата «играет» → нажато «Сделано» → дело гаснет → пауза. */
  .anim .go .eq {
    animation: eq-on 12s var(--d, 0s) infinite;
  }
  .anim .go .eq i {
    animation: eq-bar 0.45s var(--d, 0s) ease-in-out infinite alternate;
  }
  .anim .go .eq i:nth-child(2) {
    animation-duration: 0.33s;
  }
  .anim .go .eq i:nth-child(3) {
    animation-duration: 0.52s;
  }
  .anim .go .deal__bar {
    animation: quote-plays 12s var(--d, 0s) infinite;
  }
  .anim .go .chip--ink {
    animation: press 12s var(--d, 0s) infinite;
  }
  .anim .go .chip__ok {
    animation: done-mark 12s var(--d, 0s) infinite;
  }
  .anim .go .deal__in {
    animation: done-dim 12s var(--d, 0s) infinite;
  }

  /* 2. Разговор: «печатает…», реплика — три раза, потом вывод. */
  .say:nth-child(1) .dots {
    --d: 0.1s;
  }
  .say:nth-child(1) .a {
    --d: 0.9s;
  }
  .say:nth-child(2) .dots {
    --d: 1.7s;
  }
  .say:nth-child(2) .a {
    --d: 2.5s;
  }
  .say:nth-child(3) .dots {
    --d: 3.3s;
  }
  .say:nth-child(3) .a {
    --d: 4.1s;
  }
  .lead--after {
    --d: 5.1s;
  }
  .anim .stage.go .dots {
    animation: typing 0.8s var(--d, 0s) both;
  }
  .anim .stage.go .say .a {
    animation-duration: 0.45s;
  }

  /* 3. Полоса дня: запись открывается слева направо, разговоры загораются, когда до них доходит «сейчас». */
  .w-cover,
  .w-now {
    --d: 0.3s;
  }
  .anim .stage.go .w-cover {
    animation: sweep 1.8s var(--d, 0s) linear both;
  }
  .anim .stage.go .w-now {
    animation: now 1.8s var(--d, 0s) linear both;
  }
  .w-seg:nth-of-type(1) {
    --d: 0.6s;
  }
  .w-seg:nth-of-type(2) {
    --d: 0.9s;
  }
  .w-seg:nth-of-type(3) {
    --d: 1.45s;
  }
  .w-seg:nth-of-type(4) {
    --d: 1.75s;
  }

  /* 4. Находка: отметки двух проверивших по очереди, затем подпись. */
  .who:nth-child(1) .a {
    --d: 0.6s;
  }
  .who:nth-child(2) .a {
    --d: 1.1s;
  }
  .checked__ok {
    --d: 1.6s;
  }

  /* 5. Линия аудита: запись включается, четыре утра по очереди, последней — встреча. */
  .tl__on {
    --d: 0.1s;
  }
  .mchip:nth-child(1) {
    --d: 0.5s;
  }
  .mchip:nth-child(2) {
    --d: 0.75s;
  }
  .mchip:nth-child(3) {
    --d: 1s;
  }
  .mchip:nth-child(4) {
    --d: 1.25s;
  }
  .result {
    --d: 1.7s;
  }

  /* 6. Заявка. */
  .facts li:nth-child(2) {
    --d: 0.12s;
  }
  .facts li:nth-child(3) {
    --d: 0.24s;
  }
  .panel__form {
    --d: 0.2s;
  }

  .lead[open] {
    animation: rise 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .lead__done:not([hidden]) {
    animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .top--stuck {
    animation: drop 0.3s ease-out;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes drop {
  from {
    opacity: 0.6;
    transform: translateY(-10px);
  }
}
@keyframes typing {
  0% {
    opacity: 0;
  }
  15%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sweep {
  from {
    opacity: 1;
    transform: scaleX(1);
  }
  to {
    opacity: 1;
    transform: scaleX(0);
  }
}
@keyframes now {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  92% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(1000px);
  }
}
@keyframes eq-on {
  0%,
  24% {
    opacity: 0;
  }
  27%,
  44% {
    opacity: 1;
  }
  47%,
  100% {
    opacity: 0;
  }
}
@keyframes eq-bar {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes quote-plays {
  0%,
  24% {
    opacity: 0;
    transform: scaleX(0);
  }
  27% {
    opacity: 1;
    transform: scaleX(0);
  }
  44% {
    opacity: 1;
    transform: scaleX(1);
  }
  47%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}
@keyframes press {
  0%,
  49% {
    transform: scale(1);
  }
  51% {
    transform: scale(0.92);
  }
  54%,
  100% {
    transform: scale(1);
  }
}
@keyframes done-mark {
  0%,
  52% {
    opacity: 0;
    transform: scale(0.4);
  }
  55%,
  84% {
    opacity: 1;
    transform: scale(1);
  }
  88%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes done-dim {
  0%,
  53% {
    opacity: 1;
  }
  58%,
  84% {
    opacity: 0.4;
  }
  90%,
  100% {
    opacity: 1;
  }
}
