/* ---------------------------------------------------------
   «Смотрите также» — индекс с живым превью (вариант E).

   Работает поверх .seo-block (seo-blocks.css): берёт оттуда
   заголовок и отступы секции, всё остальное — здесь.
   Подключать ПОСЛЕ seo-blocks.css.

   Разметка:
     section.seo-block.seo-related.related-index[data-related-index]
       .related-index__head
       .related-index__body
         ol.related-index__list > li > a.related-index__row[data-related-key]
           .related-index__row-desc — описание (в строке на телефоне, в панели на десктопе)

   Панель превью (a.related-index__panel > .related-index__stages >
   .related-index__stage > .ri-scene 520×340) строит scripts/related-index.js
   из общего набора сцен и ставит секции класс .has-panel.

   Сцены — в визуальном языке hero-панелей сайта (notes-demo):
   синий градиент, жёлтое свечение, точечная сетка, поверх —
   фрагменты интерфейса приложения и 3D-иллюстрации из images/notes-app.

   Без JS или на телефоне — просто список с описаниями под заголовками.

   Превью показывается только там, где есть наведение и хватает
   ширины. На телефонах и планшетах — компактный список
   с иконками и описаниями.
   --------------------------------------------------------- */

.related-index {
    --ri-ink: #15171c;
    --ri-ink-soft: #3f4551;
    --ri-muted: #717783;
    --ri-accent: #245ef2;
    --ri-ios-blue: #007aff;
    --ri-line: rgba(21, 23, 28, 0.12);
    --ri-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ri-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

/* ---------- Заголовок ---------- */

.related-index__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
    margin-bottom: clamp(22px, 3vw, 40px);
}

.related-index__head .seo-block__title {
    margin: 0;
}

.related-index__sub {
    max-width: 720px;
    margin: -12px 0 clamp(22px, 2.6vw, 34px);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ri-muted);
}

.related-index__count {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: var(--ri-muted);
}

/* ---------- Сетка: список + превью ---------- */

.related-index__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 3.4vw, 56px);
    align-items: center;
}

.related-index__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ri-line);
}

.related-index__list > li {
    margin: 0;
}

/* ---------- Строка ---------- */

.related-index__row {
    position: relative;
    display: grid;
    grid-template-columns: 26px 44px minmax(0, 1fr) auto 40px;
    align-items: center;
    gap: 16px;
    min-height: 80px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--ri-line);
    border-radius: 0;
    color: var(--ri-ink);
    text-decoration: none;
    transition:
        background-color 0.25s var(--ri-ease),
        box-shadow 0.25s var(--ri-ease),
        border-radius 0.25s var(--ri-ease),
        margin 0.25s var(--ri-ease),
        padding 0.25s var(--ri-ease);
}

.related-index__row:focus-visible {
    outline: 2px solid var(--ri-accent);
    outline-offset: 2px;
    border-radius: 20px;
}

.related-index__num {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: var(--ri-muted);
    transition: color 0.2s ease;
}

.related-index__ico {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: saturate(0.9);
    transition:
        transform 0.45s var(--ri-spring),
        filter 0.25s ease;
}

.related-index__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.related-index__title {
    font-size: clamp(18px, 1.75vw, 24px);
    font-weight: 540;
    line-height: 1.2;
    letter-spacing: -0.022em;
    color: var(--ri-ink-soft);
    transition: color 0.2s ease;
}

/* Описание живёт в строке (для поиска и телефонов),
   при панели превью его показывает панель. */
.related-index__row-desc {
    font-size: 14px;
    line-height: 1.45;
    color: var(--ri-muted);
}

.related-index__tag {
    padding: 5px 12px;
    border: 1px solid var(--ri-line);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--ri-ink-soft);
    white-space: nowrap;
}

.related-index__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--ri-muted);
    transition:
        background-color 0.25s var(--ri-ease),
        color 0.2s ease,
        box-shadow 0.25s var(--ri-ease);
}

.related-index__arrow svg {
    width: 19px;
    height: 19px;
}

/* ---------- Панель превью ---------- */

.related-index__panel {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid rgba(216, 218, 222, 0.7);
    border-radius: 34px;
    background: linear-gradient(135deg, #ffffff, #f4f6fa);
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.04),
        0 36px 70px -34px rgba(47, 107, 255, 0.42);
    color: var(--ri-ink);
    text-decoration: none;
}

.related-index__stages {
    --ri-scale: 1;
    position: relative;
    aspect-ratio: 520 / 340;
    border-radius: 26px;
    overflow: hidden;
    background: #2f6bff;
}

.related-index__stage {
    --gx: 10%;
    --gy: 8%;
    position: absolute;
    inset: 0;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at var(--gx) var(--gy), rgba(255, 207, 74, 0.92), transparent 30%),
        radial-gradient(circle at 94% 96%, rgba(136, 169, 149, 0.6), transparent 34%),
        linear-gradient(145deg, #245ef2 0%, #2f6bff 52%, #1d4ed8 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ri-ease);
    pointer-events: none;
}

