/* Сцены услуг: мокапы интерфейсов маркетплейсов и склада.
   Три кадра по 250px внутри карточек услуг на главной.
   Каждая сцена показывает одно изменение:
   1) карточка получает отзыв и рейтинг 5.0;
   2) коробка проходит приёмку, маркировку и отгрузку;
   3) наша карточка встаёт первой в полке «Смотрите также». */

:root {
  --box-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 74'%3E %3Cdefs%3E %3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23F1CD9A'/%3E%3Cstop offset='1' stop-color='%23D6A569'/%3E%3C/linearGradient%3E %3ClinearGradient id='l' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23C38F4D'/%3E%3Cstop offset='1' stop-color='%23A46E2C'/%3E%3C/linearGradient%3E %3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23E3B073'/%3E%3Cstop offset='1' stop-color='%23C08941'/%3E%3C/linearGradient%3E %3CclipPath id='topface'%3E%3Cpath d='M40 2 76 20 40 38 4 20Z'/%3E%3C/clipPath%3E %3C/defs%3E %3Cpath d='M4 20 40 38 40 72 4 54Z' fill='url%28%23l%29'/%3E %3Cpath d='M76 20 40 38 40 72 76 54Z' fill='url%28%23r%29'/%3E %3Cpath d='M40 2 76 20 40 38 4 20Z' fill='url%28%23t%29'/%3E %3Cg clip-path='url%28%23topface%29'%3E%3Crect x='2' y='16.5' width='76' height='7' fill='%23F6EDD8' opacity='.62'/%3E%3C/g%3E %3Cpath d='M4 20 40 38 76 20' fill='none' stroke='%238A5A20' stroke-opacity='.32' stroke-width='1'/%3E %3Cpath d='M40 38 40 72' stroke='%238A5A20' stroke-opacity='.22' stroke-width='1'/%3E %3Cpath d='M40 2 4 20 4 54 40 72 76 54 76 20Z' fill='none' stroke='%2380501B' stroke-opacity='.35' stroke-width='1'/%3E %3Cpath d='M20 29 20 62' stroke='%238A5A20' stroke-opacity='.14' stroke-width='1'/%3E %3C/svg%3E");
  --heart-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E93A4' stroke-width='2'%3E %3Cpath d='M12 20s-7-4.4-7-9.4A4 4 0 0 1 12 8a4 4 0 0 1 7 2.6c0 5-7 9.4-7 9.4z'/%3E%3C/svg%3E");
  --cart-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M3 5h2.2l2.3 10.5h9.4L19 8H6'/%3E%3Ccircle cx='9' cy='19' r='1.6'/%3E%3Ccircle cx='17' cy='19' r='1.6'/%3E%3C/svg%3E");
  --home-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11 12 4l8 7v8a1 1 0 0 1-1 1h-4v-6H9v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  --grid-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.6'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.6'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.6'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.6'/%3E%3C/svg%3E");
  --cart-dark-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h2.2l2.3 10.5h9.4L19 8H6'/%3E%3Ccircle cx='9' cy='19' r='1.6'/%3E%3Ccircle cx='17' cy='19' r='1.6'/%3E%3C/svg%3E");
  --user-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.6'/%3E%3Cpath d='M5 20c1.3-4.2 3.8-6 7-6s5.7 1.8 7 6'/%3E%3C/svg%3E");
  --wb: #CB11AB;
  --wb-deep: #7A1EA1;
  --oz: #005BFF;
  --star: #FFC800;
}

