/* ==========================================================================
   kids-schedule.html — «Расписание детей».
   Общие виджеты демо и секций — копия wishlist.css (те же значения, что notes.css).
   ========================================================================== */

.demo-box {
  --demo-cycle: 18s;
  --ios-blue: #007aff;
  --ink: #1f2328;
  --muted: #66707c;
  --border: #d8dade;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  min-height: 734px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 207, 74, 0.9), transparent 26%),
    radial-gradient(circle at 92% 90%, rgba(136, 169, 149, 0.62), transparent 32%),
    linear-gradient(145deg, #245ef2 0%, #2f6bff 52%, #1d4ed8 100%);
  box-shadow:
    0 30px 64px rgba(47, 107, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.demo-box::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 1.5px, transparent 2px);
  background-size: 26px 26px;
  content: "";
  mask-image: linear-gradient(165deg, rgba(0, 0, 0, 0.9), transparent 74%);
}

.app-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Корпус — как на lists.html ---------- */

.demo-phone {
  position: absolute;
  z-index: 2;
  top: 48px;
  left: 50%;
  width: 274px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 15.7% / 7.4%;
  background: linear-gradient(110deg, #343842 0%, #0a0b0f 28%, #1d2027 69%, #050608 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 0 0 2px rgba(255, 255, 255, 0.07),
    0 34px 46px rgba(8, 28, 80, 0.42);
  transform: translateX(-50%);
  animation: demo-phone-float 5s ease-in-out infinite;
}

.demo-screen {
  position: relative;
  overflow: hidden;
  width: 262px;
  height: 567px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14.1% / 6.5%;
  background: #fff;
  clip-path: inset(0 round 14.1% / 6.5%);
}

.demo-phone-button {
  position: absolute;
  top: 22.75%;
  right: -2.5px;
  width: 2.5px;
  height: 12.1%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #3d424d, #111319);
}

/* ==========================================================================
   Приложение: холст 390 × 844 pt
   ========================================================================== */

.app {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 390px;
  height: 844px;
  color: #000;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.25;
  transform: scale(0.6718);
  transform-origin: 0 0;
  -webkit-font-smoothing: antialiased;
}

.app svg {
  display: block;
  flex: none;
}

.app svg:not([fill]) {
  fill: currentColor;
}

/* Статус-бар iOS */
.app-statusbar {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 30px 0 52px;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-statusbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-battery {
  position: relative;
  display: grid;
  width: 27px;
  height: 13px;
  place-items: center;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-style: normal;
}

.app-battery::after {
  position: absolute;
  top: 4px;
  right: -3px;
  width: 1.5px;
  height: 5px;
  border-radius: 0 1px 1px 0;
  background: rgba(0, 0, 0, 0.4);
  content: "";
}

.app-battery b {
  font-size: 10px;
  font-weight: 800;
}

/* Сцены */
.app-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* AppPageBackground.blueGold */
.app-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #dfeaff 0%, #eff4ff 52%, #d6e4ff 100%);
}

.app-bg::before,
.app-bg::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.app-bg::before {
  top: 82px;
  right: -142px;
  width: 330px;
  height: 330px;
  background: rgba(79, 128, 238, 0.16);
}

.app-bg::after {
  top: 520px;
  left: -96px;
  width: 210px;
  height: 210px;
  background: rgba(255, 211, 90, 0.28);
}

/* CupertinoNavigationBar */
.app-navbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  height: 98px;
  align-items: center;
  padding: 54px 8px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.16);
  background: rgba(249, 249, 249, 0.94);
  color: var(--ios-blue);
}

.app-navbar-tinted {
  border-bottom: 0;
  background: #dfeaff;
}

.app-navbar > b {
  overflow: hidden;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-navbar-side {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 8px;
}

.app-navbar-right {
  justify-content: flex-end;
}

.app-back {
  gap: 6px;
  padding-left: 2px;
  font-size: 17px;
}

/* Сегменты (ListsFamilyFilterBar, _KnowledgeNoteScopeSelector) */
.app-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  border: 0.6px solid rgba(60, 60, 67, 0.05);
  border-radius: 16px;
  background: rgba(242, 242, 247, 0.6);
}

.app-segment > span {
  margin: 0 2px;
  padding: 10px 0;
  border: 0.6px solid transparent;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.app-segment .is-yellow,
.voice-scope-family {
  color: #ffcf4a;
}

.app-segment .is-blue,
.voice-scope-personal {
  color: var(--ios-blue);
}

.app-segment .is-on.is-yellow {
  border-color: rgba(255, 207, 74, 0.28);
  background: rgba(255, 207, 74, 0.18);
}

.app-segment .is-on.is-blue {
  border-color: rgba(0, 122, 255, 0.28);
  background: rgba(0, 122, 255, 0.18);
}

/* BottomActionsBar */
.app-bottombar {
  position: absolute;
  z-index: 6;
  right: 12px;
  bottom: 30px;
  left: 12px;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-around;
  padding: 6px 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
  color: var(--ios-blue);
}

.app-tab {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 60px;
}

.app-tab small {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.app-mic {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  margin: -4px 0;
  place-items: center;
  border-radius: 50%;
}

.app-mic-sparkle {
  position: absolute;
  right: 0;
  bottom: 2px;
}

.app-badge-wrap {
  position: relative;
}

.app-badge-wrap i {
  position: absolute;
  top: -7px;
  right: -9px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: var(--ios-blue);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

/* Модалки */
.app-dim {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
}

.app-alert {
  position: absolute;
  z-index: 30;
  top: 50%;
  left: 50%;
  width: 290px;
  padding: 20px 16px 14px;
  border-radius: 14px;
  background: rgba(242, 242, 247, 0.97);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.08);
}

.app-alert > b {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.app-spinner {
  display: block;
  width: 22px;
  height: 22px;
  margin: 18px auto 8px;
  border: 2.5px solid rgba(60, 60, 67, 0.18);
  border-top-color: rgba(60, 60, 67, 0.7);
  border-radius: 50%;
  animation: app-spin 0.8s linear infinite;
}

/* collectionSurfaceDecoration */
.app-surface {
  border: 0.9px solid rgba(216, 218, 222, 0.82);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 242, 244, 0.94));
  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.055),
    0 1px 4px rgba(0, 0, 0, 0.02);
}

.app-icon-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.09);
  color: var(--ios-blue);
}

.app-primary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  background: var(--ios-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.app-filled {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 8px;
  background: var(--ios-blue);
  color: #fff;
  font-size: 17px;
}

.sheet-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.sheet-header b {
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.demo-float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.93);
  color: #111827;
  box-shadow: 0 18px 38px rgba(16, 39, 105, 0.28);
  backdrop-filter: blur(18px);
  opacity: 0;
}

.demo-float > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.11);
  font-size: 16px;
}

.demo-float small {
  display: block;
  color: #245ef2;
  font-size: 9px;
  font-weight: 700;
}

.demo-float strong {
  display: block;
  font-size: 11px;
  font-weight: 750;
}

.demo-steps {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 15px;
  left: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(16, 39, 105, 0.5);
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 650;
  box-shadow: 0 14px 30px rgba(16, 39, 105, 0.24);
  backdrop-filter: blur(18px);
}

.demo-step {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  white-space: nowrap;
}

.demo-step i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

@keyframes demo-phone-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes app-spin { to { transform: rotate(360deg); } }
@keyframes app-blink { to { opacity: 0; } }
@keyframes app-wave {
  0%, 100% { height: 22%; }
  50% { height: 100%; }
}

