/* ═══════════════════════════════════════════════════════════════════════
   NanoFarm · СТРАНИЦА ТОВАРА: БЛОКИ ИЗ КП
   Ключевые цифры, регистрация в РК, особенности, применение, режимы,
   подробные характеристики (группы + поиск), видео производителя.
   Подключается после refined-showroom.css. Стиль «мягкий премиум».
   ═══════════════════════════════════════════════════════════════════════ */

/* ═════════ ИНТЕРАКТИВНЫЙ ПРИБОР: ТОЧКИ НА ФОТО + ПОЯСНЕНИЯ ═════════ */
html body .nf-hs {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) 56px 0;
}
html body .nf-hs__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(77, 160, 169, 0.14), rgba(77, 160, 169, 0) 72%);
}
html body .nf-hs__frame { position: relative; display: inline-block; width: 100%; max-width: 560px; }
html body .nf-hs__img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
html body .nf-hs__dot {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--sp-teal-text, #2f7f88);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 2px #4da0a9, 0 6px 16px -6px rgba(21, 40, 44, 0.5);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s, color 0.25s;
}
html body .nf-hs__dot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(77, 160, 169, 0.45);
  opacity: 0;
  pointer-events: none;
}
html body .nf-hs__dot.is-active {
  background: linear-gradient(180deg, #5cb0b9, #4596a0);
  color: #fff;
  transform: scale(1.15);
}
html body .nf-hs__dot.is-active::before { animation: nfHsPulse 1.8s ease-out infinite; }
@keyframes nfHsPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
html body .nf-hs__dot:hover { transform: scale(1.12); }

html body .nf-hs__panel .nf-epdp-h2 { margin: 0 0 18px; }
html body .nf-hs__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
html body .nf-hs__item { border-top: 1px solid rgba(21, 21, 21, 0.08); }
html body .nf-hs__item:last-child { border-bottom: 1px solid rgba(21, 21, 21, 0.08); }
html body .nf-hs__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
html body .nf-hs__num {
  flex: none;
  width: 30px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(77, 160, 169, 0.55);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s;
}
html body .nf-hs__title { font-size: 15.5px; font-weight: 600; color: var(--rf-text, #151515); transition: color 0.25s; }
html body .nf-hs__text {
  margin: 0;
  padding: 0 0 0 44px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--rf-muted, #6f7c79);
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s, padding 0.3s;
}
html body .nf-hs__item.is-active .nf-hs__num { color: var(--sp-teal-text, #2f7f88); }
html body .nf-hs__item.is-active .nf-hs__title { color: var(--sp-teal-text, #2f7f88); }
html body .nf-hs__item.is-active .nf-hs__text { max-height: 140px; opacity: 1; padding-bottom: 16px; }
html body .nf-hs__apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

@media (max-width: 900px) {
  html body .nf-hs { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  html body .nf-hs__dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .nf-hs__dot.is-active::before { animation: none; }
}

/* ═════════ ФОТО ТОВАРА: БЕЗ ПОДЛОЖКИ, КРУПНО, С ОБЪЁМОМ ═════════ */
html body .nf-epdp-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: clamp(420px, 44vw, 600px);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  perspective: 1100px;
  background: radial-gradient(ellipse 58% 52% at 50% 46%, rgba(77, 160, 169, 0.18), rgba(77, 160, 169, 0) 72%) !important;
}
html body .nf-epdp-stage__img {
  position: relative;
  z-index: 1;
  padding: 0 !important;
  width: 100% !important;
  height: clamp(380px, 40vw, 560px) !important;
  max-height: none !important;
  object-fit: contain;
  mix-blend-mode: multiply;           /* белый фон фотографии растворяется */
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-origin: 50% 60%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  animation: nfEpdpFloat 7s ease-in-out infinite;
}
@keyframes nfEpdpFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
html body .nf-epdp-stage__floor {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 2%;
  width: 62%;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(21, 40, 44, 0.28), rgba(21, 40, 44, 0));
  animation: nfEpdpFloor 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes nfEpdpFloor {
  0%, 100% { opacity: 1; scale: 1 1; }
  50% { opacity: 0.7; scale: 0.88 1; }
}
html body .nf-epdp-stage__zoom { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  html body .nf-epdp-stage__img,
  html body .nf-epdp-stage__floor { animation: none; }
}
/* спокойный вариант: без парения и наклона, фото чуть меньше */
html body .nf-epdp-stage { min-height: clamp(360px, 36vw, 480px); perspective: none; }
html body .nf-epdp-stage__img {
  height: clamp(300px, 32vw, 440px) !important;
  transform: none !important;
  animation: none !important;
}
html body .nf-epdp-stage__floor {
  animation: none !important;
  width: 54%;
  height: 34px;
  bottom: 4%;
  background: radial-gradient(closest-side, rgba(21, 40, 44, 0.18), rgba(21, 40, 44, 0));
}

/* ключевые цифры в шапке */
html body .nf-epdp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
html body .nf-epdp-fact {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sp-soft-ring);
}
html body .nf-epdp-fact b { font-size: 16px; font-weight: 650; color: var(--rf-text, #151515); letter-spacing: -0.01em; }
html body .nf-epdp-fact span { font-size: 11.5px; color: var(--rf-muted, #6f7c79); }

/* регистрация в РК */
html body .nf-epdp-reg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(46, 140, 90, 0.07);
  box-shadow: inset 0 0 0 1px rgba(46, 140, 90, 0.18);
}
html body .nf-epdp-reg__row { display: flex; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.5; color: #24563a; }
html body .nf-epdp-reg__row + .nf-epdp-reg__row { margin-top: 6px; }
html body .nf-epdp-reg__row svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #2e8c5a; }
html body .nf-epdp-reg__row b { font-weight: 600; }

/* особенности + применение */
html body .nf-epdp-feat {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  padding: 28px 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--sp-card-shadow);
  border: 1px solid rgba(21, 21, 21, 0.05);
}
html body .nf-epdp-feat__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
html body .nf-epdp-feat__list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--rf-text, #151515); }
html body .nf-epdp-feat__list svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--rf-accent, #4da0a9); }
html body .nf-epdp-apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
html body .nf-epdp-app {
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(77, 160, 169, 0.1);
  color: var(--sp-teal-text, #2f7f88);
  font-size: 13px;
  font-weight: 500;
}

/* режимы */
html body .nf-epdp-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(77, 160, 169, 0.12);
  color: var(--sp-teal-text, #2f7f88);
  font-size: 14px;
  vertical-align: middle;
}
html body .nf-epdp-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sp-soft-ring);
}
html body .nf-epdp-seg button {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-muted, #6f7c79);
  cursor: pointer;
}
html body .nf-epdp-seg button.is-active { background: linear-gradient(180deg, #5cb0b9, #4596a0); color: #fff; }
html body .nf-epdp-modes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
html body .nf-epdp-mode {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sp-soft-ring);
}
html body .nf-epdp-mode[hidden] { display: none; }
html body .nf-epdp-mode b { font-size: 13.5px; font-weight: 700; color: var(--sp-teal-text, #2f7f88); }
html body .nf-epdp-mode span { font-size: 13.5px; line-height: 1.45; color: var(--rf-text, #151515); }

/* подробные характеристики */
html body .nf-epdp-sechead--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
html body .nf-epdp-gsearch {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 100%);
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sp-soft-ring);
}
html body .nf-epdp-gsearch svg { width: 16px; height: 16px; color: var(--rf-muted, #6f7c79); }
html body .nf-epdp-gsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; }
html body .nf-epdp-gsearch:focus-within { box-shadow: 0 0 0 1px rgba(77, 160, 169, 0.55), 0 0 0 4px rgba(77, 160, 169, 0.12); }
html body .nf-epdp-group {
  margin-top: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sp-card-shadow);
  border: 1px solid rgba(21, 21, 21, 0.05);
  overflow: hidden;
}
html body .nf-epdp-group[hidden] { display: none; }
html body .nf-epdp-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--rf-text, #151515);
}
html body .nf-epdp-group summary::-webkit-details-marker { display: none; }
html body .nf-epdp-group summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--rf-accent, #4da0a9);
  transition: transform 0.25s;
}
html body .nf-epdp-group[open] summary::after { transform: rotate(45deg); }
html body .nf-epdp-group__n {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(77, 160, 169, 0.1);
  color: var(--sp-teal-text, #2f7f88);
  font-size: 12px;
}
html body .nf-epdp-group__rows { padding: 0 22px 10px; }
html body .nf-epdp-grow {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 2fr);
  gap: 20px;
  padding: 11px 0;
  border-top: 1px solid rgba(21, 21, 21, 0.06);
}
html body .nf-epdp-grow[hidden] { display: none; }
html body .nf-epdp-grow__k { font-size: 13.5px; color: var(--sp-teal-text, #2f7f88); font-weight: 500; }
html body .nf-epdp-grow__v { font-size: 14px; line-height: 1.55; color: var(--rf-text, #151515); white-space: pre-line; }
html body .nf-epdp-groups__empty { margin: 16px 0 0; color: var(--rf-muted, #6f7c79); font-size: 14px; }

/* видео */
html body .nf-epdp-videos__grid { display: grid; gap: 14px; }
html body .nf-epdp-videos__grid.has-list { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
html body .nf-epdp-videos__list { display: grid; gap: 12px; }
html body .nf-epdp-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #5cb0b9, #2f747c);
  box-shadow: var(--sp-card-shadow);
}
html body .nf-epdp-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--sp-lift); }
html body .nf-epdp-video__poster--list { background: radial-gradient(ellipse 60% 60% at 70% 30%, rgba(255, 255, 255, 0.25), transparent 70%); }
html body .nf-epdp-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 25, 28, 0.65) 0%, rgba(10, 25, 28, 0) 55%);
}
html body .nf-epdp-video:hover .nf-epdp-video__poster { transform: scale(1.03); }
html body .nf-epdp-video__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--sp-teal-text, #2f7f88);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
}
html body .nf-epdp-videos__list .nf-epdp-video__play { width: 42px; height: 42px; }
html body .nf-epdp-video__title {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 14px;
  text-align: left;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
html body .nf-epdp-videos__list .nf-epdp-video__title { font-size: 12.5px; left: 12px; right: 12px; bottom: 10px; }
html body .nf-epdp-video--playing { cursor: default; background: #000; }
html body .nf-epdp-video--playing::after { display: none; }
html body .nf-epdp-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ширина и поля — как у соседних секций страницы (max 1180, поля 56px) */
html body .nf-epdp-modes,
html body .nf-epdp-groups,
html body .nf-epdp-videos {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) 56px 0;
}
html body .nf-epdp-videos { padding-bottom: clamp(40px, 5vw, 72px); }
html body .nf-epdp-feat {
  box-sizing: border-box;
  max-width: 1068px;
  margin: clamp(32px, 4vw, 56px) auto 0;
}
@media (max-width: 1200px) {
  html body .nf-epdp-feat { margin-left: 56px; margin-right: 56px; }
}
@media (max-width: 640px) {
  html body .nf-epdp-modes,
  html body .nf-epdp-groups,
  html body .nf-epdp-videos { padding-left: 20px; padding-right: 20px; }
  html body .nf-epdp-feat { margin-left: 20px; margin-right: 20px; }
}

@media (max-width: 860px) {
  html body .nf-epdp-feat { grid-template-columns: 1fr; padding: 22px; }
  html body .nf-epdp-feat__list { grid-template-columns: 1fr; }
  html body .nf-epdp-videos__grid.has-list { grid-template-columns: 1fr; }
  html body .nf-epdp-videos__list { grid-template-columns: 1fr 1fr; }
  html body .nf-epdp-grow { grid-template-columns: 1fr; gap: 4px; }
  html body .nf-epdp-mode { grid-template-columns: 80px 1fr; }
}