.scene {
  position: relative;
  overflow: hidden;
  height: 250px;
  background:
    radial-gradient(180px 90px at 75% 12%, rgba(205, 176, 122, .26), transparent 60%),
    linear-gradient(180deg, #1A2234 0%, #0C1220 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -48px 60px rgba(0, 0, 0, .28);
}
.scene .studio-glow { width: 180px; height: 180px; top: -20px; }
.scene img { display: block; }

/* Общий «звёздный» контур: одна фигура на все рейтинги */
.scene .st {
  display: block;
  background: var(--star);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ============ 1. Отзывы и рейтинг: карточка товара ============ */
.s-promo .wbc {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 13px;
  height: 122px;
  display: flex;
  gap: 10px;
  padding: 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .34);
}
.s-promo .wbc-pic {
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  height: 100px;
  border-radius: 9px;
  overflow: hidden;
  background: #F4F5F8;
}
.s-promo .wbc-pic img { width: 100%; height: 100%; object-fit: cover; }
.s-promo .wbc-like {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92) var(--heart-svg) center / 10px no-repeat;
}
.s-promo .wbc-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  display: flex;
  justify-content: center;
  gap: 3px;
}
.s-promo .wbc-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(18, 18, 23, .2); }
.s-promo .wbc-dots i:first-child { background: #121217; }

.s-promo .wbc-info { flex: 1 1 auto; min-width: 0; }
.s-promo .wbc-name {
  height: 26px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.2;
  color: #43454F;
}
.s-promo .wbc-name b { color: #121217; font-weight: 800; }
.s-promo .wbc-rate {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  height: 11px;
}
.s-promo .wbc-stars { display: flex; gap: 1.5px; }
.s-promo .wbc-stars .st { width: 9px; height: 9px; }
.s-promo .wbc-num { position: relative; width: 19px; height: 11px; flex: 0 0 auto; }
.s-promo .wbc-num b {
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 11px;
  font-weight: 800;
  color: #121217;
}
.s-promo .wbc-cnt { position: relative; flex: 1 1 auto; height: 11px; }
.s-promo .wbc-cnt s {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 9.5px;
  color: #9A9EAC;
  text-decoration: none;
  white-space: nowrap;
}
.s-promo .wbc-price { display: flex; align-items: baseline; gap: 5px; margin-top: 7px; height: 19px; }
.s-promo .wbc-price b {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--wb);
}
.s-promo .wbc-price s { font-size: 10px; color: #A7ABB8; }
.s-promo .wbc-price em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: #F2186B;
  border-radius: 4px;
  padding: 1px 4px;
}
.s-promo .wbc-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  height: 23px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--wb), var(--wb-deep));
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
.s-promo .wbc-buy::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--cart-svg) center / contain no-repeat;
}

/* Отзыв покупателя */
.s-promo .wbr {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 12px;
  height: 88px;
  display: flex;
  gap: 9px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .3);
  animation: revIn 9s cubic-bezier(.22, 1, .36, 1) infinite;
}
.s-promo .wbr-left { flex: 1 1 auto; min-width: 0; }
.s-promo .wbr-who { display: flex; align-items: center; gap: 7px; }
.s-promo .wbr-who i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #EDEFF7, #DADEEC);
  color: #5F6370;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}
.s-promo .wbr-who b { display: block; font-size: 10.5px; font-weight: 800; color: #121217; }
.s-promo .wbr-who small { display: block; font-size: 9px; color: #9A9EAC; }
.s-promo .wbr-stars { display: flex; gap: 2px; margin-top: 6px; }
.s-promo .wbr-stars .st {
  width: 10px;
  height: 10px;
  background: #E1E4EC;
  animation: revStar 9s cubic-bezier(.22, 1, .36, 1) infinite;
}
.s-promo .wbr-stars .st:nth-child(2) { animation-delay: .05s; }
.s-promo .wbr-stars .st:nth-child(3) { animation-delay: .1s; }
.s-promo .wbr-stars .st:nth-child(4) { animation-delay: .15s; }
.s-promo .wbr-stars .st:nth-child(5) { animation-delay: .2s; }
.s-promo .wbr-left p {
  margin: 6px 0 0;
  font-size: 9.6px;
  line-height: 1.3;
  color: #4A4D5C;
}
.s-promo .wbr-shots { display: flex; flex-direction: column; gap: 5px; }
.s-promo .wbr-shots img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  background: #F4F5F8;
  animation: revShot 9s cubic-bezier(.22, 1, .36, 1) infinite;
}
.s-promo .wbr-shots img:last-child { animation-delay: .12s; }

/* Рейтинг переключается после отзыва */
.s-promo .n-old, .s-promo .c-old { animation: swapOut 9s linear infinite; }
.s-promo .n-new, .s-promo .c-new { animation: swapIn 9s linear infinite; }
.s-promo .n-new { animation: swapIn 9s linear infinite, numPop 9s cubic-bezier(.22, 1, .36, 1) infinite; }
.s-promo .wbc-stars .st:nth-child(5) { animation: starFill 9s linear infinite; }

@keyframes revIn {
  0%, 16% { opacity: 0; transform: translateY(16px); }
  25%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes revStar {
  0%, 25% { background: #E1E4EC; transform: scale(.72); }
  31% { background: var(--star); transform: scale(1.25); }
  37%, 100% { background: var(--star); transform: scale(1); }
}
@keyframes revShot {
  0%, 32% { opacity: 0; transform: scale(.5); }
  40%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(.8); }
}
@keyframes swapOut {
  0%, 42% { opacity: 1; }
  48%, 93% { opacity: 0; }
  98%, 100% { opacity: 1; }
}
@keyframes swapIn {
  0%, 42% { opacity: 0; }
  48%, 93% { opacity: 1; }
  98%, 100% { opacity: 0; }
}
@keyframes numPop {
  0%, 44% { transform: scale(.7); }
  52% { transform: scale(1.22); }
  58%, 100% { transform: scale(1); }
}
@keyframes starFill {
  0%, 42% { background: #D9DCE5; }
  48%, 93% { background: var(--star); }
  98%, 100% { background: #D9DCE5; }
}

/* ============ 2. Фулфилмент: линия приёмки и отгрузки ============ */
.s-ff .ff-rack {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}
.s-ff .ff-rack::before, .s-ff .ff-rack::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: rgba(226, 207, 166, .5);
}
.s-ff .ff-rack::before { left: 12px; }
.s-ff .ff-rack::after { right: 12px; }
.s-ff .ff-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 30px;
  border-bottom: 3px solid rgba(226, 207, 166, .5);
}
.s-ff .ff-shelf i {
  flex: 1 1 0;
  height: 28px;
  background: var(--box-svg) bottom center / contain no-repeat;
  opacity: .72;
  filter: saturate(.85) brightness(.92);
}
.s-ff .ff-shelf i:nth-child(2n) { height: 23px; }
.s-ff .ff-shelf + .ff-shelf i:nth-child(2n) { height: 28px; }
.s-ff .ff-shelf + .ff-shelf i:nth-child(2n+1) { height: 23px; }

/* Лента с роликами */
.s-ff .ff-belt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 1;
  height: 16px;
  background: linear-gradient(180deg, #1E2330, #0D1018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 20px rgba(0, 0, 0, .45);
}
.s-ff .ff-belt i {
  position: absolute;
  inset: 4px 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 15px);
  animation: beltRun .85s linear infinite;
}
.s-ff .ff-belt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent);
}