.related-index__stage::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 1.5px, transparent 2px);
    background-size: 22px 22px;
    content: "";
    -webkit-mask-image: linear-gradient(165deg, rgba(0, 0, 0, 0.95), transparent 78%);
    mask-image: linear-gradient(165deg, rgba(0, 0, 0, 0.95), transparent 78%);
}

.related-index__stage.is-active {
    opacity: 1;
}

.ri-stage--lists    { --gx: 92%; --gy: 6%; }
.ri-stage--payments { --gx: 6%;  --gy: 94%; }
.ri-stage--sync     { --gx: 50%; --gy: -6%; }
.ri-stage--prices   { --gx: 88%; --gy: 10%; }
.ri-stage--weekly   { --gx: 4%;  --gy: 6%; }
.ri-stage--categories { --gx: 96%; --gy: 4%; }
.ri-stage--store    { --gx: 92%; --gy: 92%; }
.ri-stage--loyalty  { --gx: 14%; --gy: 96%; }
.ri-stage--couple   { --gx: 96%; --gy: 96%; }
.ri-stage--dish     { --gx: 8%;  --gy: 6%; }
.ri-stage--aivoice  { --gx: 94%; --gy: 94%; }
.ri-stage--app      { --gx: 8%;  --gy: 94%; }
.ri-stage--support  { --gx: 92%; --gy: 8%; }
.ri-stage--notes    { --gx: 6%;  --gy: 94%; }
.ri-stage--tasks    { --gx: 94%; --gy: 92%; }
.ri-stage--wishlist { --gx: 8%;  --gy: 8%; }
.ri-stage--kids     { --gx: 92%; --gy: 10%; }
.ri-stage--kb       { --gx: 94%; --gy: 90%; }
.ri-stage--calc     { --gx: 6%;  --gy: 92%; }

.related-index__panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 88px;
    padding: 16px 10px 6px 14px;
    box-sizing: border-box;
}

.related-index__desc {
    margin: 0;
    max-width: 330px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ri-ink-soft);
}

.related-index__cta {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3a74ff, #245ef2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 14px 28px -12px rgba(47, 107, 255, 0.7);
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
}

.related-index__cta svg {
    width: 16px;
    height: 16px;
}

/* ---------- Сцена ---------- */

.ri-scene {
    position: absolute;
    top: 0;
    left: 50%;
    width: 520px;
    height: 340px;
    transform: translateX(-50%) scale(var(--ri-scale));
    transform-origin: top center;
    color: #1f2328;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.ri-scene > * {
    position: absolute;
}

.ri-scene img {
    display: block;
}

/* Появление элементов сцены: каскадом по --d */
.ri-pop {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition:
        opacity 0.45s var(--ri-ease) var(--d, 0ms),
        transform 0.6s var(--ri-spring) var(--d, 0ms);
}

.is-active .ri-pop {
    opacity: 1;
    transform: none;
}

/* Белая карточка-шторка приложения */
.ri-glass {
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 245, 248, 0.95));
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 28px 50px -18px rgba(6, 22, 84, 0.55),
        0 6px 14px -6px rgba(6, 22, 84, 0.25);
}

/* Liquid glass поверх синего фона */
.ri-liquid {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12));
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 26px -10px rgba(6, 22, 84, 0.5);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.ri-check {
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ri-ios-blue);
    border-radius: 50%;
    box-sizing: border-box;
}

.ri-check.is-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--ri-ios-blue);
    color: #ffffff;
}

.ri-check.is-on svg {
    width: 10px;
    height: 10px;
}

.ri-face {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #ffffff;
}

/* ---------- 01 · Голос ---------- */

.ri-voice-sheet {
    top: 24px;
    left: 22px;
    width: 264px;
    padding: 14px;
    box-sizing: border-box;
}

.ri-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.ri-x {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.1);
}

.ri-x::before,
.ri-x::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1.6px;
    border-radius: 1px;
    background: var(--ri-ios-blue);
    content: "";
    transform: translate(-50%, -50%) rotate(45deg);
}

.ri-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ri-rec {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 7px;
    border: 1px solid #eceef2;
    border-radius: 14px;
    background: #ffffff;
    font-size: 12px;
}

.ri-rec-mic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffe8e6;
    color: #ff3b30;
}

.ri-rec-mic svg {
    width: 14px;
    height: 14px;
}

.ri-wave {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 2.5px;
    height: 18px;
}

.ri-wave i {
    width: 2.5px;
    height: 16px;
    border-radius: 2px;
    background: #ff3b30;
    transform: scaleY(0.35);
    animation: ri-wave 0.9s ease-in-out infinite;
}

.ri-wave i:nth-child(3n)   { animation-delay: -0.3s; }
.ri-wave i:nth-child(3n+1) { animation-delay: -0.6s; }
.ri-wave i:nth-child(4n)   { animation-duration: 0.7s; }

