/* tv.css — проба «вид сверху» (Режиссёр #1929, правка Rasl 26.11): камера с K0 поднимается над столом, кошка делает маникюр, по прокрутке ценники.
   Холст стола 1000×1300 (единицы — как в tv.js), подгоняется по высоте коробки; двигаются только transform и opacity. */
.tv { --ink: var(--tush); --ink-muted: #0E241D; color: var(--tush); position: absolute; z-index: 3; overflow: hidden; pointer-events: none; visibility: hidden; contain: layout paint; }
.tv.is-on { visibility: visible; }
/* телефон: молоко растёт от верха острова над тёмным полем заголовка (без полупрозрачного молока на чёрном) */
.tv__wash { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--milk); transform-origin: 50% 100%; transform: scaleY(0); }
.tv__wash--b { transform-origin: 50% 0; }
.tv__cam { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 40%; }
.tv__plane { position: absolute; left: 0; top: 0; width: 1000px; height: 1300px; transform-origin: 0 0; }
.tv__turn { position: absolute; inset: 0; transform-origin: 50% 50%; backface-visibility: hidden; }
/* стол шире холста: молоко уходит за края коробки при любом её размере */
.tv__table { position: absolute; inset: -60% -80%; background: var(--milk); }
.tv__props { position: absolute; left: 0; top: 0; width: 1000px; height: 1300px; overflow: visible; }
.tv__art { position: absolute; display: block; max-width: none; user-select: none; }
.tv__paw { position: absolute; left: 0; top: 0; width: 1000px; height: 1300px; }
.tv__cat { position: absolute; left: 0; top: 0; width: 1000px; height: 1300px; }
.tv__arm { position: absolute; }
.tv__bone { position: absolute; height: 300px; background: 0 0 / 100% 100% no-repeat; transform-origin: 50% 100%; transform: scaleY(0); }   /* выдвижение лапы: сечение самой лапы, растянутое по длине — без шва и ступеньки */
.tv__grip { position: absolute; width: 0; height: 0; }   /* хват у подушечки: поворот = второй сустав */
.tv__tool { position: absolute; display: block; overflow: visible; max-width: none; }   /* хват нулевой ширины: общий max-width:100% сжал бы инструмент в ноль */

/* ноготь: обёртка стоит по пальцу (поворот не меняется), внутри — слои стадий */
.nl { position: absolute; }
.nl > i { position: absolute; inset: 0; border-radius: 34% 34% 26% 26% / 30% 30% 22% 22%; }
.nl__o { background: #EADBC9; border: 3px solid rgba(21,18,20,.55); inset: -38% -6% 30% !important; border-radius: 40% 55% 20% 20% / 60% 70% 20% 20% !important; }   /* старый отросший край */
.nl__c { background: radial-gradient(120% 90% at 35% 25%, #4F8A75 0, #2E5E50 45%, #1D4035 100%); box-shadow: inset 0 0 0 2px rgba(21,18,20,.5); }
.nl__x { inset: -78% 0 30% !important; background: linear-gradient(#F6F0E7 0 34%, #2E5E50 70%); box-shadow: inset 0 0 0 2px rgba(21,18,20,.5); border-radius: 50% 50% 18% 18% / 62% 62% 10% 10% !important; transform-origin: 50% 100%; }
.nl__s { inset: 14% 34% 22% 40% !important; border-radius: 50% !important; background: linear-gradient(#fff, rgba(255,255,255,.2)); }

/* круг «только здесь» — пальчики, пяточки */
.tv__ring { position: absolute; border: 3px dashed var(--accent-day, #2E5E50); border-radius: 50%; }

/* ценники лежат на столе — плоский слой поверх холста */
.tv__tags { position: absolute; margin: 0; padding: 0; list-style: none; }
.tv .tag { --w: auto; position: absolute; left: 0; right: 0; width: auto; transform-origin: 30% 20%; }
.tv .tag::before { display: none; }
.tv .tag__card { padding: .7em .9em .65em; text-align: left; border-radius: 6px 6px 14px 6px; font-size: 15px; box-shadow: 0 10px 22px -12px rgba(21,18,20,.45); }
.tv .tag__card::before { top: .75em; left: auto; right: .7em; margin: 0; width: 9px; height: 9px; }
.tv .tag__name { padding-right: 16px; font-size: 14px; }
.tv .tag__price--sum { font-size: 21px; }
html.scene .tv .tag { opacity: 0; transform: none; }

html.scene .tv__wash, html.scene .tv .tag, html.scene .tv .nl > i, html.scene .tv__arm, html.scene .tv__grip, html.scene .tv__tool, html.scene .tv__paw, html.scene .tv__ring { will-change: transform, opacity; }

/* пилка подпиливает, кисть мажет — петли на видеокарте, пока шаг стоит */
.tv.is-file .tv__tool--file { animation: tvFile .36s ease-in-out infinite alternate; }
@keyframes tvFile { from { transform: translate(-6px, 4px); } to { transform: translate(6px, -4px); } }

/* проба: K0 — только первый кадр (кошка пилит), его ценники — в виде сверху */
html.scene .hero .desk__tags { display: none; }
html.scene.tv-on .hero { height: calc(var(--hs) * (1 + var(--tv-run, 2.1) + .3)); }

@media (max-width: 900px) {
  .tv .tag__card { font-size: 13px; padding: .6em .7em .55em; }
  .tv .tag__name { font-size: 12.5px; }
  .tv .tag__price--sum { font-size: 18px; }
}
@media (max-width: 900px) and (max-height: 700px) { .tv .tag__card { padding: .45em .7em .4em; } .tv .tag__price--sum { font-size: 16px; } }

/* reduced-motion: вид сверху без хода — остров под первым экраном (руки в изумруде) и все цены списком рядом */
.tv-still { --ink: var(--tush); --ink-muted: #0E241D; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-5); padding: var(--space-6) var(--gutter); background: var(--milk); color: var(--tush); overflow: hidden; }
.tv-still .tv { position: relative; inset: auto; visibility: visible; width: 100%; aspect-ratio: 1000 / 920; max-height: 80svh; }
.tv-still .tv__tags { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tv-still .tag { position: static; left: auto; width: auto; transform: none !important; opacity: 1 !important; visibility: visible !important; }
.tv-still .tag::before { display: none; }
.tv-still .tag__card { padding: .7em .9em; text-align: left; border-radius: 6px 6px 14px 6px; }
@media (max-width: 900px) { .tv-still { grid-template-columns: 1fr; padding-block: var(--space-5); } .tv-still .tv__tags { grid-template-columns: 1fr 1fr; } }
.tv-still .tag__name { font-size: 13px; }
.tv-still .tag__price { font-size: clamp(16px, 1.5vw, 21px); white-space: nowrap; }
.tv-still .tag__card::before { left: auto; right: .8em; top: .8em; margin: 0; }