/* Как это работает: три шага с «линией времени» */
.notes-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.notes-flow-card {
  position: relative;
  padding: 25px;
  border: 1px solid rgba(47, 107, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(26, 36, 67, 0.045);
}

.notes-flow-card time {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: 10px;
  font-weight: 750;
}

.notes-flow-card:nth-child(2) time {
  background: var(--warm-sage-soft);
  color: var(--warm-sage-deep);
}

.notes-flow-card:nth-child(3) time {
  background: rgba(255, 207, 74, 0.24);
  color: #8b6810;
}

.notes-flow-card h3 {
  margin: 26px 0 9px;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.notes-flow-card p {
  margin: 0;
  color: var(--warm-muted);
  font-size: 13px;
  line-height: 1.58;
}

.notes-flow-quote {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f2f2f7;
  color: var(--warm-ink-soft);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

/* Одна заметка — восемь вариантов: бенто-сетка.
   Арт раздела — фон в правом нижнем углу, частично срезан краем;
   широкие и узкие карточки чередуются в шахматном порядке. */
.notes-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 12px;
  margin-top: 48px;
}

.notes-bento-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(47, 107, 255, 0.08);
  border-radius: 26px;
  background: linear-gradient(160deg, #fff 0%, #fff 38%, var(--tint) 100%);
  box-shadow: 0 12px 30px rgba(26, 36, 67, 0.05);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.notes-bento-card.is-wide {
  grid-column: span 2;
}

.notes-bento-text {
  position: relative;
  z-index: 1;
}

.notes-bento-card h3 {
  margin: 0 0 8px;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: 21px;
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.notes-bento-card p {
  margin: 0;
  color: var(--warm-muted);
  font-size: 13px;
  line-height: 1.55;
}

.notes-bento-card img {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 118px;
  height: 118px;
  object-fit: contain;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.notes-bento-card.is-wide .notes-bento-text {
  max-width: 55%;
}

.notes-bento-card.is-wide h3 {
  font-size: 28px;
}

.notes-bento-card.is-wide p {
  font-size: 14px;
}

.notes-bento-card.is-wide img {
  right: -6px;
  bottom: -34px;
  width: 220px;
  height: 220px;
}

@media (hover: hover) and (pointer: fine) {
  .notes-bento-card:hover {
    box-shadow: 0 24px 52px rgba(26, 36, 67, 0.12);
    transform: translateY(-4px);
  }

  .notes-bento-card:hover img {
    transform: translate(-4px, -6px) rotate(-3deg) scale(1.04);
  }
}

@media (max-width: 1100px) {
  .notes-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
  }
}

@media (max-width: 680px) {
  .notes-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    margin-top: 34px;
  }

  .notes-bento-card,
  .notes-bento-card.is-wide {
    grid-column: auto;
    min-height: 168px;
    padding: 22px 132px 22px 22px;
  }

  .notes-bento-card.is-wide .notes-bento-text {
    max-width: none;
  }

  .notes-bento-card.is-wide h3 {
    font-size: 22px;
  }

  .notes-bento-card.is-wide p {
    font-size: 13px;
  }

  .notes-bento-card img,
  .notes-bento-card.is-wide img {
    right: -14px;
    bottom: -18px;
    width: 128px;
    height: 128px;
  }
}

/* Сценарии из жизни: фраза → результат */

/* Появление при прокрутке (включается scripts в notes.html) */
.js-reveal .notes-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-reveal .notes-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Фильтр-бар и бейдж семьи — как в приложении */
.ov-filter {
  display: flex;
  align-items: center;
  margin: 0 8px;
  padding: 2px;
  border: 0.6px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ov-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.ov-dropdown svg {
  color: rgba(60, 60, 67, 0.6);
}

.ov-filter-sep {
  width: 1px;
  height: 22px;
  margin: 0 8px;
  background: rgba(60, 60, 67, 0.15);
}

.ov-filter .app-segment {
  flex: 1;
}

.family-badge,
.personal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.family-badge {
  border: 0.8px solid #e1e3e6;
  background: linear-gradient(135deg, #fff, #f0f2f4);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  color: #9a6400;
}

.family-badge img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.personal-badge {
  gap: 4px;
  padding: 4px 7px;
  background: #eef5fe;
  color: var(--ios-blue);
}

/* Нижняя панель с одной кнопкой — DetailActionsBar */
.detail-bar {
  position: absolute;
  right: 16px;
  bottom: 50px;
  left: 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 15px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e3e5e8;
  border-radius: 40px;
  background: #fff;
}

.detail-round {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #007aff;
}

.detail-round::before,
.detail-round::after {
  position: absolute;
  border: 1px solid #969ca6;
  border-radius: 50%;
  content: "";
  inset: 0;
}

.detail-round::after {
  border-color: #d4d7dd;
  inset: -5px;
}

.detail-round-left::before,
.detail-round-left::after {
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(-45deg);
}

.detail-round-right::before,
.detail-round-right::after {
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}

.detail-center {
  padding: 8px 0;
  color: #007aff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* Секция «Дела и платежи» (как «Праздник в делах» на wishlist.html) */
.ks-cross-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.ks-cross-copy h2 {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.ks-cross-copy > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--warm-muted);
  font-size: 15px;
  line-height: 1.65;
}

.ks-cross-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.ks-cross-list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border: 1px solid rgba(47, 107, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--warm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ks-cross-list li::before {
  position: absolute;
  top: 15px;
  left: 16px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  content: "✓";
  font-size: 11px;
  font-weight: 800;
}

.ks-cross-list b {
  color: var(--warm-ink);
}

.ks-cross-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(160deg, #fff 0%, #f3e8f7 100%);
  box-shadow: var(--warm-shadow);
}

.ks-cross-art img {
  width: 78%;
  height: auto;
}

@media (max-width: 980px) {
  .ks-cross-grid {
    grid-template-columns: 1fr;
  }

  .ks-cross-art {
    max-width: 420px;
  }
}

/* ==========================================================================
   Как это работает: путь занятия в четыре шага (по образцу .notes-path на notes.html)
   ========================================================================== */
.notes-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.notes-path::before {
  position: absolute;
  top: 88px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-blue) 0 8px, transparent 8px 16px);
  content: "";
  opacity: 0.32;
}

.notes-path-dot {
  position: absolute;
  z-index: 0;
  top: 83px;
  left: 8%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 0 6px var(--brand-blue-soft);
  animation: ks-path-travel 9s ease-in-out infinite;
}

@keyframes ks-path-travel {
  0%, 6% { left: 8%; }
  28%, 36% { left: calc(36% - 4px); }
  58%, 66% { left: calc(64% - 8px); }
  88%, 100% { left: calc(92% - 12px); }
}

.notes-path-step {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
}

.notes-path-stage {
  position: relative;
  z-index: 1;
  display: grid;
  height: 176px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--warm-line);
  border-radius: 26px;
  background: linear-gradient(160deg, var(--brand-blue-soft), var(--warm-paper-strong) 72%);
  box-shadow: 0 12px 30px rgba(26, 36, 67, 0.045);
}

.notes-path-step:nth-child(3) .notes-path-stage {
  border-color: rgba(82, 116, 96, 0.16);
  background: linear-gradient(160deg, var(--warm-sage-soft), var(--warm-paper-strong) 72%);
}

.notes-path-step:nth-child(4) .notes-path-stage {
  border-color: rgba(255, 207, 74, 0.34);
  background: linear-gradient(160deg, rgba(255, 207, 74, 0.2), var(--warm-paper-strong) 72%);
}

.notes-path-step:nth-child(5) .notes-path-stage {
  border-color: rgba(107, 90, 180, 0.18);
  background: linear-gradient(160deg, #eeecf7, var(--warm-paper-strong) 72%);
}

.notes-path-note {
  display: grid;
  width: 100%;
  max-width: 250px;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--warm-paper-strong);
  box-shadow: 0 6px 18px rgba(26, 36, 67, 0.06);
}

.notes-path-note small {
  color: var(--warm-muted);
  font-size: 11px;
}

/* Подписи шагов */
.notes-path-time {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-self: start;
  margin-top: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: 10px;
  font-weight: 750;
}

.notes-path-step:nth-child(3) .notes-path-time {
  background: var(--warm-sage-soft);
  color: var(--warm-sage-deep);
}

.notes-path-step:nth-child(4) .notes-path-time {
  background: rgba(255, 207, 74, 0.24);
  color: #8b6810;
}

.notes-path-step:nth-child(5) .notes-path-time {
  background: #eeecf7;
  color: #5b4e9e;
}

.notes-path-step h3 {
  margin: 4px 0 0;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.notes-path-step > p {
  max-width: 42ch;
  margin: 0;
  color: var(--warm-muted);
  font-size: 13px;
  line-height: 1.58;
}

@media (max-width: 980px) {
  .notes-path {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 28px;
  }

  .notes-path::before {
    top: 20px;
    right: auto;
    bottom: 20px;
    left: 8px;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--brand-blue) 0 8px, transparent 8px 16px);
  }

  .notes-path-dot {
    display: none;
  }

  .notes-path-stage {
    max-width: 420px;
  }
}

@media (max-width: 680px) {
  .notes-path {
    margin-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notes-path-dot { animation: none; }
}

.ks-cross-cta {
  margin-top: 26px;
}


/* ==========================================================================
   kids-schedule.html — «Расписание детей»: демо-телефон
   Источник: lib/pages/kids_schedule/kids_schedule_page.dart
     • навбар buildCollectionPageNavigationBar «Расписание детей»
     • CollectionMonthCalendar (ListsMonthCalendarWidget) в режиме «Неделя»:
       шапка CollectionCalendarHeader, ячейка 11/20 pt, столбики детей 4 pt
     • строка часов «Аня · 1 ч 30 мин», AppSegmentedControl «Все дети / Аня / Миша»
     • _column: аватар 30 + имя 18, _nowMarker (красная линия), _timedCard
       (ось 48 pt) + _card (CollectionCard с акцентом цвета ребёнка)
     • _ScheduleOverlapCard: иконка часов #956219 на #FFF2DA, полосы #B97526
     • BottomActionsBar: Добавить · Голосом · Пересечения (бейдж)
     • VoiceDictationPanel «Занятие голосом», _ActivityEditor (CollectionEditorDialog)
   Цвета детей — палитра бэкенда (kids_schedule/handlers.py): #218D89, #7651B0.

   Сценарий (--demo-cycle: 26s, 1% = 0.26s):
     0–9%     день Миши: шахматы, английский, отметка «сейчас»
     9.5%     нажатие «Голосом» → окно диктовки, текст по словам
     38%      «Готово» → «Проверить занятие» (43%)
     45–60%   «Новое занятие»: поля заполнены, «Сохранить занятие» (59%)
     62–67%   плавание и карточка пересечения, бейдж «Пересечения» = 1
     72%      карточка пересечения раскрывается: 30 мин одновременно
   ========================================================================== */

.ks-demo {
  --demo-cycle: 40s;
  --anya: #218d89;
  --misha: #7651b0;
}

.ks-demo .app-scene.ks-day {
  opacity: 1;
}

/* Статус-бар: батарея как в общем демо */
.ks-demo .app-statusbar-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Прокручиваемая область ---------- */

.ks-viewport {
  position: absolute;
  z-index: 1;
  top: 98px;
  right: 0;
  bottom: 112px;
  left: 0;
  overflow: hidden;
  animation: ks-viewport var(--demo-cycle) ease-in-out infinite;
}

.ks-scroll {
  padding: 8px 16px 24px;
  animation: ks-scroll var(--demo-cycle) cubic-bezier(0.3, 0.7, 0.2, 1) infinite;
}

/* ---------- Календарь недели ---------- */

.ks-cal {
  padding: 14px 14px 12px;
  border: 0.8px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ks-cal-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
}

.ks-cal-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #f0f0f2;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.13);
  color: #000;
}

.ks-cal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ks-cal-title b {
  font-size: 17px;
  font-weight: 600;
}

.ks-cal-title svg {
  color: #8e8e93;
}

.ks-cal-title em {
  margin-left: 2px;
  color: var(--ios-blue);
  font-size: 14px;
  font-style: normal;
}

.ks-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 12px;
}

.ks-wd {
  display: grid;
  justify-items: center;
  padding: 10px 0 0;
  border-radius: 16px;
}

.ks-wd small {
  font-size: 11px;
}

.ks-wd b {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.ks-wd.is-sel {
  background: var(--ios-blue);
  color: #fff;
}

.ks-bars {
  display: flex;
  height: 32px;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-bottom: 6px;
}

.ks-bars i {
  width: 4px;
  height: 3.2px;
  border-radius: 3px;
}

.ks-bars .is-anya { background: var(--anya); }
.ks-bars .is-misha { background: var(--misha); }
.ks-wd.is-sel .is-anya { background: #8cc3c1; }
.ks-wd.is-sel .is-misha { background: #b4a2d4; }

/* ---------- Часы детей и сегменты ---------- */

.ks-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 12px;
}

.ks-hours .is-anya { color: var(--anya); }
.ks-hours .is-misha { color: var(--misha); }

.ks-hours-swap {
  display: inline-grid;
}

.ks-hours-swap > span {
  grid-area: 1 / 1;
}

.ks-h-old { animation: ks-h-old var(--demo-cycle) step-end infinite; }
.ks-h-new { opacity: 0; animation: ks-h-new var(--demo-cycle) step-end infinite; }

.ks-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  padding: 2px 3px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
}

.ks-seg > span {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  color: #1f2328;
  font-size: 15px;
}

.ks-seg > span.is-on {
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
}

/* TaskUserAvatar без фото: буква на цвете ребёнка */
.ks-ava {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.ks-ava.is-anya { background: var(--anya); }
.ks-ava.is-misha { background: var(--misha); }

/* ---------- Колонка ребёнка ---------- */

.ks-col {
  margin-top: 28px;
}

.ks-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ks-col-head b {
  color: #1f2328;
  font-size: 18px;
  font-weight: 600;
}

.ks-now {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #ff3b30;
  font-size: 12px;
}

.ks-now i {
  flex: 1;
  height: 1px;
  background: #ff3b30;
}

.ks-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  margin-bottom: 10px;
}

.ks-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #66707c;
  font-size: 11px;
}

.ks-axis i {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--misha);
}

