/* True Romance — стили.
   Размеры замка заданы в единицах макета (1260 × 1500): --u — одна единица в пикселях экрана. */

/* ---------- Шрифты (лежат рядом с сайтом, сторонних запросов нет) */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Основа */

:root {
  --paper: #F4EFE6;
  --ink: #681F35;
  --rose: #A77B6B;
  --gold: #C5A36B;
  --dark: #292321;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --vh: 1vh;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@supports (height: 100dvh) {
  :root { --vh: 1dvh; }
}

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

html {
  height: 100%;
  /* страница не тянется и не обновляется жестом: задано и здесь, и на body — браузеры читают по-разному */
  overscroll-behavior: none;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--serif);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* матовая бумага цвета айвори: едва заметное зерно и мягкий свет в центре */
  background: var(--paper) url("assets/paper.webp") 0 0 / 384px 384px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 36%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(150% 120% at 50% 48%, rgba(167, 123, 107, 0) 52%, rgba(167, 123, 107, 0.13) 100%);
}

button {
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.noscript {
  position: fixed;
  right: 0;
  bottom: 12%;
  left: 0;
  margin: 0;
  padding: 0 24px;
  font: 500 0.85rem/1.5 var(--sans);
  color: var(--rose);
  text-align: center;
}

/* ---------- Загрузка: на медленной связи вместо пустого листа виден маленький знак */

.loadmark {
  position: fixed;
  top: calc(50% - 5.5rem);
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  color: var(--gold);
  visibility: hidden;
  opacity: 0;
}
.loadmark svg { display: block; }
/* на быстрой связи замок появляется раньше, чем знак успевает проявиться */
html[data-state="loading"] .loadmark { animation: late-reveal 0.7s ease 0.9s both; }
html[data-state="failed"] .loadmark { visibility: visible; opacity: 1; }
@keyframes late-reveal {
  from { visibility: hidden; opacity: 0; }
  to { visibility: visible; opacity: 1; }
}

/* ---------- Сбой загрузки: сообщение с кнопкой вместо пустого экрана */

.loadfail {
  position: fixed;
  top: 50%;
  right: 0;
  left: 0;
  padding: 0 28px;
  text-align: center;
  transform: translateY(-50%);
  visibility: hidden;
  opacity: 0;
}
.loadfail__text {
  max-width: 19em;
  margin: 0 auto 1.2rem;
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 500;
}
.loadfail__retry {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border: 1px solid rgba(197, 163, 107, 0.85);
  border-radius: 999px;
  font: 600 0.75rem / 1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
html[data-state="failed"] .loadfail {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease;
}
html[data-state="failed"] .scene { display: none; }
/* сценарий не запустился или загрузка затянулась: сообщение появляется само */
html[data-state="loading"] .loadfail { animation: late-reveal 0.6s ease 20s both; }
/* сценарии выключены — об этом говорит отдельная подпись, второе сообщение не нужно */
@media (scripting: none) {
  .loadfail { display: none; }
}

/* ---------- Экран замка */

.scene {
  --lock-w: min(96vw, 500px, calc((var(--vh) * 100 - 9.75rem) * 0.84));
  --u: calc(var(--lock-w) / 1260);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    calc(env(safe-area-inset-top, 0px) + 8px)
    calc(env(safe-area-inset-right, 0px) + 8px)
    calc(env(safe-area-inset-bottom, 0px) + 5 * var(--vh))
    calc(env(safe-area-inset-left, 0px) + 8px);
  opacity: 1;
  transition: opacity 0.9s ease;
}
html[data-state="loading"] .scene { opacity: 0; }

.lock {
  position: relative;
  flex: none;
  width: var(--lock-w);
  height: calc(var(--u) * 1500);
}
.lock img {
  display: block;
  position: absolute;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.lock__shackle {
  position: absolute;
  left: calc(var(--u) * 398);
  top: calc(var(--u) * 26);
  width: calc(var(--u) * 486);
  height: calc(var(--u) * 508);
  /* ось поворота — закреплённая правая нога дужки */
  transform-origin: 82.7% 60%;
  will-change: transform;
  /* из полосы кадров поворота видна одна ячейка */
  overflow: hidden;
  pointer-events: none;
}
.lock__shackle-rest {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
/* Полоса из 10 кадров поворота (art/gen.mjs, TURN): ячейка — размер дужки. До открытия не видна. */
.lock__shackle-turn {
  left: 0;
  top: 0;
  width: 1000%;
  height: 100%;
  opacity: 0;
}

.lock__case {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.lock__body {
  left: calc(var(--u) * 30);
  top: calc(var(--u) * 300);
  width: calc(var(--u) * 1220);
  height: calc(var(--u) * 1200);
}

.lock__jewel {
  left: calc(var(--u) * 560);
  top: calc(var(--u) * 410);
  width: calc(var(--u) * 140);
  height: calc(var(--u) * 140);
  will-change: transform;
}

/* Окно барабанов лежит под корпусом: рамка и её тень перекрывают края цилиндров. */
.lock__window {
  position: absolute;
  left: calc(var(--u) * 310);
  top: calc(var(--u) * 647);
  width: calc(var(--u) * 640);
  height: calc(var(--u) * 330);
  border-radius: calc(var(--u) * 18);
  overflow: hidden;
  background: var(--dark);
}

.drum {
  --row: calc(var(--u) * 118);
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  outline: none;
  touch-action: none;
  background: #d3b176 url("assets/brass.webp") 0 0 / calc(var(--u) * 300) auto;
  font-family: var(--serif);
  font-weight: 700;
  font-size: calc(var(--u) * 112);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  line-height: 1;
}
.drum--day { left: 0; width: 29.0625%; }
.drum--month { left: 31.25%; width: 29.0625%; }
.drum--year { left: 62.5%; width: 37.5%; font-size: calc(var(--u) * 106); }

/* тень и блик цилиндра: темнее к краям окна, светлее у центральной строки */
.drum::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(24, 12, 5, 0.94) 0%,
    rgba(48, 27, 11, 0.76) 8%,
    rgba(96, 62, 27, 0.36) 21%,
    rgba(255, 246, 220, 0) 37%,
    rgba(255, 250, 232, 0.24) 47%,
    rgba(255, 250, 232, 0.24) 53%,
    rgba(255, 246, 220, 0) 63%,
    rgba(96, 62, 27, 0.36) 79%,
    rgba(48, 27, 11, 0.76) 92%,
    rgba(24, 12, 5, 0.94) 100%
  );
}
.drum:focus-visible::after {
  content: "";
  position: absolute;
  top: calc(var(--u) * 8);
  right: calc(var(--u) * 8);
  bottom: calc(var(--u) * 8);
  left: calc(var(--u) * 8);
  z-index: 3;
  border-radius: calc(var(--u) * 10);
  box-shadow: 0 0 0 calc(var(--u) * 5) rgba(104, 31, 53, 0.55);
  pointer-events: none;
}

.drum__item,
.drum__groove {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.drum__item {
  height: var(--row);
  margin-top: calc(var(--row) / -2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.06em;
  /* гравировка: светлая кромка снизу, тёмная сверху */
  text-shadow:
    0 calc(var(--u) * 2.4) 0 rgba(255, 244, 212, 0.5),
    0 calc(var(--u) * -1.6) 0 rgba(58, 28, 10, 0.22);
}
.drum__groove {
  height: calc(var(--u) * 5);
  margin-top: calc(var(--u) * -2.5);
  background: linear-gradient(180deg, rgba(60, 34, 14, 0.62) 0 45%, rgba(255, 245, 214, 0.5) 45% 100%);
}

/* Невидимые зоны нажатия поверх язычков со стрелками. */
.lock__arrow {
  position: absolute;
  width: calc(var(--u) * 150);
  height: calc(var(--u) * 92);
  margin-left: calc(var(--u) * -75);
  padding: 0;
  border: 0;
  background: none;
  outline: none;
}
.lock__arrow--up { top: calc(var(--u) * 561); }
.lock__arrow--down { top: calc(var(--u) * 971); }
.lock__arrow--day { left: calc(var(--u) * 403); }
.lock__arrow--month { left: calc(var(--u) * 603); }
.lock__arrow--year { left: calc(var(--u) * 830); }
.lock__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  width: calc(var(--u) * 76);
  height: calc(var(--u) * 34);
  margin-left: calc(var(--u) * -38);
  border-radius: calc(var(--u) * 12);
  background: rgba(255, 244, 214, 0.34);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.lock__arrow--up::after { top: calc(var(--u) * 28); }
.lock__arrow--down::after { bottom: calc(var(--u) * 28); }
.lock__arrow:active::after,
.lock__arrow.is-pressed::after { opacity: 1; transition-duration: 0.04s; }
.lock__arrow:focus-visible::after { opacity: 1; box-shadow: 0 0 0 calc(var(--u) * 5) rgba(104, 31, 53, 0.55); }

/* Кнопка — колпачок в гнезде корпуса. */
.lock__button {
  position: absolute;
  left: calc(var(--u) * 448);
  top: calc(var(--u) * 1070);
  width: calc(var(--u) * 364);
  height: calc(var(--u) * 114);
  padding: 0;
  border: 0;
  background: none;
  outline: none;
}
/* зона нажатия шире видимой кнопки */
.lock__button::before {
  content: "";
  position: absolute;
  top: calc(var(--u) * -14);
  right: calc(var(--u) * -30);
  bottom: calc(var(--u) * -34);
  left: calc(var(--u) * -30);
}
.lock__button-cap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: calc(var(--u) * 9);
  background: url("assets/lock-button.webp") center / 100% 100% no-repeat;
  transition: transform 0.16s var(--ease-out), filter 0.16s ease;
  will-change: transform;
}
.lock__button-text {
  padding-left: 0.2em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: calc(var(--u) * 52);
  line-height: 1;
  letter-spacing: 0.2em;
  color: #5b1a2e;
  text-shadow:
    0 calc(var(--u) * 2) 0 rgba(255, 243, 208, 0.55),
    0 calc(var(--u) * -1.4) 0 rgba(64, 30, 10, 0.25);
}
.lock__button:active .lock__button-cap,
.lock__button.is-pressed .lock__button-cap {
  transform: translateY(calc(var(--u) * 5)) scale(0.988);
  filter: brightness(0.9);
  transition-duration: 0.05s;
}
.lock__button:focus-visible .lock__button-cap {
  filter: brightness(1.06) drop-shadow(0 0 calc(var(--u) * 8) rgba(104, 31, 53, 0.55));
}

/* пока идёт разблокировка, замок не принимает нажатий */
html[data-state="unlocking"] .lock { pointer-events: none; }

/* ---------- Подпись под замком */

.caption {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: calc(var(--u) * -30);
  text-align: center;
}
.caption__line {
  position: relative;
  margin: 0;
  font-size: clamp(1.15rem, calc(var(--u) * 74), 1.55rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.caption__hint,
.caption__error {
  display: block;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}
.caption__error {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  font-weight: 600;
  opacity: 0;
  transform: translateY(0.3em);
}
.caption.has-error .caption__hint { opacity: 0; transform: translateY(-0.3em); }
.caption.has-error .caption__error { opacity: 1; transform: none; }

.caption__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem auto 0.7rem;
  color: var(--rose);
}
.caption__rule::before,
.caption__rule::after {
  content: "";
  flex: none;
  width: min(26vw, 7.5rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(167, 123, 107, 0), rgba(167, 123, 107, 0.75));
}
.caption__rule::after { transform: scaleX(-1); }
.caption__rule svg { display: block; flex: none; margin: 0 0.7rem; }

/* Подсказка порядка барабанов: тонкая и бледная, чтобы не спорить с замком и не
   напоминать подпись поля в форме. */
.caption__format {
  margin: 0;
  font: 300 clamp(0.56rem, 2.4vw, 0.64rem) / 1 var(--sans);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: rgba(167, 123, 107, 0.62);
}

/* телефон на боку: замок слева, подпись справа */
@media (orientation: landscape) and (max-height: 540px) {
  .scene {
    --lock-w: min(52vw, calc((var(--vh) * 100 - 1.25rem) * 0.84));
    flex-direction: row;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  }
  .caption { width: auto; max-width: 38vw; margin-top: 0; margin-left: 3vw; }
  .caption__line { font-size: clamp(1.05rem, 2.7vw, 1.4rem); }
  .caption__rule::before,
  .caption__rule::after { width: 4rem; }
}

/* ---------- История */

.story {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  outline: none;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.story.is-on { opacity: 1; }

.story__track {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  will-change: transform;
}

.screen {
  position: relative;
  height: var(--screen-h, calc(var(--vh) * 100));
}

.screen__block {
  position: absolute;
  left: calc(env(safe-area-inset-left, 0px) + 26px);
  right: calc(env(safe-area-inset-right, 0px) + 26px);
  /* текст каждого экрана стоит по центру: при перелистывании он не прыгает по высоте */
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* появление: лёгкий сдвиг снизу; --peek ведёт палец при перетаскивании */
  opacity: var(--peek, 0);
  transform: translate3d(0, calc(-50% + (1 - var(--peek, 0)) * 20px), 0);
}
.screen.is-active .screen__block,
.screen.is-leaving .screen__block {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}
.story:not(.is-dragging) .screen.is-active .screen__block {
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

/* Текст истории одного вида на всех экранах: один кегль, одна толщина, один интерлиньяж.
   Кегль считается от ширины экрана так, чтобы самая длинная неразрывная строка — вторая
   строка P.S. — помещалась целиком; высота экрана и большие экраны его ограничивают. */
.t,
.ps__mark,
.ps__text {
  margin: 0;
  font-size: min(6.1vw, 5.2 * var(--vh), 2.6rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.004em;
  text-align: center;
  color: var(--ink);
}
.t {
  max-width: var(--w, 13.5em);
  text-wrap: balance;
}
.t span { display: block; }

/* Композиция экранов: только ширина строки — от неё зависит, где текст переносится. */
.screen--1 { --w: 12em; }
.screen--2 { --w: 12.5em; }
.screen--3 { --w: 13em; }
.screen--4 { --w: 9.5em; }
.screen--5 { --w: 13em; }
.screen--6 { --w: 11.5em; }
.screen--7 { --w: 13em; }
.screen--8 { --w: 13.5em; }
.screen--9 { --w: 13.5em; }
.screen--10 { --w: 13em; }
.screen--11 { --w: 12em; }
.screen--12 { --w: 11em; }
.screen--13 { --w: 9.5em; }
.screen--14 { --w: 12.5em; }
.screen--15 { --w: 11em; }
.screen--16 { --w: 13.5em; }

/* тонкий орнамент над приветствием: стоит над строкой и не сдвигает её с центра */
.orn {
  position: absolute;
  bottom: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 1.9rem;
  color: var(--gold);
}
.orn::before,
.orn::after {
  content: "";
  width: 3.4rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 163, 107, 0), rgba(197, 163, 107, 0.9));
}
.orn::after { transform: scaleX(-1); }
.orn svg { display: block; margin: 0 0.9rem; }

/* P.S. — строго две строки: вторая не переносится (от неё и считается общий кегль) */
.ps__text { white-space: nowrap; }

/* Фон истории: лента и лепестки. Картинка лежит серединой на линии стыка экранов: верхняя
   половина видна внизу одного экрана, нижняя — вверху следующего, середина экрана свободна
   для текста. Картинки едут вместе с листом — фон читается как одно длинное полотно. */
.scenery {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  transform: translate3d(0, -50%, 0);
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.scenery.is-ready { opacity: 1; }
.scenery--end { top: 100%; }
/* На широком или лежащем экране картинки стыков заняли бы и середину, где стоит текст. */
@media (min-aspect-ratio: 74/100) {
  .scenery { display: none; }
}

/* Подсказка на первом экране: рука ведёт палец вверх — показывает, что лист тянут. */
.story__hint {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 5 * var(--vh));
  width: 4rem;
  height: 5.6rem;
  margin-left: -2rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: none;
  color: var(--ink);
  outline: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.story__hint.is-on { opacity: 1; transition-delay: 0.7s; }
.story__hint:focus-visible { box-shadow: 0 0 0 3px rgba(104, 31, 53, 0.35); }
/* путь пальца: тонкая линия, вдоль которой рука уходит вверх */
.story__hint::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.35rem;
  bottom: 2.8rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(167, 123, 107, 0), rgba(167, 123, 107, 0.6));
}
.story__hint svg {
  position: absolute;
  /* кончик указательного пальца — на линии пути */
  left: calc(50% - 18.5px);
  bottom: 0.1rem;
  display: block;
  animation: swipe-up 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes swipe-up {
  0% { transform: translateY(4px); opacity: 0; }
  16% { transform: translateY(4px); opacity: 1; }
  66% { transform: translateY(-34px); opacity: 1; }
  88%, 100% { transform: translateY(-38px); opacity: 0; }
}

/* ---------- Спокойный режим: без движения, только мягкие проявления */

@media (prefers-reduced-motion: reduce) {
  .story__hint svg { animation: none; transform: translateY(-12px); }
  .screen__block { transform: translate3d(0, -50%, 0); }
  .story:not(.is-dragging) .screen.is-active .screen__block { transition: opacity 0.4s ease; }
  .lock__button-cap,
  .caption__hint,
  .caption__error { transition-duration: 0.01s; }
}
