/* ============================================================
   MONOLIZA
   Палитра взята из аватарки: синяя Мона Лиза на чёрном,
   линии-гравюра, единственное светлое пятно — мрамор лица.
   ============================================================ */

:root {
  --night:  #08080D;
  --slab:   #101018;
  --line:   rgba(237, 231, 220, .09);
  --line-2: rgba(237, 231, 220, .16);
  --cobalt: #2B3AE8;
  --moon:   #98A3FF;
  --marble: #EDE7DC;
  --stone:  #7E8296;
  --dim:    #55596C;

  --display: 'Prata', 'Times New Roman', serif;
  --text: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gut: clamp(20px, 5vw, 56px);
  --wide: 940px;
  --mid: 660px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* атрибут hidden должен побеждать любой заданный display
   (иначе .thinking с display:grid остаётся видимым) */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--marble);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cobalt); color: #fff; }

:focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------- фон и фактура */

.glow {
  position: fixed;
  inset: 0 0 auto 0;
  height: 120vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(58% 42% at 50% -6%, rgba(43, 58, 232, .42), transparent 68%),
    radial-gradient(40% 30% at 12% 4%, rgba(152, 163, 255, .12), transparent 70%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------------- шапка */

.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px var(--gut) 0;
  max-width: 1240px;
  margin: 0 auto;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .34em;
  color: var(--marble);
  text-decoration: none;
  transition: color .4s var(--ease);
}
.mark:hover { color: #fff; }

.mark__glyph {
  width: 8px;
  height: 16px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--marble), var(--cobalt));
  box-shadow: 0 0 18px rgba(43, 58, 232, .55);
}

.quiet {
  font-size: 14px;
  color: var(--stone);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.quiet:hover { color: var(--marble); border-bottom-color: var(--line-2); }

/* --------------------------------------------------------------- вопрос дня */

/* Лучи шире экрана и вылетают за края. Режем только по горизонтали: clip
   (в отличие от hidden) не превращает вертикаль в auto, поэтому лучи
   по-прежнему свободно уходят вверх и вниз. */
main {
  position: relative;
  z-index: 2;
  overflow-x: clip;
}

.day {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(72px, 13vh, 150px) var(--gut) clamp(28px, 5vh, 54px);
  text-align: center;
}

.rays {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1180px, 150vw);
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}

.rays svg { width: 100%; height: 100%; display: block; overflow: visible; }

.ray {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1;
  stroke-linecap: round;
  /* прозрачность каждой линии задаётся отдельно через stroke-opacity */
}