.ks-axis span {
  flex: 1;
  width: 1px;
  background: rgba(60, 60, 67, 0.29);
}

.ks-axis small:last-child {
  margin-bottom: 8px;
  font-size: 11px;
}

.ks-card {
  padding: 10px 14px 4px;
  border: 0.9px solid rgba(118, 81, 176, 0.28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 242, 244, 0.94));
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.055), 0 1px 4px rgba(0, 0, 0, 0.02);
}

.ks-card > small {
  display: block;
  color: #66707c;
  font-size: 12px;
}

.ks-card > b {
  display: block;
  margin-top: 8px;
  color: #1f2328;
  font-size: 18px;
  font-weight: 600;
}

.ks-card > p {
  margin: 6px 0 8px;
  color: #66707c;
  font-size: 12px;
}

.ks-card-foot {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e1e8f3;
  color: #66707c;
  font-size: 12px;
}

.ks-card-foot svg {
  color: var(--ios-blue);
}

.ks-add {
  display: block;
  padding: 14px 0;
  color: var(--ios-blue);
  font-size: 17px;
  text-align: center;
}

/* Новые элементы: раскрываются после сохранения */
.ks-grow {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.ks-grow-overlap {
  padding-left: 48px;
  animation: ks-grow-ov var(--demo-cycle) ease-out infinite;
}

.ks-grow-swim {
  animation: ks-grow-swim var(--demo-cycle) ease-out infinite;
}

.ks-card.is-new {
  animation: ks-new-ring var(--demo-cycle) ease-out infinite;
}

/* _ScheduleOverlapCard */
.ks-overlap {
  margin-bottom: 10px;
  padding: 12px;
  border: 0.9px solid rgba(216, 218, 222, 0.82);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 242, 244, 0.94));
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.055);
}