/* Цепочка операций: активный шаг совпадает с положением коробки */
.s-ff .ff-flow {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 84px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}
.s-ff .ff-flow::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 4px;
  height: 1px;
  background: rgba(226, 207, 166, .24);
}
.s-ff .ff-flow::after {
  content: "";
  position: absolute;
  left: 9%;
  top: 4px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, rgba(205, 176, 122, .2), #E9DCC0);
  animation: flowLine 7s linear infinite;
}
.s-ff .fs {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .42);
  animation: stepOn 7s linear infinite;
}
.s-ff .fs i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2B3040;
  box-shadow: inset 0 0 0 1px rgba(226, 207, 166, .5);
  animation: dotOn 7s linear infinite;
}
.s-ff .s2, .s-ff .s2 i { animation-delay: 1.75s; }
.s-ff .s3, .s-ff .s3 i { animation-delay: 3.5s; }
.s-ff .s4, .s-ff .s4 i { animation-delay: 5.25s; }

/* Сканер маркировки */
.s-ff .ff-gate {
  position: absolute;
  left: 50%;
  margin-left: -44px;
  bottom: 32px;
  z-index: 5;
  width: 88px;
  height: 76px;
}
.s-ff .ff-gate::before, .s-ff .ff-gate::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  width: 7px;
  border-radius: 3px;
  background: linear-gradient(90deg, #BFC4CF 0 1px, #646B7E 2px, #2E3444);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.s-ff .ff-gate::before { left: 0; }
.s-ff .ff-gate::after { right: 0; }
.s-ff .ff-top {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 0;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #C5C9D3, #4B5266 62%, #262B3A);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.s-ff .ff-top::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FF5A5A;
  box-shadow: 0 0 6px rgba(255, 90, 90, .9), -8px 0 0 rgba(255, 255, 255, .35);
}
.s-ff .ff-beam {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 19px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #E9DCC0, transparent);
  box-shadow: 0 0 12px rgba(205, 176, 122, .9);
  animation: beam 7s ease-in-out infinite;
}

/* Коробки на линии */
.s-ff .bx {
  position: absolute;
  bottom: 40px;
  z-index: 3;
  width: 52px;
  height: 48px;
  background: var(--box-svg) center / contain no-repeat;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .5));
  animation: bxRun 7s linear infinite;
}
.s-ff .bx-lbl {
  position: absolute;
  left: 6px;
  bottom: 7px;
  width: 15px;
  height: 11px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: skewY(26deg) scale(.4);
  animation: lblOn 7s cubic-bezier(.22, 1, .36, 1) infinite;
}
.s-ff .bx-lbl::before {
  content: "";
  position: absolute;
  left: 1.5px;
  right: 1.5px;
  top: 1.5px;
  height: 3px;
  border-radius: 1px;
  background: var(--wb);
}
.s-ff .bx-lbl::after {
  content: "";
  position: absolute;
  left: 1.5px;
  right: 1.5px;
  bottom: 1.5px;
  height: 5px;
  background: repeating-linear-gradient(90deg, #1B1B22 0 1px, transparent 1px 2.2px);
}
.s-ff .b2 .bx-lbl::before { background: var(--oz); }
.s-ff .b2, .s-ff .b2 .bx-lbl { animation-delay: 2.33s; }
.s-ff .b3, .s-ff .b3 .bx-lbl { animation-delay: 4.66s; }

/* Проём дока: коробки уходят в машину */
.s-ff .ff-dock {
  position: absolute;
  right: 0;
  bottom: 24px;
  z-index: 4;
  width: 94px;
  height: 100px;
  border-radius: 7px 0 0 0;
  background: linear-gradient(180deg, #090B12 0%, #10131C 72%, #07080D 100%);
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, .85),
    inset 3px 0 0 rgba(226, 207, 166, .2),
    inset 0 3px 0 rgba(226, 207, 166, .2);
}
.s-ff .ff-dock .shutter {
  position: absolute;
  left: 3px;
  right: 0;
  top: 3px;
  height: 20px;
  background: repeating-linear-gradient(180deg, #3A3F4E 0 2px, #1F2330 2px 5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .6);
}
.s-ff .ff-dock .lamp {
  position: absolute;
  left: 12px;
  right: 8px;
  bottom: 6px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(205, 176, 122, .3), transparent 70%);
  animation: dockGlow 7s ease-in-out infinite;
}

@keyframes beltRun { to { background-position: -17px 0; } }
@keyframes flowLine {
  0% { width: 0; }
  88%, 100% { width: 82%; }
}
@keyframes stepOn {
  0%, 2% { color: rgba(255, 255, 255, .42); }
  6%, 24% { color: #fff; }
  30%, 100% { color: rgba(255, 255, 255, .42); }
}
@keyframes dotOn {
  0%, 2% { background: #2B3040; box-shadow: inset 0 0 0 1px rgba(226, 207, 166, .5); }
  6%, 24% { background: #E9DCC0; box-shadow: 0 0 10px rgba(205, 176, 122, .85); }
  30%, 100% { background: #2B3040; box-shadow: inset 0 0 0 1px rgba(226, 207, 166, .5); }
}
@keyframes dockGlow {
  0%, 56% { opacity: .35; }
  68%, 82% { opacity: 1; }
  92%, 100% { opacity: .35; }
}
@keyframes bxRun {
  0% { left: -16%; opacity: 0; }
  6% { opacity: 1; }
  58% { left: 56%; opacity: 1; }
  72% { left: 72%; opacity: 1; }
  84% { left: 84%; opacity: 0; }
  100% { left: 84%; opacity: 0; }
}
@keyframes lblOn {
  0%, 38% { opacity: 0; transform: skewY(26deg) scale(.4); }
  44% { opacity: 1; transform: skewY(26deg) scale(1.15); }
  50%, 100% { opacity: 1; transform: skewY(26deg) scale(1); }
}
@keyframes beam {
  0%, 30% { opacity: .22; }
  38%, 46% { opacity: 1; }
  56%, 100% { opacity: .22; }
}

/* ============ 3. Корзины: полка «Смотрите также» ============ */
.s-cart .ph {
  position: absolute;
  left: 50%;
  top: 12px;
  width: min(268px, 88%);
  height: 226px;
  padding: 6px;
  border-radius: 22px;
  background: linear-gradient(160deg, #2E3240, #14171F);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transform: translateX(-50%);
}
.s-cart .ph-screen {
  position: relative;
  height: 100%;
  padding: 9px 9px 0;
  border-radius: 17px;
  background: #fff;
  overflow: hidden;
}
.s-cart .ph-bar { display: flex; align-items: center; gap: 6px; height: 13px; }
.s-cart .ph-bar i {
  width: 6px;
  height: 6px;
  border-left: 1.6px solid #5F6370;
  border-bottom: 1.6px solid #5F6370;
  transform: rotate(45deg);
}
.s-cart .ph-bar span { font-size: 9.5px; font-weight: 800; color: #121217; }

.s-cart .ph-hero { display: flex; gap: 8px; margin-top: 8px; height: 50px; }
.s-cart .ph-hero img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #F4F5F8;
}
.s-cart .ph-hero div { min-width: 0; padding-top: 2px; }
.s-cart .ph-hero b { display: block; font-size: 10px; font-weight: 800; color: #121217; }
.s-cart .ph-hero s {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: #9A9EAC;
  text-decoration: none;
}
.s-cart .ph-hero s i { font-style: normal; color: var(--star); }
.s-cart .ph-hero em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--wb);
}
.s-cart .ph-shelf-h { margin: 10px 0 6px; font-size: 10px; font-weight: 800; color: #121217; }
.s-cart .ph-shelf { overflow: hidden; }
.s-cart .ph-track {
  display: flex;
  gap: 6px;
  width: 290px;
  animation: shelfSlide 7s cubic-bezier(.22, 1, .36, 1) infinite;
}
.s-cart .pt { flex: 0 0 52px; position: relative; }
.s-cart .pt img {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  background: #F4F5F8;
}
.s-cart .pt em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: #121217;
}
.s-cart .pt.ours img { box-shadow: 0 0 0 2px var(--wb); }
.s-cart .pt.ours em { color: var(--wb); }
.s-cart .pt.ours b {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wb), var(--wb-deep));
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  animation: badgePop 7s cubic-bezier(.22, 1, .36, 1) infinite;
}
.s-cart .ph-tap {
  position: absolute;
  left: 30px;
  bottom: 62px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(203, 17, 171, .42);
  background: radial-gradient(circle, rgba(203, 17, 171, .18), transparent 70%);
  opacity: 0;
  animation: tapRing 7s ease-out infinite;
}
.s-cart .ph-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  height: 27px;
  border-top: 1px solid #EEF0F5;
  background: #fff;
}
/* Иконку несёт ::before — сам пункт остаётся немаскированным,
   иначе маска срезала бы бейдж корзины. */
.s-cart .ph-nav i { position: relative; flex: 1 1 0; }
.s-cart .ph-nav i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #C3C8D6;
  mask: center / contain no-repeat var(--m);
  -webkit-mask: center / contain no-repeat var(--m);
}
.s-cart .ph-nav .home { --m: var(--home-svg); }
.s-cart .ph-nav .grid { --m: var(--grid-svg); }
.s-cart .ph-nav .cart { --m: var(--cart-dark-svg); }
.s-cart .ph-nav .user { --m: var(--user-svg); }
.s-cart .ph-nav .cart::before { background: var(--wb); }
.s-cart .ph-nav .cart b {
  position: absolute;
  right: 50%;
  top: 50%;
  margin: -15px -14px 0 0;
  min-width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--wb);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
  animation: badgePop 7s cubic-bezier(.22, 1, .36, 1) infinite;
}