.day__n {
  margin: 0 0 clamp(14px, 2.4vh, 24px);
  font-size: 13.5px;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

/* подчёркивание, а не border: рамка увеличивала строку на 2px и блок вопроса
   чуть сдвигался при появлении ссылки */
.day__back {
  padding: 0;
  background: none;
  border: 0;
  color: var(--moon);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgba(152, 163, 255, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.day__back:hover { color: #fff; text-decoration-color: var(--moon); }

.day__voices {
  margin-left: 12px;
  color: var(--dim);
}

/* номер вопроса «щёлкает» при перелистывании */
.day__n.num-in { animation: numIn .42s var(--ease) both; }

@keyframes numIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.day__q {
  margin: 0 auto;
  max-width: 17ch;
  /* высота блока задаётся из JS по самому длинному вопросу банка:
     иначе при перелистывании страница прыгает вверх-вниз */
  min-height: var(--q-h, 0px);
  display: grid;
  align-content: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(31px, 6.4vw, 64px);
  line-height: 1.14;
  letter-spacing: -.012em;
  text-wrap: balance;
}

/* смена вопроса: старый уходит вверх и растворяется, новый поднимается */
.day__q.q-out { animation: qOut .26s var(--ease) forwards; }

@keyframes qOut {
  to { opacity: 0; transform: translateY(-16px) scale(.99); filter: blur(7px); }
}

.day__q.q-in { animation: qIn .66s var(--ease) both; }

@keyframes qIn {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* --------------------------------------------- лента дней (навигация) */

.rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(22px, 3.6vh, 36px);
}

.rail__step {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #9aa0b4;
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.rail__step svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail__step:hover { color: var(--marble); background: rgba(237, 231, 220, .06); }
.rail__step:active { transform: scale(.9); }
.rail__step--far { margin-left: 8px; }

.rail__track {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* каждый день — тонкая риска; попасть в неё легко, потому что кнопка шире линии */
.tick {
  position: relative;
  width: 13px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 11px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: rgba(43, 58, 232, .34);
  transition: height .28s var(--ease), background .28s var(--ease), box-shadow .28s var(--ease);
}

.tick--today::before { background: rgba(237, 231, 220, .5); }
.tick--current::before {
  height: 24px;
  background: var(--cobalt);
  box-shadow: 0 0 14px rgba(43, 58, 232, .9);
}
.tick:hover::before {
  height: 22px;
  background: var(--moon);
  box-shadow: 0 0 12px rgba(152, 163, 255, .55);
}

/* превью держим одной строкой и фиксированной высоты, чтобы наведение
   не сдвигало макет */
.rail__preview {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 13.5px;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .3s var(--ease), opacity .35s var(--ease);
  opacity: 0;
}
.rail__preview.is-on { opacity: 1; }
.rail__preview b { color: var(--moon); font-weight: 500; }

/* ------------------------------------------- отдача на нажатие в ленте */

/* волна света расходится от той риски, которую нажали */
.tick.is-waving::before {
  animation: tickWave .66s var(--ease) both;
  animation-delay: var(--w, 0ms);
}

@keyframes tickWave {
  0%   { height: 11px; background: rgba(43, 58, 232, .34); box-shadow: none; }
  38%  { height: 26px; background: var(--moon); box-shadow: 0 0 16px rgba(152, 163, 255, .85); }
  100% { height: 11px; background: rgba(43, 58, 232, .34); box-shadow: none; }
}

/* и сонарное кольцо ровно на нажатой */
.tick.is-pressed::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid var(--moon);
  transform: translate(-50%, -50%) scale(.35);
  animation: tickPing .6s var(--ease) forwards;
  pointer-events: none;
}

@keyframes tickPing {
  0%   { opacity: .95; }
  100% { transform: translate(-50%, -50%) scale(4.6); opacity: 0; }
}

/* стрелки подталкиваются в сторону движения, «случайный» проворачивается */
.rail__step.is-hit svg { animation: stepNudge .38s var(--ease); }

@keyframes stepNudge {
  45% { transform: translateX(var(--nudge, 3px)); }
}

.rail__step.is-spin svg { animation: stepSpin .55s var(--ease); }

@keyframes stepSpin {
  to { transform: rotate(180deg); }
}


/* ---------------------------------------------------------------- твой ответ */

.write {
  max-width: var(--mid);
  margin: 0 auto;
  padding: 0 var(--gut) clamp(46px, 8vh, 86px);
}

.write__field {
  display: block;
  width: 100%;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(237, 231, 220, .022), rgba(237, 231, 220, .006));
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--marble);
  font-family: var(--text);
  font-size: 17.5px;
  line-height: 1.65;
  resize: none;
  overflow: hidden;
  transition: border-color .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
}
.write__field::placeholder { color: var(--dim); }
.write__field:hover { border-color: var(--line-2); }
.write__field:focus {
  outline: none;
  border-color: rgba(43, 58, 232, .65);
  background: linear-gradient(180deg, rgba(237, 231, 220, .03), rgba(43, 58, 232, .05));
  box-shadow: 0 0 0 5px rgba(43, 58, 232, .08);
}
.write__field:focus-visible { outline: none; }

/* ------------------------------------------------------- ожидание ответа */
/* Пока gil's думает, «дышит» вся страница: по лучам идут волны света,
   а в центре расходятся круги по воде и сменяются живые строки. */

.thinking {
  position: relative;
  max-width: var(--mid);
  margin: 0 auto clamp(46px, 8vh, 86px);
  padding: 0 var(--gut);
  min-height: 260px;
  display: grid;
  place-items: center;
}

.thinking__rings {
  position: absolute;
  /* слой колец центрируем transform'ом: SVG больше секции, и обычное
     выравнивание по центру при переполнении прижимает его к верху */
  left: 50%;
  top: 50%;
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.thinking__rings svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(43, 58, 232, .55));
}

.ring {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1.1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 5.2s cubic-bezier(.22, .55, .35, 1) infinite;
  animation-delay: var(--d, 0s);
}

@keyframes ripple {
  0%   { transform: scale(.09); opacity: 0; }
  16%  { opacity: .85; }
  100% { transform: scale(1); opacity: 0; }
}

.thinking__line {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  color: var(--marble);
  animation: whisper .6s var(--ease) both;
}

@keyframes whisper {
  from { opacity: 0; transform: translateY(7px); filter: blur(4px); }
  to   { opacity: .92; transform: none; filter: blur(0); }
}

/* лучи по всему герою вспыхивают волной в такт кругам */
body.is-thinking .rays svg { animation: rayBreath 5.2s ease-in-out infinite; }

@keyframes rayBreath {
  0%, 100% { filter: brightness(1); }
  46%      { filter: brightness(2.3); }
}

body.is-thinking .day__q,
body.is-thinking .day__n {
  opacity: .45;
  transition: opacity 1.2s var(--ease);
}

.write__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  min-height: 44px;
}

.write__hint {
  font-size: 13.5px;
  color: var(--stone);
  transition: color .3s var(--ease);
}
.write__hint[data-warn="1"] { color: #E8A0A0; }

.btn {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 12px 30px;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  isolation: isolate;
  transition: transform .35s var(--ease), background .35s var(--ease), opacity .3s var(--ease);
}
.btn:hover { background: #3A49FF; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }

.btn__ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--moon);
  opacity: 0;
  z-index: -1;
}
.btn.is-sealing .btn__ring { animation: seal .85s var(--ease) forwards; }
.btn.is-sealing { background: var(--cobalt); }

@keyframes seal {
  0%   { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.1); }
}