.ri-rec-time {
    color: #ff3b30;
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ri-transcript {
    min-height: 54px;
    margin: 10px 0;
    padding: 9px 11px;
    border: 1.5px solid rgba(0, 122, 255, 0.45);
    border-radius: 14px;
    background: #ffffff;
    font-size: 12.5px;
    line-height: 1.4;
}

.ri-caret {
    display: inline-block;
    width: 1.5px;
    height: 14px;
    margin-left: 2px;
    background: var(--ri-ios-blue);
    vertical-align: -2px;
    animation: ri-blink 1s steps(1) infinite;
}

.ri-btn-done {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    border-radius: 12px;
    background: var(--ri-ios-blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.ri-btn-done svg {
    width: 14px;
    height: 14px;
}

.ri-ai {
    top: 30px;
    left: 306px;
}

.ri-ai svg {
    width: 14px;
    height: 14px;
    color: #ffd75e;
}

.ri-items {
    top: 86px;
    left: 262px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 238px;
}

.ri-item-card {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 12px;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f5f5f6);
    box-shadow: 0 16px 30px -14px rgba(6, 22, 84, 0.55);
}

.ri-item-card b {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.ri-item-card small {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    color: rgba(60, 60, 67, 0.6);
}

.ri-item-card strong {
    color: #1f2328;
}

.ri-item-card img {
    width: 46px;
    height: 38px;
    object-fit: contain;
}

/* ---------- 02 · Общий список ---------- */

.ri-3d {
    filter: drop-shadow(0 22px 26px rgba(6, 22, 84, 0.45));
}

.ri-3d--basket {
    right: -18px;
    bottom: -26px;
    width: 236px;
    height: 236px;
    rotate: -7deg;
}

.ri-list-card {
    top: 24px;
    left: 24px;
    width: 296px;
    padding: 14px 12px 8px;
    box-sizing: border-box;
}

.ri-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px 10px;
    font-size: 15.5px;
}

.ri-family {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 3px;
    border-radius: 999px;
    background: #fff3cc;
    color: #7a5200;
    font-size: 11px;
    font-weight: 650;
}

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

.ri-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 10px;
    padding: 9px 6px;
    border-top: 1px solid #eef0f3;
    border-radius: 0;
    font-size: 13.5px;
}

.ri-row small {
    font-size: 11.5px;
    color: rgba(60, 60, 67, 0.6);
}

.ri-row.is-done span {
    color: #9a9ca3;
    text-decoration: line-through;
}

.ri-row.is-done {
    grid-template-columns: 18px minmax(0, 1fr) 22px;
}

.ri-row.is-new {
    border-top-color: transparent;
    border-radius: 12px;
    background: rgba(0, 122, 255, 0.09);
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.25);
}

.ri-toast {
    top: 226px;
    left: 44px;
    padding: 6px 14px 6px 6px;
    font-weight: 500;
}

.ri-toast img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.ri-toast b {
    font-weight: 700;
}

/* ---------- 03 · Платежи ---------- */

.ri-3d--calendar {
    top: 54px;
    right: 4px;
    width: 196px;
    height: 191px;
    rotate: 7deg;
}

.ri-push {
    top: 20px;
    left: 22px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 318px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 18px 36px -16px rgba(6, 22, 84, 0.55);
}

.ri-push img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #2f6bff;
}

.ri-push span {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ri-push small {
    font-size: 10.5px;
    color: rgba(60, 60, 67, 0.6);
}

.ri-push b {
    font-size: 13px;
}

.ri-push em {
    font-size: 12px;
    font-style: normal;
    color: rgba(60, 60, 67, 0.75);
}

.ri-pay-card {
    top: 112px;
    left: 22px;
    width: 336px;
    padding: 10px 14px 6px;
    box-sizing: border-box;
}

.ri-pay-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    font-size: 14.5px;
}

.ri-pay-head img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.ri-pay-head small {
    margin-left: auto;
    font-size: 11.5px;
    color: rgba(60, 60, 67, 0.6);
}

.ri-pay-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 64px 22px;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid #eef0f3;
    font-size: 13px;
}

.ri-pay-row em {
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef1f6;
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
    color: #4a5160;
}

.ri-pay-row em.is-soon {
    background: var(--ri-ios-blue);
    color: #ffffff;
}