.ks-ov-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 9px;
  align-items: center;
  animation: ks-ov-press var(--demo-cycle) ease-in-out infinite;
}

.ks-ov-ico {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #fff2da;
  color: #956219;
}

.ks-ov-text b {
  display: block;
  color: #1f2328;
  font-size: 15px;
  font-weight: 600;
}

.ks-ov-text small {
  color: #66707c;
  font-size: 12px;
}

.ks-ov-chev {
  color: #66707c;
  animation: ks-ov-chev var(--demo-cycle) ease-in-out infinite;
}

.ks-ov-body {
  overflow: hidden;
  max-height: 0;
  animation: ks-ov-body var(--demo-cycle) ease-in-out infinite;
}

.ks-ov-box {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f1f5fb;
}

.ks-ov-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.ks-ov-box > small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
}

.ks-ov-track {
  position: relative;
  display: block;
  height: 8px;
  margin-top: 5px;
  border-radius: 5px;
  background: #dce5f1;
}

.ks-ov-track i,
.ks-ov-track em {
  position: absolute;
  top: 0;
  bottom: 0;
}

.ks-ov-track i {
  border-radius: 5px;
  background: var(--misha);
}

.ks-ov-track em {
  background: #b97526;
}

.ks-ov-box p {
  margin: 10px 0 0;
  color: #66707c;
  font-size: 12px;
}

/* ---------- BottomActionsBar ---------- */

.ks-bar {
  justify-content: space-between;
  padding: 6px 22px;
}

.ks-ov-tab {
  color: rgba(60, 60, 67, 0.3);
  animation: ks-ov-tab var(--demo-cycle) step-end infinite;
}

.ks-ov-tab svg {
  animation: ks-ov-ico var(--demo-cycle) step-end infinite;
}

.ks-badge {
  opacity: 0;
  transform: scale(0.4);
  animation: ks-badge var(--demo-cycle) cubic-bezier(0.3, 1.6, 0.5, 1) infinite;
}

.ks-voice-tab {
  animation: ks-press-voice var(--demo-cycle) ease-in-out infinite;
}

/* ---------- Окно диктовки (VoiceDictationPanel) ---------- */

.ks-vdim { animation: ks-vdim var(--demo-cycle) ease-in-out infinite; }

.ks-voice {
  position: absolute;
  z-index: 25;
  right: 12px;
  bottom: 46px;
  left: 12px;
  padding: 16px;
  border-radius: 28px;
  background: #f2f2f7;
  transform: translateY(110%);
  animation: ks-voice var(--demo-cycle) cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ks-v-hints {
  margin: 8px 0 14px;
  color: #66707c;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.ks-v-wave {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 0.9px solid rgba(216, 218, 222, 0.82);
  border-radius: 18px;
  background: #fff;
}

.ks-v-wave i {
  width: 2px;
  height: 18%;
  border-radius: 2px;
  background: #ff3b30;
  animation: app-wave 0.9s ease-in-out infinite, ks-wave-color var(--demo-cycle) step-end infinite;
}

.ks-v-wave i:nth-child(2n) { animation-delay: -0.3s, 0s; }
.ks-v-wave i:nth-child(3n) { animation-delay: -0.55s, 0s; }
.ks-v-wave i:nth-child(5n) { animation-delay: -0.7s, 0s; }
.ks-v-wave i:nth-child(7n) { animation-delay: -0.15s, 0s; }

.ks-v-status {
  display: grid;
  margin: 10px 0 12px;
  color: #66707c;
  font-size: 13px;
  text-align: center;
}

.ks-v-status > span,
.ks-v-actions > span {
  grid-area: 1 / 1;
}

.ks-v-live { animation: ks-v-live var(--demo-cycle) step-end infinite; }
.ks-v-done { opacity: 0; animation: ks-v-done var(--demo-cycle) step-end infinite; }

.ks-v-actions {
  display: grid;
}

.ks-v-ready {
  align-self: start;
  animation: ks-v-ready var(--demo-cycle) ease-in-out infinite;
}

.ks-v-review {
  display: grid;
  gap: 4px;
  opacity: 0;
  animation: ks-v-review var(--demo-cycle) step-end infinite;
}

.ks-v-append {
  padding: 13px 0;
  color: var(--ios-blue);
  font-size: 17px;
  text-align: center;
}

.ks-v-check {
  animation: ks-v-check var(--demo-cycle) ease-in-out infinite;
}

.ks-v-divider {
  display: block;
  height: 1px;
  margin: 20px 0;
  background: #d8dade;
}

.ks-voice h6 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.ks-v-text {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(0, 122, 255, 0.42);
  border-radius: 19px;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
}

.ks-v-text span { opacity: 0; }
.ks-v-text span:nth-child(1) { animation: ks-w1 var(--demo-cycle) linear infinite; }
.ks-v-text span:nth-child(2) { animation: ks-w2 var(--demo-cycle) linear infinite; }
.ks-v-text span:nth-child(3) { animation: ks-w3 var(--demo-cycle) linear infinite; }
.ks-v-text span:nth-child(4) { animation: ks-w4 var(--demo-cycle) linear infinite; }

.ks-v-caret {
  display: inline-block;
  width: 2px;
  height: 18px;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--ios-blue);
  animation: app-blink 0.8s steps(2, start) infinite;
}

/* ---------- «Новое занятие» (CollectionEditorDialog) ---------- */

.ks-edim { animation: ks-edim var(--demo-cycle) ease-in-out infinite; }

.ks-ed {
  position: absolute;
  z-index: 26;
  top: 64px;
  right: 12px;
  left: 12px;
  overflow: hidden;
  border-radius: 28px;
  background: #f2f2f7;
  opacity: 0;
  transform: scale(1.06);
  animation: ks-ed var(--demo-cycle) cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ks-ed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  background: #fff;
}

.ks-ed-head b {
  font-size: 20px;
  font-weight: 600;
}

.ks-ed-head svg {
  color: var(--ios-blue);
}