/* «запечатывание» ответа */
.write.is-sealing .write__field {
  border-bottom-color: transparent;
  animation: fold .7s var(--ease) forwards;
}
@keyframes fold {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(.985); filter: blur(3px); }
}

/* ------------------------------------------------------------------ разбор */

.reveal {
  max-width: var(--mid);
  margin: 0 auto;
  padding: 0 var(--gut) 40px;
}

.card {
  padding: clamp(26px, 5vw, 38px) 0;
  border-top: 1px solid var(--line);
}
.card:first-child { border-top: 0; padding-top: 0; }

.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card__title {
  margin: 0;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--stone);
}

.card__note {
  font-size: 13px;
  color: var(--dim);
}

.ico {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* подпись gil’s — с нарисованным от руки подчёркиванием */
.scribble {
  position: relative;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--marble);
  padding-bottom: 9px;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0;
  height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'><path d='M1 4.2 C 22 1.1, 46 5.3, 66 2.6 S 92 3.4, 99 2.2' fill='none' stroke='%232B3AE8' stroke-width='1.4' stroke-linecap='round'/></svg>") no-repeat;
  background-size: 100% 100%;
  transform-origin: left center;
  animation: draw .9s var(--ease) both;
}

@keyframes draw {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.prose p {
  margin: 0 0 1.05em;
  color: var(--marble);
  max-width: 62ch;
}
.prose p:last-child { margin-bottom: 0; }

.points {
  counter-reset: p;
  margin: 0;
  padding: 0;
  list-style: none;
}
.points li {
  position: relative;
  counter-increment: p;
  padding: 0 0 0 30px;
  margin-bottom: 1.05em;
  color: #C9C4BA;
  max-width: 62ch;
}
.points li:last-child { margin-bottom: 0; }
.points li::before {
  content: counter(p);
  position: absolute;
  left: 0;
  top: .18em;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--cobalt);
  border: 1px solid rgba(43, 58, 232, .5);
  border-radius: 999px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
}

.voices { display: grid; gap: 14px; }

.voice {
  padding: 15px 18px;
  background: var(--slab);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15.5px;
  color: #B8B3AA;
  line-height: 1.6;
}
.voice__meta {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--dim);
}

.voices__empty {
  font-size: 15px;
  color: var(--dim);
}

/* ------------------------------------------------- «ещё один вопрос?» */

.next {
  max-width: var(--mid);
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) var(--gut) clamp(40px, 7vh, 72px);
}

.next__lead {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(21px, 3vw, 27px);
  color: var(--marble);
}