@keyframes shelfSlide {
  0%, 14% { transform: translateX(-58px); }
  30%, 90% { transform: translateX(0); }
  100% { transform: translateX(-58px); }
}
@keyframes badgePop {
  0%, 44% { opacity: 0; transform: scale(0); }
  54% { opacity: 1; transform: scale(1.2); }
  60%, 90% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.6); }
}
@keyframes tapRing {
  0%, 32% { opacity: 0; transform: scale(.45); }
  38% { opacity: 1; transform: scale(.6); }
  50% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* ============ Узкие экраны ============ */
@media (max-width: 520px) {
  .s-promo .wbc-pic { width: 84px; }
  .s-promo .wbc-price b { font-size: 17px; }
  .s-cart .ph { width: min(268px, 94%); }
}

/* ============ Статичные кадры без анимации ============ */
@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none !important; }
  .s-promo .wbr { opacity: 1; transform: none; }
  .s-promo .wbr-stars .st { background: var(--star); transform: none; }
  .s-promo .wbr-shots img { opacity: 1; transform: none; }
  .s-promo .n-old, .s-promo .c-old { opacity: 0; }
  .s-promo .n-new, .s-promo .c-new { opacity: 1; transform: none; }
  .s-promo .wbc-stars .st:nth-child(5) { background: var(--star); }
  .s-ff .bx { opacity: 1; }
  .s-ff .b1 { left: 4%; }
  .s-ff .b2 { left: 24%; }
  .s-ff .b3 { left: 44%; }
  .s-ff .bx-lbl { opacity: 1; transform: skewY(26deg); }
  .s-ff .b1 .bx-lbl { opacity: 0; }
  .s-ff .ff-beam { opacity: .5; }
  .s-ff .ff-flow::after { width: 55%; }
  .s-ff .s1, .s-ff .s2 { color: #fff; }
  .s-ff .s1 i, .s-ff .s2 i { background: #E9DCC0; box-shadow: 0 0 10px rgba(205, 176, 122, .85); }
  .s-ff .ff-dock .lamp { opacity: .5; }
  .s-cart .ph-track { transform: none; }
  .s-cart .pt.ours b, .s-cart .ph-nav .cart b { opacity: 1; transform: none; }
  .s-cart .ph-tap { opacity: 0; }
}