.ks-ed-body {
  padding: 18px 18px 0;
}

.ks-ed-sec {
  padding: 0 16px 8px;
  color: rgba(60, 60, 67, 0.6);
  font-size: 12px;
  font-weight: 600;
}

.ks-ed-group {
  margin-bottom: 20px;
  padding: 0 16px;
  border-radius: 18px;
  background: #fff;
}

.ks-ed-group > * + * {
  border-top: 0.5px solid rgba(60, 60, 67, 0.29);
}

.ks-ed-prefill {
  padding: 16px 0;
}

.ks-ed-prefill small {
  display: block;
  color: rgba(60, 60, 67, 0.6);
  font-size: 13px;
}

.ks-ed-prefill small:last-child {
  font-size: 12px;
}

.ks-ed-prefill p {
  min-height: 70px;
  margin: 8px 0;
  padding: 12px;
  border-radius: 12px;
  background: #f2f2f7;
  font-size: 16px;
  line-height: 1.35;
}

.ks-ed-row {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 10px;
  min-height: 52px;
  align-items: center;
  font-size: 15px;
}

.ks-ed-row b {
  justify-self: end;
  font-size: 16px;
  font-weight: 400;
  text-align: right;
}

.ks-ed-row b.is-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ios-blue);
}

.ks-ed-row b.is-choice svg {
  color: var(--ios-blue);
}

.ks-switch {
  position: relative;
  justify-self: end;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.16);
}

.ks-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  content: "";
}

.ks-f { animation: ks-field var(--demo-cycle) ease-out infinite; }
.ks-f2 { animation-name: ks-field-2; }
.ks-f3 { animation-name: ks-field-3; }
.ks-f4 { animation-name: ks-field-4; }
.ks-f5 { animation-name: ks-field-5; }
.ks-f6 { animation-name: ks-field-6; }

.ks-ed-save {
  padding: 0 18px 18px;
}

.ks-ed-save span {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--ios-blue);
  color: #fff;
  font-size: 17px;
  animation: ks-save var(--demo-cycle) ease-in-out infinite;
}

/* ---------- Нажатия: splash как на lists.html ---------- */

.ks-tap {
  position: absolute;
  z-index: 60;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 1) 0 12%,
      rgba(111, 206, 255, 0.92) 24%,
      rgba(47, 107, 255, 0.72) 46%,
      rgba(47, 107, 255, 0) 72%
    );
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.16);
  animation: var(--tap-name) var(--demo-cycle) ease-out infinite;
}


/* ---------- Keyframes ---------- */

@keyframes ks-viewport {
  0%, 97% { opacity: 1; }
  98.5%, 99.6% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes ks-scroll {
  0%, 40.3% { transform: translateY(0); }
  43.55%, 99% { transform: translateY(-318px); }
  100% { transform: translateY(0); }
}

@keyframes ks-grow-ov {
  0%, 40.62% { max-height: 0; opacity: 0; }
  42.58%, 99% { max-height: 300px; opacity: 1; }
  100% { max-height: 0; opacity: 0; }
}

@keyframes ks-grow-swim {
  0%, 39.98% { max-height: 0; opacity: 0; }
  41.93%, 99% { max-height: 200px; opacity: 1; }
  100% { max-height: 0; opacity: 0; }
}

@keyframes ks-new-ring {
  0%, 40.95% { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.5); }
  45.5% { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.5); }
  49.4%, 100% { box-shadow: 0 5px 16px rgba(0, 0, 0, 0.055); }
}

@keyframes ks-h-old {
  0% { opacity: 1; }
  40.95% { opacity: 0; }
}

@keyframes ks-h-new {
  0% { opacity: 0; }
  40.95% { opacity: 1; }
}

@keyframes ks-ov-press {
  0%, 46.41% { transform: scale(1); }
  46.8% { transform: scale(0.97); }
  47.32%, 100% { transform: scale(1); }
}

@keyframes ks-ov-chev {
  0%, 47.06% { transform: none; }
  47.84%, 99% { transform: rotate(180deg); }
  100% { transform: none; }
}

@keyframes ks-ov-body {
  0%, 47.06% { max-height: 0; }
  49.4%, 99% { max-height: 200px; }
  100% { max-height: 0; }
}

@keyframes ks-ov-tab {
  0% { color: rgba(60, 60, 67, 0.3); }
  41.6% { color: var(--ios-blue); }
}

@keyframes ks-ov-ico {
  0% { color: rgba(60, 60, 67, 0.3); }
  41.6% { color: #956219; }
}

@keyframes ks-badge {
  0%, 41.93% { opacity: 0; transform: scale(0.4); }
  42.9%, 99% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.4); }
}

@keyframes ks-press-voice {
  0%, 5.85% { transform: scale(1); }
  6.24% { transform: scale(0.88); }
  6.63%, 100% { transform: scale(1); }
}

@keyframes ks-vdim {
  0%, 6.5% { opacity: 0; }
  7.8%, 28.34% { opacity: 1; }
  29.25%, 100% { opacity: 0; }
}

@keyframes ks-voice {
  0%, 6.5% { transform: translateY(110%); }
  8.19%, 28.34% { transform: translateY(0); }
  29.9%, 100% { transform: translateY(110%); }
}