/* Следующий вопрос показываем заранее: не «кнопка вслепую», а сама карточка.
   Видно, что откроется, — и её можно просто нажать. */
.peek {
  position: relative;
  display: block;
  width: 100%;
  padding: 20px 22px 22px;
  text-align: left;
  background: linear-gradient(160deg, rgba(43, 58, 232, .10), rgba(237, 231, 220, .015));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease), background .4s var(--ease);
}

/* кобальтовая кромка слева — единственный яркий акцент карточки */
.peek::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--cobalt);
  box-shadow: 0 0 14px rgba(43, 58, 232, .8);
  transition: top .4s var(--ease), bottom .4s var(--ease);
}

.peek:hover {
  transform: translateY(-3px);
  border-color: rgba(152, 163, 255, .45);
  background: linear-gradient(160deg, rgba(43, 58, 232, .16), rgba(237, 231, 220, .02));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.peek:hover::before { top: 0; bottom: 0; }

.peek__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.peek__n {
  font-size: 13px;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

.peek__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--moon);
  opacity: .75;
  transition: opacity .3s var(--ease);
}
.peek__go svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s var(--ease);
}
.peek:hover .peek__go { opacity: 1; }
.peek:hover .peek__go svg { transform: translateX(4px); }

.peek__q {
  display: block;
  font-family: var(--display);
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.22;
  color: var(--marble);
  max-width: 26ch;
}

.next__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
}

.next__ghost {
  padding: 0 0 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--stone);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.next__ghost:hover { color: var(--marble); border-bottom-color: var(--marble); }

.next__today {
  padding: 0 0 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(152, 163, 255, .4);
  color: var(--moon);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.next__today:hover { color: #fff; border-bottom-color: var(--moon); }

/* ------------------------------------------------------------------ архив */

.archive {
  max-width: var(--mid);
  margin: 0 auto;
  padding: clamp(34px, 7vh, 74px) var(--gut) 40px;
  border-top: 1px solid var(--line);
}

.archive__title {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--stone);
}

.archive__list { display: grid; gap: 2px; }

.archive__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: #C3BEB4;
  font-size: 15.5px;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.archive__item:hover { color: var(--marble); padding-left: 6px; }
.archive__item:last-child { border-bottom: 0; }

.archive__date {
  flex: none;
  width: 82px;
  font-size: 13px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

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

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 40px var(--gut) 54px;
  font-size: 13px;
  color: var(--dim);
}

.foot__dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--cobalt);
  box-shadow: 0 0 12px rgba(43, 58, 232, .8);
}

/* -------------------------------------------------------------------- тосты */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  width: min(460px, calc(100vw - 36px));
  transform: translateX(-50%);
  padding: 17px 20px;
  background: rgba(16, 16, 24, .93);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .6);
  animation: rise .5s var(--ease) both;
}
.toast__title {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  margin-bottom: 5px;
}
.toast__text { display: block; font-size: 14px; color: var(--stone); line-height: 1.5; }

@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ------------------------------------------------------------ появление */

.fade {
  animation: fade .8s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ мобилка */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .day { padding-top: 60px; }
  .day__q { max-width: 20ch; }
  .rail { gap: 4px; margin-top: 18px; }
  .rail__step { width: 30px; height: 30px; }
  .rail__step--far { margin-left: 2px; }
  .rail__track { gap: 2px; }
  .tick { width: 14px; }
  .rail__preview { font-size: 12.5px; margin-top: 8px; }
  .peek { padding: 18px 18px 20px; }
  .peek__q { max-width: none; }
  .write { padding-bottom: 34px; }
  .write__field { padding: 16px 18px; font-size: 16.5px; }
  .write__foot { flex-direction: column; align-items: stretch; margin-top: 16px; }
  .write__foot .btn { order: -1; }
  .write__hint { text-align: center; }
  .archive { padding-top: 30px; }
  .archive__date { width: 62px; font-size: 12.5px; }
  .archive__item { gap: 12px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .scribble::after { animation: none; transform: none; }
  /* круги и волны — чистое движение, при отказе от анимации они не нужны */
  .thinking__rings { display: none; }
  body.is-thinking .rays svg { animation: none; filter: brightness(1.5); }
  body.is-thinking .day__q,
  body.is-thinking .day__n { opacity: 1; }
}