.ri-pay-row b {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* ---------- 04 · Синхронизация ---------- */

.ri-phone {
    top: 34px;
    width: 152px;
    height: 236px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 32px;
    background: linear-gradient(145deg, #2a2d35, #0d0f13);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 30px 50px -20px rgba(6, 22, 84, 0.7);
}

.ri-phone--left  { left: 66px;  rotate: -6deg; }
.ri-phone--right { right: 66px; rotate: 6deg; top: 26px; }

.ri-phone-screen {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 12px 8px 8px;
    box-sizing: border-box;
    border-radius: 27px;
    background: linear-gradient(180deg, #f6f7fb, #eceef3);
}

.ri-phone-status {
    padding-left: 8px;
    font-size: 9px;
    font-weight: 700;
}

.ri-phone-title {
    padding: 6px 4px 2px;
    font-size: 15px;
    font-weight: 700;
}

.ri-mini {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 6px 0 8px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 11.5px;
    font-weight: 500;
}

.ri-mini .ri-check {
    width: 14px;
    height: 14px;
    border-width: 1.6px;
}

.ri-mini img {
    width: 30px;
    height: 26px;
    margin-left: auto;
    object-fit: contain;
}

.ri-mini.is-done {
    color: #9a9ca3;
    text-decoration: line-through;
}

.ri-mini.is-new {
    box-shadow:
        0 0 0 1.5px rgba(0, 122, 255, 0.6),
        0 6px 14px -4px rgba(0, 122, 255, 0.35);
}

.ri-bubble-face {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 2.5px #ffffff,
        0 10px 20px -6px rgba(6, 22, 84, 0.55);
}

.ri-bubble-face--left  { top: 18px; left: 40px; }
.ri-bubble-face--right { top: 8px;  right: 40px; }

.ri-sync-orb {
    top: 126px;
    left: 236px;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
}

.ri-sync-orb svg {
    width: 22px;
    height: 22px;
}

.ri-synced {
    bottom: 22px;
    left: 50%;
    translate: -50% 0;
}

.ri-synced i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6);
}

/* ---------- 05 · Тарифы ---------- */

.ri-period {
    top: 20px;
    left: 50%;
    translate: -50% 0;
    gap: 2px;
    padding: 4px;
}

.ri-period span {
    padding: 6px 14px;
    border-radius: 999px;
}

.ri-period span.is-on {
    background: #ffffff;
    color: #1f2328;
}

.ri-period em {
    margin-left: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ffcf4a;
    color: #4a3200;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
}

.ri-plan {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ri-plan small {
    font-size: 12px;
    font-weight: 600;
}

.ri-plan b {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.ri-plan em {
    font-size: 11.5px;
    font-style: normal;
}

.ri-plan--side {
    top: 100px;
    width: 148px;
    height: 176px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    backdrop-filter: blur(14px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 18px 34px -16px rgba(6, 22, 84, 0.55);
    color: #ffffff;
}

.ri-plan--side em {
    color: rgba(255, 255, 255, 0.75);
}

.ri-plan--left  { left: 40px;  rotate: -8deg; }
.ri-plan--right { right: 40px; rotate: 8deg; }

.ri-plan--main {
    top: 76px;
    left: 158px;
    width: 204px;
    height: 226px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    background: linear-gradient(160deg, #ffffff, #f2f5fb);
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 34px 60px -22px rgba(6, 22, 84, 0.7);
}

.ri-plan--main small {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(47, 107, 255, 0.1);
    color: #245ef2;
}

.ri-plan--main b {
    margin-top: 14px;
    font-size: 34px;
}

.ri-plan--main em {
    color: rgba(60, 60, 67, 0.6);
}

.ri-plan-family {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e8ebf1;
    font-size: 12px;
    font-weight: 600;
    color: #3f4551;
}

.ri-faces {
    display: flex;
}

.ri-faces img,
.ri-faces i {
    width: 24px;
    height: 24px;
    margin-left: -7px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #ffffff;
}

.ri-faces img:first-child {
    margin-left: 0;
}

.ri-faces i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffcf4a;
    color: #4a3200;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

/* ---------- 06 · Неделя ---------- */

.ri-3d--week {
    right: 2px;
    bottom: 4px;
    width: 176px;
    height: 176px;
    rotate: 8deg;
}

.ri-days {
    top: 22px;
    left: 22px;
    gap: 2px;
    padding: 4px;
}

.ri-days span {
    position: relative;
    width: 30px;
    padding: 6px 0;
    border-radius: 999px;
    font-size: 11.5px;
    text-align: center;
}

.ri-days span.is-on {
    background: #ffffff;
    color: #1f2328;
}

.ri-days span.has-dot::after {
    position: absolute;
    bottom: 1px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffcf4a;
    content: "";
    translate: -50% 0;
}

.ri-week-card {
    top: 72px;
    left: 22px;
    width: 312px;
    padding: 14px 12px 12px;
    box-sizing: border-box;
}

.ri-week-day {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 4px 7px;
    border-top: 1px solid #eef0f3;
    font-size: 13px;
}

.ri-week-day small {
    margin-left: auto;
    font-size: 11.5px;
    color: rgba(60, 60, 67, 0.6);
}

.ri-day-chip {
    padding: 3px 8px;
    border-radius: 8px;
    background: #eef1f6;
    color: #4a5160;
    font-size: 11px;
    font-weight: 700;
}

.ri-day-chip.is-main {
    background: var(--ri-ios-blue);
    color: #ffffff;
}

.ri-thumbs {
    display: flex;
    gap: 6px;
    padding: 2px 4px 8px;
}

.ri-thumbs span {
    position: relative;
    display: grid;
    width: 54px;
    height: 44px;
    place-items: center;
    border: 1px solid #e9ebef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ri-thumbs img {
    width: 40px;
    height: 34px;
    object-fit: contain;
}

.ri-thumbs span.is-done img {
    opacity: 0.35;
}

.ri-thumbs span.is-done::after {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-sizing: border-box;
    background: var(--ri-ios-blue);
    content: "";
}

.ri-thumbs span.is-new {
    box-shadow:
        0 0 0 1.5px rgba(0, 122, 255, 0.6),
        0 6px 14px -4px rgba(0, 122, 255, 0.35);
}

.ri-text-chips {
    display: flex;
    gap: 6px;
    padding: 2px 4px 0;
}

.ri-text-chips span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f3f7;
    font-size: 12px;
    font-weight: 500;
}

.ri-toast--week {
    top: 22px;
    right: 22px;
    left: auto;
}

/* ---------- 07 · Категории и метки ---------- */

.ri-3d--cats {
    right: 4px;
    bottom: 8px;
    width: 172px;
    height: 159px;
    rotate: 7deg;
}

.ri-ai--cats {
    top: 24px;
    right: 14px;
    left: auto;
    padding: 7px 11px;
    font-size: 12px;
}

.ri-cat-card {
    top: 22px;
    left: 22px;
    width: 300px;
    padding: 14px 12px 10px;
    box-sizing: border-box;
}

.ri-list-head small {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(60, 60, 67, 0.6);
}

.ri-filters {
    display: flex;
    gap: 5px;
    padding: 0 2px 6px;
}

.ri-filters span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f3f7;
    color: #4a5160;
    font-size: 11px;
    font-weight: 600;
}

.ri-filters span.is-on {
    background: #1f2328;
    color: #ffffff;
}

.ri-filters i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ri-filters .t-orange { background: #ff9f0a; }
.ri-filters .t-purple { background: #af52de; }
.ri-filters .t-green  { background: #34c759; }

.ri-cat-title {
    padding: 8px 4px 3px;
    color: #8a8f99;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ri-cat-title em {
    margin-left: 3px;
    color: #b0b4bc;
    font-style: normal;
}

.ri-tag-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 4px;
    font-size: 13px;
}

.ri-tag-row img {
    width: 30px;
    height: 26px;
    object-fit: contain;
}

.ri-tag {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
}

.ri-tag.t-orange { background: #fff0db; color: #9a5300; }
.ri-tag.t-purple { background: #f4e6fb; color: #7b2fa3; }
.ri-tag.t-green  { background: #e3f6e8; color: #1f7a45; }

/* ---------- 08 · В магазине ---------- */

.ri-store-card {
    top: 22px;
    left: 22px;
    width: 302px;
    padding: 14px 12px 10px;
    box-sizing: border-box;
}

.ri-progress {
    height: 6px;
    margin: 0 4px 2px;
    overflow: hidden;
    border-radius: 3px;
    background: #e8ebf1;
}

.ri-progress i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #34c759, #30d158);
}

.ri-store-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
}

.ri-store-row img {
    width: 40px;
    height: 32px;
    object-fit: contain;
}

.ri-store-row.is-done span {
    color: #9a9ca3;
    text-decoration: line-through;
}

.ri-store-row.is-done img {
    opacity: 0.45;
}

.ri-store-row.is-current {
    background: rgba(0, 122, 255, 0.09);
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.25);
}

.ri-ring {
    top: 34px;
    left: 346px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 152px;
    height: 152px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 40px;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 18px 34px -14px rgba(6, 22, 84, 0.55);
    color: #ffffff;
}

.ri-ring svg {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    rotate: -90deg;
}

.ri-ring circle {
    fill: none;
    stroke-width: 8;
}

.ri-ring-bg {
    stroke: rgba(255, 255, 255, 0.25);
}

.ri-ring-fg {
    stroke: #ffcf4a;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1.1s var(--ri-ease) 0.35s;
}

.is-active .ri-ring-fg {
    stroke-dashoffset: 117; /* 5 из 9 */
}

.ri-ring b {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.ri-ring b small {
    font-size: 18px;
    opacity: 0.7;
}

.ri-ring span {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.85;
}

.ri-next {
    top: 210px;
    left: 346px;
}

.ri-next svg {
    width: 14px;
    height: 14px;
}

/* ---------- 09 · Карты лояльности ---------- */

.ri-3d--cards {
    top: 40px;
    right: 6px;
    width: 204px;
    height: 136px;
    rotate: 10deg;
}

.ri-lcard {
    display: flex;
    justify-content: flex-end;
    width: 250px;
    height: 156px;
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 24px 40px -18px rgba(6, 22, 84, 0.6);
    color: #ffffff;
    font-size: 15px;
}

.ri-lcard--back {
    top: 14px;
    left: 58px;
    rotate: -8deg;
    background: linear-gradient(135deg, #34c759, #1f9d55);
}

.ri-lcard--mid {
    top: 44px;
    left: 78px;
    rotate: -3deg;
    background: linear-gradient(135deg, #ffd65e, #f5a524);
    color: #4a3200;
}

.ri-lcard--front {
    top: 86px;
    left: 98px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(160deg, #ffffff, #f2f5fb);
    color: #1f2328;
}

.ri-lcard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ri-barcode {
    height: 50px;
    border-radius: 6px;
    background: repeating-linear-gradient(90deg,
        #1f2328 0 2px, transparent 2px 4px,
        #1f2328 4px 5px, transparent 5px 8px,
        #1f2328 8px 11px, transparent 11px 12px,
        #1f2328 12px 13px, transparent 13px 16px);
}

.ri-lcard-num {
    color: #4a5160;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.14em;
    text-align: center;
}

.ri-bright {
    top: 266px;
    left: 118px;
}

.ri-bright svg {
    width: 15px;
    height: 15px;
    color: #ffd75e;
}


/* ---------- 10 · Пара ---------- */

.ri-duo-card {
    top: 26px;
    left: 22px;
    width: 268px;
    padding: 14px 12px 8px;
    box-sizing: border-box;
}

.ri-duo-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 10px;
}

.ri-duo-head > span:last-child {
    display: flex;
    flex-direction: column;
}

.ri-duo-head b {
    font-size: 14.5px;
}

.ri-duo-head small {
    font-size: 11.5px;
    color: rgba(60, 60, 67, 0.6);
}

.ri-duo-card .ri-row {
    grid-template-columns: 18px minmax(0, 1fr) auto;
}

.ri-chat-dot {
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 4px;
    background: var(--ri-ios-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}

.ri-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ri-msg--in {
    top: 34px;
    left: 312px;
}

.ri-msg--out {
    top: 164px;
    right: 22px;
}

.ri-msg-face {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #ffffff;
}

.ri-msg-bubble {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px 13px;
    border-radius: 18px 18px 18px 6px;
    background: #ffffff;
    box-shadow: 0 16px 30px -14px rgba(6, 22, 84, 0.55);
    font-size: 13px;
    font-weight: 500;
}

.ri-msg--out .ri-msg-bubble {
    border-radius: 18px 18px 6px 18px;
    background: var(--ri-ios-blue);
    color: #ffffff;
}

.ri-msg-photo {
    display: grid;
    width: 128px;
    height: 86px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff6e5, #f6efe2);
}

.ri-msg-photo img {
    width: 82px;
    height: 72px;
    object-fit: contain;
}

.ri-nodup {
    top: 214px;
    left: 40px;
}

.ri-3d--chat {
    right: 18px;
    bottom: 8px;
    width: 112px;
    height: 112px;
    rotate: -8deg;
}

.ri-nodup .ri-check.is-on {
    width: 16px;
    height: 16px;
    background: #34c759;
}

/* ---------- 11 · Блюдо и шаблон ---------- */

.ri-3d--recipes {
    right: -6px;
    bottom: 22px;
    width: 206px;
    height: 206px;
    rotate: 8deg;
}

.ri-dish-card {
    top: 22px;
    left: 22px;
    width: 286px;
    padding: 14px 12px 12px;
    box-sizing: border-box;
}

.ri-helper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(47, 107, 255, 0.1);
    color: #245ef2;
    font-size: 11px;
    font-weight: 650;
}

.ri-helper svg {
    width: 12px;
    height: 12px;
}

.ri-ing {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-top: 1px solid #eef0f3;
    font-size: 13.5px;
}

.ri-ing small {
    font-size: 11.5px;
    color: rgba(60, 60, 67, 0.6);
}

.ri-ing.is-off span {
    color: #9a9ca3;
}

.ri-ing.is-off small {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff3cc;
    color: #7a5200;
    font-weight: 600;
}

.ri-btn-add {
    margin-top: 8px;
}

.ri-template {
    top: 28px;
    left: 326px;
}

.ri-template svg {
    width: 14px;
    height: 14px;
    color: #ffd75e;
}

/* ---------- 11a · База знаний и калькулятор (вёрстка как у «Блюда») ---------- */

.ri-3d--kb {
    right: 2px;
    bottom: 14px;
    width: 180px;
    height: 180px;
    rotate: -6deg;
}

.ri-3d--calc {
    right: 0;
    bottom: 20px;
    width: 190px;
    height: 190px;
    rotate: 6deg;
}

.ri-kb-offline,
.ri-calc-note {
    top: 28px;
    left: 326px;
}

.ri-kb-offline svg,
.ri-calc-note svg {
    color: #ffd75e;
}

/* ---------- 12 · ИИ-голос: разбор фразы ---------- */

.ri-phrase {
    top: 22px;
    left: 22px;
    width: 476px;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 22px;
    box-sizing: border-box;
    white-space: normal;
}

.ri-phrase-mic {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #ff3b30;
    box-shadow: 0 0 0 6px rgba(255, 59, 48, 0.18);
}

.ri-phrase-mic svg {
    width: 20px;
    height: 20px;
}

.ri-phrase p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.ri-phrase mark {
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ri-ios-blue);
    font-weight: 700;
}

.ri-phrase mark.is-pack {
    background: #ffcf4a;
    color: #4a3200;
}

.ri-parse-orb {
    top: 100px;
    left: 236px;
}

.ri-sync-orb.ri-parse-orb svg {
    width: 20px;
    height: 20px;
    color: #ffd75e;
    animation: none;
}

.ri-parse-card {
    top: 162px;
    left: 22px;
    width: 476px;
    padding: 8px 14px;
    box-sizing: border-box;
}

.ri-parse-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 76px 92px;
    align-items: center;
    gap: 12px;
    padding: 7px 4px;
    border-top: 1px solid #eef0f3;
    font-size: 14px;
}

.ri-parse-row--head {
    padding: 4px;
    border-top: 0;
    color: #8a8f99;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ri-parse-row b {
    font-weight: 600;
}

.ri-parse-row em {
    justify-self: start;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--ri-ios-blue);
    font-size: 12.5px;
    font-style: normal;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ri-parse-row em.is-pack {
    background: #fff3cc;
    color: #7a5200;
}

/* ---------- 13 · Приложение ---------- */

.ri-phone--app {
    top: 26px;
    left: 64px;
    width: 178px;
    height: 386px;
    rotate: -6deg;
}

.ri-phone-screen--shot {
    padding: 0;
    overflow: hidden;
    background: #f2f2f7;
}

.ri-phone-screen--shot img {
    width: 100%;
    height: auto;
}

.ri-app-badge {
    top: 34px;
    left: 270px;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 20px;
}

.ri-app-badge img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ffffff;
}

.ri-app-badge span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ri-app-badge b {
    font-size: 14.5px;
}

.ri-app-badge small {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
}

.ri-platform {
    left: 300px;
}

.ri-platform svg {
    width: 15px;
    height: 15px;
}

.ri-platform--1 { top: 122px; }
.ri-platform--2 { top: 170px; left: 318px; }
.ri-platform--3 { top: 218px; left: 336px; }

/* ---------- 14 · Поддержка ---------- */

.ri-3d--help {
    right: 6px;
    bottom: 10px;
    width: 170px;
    height: 170px;
    rotate: 8deg;
}

.ri-ai--help {
    top: 28px;
    right: 14px;
    left: auto;
    padding: 7px 11px;
    font-size: 12px;
}

.ri-mail-card {
    top: 22px;
    left: 22px;
    width: 296px;
    padding: 14px 14px 12px;
    box-sizing: border-box;
}

.ri-mail-field {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-top: 1px solid #eef0f3;
    font-size: 13px;
}

.ri-mail-field span {
    font-size: 12px;
    color: rgba(60, 60, 67, 0.6);
}

.ri-mail-field b {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ri-mail-attach {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 2px 2px;
    border-top: 1px solid #eef0f3;
}

.ri-mail-attach span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
    background: #f1f3f7;
    font-size: 11.5px;
    font-weight: 600;
    color: #3f4551;
}

.ri-mail-attach .ri-check.is-on {
    width: 16px;
    height: 16px;
    background: #34c759;
}

/* ---------- 15 · Голосовые заметки ---------- */

.ri-note-card {
    top: 24px;
    left: 22px;
    width: 260px;
    padding: 14px;
    box-sizing: border-box;
}

.ri-note-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ri-note-meta small {
    font-size: 11.5px;
    color: rgba(60, 60, 67, 0.6);
}

.ri-note-card p {
    margin: 10px 0 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.ri-ai--notes {
    top: 172px;
    left: 34px;
}

.ri-create-card {
    top: 70px;
    right: 22px;
    width: 216px;
    padding: 14px 12px 12px;
    box-sizing: border-box;
}

.ri-create-title {
    display: block;
    padding: 0 4px 10px;
    font-size: 14px;
}

.ri-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ri-create-grid span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 8px;
    border: 1px solid #e9ebef;
    border-radius: 16px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.ri-create-grid img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.ri-create-grid span.is-on {
    border-color: rgba(0, 122, 255, 0.45);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), #ffffff);
    box-shadow: 0 8px 18px -8px rgba(0, 122, 255, 0.5);
}

/* ---------- 16 · Дела: праздник ---------- */

.ri-3d--cake {
    right: -6px;
    bottom: -22px;
    width: 220px;
    height: 220px;
    rotate: 6deg;
}

.ri-holiday-card {
    width: 300px;
    padding: 14px 14px 14px;
}

.ri-holiday-meta {
    display: flex;
    gap: 6px;
    padding: 2px 4px 12px;
}

.ri-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f2f4;
    color: #66707c;
    font-size: 11px;
    font-weight: 650;
}

.ri-chip svg {
    width: 12px;
    height: 12px;
}

.ri-chip.is-purple {
    background: #f1ebf9;
    color: #8b5cc7;
}

.ri-holiday-wish {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(139, 92, 199, 0.09);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 199, 0.22);
    color: #8b5cc7;
    font-size: 13px;
    font-weight: 650;
}

.ri-holiday-wish svg {
    width: 15px;
    height: 15px;
}

.ri-holiday-wish i {
    margin-left: auto;
    font-size: 18px;
    font-style: normal;
    line-height: 1;
}

.ri-toast--secret {
    top: 200px;
}

/* ---------- 17 · Список желаний ---------- */

.ri-3d--gift {
    top: 92px;
    right: -14px;
    width: 196px;
    height: 196px;
    rotate: 8deg;
}

.ri-wish-card {
    width: 318px;
}

.ri-wish-card .ri-face {
    width: 26px;
    height: 26px;
}

.ri-wish-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-top: 1px solid #eef0f3;
    font-size: 13px;
}

.ri-wish-row img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.ri-wish-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ri-wish-row em {
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef1f6;
    color: #4a5160;
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
}

.ri-wish-row.is-new {
    border-top-color: transparent;
    border-radius: 12px;
    background: rgba(0, 122, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.22);
}

.ri-wish-row.is-new em {
    background: #005bff;
    color: #ffffff;
}

.ri-wish-row.is-done span {
    color: #9a9ca3;
    text-decoration: line-through;
}

.ri-wish-row.is-done em {
    background: #e8f6ec;
    color: #248a3d;
}

/* ---------- 18 · Расписание детей ---------- */

.ri-3d--kids {
    right: -10px;
    bottom: -18px;
    width: 200px;
    height: 200px;
    rotate: -6deg;
}

.ri-kids-card {
    width: 300px;
}

.ri-kid {
    display: inline-grid;
    width: 26px;
    height: 26px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.ri-kid.is-misha { background: #7651b0; }
.ri-kid.is-anya { background: #218d89; }

.ri-kids-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-top: 1px solid #eef0f3;
    font-size: 13px;
    font-weight: 600;
}

.ri-kids-row em {
    color: #66707c;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.ri-kids-row.is-new {
    border-top-color: transparent;
    border-radius: 12px;
    background: rgba(118, 81, 176, 0.09);
    box-shadow: inset 0 0 0 1px rgba(118, 81, 176, 0.26);
}

.ri-toast--kids {
    top: 296px;
}

.ri-toast--kids b {
    color: #956219;
}

/* ---------- Анимации (только у активной сцены) ---------- */

@keyframes ri-wave {
    0%, 100% { transform: scaleY(0.3); }
    50%      { transform: scaleY(1); }
}

@keyframes ri-blink {
    50% { opacity: 0; }
}

@keyframes ri-spin {
    to { transform: rotate(360deg); }
}

@keyframes ri-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

@keyframes ri-incoming {
    0%, 30%  { background: rgba(0, 122, 255, 0.16); }
    100%     { background: #ffffff; }
}

.ri-sync-orb svg {
    animation: ri-spin 2.6s linear infinite;
}

.ri-synced i {
    animation: ri-pulse 1.8s ease-out infinite;
}

.ri-mini.is-incoming {
    animation: ri-incoming 2.4s ease-out infinite;
}

.related-index__stage:not(.is-active) .ri-wave i,
.related-index__stage:not(.is-active) .ri-caret,
.related-index__stage:not(.is-active) .ri-sync-orb svg,
.related-index__stage:not(.is-active) .ri-synced i,
.related-index__stage:not(.is-active) .ri-mini.is-incoming {
    animation-play-state: paused;
}

/* ---------- Активная строка (десктоп с мышью) ---------- */

@media (min-width: 901px) and (hover: hover) {
    .related-index.has-panel .related-index__body {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .related-index.has-panel .related-index__row-desc {
        display: none;
    }

    .related-index__row.is-active {
        margin: 0 -12px;
        padding: 12px 20px;
        border-bottom-color: transparent;
        border-radius: 22px;
        background: #ffffff;
        box-shadow:
            0 1px 0 rgba(21, 23, 28, 0.03),
            0 18px 38px -18px rgba(47, 107, 255, 0.35);
    }

    .related-index__row.is-active .related-index__num {
        color: var(--ri-accent);
    }

    .related-index__row.is-active .related-index__ico {
        filter: none;
        transform: scale(1.12) rotate(-6deg);
    }

    .related-index__row.is-active .related-index__title {
        font-weight: 640;
        color: var(--ri-ink);
    }

    .related-index__row.is-active .related-index__arrow {
        background: linear-gradient(180deg, #3a74ff, #245ef2);
        box-shadow: 0 10px 20px -8px rgba(47, 107, 255, 0.7);
        color: #ffffff;
    }
}

/* ---------- Без превью: узкий экран или сенсорный ввод ---------- */

@media (max-width: 900px), (hover: none) {
    .related-index__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .related-index__panel {
        display: none;
    }
}

@media (max-width: 580px) {
    .related-index__row {
        grid-template-columns: 44px minmax(0, 1fr) 22px;
        gap: 14px;
        min-height: 72px;
        padding: 14px 4px;
    }

    .related-index__num,
    .related-index__tag {
        display: none;
    }

    .related-index__ico {
        align-self: start;
        filter: none;
    }

    .related-index__title {
        font-size: 17px;
        font-weight: 600;
        color: var(--ri-ink);
    }

    .related-index__arrow {
        width: 22px;
        height: 22px;
    }

    .related-index__arrow svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-index__row,
    .related-index__num,
    .related-index__ico,
    .related-index__title,
    .related-index__arrow,
    .related-index__stage,
    .ri-pop {
        transition: none;
    }

    .ri-wave i,
    .ri-caret,
    .ri-sync-orb svg,
    .ri-synced i,
    .ri-mini.is-incoming {
        animation: none;
    }

    .ri-wave i {
        transform: scaleY(0.6);
    }

    .ri-ring-fg {
        transition: none;
    }
}