@keyframes ks-wave-color {
  0% { background: #ff3b30; }
  24.96% { background: #007aff; }
}

@keyframes ks-v-live {
  0% { opacity: 1; }
  24.96% { opacity: 0; }
  29.9% { opacity: 1; }
}

@keyframes ks-v-done {
  0% { opacity: 0; }
  24.96% { opacity: 1; }
  29.9% { opacity: 0; }
}

@keyframes ks-v-ready {
  0%, 24.31% { opacity: 1; transform: scale(1); }
  24.7% { opacity: 1; transform: scale(0.96); }
  24.96%, 29.84% { opacity: 0; transform: scale(1); }
  29.9%, 100% { opacity: 1; }
}

@keyframes ks-v-review {
  0% { opacity: 0; }
  24.96% { opacity: 1; }
  29.9% { opacity: 0; }
}

@keyframes ks-v-check {
  0%, 27.56% { transform: scale(1); filter: none; }
  27.95% { transform: scale(0.96); filter: brightness(0.88); }
  28.34%, 100% { transform: scale(1); filter: none; }
}

@keyframes ks-w1 { 0%, 9.1% { opacity: 0; } 15%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes ks-w2 { 0%, 13% { opacity: 0; } 21%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes ks-w3 { 0%, 16.9% { opacity: 0; } 27%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes ks-w4 { 0%, 20.15% { opacity: 0; } 32%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }

@keyframes ks-edim {
  0%, 28.6% { opacity: 0; }
  29.9%, 38.87% { opacity: 1; }
  39.98%, 100% { opacity: 0; }
}

@keyframes ks-ed {
  0%, 28.93% { opacity: 0; transform: scale(1.06); }
  30.23%, 38.87% { opacity: 1; transform: none; }
  39.98%, 100% { opacity: 0; transform: scale(0.96); }
}

@keyframes ks-field   { 0%, 47.5% { opacity: 0; } 48.5%, 100% { opacity: 1; } }
@keyframes ks-field-2 { 0%, 31.53% { opacity: 0; } 49.5%, 100% { opacity: 1; } }
@keyframes ks-field-3 { 0%, 32.18% { opacity: 0; } 50.5%, 100% { opacity: 1; } }
@keyframes ks-field-4 { 0%, 32.83% { opacity: 0; } 51.5%, 100% { opacity: 1; } }
@keyframes ks-field-5 { 0%, 33.48% { opacity: 0; } 52.5%, 100% { opacity: 1; } }
@keyframes ks-field-6 { 0%, 34.12% { opacity: 0; } 53.5%, 100% { opacity: 1; } }

@keyframes ks-save {
  0%, 37.96% { transform: scale(1); filter: none; }
  38.35% { transform: scale(0.96); filter: brightness(0.85); }
  38.74%, 100% { transform: scale(1); filter: none; }
}

/* ---------- Адаптив и «меньше движения» ---------- */


@media (prefers-reduced-motion: reduce) {
  .ks-demo *,
  .ks-demo *::before,
  .ks-demo *::after {
    animation: none !important;
  }

  .ks-scroll { transform: translateY(-318px); }
  .ks-grow { max-height: 300px; opacity: 1; }
  .ks-h-old, .ks-tap, .ks-voice, .ks-ed, .app-dim { opacity: 0 !important; }
  .ks-voice { transform: translateY(110%); }
  .ks-h-new, .ks-badge, .demo-float { opacity: 1; transform: none; }
  .ks-ov-tab { color: var(--ios-blue); }
  .ks-ov-tab svg { color: #956219; }
}

/* ==========================================================================
   Как это работает: сцены шагов (по образцу .notes-path на notes.html)
   ========================================================================== */

.ks-p-seg {
  display: grid;
  width: 100%;
  max-width: 260px;
  grid-template-columns: 0.9fr 1fr 1fr;
  padding: 2px 3px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
}

.ks-p-seg > span {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  color: var(--warm-ink);
  font-size: 12px;
  white-space: nowrap;
}

.ks-p-seg > span.is-on {
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.ks-p-ava {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.ks-p-ava.is-anya { background: #218d89; }
.ks-p-ava.is-misha { background: #7651b0; }

.ks-p-voice {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 12px;
}

/* Волна диктовки — как .notes-path-wave на notes.html */
.notes-path-wave {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 3px;
}

.notes-path-wave span {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--brand-blue);
  animation: notes-path-wave 1.1s ease-in-out infinite;
}

.notes-path-wave span:nth-child(odd) { animation-delay: -0.4s; }
.notes-path-wave span:nth-child(3n) { animation-delay: -0.7s; }

@keyframes notes-path-wave {
  0%, 100% { height: 8px; }
  50% { height: 32px; }
}

.ks-p-wave span {
  background: #ff3b30;
}

.ks-p-say {
  max-width: 26ch;
  color: var(--warm-ink-soft);
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.ks-p-overlap,
.ks-p-chat {
  display: grid;
  width: 100%;
  max-width: 250px;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: var(--warm-paper-strong);
  box-shadow: 0 6px 18px rgba(26, 36, 67, 0.06);
}

.ks-p-ov-head {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0 8px;
  align-items: center;
  margin-bottom: 4px;
}

.ks-p-ov-ico {
  display: grid;
  grid-row: span 2;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #fff2da;
  color: #956219;
}

.ks-p-ov-head b {
  color: var(--warm-ink);
  font-size: 12px;
}

.ks-p-overlap small {
  color: var(--warm-muted);
  font-size: 10.5px;
}

.ks-p-track {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 4px;
  background: #dce5f1;
}

.ks-p-track i,
.ks-p-track em {
  position: absolute;
  top: 0;
  bottom: 0;
}

.ks-p-track i {
  border-radius: 4px;
  background: #218d89;
}

.ks-p-track em {
  background: #b97526;
  animation: ks-p-blink 2.4s ease-in-out infinite;
}

.ks-p-overlap p {
  margin: 4px 0 0;
  color: var(--warm-muted);
  font-size: 10.5px;
}

@keyframes ks-p-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.ks-p-chat {
  gap: 7px;
}

.ks-p-chat small {
  color: var(--warm-muted);
  font-size: 11px;
}

.ks-p-msg {
  justify-self: start;
  max-width: 85%;
  margin: 0;
  padding: 7px 11px;
  border-radius: 14px 14px 14px 4px;
  background: #eef0f3;
  color: var(--warm-ink);
  font-size: 12px;
  line-height: 1.35;
}

.ks-p-msg.is-mine {
  justify-self: end;
  border-radius: 14px 14px 4px 14px;
  background: #007aff;
  color: #fff;
  animation: ks-p-msg 4s ease-out infinite;
}

@keyframes ks-p-msg {
  0%, 30% { opacity: 0; transform: translateY(6px); }
  40%, 100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ks-p-track em,
  .ks-p-msg.is-mine,
  .notes-path-wave span {
    animation: none;
  }
}

/* ==========================================================================
   Два телефона: Лена добавляет занятие и спрашивает в чате, Антон отвечает.
   Корпус, подписи и экран блокировки — как у .wl2 на wishlist.html,
   чат — ListDiscussionSheet (как .dc-sheet на tasks.html).
   Сценарий (--demo-cycle: 40s, 1% = 0.4s):
     0–43%    Лена: «Голосом» → «Новое занятие» → плавание и пересечение
     46%      Лена нажимает чат плавания, пишет «Кто отвезёт Мишу?», 57.5% — отправка
     60–65%   у Антона пуш «Сообщение: Плавание · Миша · 15.10.2026», нажатие
     66–78%   Антон в чате занятия отвечает, 77.5% — отправка
     80.5%    ответ Антона появляется у Лены
   ========================================================================== */

.ks2 {
  min-height: 660px;
}

.ks2-stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: 500px;
  height: 660px;
  transform: translateX(-50%);
  transform-origin: top center;
}

.ks2-phone {
  position: absolute;
  z-index: 2;
  top: 104px;
  width: 224px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 15.7% / 7.4%;
  background: linear-gradient(110deg, #343842 0%, #0a0b0f 28%, #1d2027 69%, #050608 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 0 0 2px rgba(255, 255, 255, 0.07),
    0 30px 40px rgba(8, 28, 80, 0.4);
  animation: ks2-float 5s ease-in-out infinite;
}

.ks2-phone-lena { left: 18px; }
.ks2-phone-anton { right: 18px; animation-delay: -2.5s; }

.ks2-screen {
  position: relative;
  overflow: hidden;
  width: 212px;
  height: 459px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14.1% / 6.5%;
  background: #fff;
  clip-path: inset(0 round 14.1% / 6.5%);
}

.ks2 .app {
  transform: scale(0.5436);
}

.ks2-phone-button {
  position: absolute;
  top: 22.75%;
  right: -2.5px;
  width: 2.5px;
  height: 12.1%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #3d424d, #111319);
}

.ks2-person {
  position: absolute;
  z-index: 3;
  top: 60px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(16, 39, 105, 0.25);
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  transform: translateX(-50%);
}

.ks2-person img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.ks2-person-lena { left: 131px; }
.ks2-person-anton { left: 369px; }

/* Пересечение в этом сценарии не раскрывается */
.ks2 .ks-ov-row,
.ks2 .ks-ov-chev,
.ks2 .ks-ov-body {
  animation: none;
}

/* ---------- Антон: экран блокировки и пуш ---------- */

.ks2-lock {
  z-index: 10;
  background: linear-gradient(165deg, #8fb0ff 0%, #b8a8f2 46%, #ffc9a8 100%);
  color: #fff;
  animation: ks2-lock var(--demo-cycle) ease-in-out infinite;
}

.ks2-lock-date {
  position: absolute;
  top: 104px;
  right: 0;
  left: 0;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.ks2-lock-time {
  position: absolute;
  top: 128px;
  right: 0;
  left: 0;
  font-size: 96px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
}

.ks2-push {
  position: absolute;
  top: 470px;
  right: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px 15px 14px;
  border-radius: 24px;
  background: rgba(250, 250, 252, 0.72);
  box-shadow: 0 14px 34px rgba(30, 20, 80, 0.22);
  backdrop-filter: blur(22px);
  color: #000;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  animation: ks2-push var(--demo-cycle) cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ks2-push img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.ks2-push small {
  display: flex;
  justify-content: space-between;
  color: rgba(60, 60, 67, 0.7);
  font-size: 13px;
}

.ks2-push small b { font-weight: 600; }
.ks2-push small i { font-style: normal; }

.ks2-push > span > b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
}

.ks2-push em {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.3;
}

.ks2-a-chat {
  animation: ks2-a-chat var(--demo-cycle) ease-in-out infinite;
}

.ks2-phone-anton .app-statusbar {
  z-index: 50;
  animation: ks2-sb var(--demo-cycle) step-end infinite;
}

.ks2-phone-anton .app-statusbar > span:first-child {
  animation: ks2-sbtime var(--demo-cycle) step-end infinite;
}

.ks2-phone-anton .app-battery {
  animation: ks2-battery var(--demo-cycle) step-end infinite;
}

/* ---------- Чат занятия (ListDiscussionSheet) ---------- */

.ks-chat {
  position: absolute;
  z-index: 21;
  top: 60px;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  flex-direction: column;
  margin: 0 8px;
  border: 1px solid rgba(216, 218, 222, 0.85);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(253, 253, 254, 0.98), rgba(241, 242, 244, 0.98));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
}

.ks-chat-l {
  transform: translateY(105%);
  animation: ks-chat-l var(--demo-cycle) cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ks-c-grabber {
  display: block;
  width: 36px;
  height: 4px;
  margin: 6px auto 5px;
  border-radius: 999px;
  background: rgba(216, 218, 222, 0.9);
}

.ks-c-head {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  padding: 4px 12px 10px 16px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.16);
  color: var(--ios-blue);
}

.ks-c-head b {
  display: block;
  color: #1f2328;
  font-size: 16px;
  font-weight: 700;
}

.ks-c-head small {
  display: block;
  margin-top: 1px;
  color: #666d76;
  font-size: 11px;
}

.ks-c-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.12);
  color: #666d76;
}

.ks-c-messages {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 12px;
}

.ks-c-empty {
  position: absolute;
  top: 45%;
  right: 0;
  left: 0;
  margin: 0;
  color: #8e8e93;
  font-size: 15px;
  text-align: center;
  animation: ks-c-empty var(--demo-cycle) step-end infinite;
}

.ks-c-msg {
  display: flex;
}

.ks-c-msg.is-mine {
  justify-content: flex-end;
}

.ks-c-msg.is-mine > span {
  max-width: 250px;
  padding: 8px 12px 6px;
  border-radius: 14px;
  background: var(--ios-blue);
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}

.ks-c-msg small {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
  font-size: 11px;
}

.ks-c-msg.is-mine small { color: rgba(255, 255, 255, 0.76); }

.ks-c-msg.is-other {
  align-items: flex-end;
  gap: 8px;
}

.ks-c-msg.is-other img {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.ks-c-msg.is-other b {
  display: block;
  margin: 0 0 3px 4px;
  color: #c2410c;
  font-size: 12px;
  font-weight: 600;
}

.ks-c-msg.is-other div > span {
  display: block;
  max-width: 230px;
  padding: 8px 12px 6px;
  border-radius: 14px;
  background: #e9e9ee;
  color: #1c1c1e;
  font-size: 16px;
  line-height: 1.3;
}

.ks-c-msg.is-other small { color: #aeaeb2; }

.ks-l-ask    { opacity: 0; animation: ks-l-ask var(--demo-cycle) ease-out infinite; }
.ks-l-answer { opacity: 0; animation: ks-l-answer var(--demo-cycle) ease-out infinite; }
.ks-a-answer { opacity: 0; animation: ks-a-answer var(--demo-cycle) ease-out infinite; }

.ks-c-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 8px 12px 14px;
}

.ks-c-input {
  position: relative;
  display: block;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(216, 218, 222, 0.85);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(253, 253, 254, 0.82), rgba(253, 253, 254, 0.58));
  font-size: 17px;
  line-height: 1.3;
}

.ks-c-ph {
  position: absolute;
  top: 9px;
  left: 12px;
  color: #666d76;
}

.ks-l-ph { animation: ks-l-ph var(--demo-cycle) step-end infinite; }
.ks-a-ph { animation: ks-a-ph var(--demo-cycle) step-end infinite; }

.ks-c-typed { color: #1f2328; }
.ks-c-typed span { font-size: 0; opacity: 0; }

.ks-l-typed span:nth-child(1) { animation: ks-lt1 var(--demo-cycle) step-end infinite; }
.ks-l-typed span:nth-child(2) { animation: ks-lt2 var(--demo-cycle) step-end infinite; }
.ks-l-typed span:nth-child(3) { animation: ks-lt3 var(--demo-cycle) step-end infinite; }
.ks-l-typed span:nth-child(4) { animation: ks-lt4 var(--demo-cycle) step-end infinite; }
.ks-a-typed span:nth-child(1) { animation: ks-at1 var(--demo-cycle) step-end infinite; }
.ks-a-typed span:nth-child(2) { animation: ks-at2 var(--demo-cycle) step-end infinite; }
.ks-a-typed span:nth-child(3) { animation: ks-at3 var(--demo-cycle) step-end infinite; }
.ks-a-typed span:nth-child(4) { animation: ks-at4 var(--demo-cycle) step-end infinite; }

.ks-c-send {
  display: grid;
  padding: 4px 10px;
  border: 1.1px solid rgba(159, 202, 255, 0.78);
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.92);
  color: var(--ios-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.ks-l-send { animation: ks-l-send var(--demo-cycle) ease-in-out infinite; }
.ks-a-send { animation: ks-a-send var(--demo-cycle) ease-in-out infinite; }

.ks-step-1 { animation: ks-step-1 var(--demo-cycle) ease-in-out infinite; }
.ks-step-2 { animation: ks-step-2 var(--demo-cycle) ease-in-out infinite; }
.ks-step-3 { animation: ks-step-3 var(--demo-cycle) ease-in-out infinite; }

/* ---------- Keyframes: два телефона и чат ---------- */

@keyframes ks2-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes ks2-lock {
  0%, 66% { opacity: 1; transform: none; }
  67.6%, 98.5% { opacity: 0; transform: scale(1.06); }
  100% { opacity: 1; transform: none; }
}

@keyframes ks2-a-chat {
  0%, 66% { opacity: 0; transform: scale(0.94); }
  67.6%, 98% { opacity: 1; transform: none; }
  99.5%, 100% { opacity: 0; }
}

@keyframes ks2-push {
  0%, 60% { opacity: 0; transform: translateY(24px) scale(0.96); }
  61.6%, 64.4% { opacity: 1; transform: none; }
  65% { opacity: 1; transform: scale(0.96); }
  65.6%, 100% { opacity: 1; transform: none; }
}

@keyframes ks2-sb {
  0% { color: #fff; }
  67% { color: #000; }
}

@keyframes ks2-sbtime {
  0% { opacity: 0; }
  67% { opacity: 1; }
}

@keyframes ks2-battery {
  0% { background: #fff; color: #000; }
  67% { background: #000; color: #fff; }
}

@keyframes ks-chat-l {
  0%, 46.4% { transform: translateY(105%); }
  48.6%, 98% { transform: translateY(0); }
  99.5%, 100% { transform: translateY(105%); }
}

@keyframes ks-c-empty {
  0% { opacity: 1; }
  58% { opacity: 0; }
}

@keyframes ks-l-ph { 0% { opacity: 1; } 49.5% { opacity: 0; } 58% { opacity: 1; } }
@keyframes ks-a-ph { 0% { opacity: 1; } 69.5% { opacity: 0; } 78% { opacity: 1; } }

@keyframes ks-lt1 { 0% { font-size: 0; opacity: 0; } 49.5% { font-size: 17px; opacity: 1; } 58% { font-size: 0; opacity: 0; } }
@keyframes ks-lt2 { 0% { font-size: 0; opacity: 0; } 51.5% { font-size: 17px; opacity: 1; } 58% { font-size: 0; opacity: 0; } }
@keyframes ks-lt3 { 0% { font-size: 0; opacity: 0; } 53.5% { font-size: 17px; opacity: 1; } 58% { font-size: 0; opacity: 0; } }
@keyframes ks-lt4 { 0% { font-size: 0; opacity: 0; } 55.5% { font-size: 17px; opacity: 1; } 58% { font-size: 0; opacity: 0; } }
@keyframes ks-at1 { 0% { font-size: 0; opacity: 0; } 69.5% { font-size: 17px; opacity: 1; } 78% { font-size: 0; opacity: 0; } }
@keyframes ks-at2 { 0% { font-size: 0; opacity: 0; } 71.5% { font-size: 17px; opacity: 1; } 78% { font-size: 0; opacity: 0; } }
@keyframes ks-at3 { 0% { font-size: 0; opacity: 0; } 73.5% { font-size: 17px; opacity: 1; } 78% { font-size: 0; opacity: 0; } }
@keyframes ks-at4 { 0% { font-size: 0; opacity: 0; } 75.5% { font-size: 17px; opacity: 1; } 78% { font-size: 0; opacity: 0; } }

@keyframes ks-l-send {
  0%, 57% { transform: scale(1); filter: none; }
  57.5% { transform: scale(0.9); filter: brightness(0.9); }
  58%, 100% { transform: scale(1); filter: none; }
}

@keyframes ks-a-send {
  0%, 77% { transform: scale(1); filter: none; }
  77.5% { transform: scale(0.9); filter: brightness(0.9); }
  78%, 100% { transform: scale(1); filter: none; }
}

@keyframes ks-l-ask {
  0%, 58% { opacity: 0; transform: translateY(10px); }
  59.2%, 98% { opacity: 1; transform: none; }
  99.5%, 100% { opacity: 0; }
}

@keyframes ks-a-answer {
  0%, 78% { opacity: 0; transform: translateY(10px); }
  79.2%, 98% { opacity: 1; transform: none; }
  99.5%, 100% { opacity: 0; }
}

@keyframes ks-l-answer {
  0%, 80.5% { opacity: 0; transform: translateY(10px); }
  81.7%, 98% { opacity: 1; transform: none; }
  99.5%, 100% { opacity: 0; }
}

@keyframes ks-step-1 {
  0%, 44.5%, 99%, 100% { background: #fff; color: #245ef2; }
  46%, 97.5% { background: transparent; color: rgba(255, 255, 255, 0.76); }
}

@keyframes ks-step-2 {
  0%, 44.5%, 66%, 100% { background: transparent; color: rgba(255, 255, 255, 0.76); }
  46%, 64.5% { background: #fff; color: #245ef2; }
}

@keyframes ks-step-3 {
  0%, 64.5%, 98.5%, 100% { background: transparent; color: rgba(255, 255, 255, 0.76); }
  66%, 97% { background: #fff; color: #245ef2; }
}

@media (max-width: 560px) {
  .ks2 { min-height: 540px; }
  .ks2-stage { transform: translateX(-50%) scale(0.8); }
}

@media (max-width: 420px) {
  .ks2 { min-height: 480px; }
  .ks2-stage { transform: translateX(-50%) scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .ks-chat-l { transform: none; }
  .ks2-lock { opacity: 0 !important; }
  .ks2-a-chat, .ks-l-ask, .ks-l-answer, .ks-a-answer { opacity: 1 !important; }
  .ks-c-empty { opacity: 0 !important; }
}
/* Нажатия (splash): координаты в .app 390×844 */
.ks-tap-voice { top: 773px; left: 185px; --tap-name: ks-tap-voice; }
.ks-tap-ready { top: 536px; left: 195px; --tap-name: ks-tap-ready; }
.ks-tap-check { top: 587px; left: 195px; --tap-name: ks-tap-check; }
.ks-tap-save { top: 754px; left: 195px; --tap-name: ks-tap-save; }
.ks-tap-chat { top: 609px; left: 346px; --tap-name: ks-tap-chat; }
.ks-tap-lsend { top: 801px; left: 345px; --tap-name: ks-tap-lsend; }
.ks-tap-apush { top: 531px; left: 195px; --tap-name: ks-tap-apush; }
.ks-tap-asend { top: 801px; left: 345px; --tap-name: ks-tap-asend; }

@keyframes ks-tap-voice {
  0%, 6.24% { opacity: 0; transform: translate(-50%, -50%) scale(0.16); }
  6.79% { opacity: 0.94; transform: translate(-50%, -50%) scale(1); }
  7.29%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes ks-tap-ready {
  0%, 24.7% { opacity: 0; transform: translate(-50%, -50%) scale(0.16); }
  25.25% { opacity: 0.94; transform: translate(-50%, -50%) scale(1); }
  25.75%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes ks-tap-check {
  0%, 27.95% { opacity: 0; transform: translate(-50%, -50%) scale(0.16); }
  28.5% { opacity: 0.94; transform: translate(-50%, -50%) scale(1); }
  29%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes ks-tap-save {
  0%, 38.35% { opacity: 0; transform: translate(-50%, -50%) scale(0.16); }
  38.9% { opacity: 0.94; transform: translate(-50%, -50%) scale(1); }
  39.4%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes ks-tap-chat {
  0%, 46% { opacity: 0; transform: translate(-50%, -50%) scale(0.16); }
  46.55% { opacity: 0.94; transform: translate(-50%, -50%) scale(1); }
  47.05%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes ks-tap-lsend {
  0%, 57.5% { opacity: 0; transform: translate(-50%, -50%) scale(0.16); }
  58.05% { opacity: 0.94; transform: translate(-50%, -50%) scale(1); }
  58.55%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes ks-tap-apush {
  0%, 65% { opacity: 0; transform: translate(-50%, -50%) scale(0.16); }
  65.55% { opacity: 0.94; transform: translate(-50%, -50%) scale(1); }
  66.05%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes ks-tap-asend {
  0%, 77.5% { opacity: 0; transform: translate(-50%, -50%) scale(0.16); }
  78.05% { opacity: 0.94; transform: translate(-50%, -50%) scale(1); }
  78.55%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

