/* ═══════════════════════════════════════════════════════════════════════
   NanoFarm · ЛЕНТА ПАРТНЁРОВ, СТРАНИЦА ПАРТНЁРА («ШОУРУМ»), ВИТРИНА КАТАЛОГА
   Подключается после refined-soft.css. Стиль «мягкий премиум».
   ═══════════════════════════════════════════════════════════════════════ */

/* ═════════════ ГЛАВНАЯ: ДВУХРЯДНАЯ ЛЕНТА ПАРТНЁРОВ ═════════════ */
html body .nf-pr {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
html body .nf-pr__row { overflow: hidden; padding: 12px 0 18px; }
html body .nf-pr__track {
  display: flex;
  width: max-content;
  animation: nfPrScroll 46s linear infinite;
}
html body .nf-pr__row--tags .nf-pr__track { animation-duration: 38s; animation-direction: reverse; }
html body .nf-pr:hover .nf-pr__track { animation-play-state: paused; }
html body .nf-pr__group { display: flex; align-items: stretch; gap: 16px; padding-right: 16px; }
@keyframes nfPrScroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { html body .nf-pr__track { animation: none; } }

html body .nf-pr__logo {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 340px;
  padding: 16px 26px 16px 16px;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sp-card-shadow);
  font: inherit;
  text-align: left;
  color: var(--rf-text);
  cursor: pointer;
  transition: transform 0.35s var(--sp-lift), box-shadow 0.35s var(--sp-lift);
}
html body .nf-pr__logo:hover { transform: translateY(-4px); box-shadow: var(--sp-card-shadow-hover); }
html body .nf-pr__logo-plate {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 78px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(21, 21, 21, 0.06);
}
html body .nf-pr__logo-plate img { max-width: 92px; max-height: 56px; object-fit: contain; }
html body .nf-pr__logo-text { display: flex; flex-direction: column; gap: 4px; }
html body .nf-pr__logo-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
html body .nf-pr__logo-country { font-size: 13px; color: var(--rf-muted); }

html body .nf-pr__fact {
  appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 300px;
  padding: 16px 26px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(77, 160, 169, 0.16), rgba(77, 160, 169, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(77, 160, 169, 0.14);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
html body .nf-pr__fact-kicker { font-size: 12px; font-weight: 500; color: var(--sp-teal-text); }
html body .nf-pr__fact-main { font-size: 17px; font-weight: 600; color: var(--rf-text); letter-spacing: -0.01em; white-space: nowrap; }
html body .nf-pr__fact-sub { font-size: 12.5px; color: var(--rf-muted); white-space: nowrap; }

html body .nf-pr__row--tags { padding: 0 0 6px; }
html body .nf-pr__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sp-soft-ring);
  font-size: 14px;
  font-weight: 500;
  color: var(--rf-text);
  white-space: nowrap;
}
html body .nf-pr__tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-btn-grad);
  box-shadow: 0 0 0 4px rgba(77, 160, 169, 0.14);
}
@media (max-width: 640px) {
  html body .nf-pr__logo { min-width: 280px; }
  html body .nf-pr__fact { min-width: 240px; }
}

/* ═════════════ ВИТРИНА КАТАЛОГА (направления) ═════════════ */
html body .nf-catalog-hub__grid {
  grid-auto-flow: dense !important;
}
html body .pfg-card { position: relative; overflow: hidden; }
html body .pfg-card > .pfg-card__head,
html body .pfg-card > .pfg-card__body { position: relative; z-index: 2; }

/* огромная иконка-водяной знак в углу */
html body .pfg-card__wm {
  position: absolute;
  right: -34px;
  bottom: -40px;
  z-index: 0;
  width: 170px;
  height: 170px;
  color: rgba(77, 160, 169, 0.09);
  transform: rotate(-12deg);
  transition: transform 0.6s var(--sp-lift), color 0.4s var(--sp-lift);
  pointer-events: none;
}
html body .pfg-card__wm svg { width: 100%; height: 100%; stroke-width: 0.9; }
html body .pfg-card:hover .pfg-card__wm { transform: rotate(0deg) scale(1.08); color: rgba(77, 160, 169, 0.16); }

/* мягкая бирюзовая заливка снизу при наведении */
html body .pfg-card::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(77, 160, 169, 0) 35%, rgba(77, 160, 169, 0.1) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.4s var(--sp-lift) !important;
  pointer-events: none;
}
html body .pfg-card:hover::after { opacity: 1 !important; }

/* крупный номер направления */
html body .pfg-card__index {
  font-size: 30px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1;
  color: transparent !important;
  -webkit-text-stroke: 1px rgba(77, 160, 169, 0.4);
  transition: color 0.35s var(--sp-lift);
}
html body .pfg-card:hover .pfg-card__index { color: rgba(77, 160, 169, 0.18) !important; }

/* стрелка-кнопка в CTA */
html body .pfg-card__cta svg {
  box-sizing: content-box;
  padding: 6px;
  border-radius: 50%;
  background: rgba(77, 160, 169, 0.12);
  transition: transform 0.3s var(--sp-lift), background 0.3s;
}
html body .pfg-card:hover .pfg-card__cta svg { transform: translateX(3px); background: rgba(77, 160, 169, 0.22); }

/* количество позиций — «живое» у направлений с товарами */
html body .pfg-card--featured .pfg-card__count {
  color: var(--sp-teal-text) !important;
  font-weight: 600 !important;
}

/* Широкая плитка направления с товарами: фото на подиуме справа */
html body .pfg-card.pfg-card--featured {
  grid-column: span 2;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  background: linear-gradient(120deg, #ffffff 45%, #eef7f8 100%) !important;
}
html body .pfg-card--featured > .pfg-card__head { grid-column: 1; grid-row: 1; }
html body .pfg-card--featured > .pfg-card__body { grid-column: 1; grid-row: 2; }
html body .pfg-card--featured .pfg-card__wm { display: none; }
html body .pfg-card__media {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  z-index: auto;   /* без собственного слоя — иначе mix-blend-mode не «съест» белый фон фото */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  margin: -6px -6px -4px 0;
}
html body .pfg-card__media img {
  position: relative;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.6s var(--sp-lift);
}
html body .pfg-card__media-floor {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 8px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(21, 40, 44, 0.22), rgba(21, 40, 44, 0));
  transition: transform 0.6s var(--sp-lift), opacity 0.6s;
}
html body .pfg-card--featured:hover .pfg-card__media img { transform: translateY(-8px) scale(1.03); }
html body .pfg-card--featured:hover .pfg-card__media-floor { transform: scaleX(0.85); opacity: 0.7; }

@media (max-width: 900px) {
  html body .pfg-card.pfg-card--featured { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  html body .pfg-card__media { grid-column: 1; grid-row: 1; margin: 0 0 8px; min-height: 160px; }
  html body .pfg-card--featured > .pfg-card__head { grid-row: 2; }
  html body .pfg-card--featured > .pfg-card__body { grid-row: 3; }
}

/* ═════════════ СТРАНИЦА ПАРТНЁРА — «ШОУРУМ БРЕНДА» ═════════════ */
html body .nf-partners-page.nf-pp-mode { padding-bottom: 40px; }
html body .nf-pp { display: flex; flex-direction: column; gap: 56px; padding-top: 28px; }

html body .nf-pp__crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--rf-muted); margin-bottom: -28px; }
html body .nf-pp__crumbs a { color: var(--sp-teal-text); text-decoration: none; }
html body .nf-pp__crumbs a:hover { text-decoration: underline; }

/* Сцена */
html body .nf-pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 40%, rgba(77, 160, 169, 0.16), transparent 70%),
    linear-gradient(180deg, #ffffff, #f3f8f8);
  box-shadow: var(--sp-card-shadow);
  border: 1px solid rgba(21, 21, 21, 0.05);
  overflow: hidden;
}
html body .nf-pp-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(77, 160, 169, 0.1);
  color: var(--sp-teal-text);
  font-size: 13px;
  font-weight: 500;
}
html body .nf-pp-hero__kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sp-btn-grad);
  box-shadow: 0 0 0 4px rgba(77, 160, 169, 0.16);
}
html body .nf-pp-hero__title {
  margin: 18px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--rf-text);
}
html body .nf-pp-hero__lede { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.65; color: var(--rf-muted); }
html body .nf-pp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
html body .nf-pp-hero__actions .nf-btn { height: 50px; padding: 0 24px; font-weight: 600; }

html body .nf-pp-hero__stage {
  --pp-rx: 0deg;
  --pp-ry: 0deg;
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}
html body .nf-pp-hero__plate {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(300px, 80%);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(21, 21, 21, 0.06),
    0 30px 60px -24px rgba(21, 40, 44, 0.35),
    0 0 0 1px rgba(21, 21, 21, 0.05);
  transform: rotateX(var(--pp-rx)) rotateY(var(--pp-ry)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--sp-lift);
  animation: nfPpFloat 6s ease-in-out infinite;
}
html body .nf-pp-hero__logo { max-width: 72%; max-height: 62%; object-fit: contain; transform: translateZ(30px); }
@keyframes nfPpFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
html body .nf-pp-hero__floor {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 240px;
  height: 26px;
  margin-left: -120px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(21, 40, 44, 0.22), transparent);
  animation: nfPpFloor 6s ease-in-out infinite;
}
@keyframes nfPpFloor { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.86); opacity: 0.7; } }
html body .nf-pp-hero__orbit {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(77, 160, 169, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
html body .nf-pp-hero__orbit--a { width: 420px; height: 120px; margin: -60px 0 0 -210px; transform: rotate(-14deg); animation: nfPpOrbit 14s linear infinite; }
html body .nf-pp-hero__orbit--b { width: 340px; height: 92px; margin: -46px 0 0 -170px; transform: rotate(18deg); opacity: 0.6; animation: nfPpOrbit 18s linear infinite reverse; }
html body .nf-pp-hero__orbit::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4da0a9;
  box-shadow: 0 0 0 5px rgba(77, 160, 169, 0.18), 0 0 18px rgba(77, 160, 169, 0.7);
}
@keyframes nfPpOrbit { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  html body .nf-pp-hero__plate, html body .nf-pp-hero__floor, html body .nf-pp-hero__orbit { animation: none; }
}

/* Факты крупными цифрами */
html body .nf-pp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--sp-card-shadow);
  border: 1px solid rgba(21, 21, 21, 0.05);
  overflow: hidden;
}
html body .nf-pp-fact { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; }
html body .nf-pp-fact + .nf-pp-fact { border-left: 1px solid rgba(21, 21, 21, 0.06); }
html body .nf-pp-fact__big {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #5cb0b9, #3f8e97);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html body .nf-pp-fact--text .nf-pp-fact__big { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; color: var(--rf-text); background: none; -webkit-text-fill-color: currentColor; }
html body .nf-pp-fact__label { font-size: 13px; color: var(--rf-muted); }

/* Заголовки секций */
html body .nf-pp-sec-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
html body .nf-pp-sec-head__kicker { font-size: 13px; font-weight: 500; color: var(--sp-teal-text); }
html body .nf-pp-sec-head__title { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 650; letter-spacing: -0.03em; color: var(--rf-text); }

/* Экспонаты */
html body .nf-pp-exhibits { display: flex; flex-direction: column; gap: 28px; }
html body .nf-pp-exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--sp-card-shadow);
  border: 1px solid rgba(21, 21, 21, 0.05);
  overflow: hidden;
}
html body .nf-pp-exhibit--flip .nf-pp-exhibit__stage { order: 2; }
html body .nf-pp-exhibit__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 40px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(77, 160, 169, 0.14), transparent 70%),
    linear-gradient(180deg, #f7fbfb, #edf5f5);
}
html body .nf-pp-exhibit__num {
  position: absolute;
  top: 22px;
  left: 26px;
  font-size: 56px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(77, 160, 169, 0.4);
}
html body .nf-pp-exhibit__img {
  position: relative;
  z-index: 1;
  max-width: 82%;
  max-height: 320px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.7s var(--sp-lift);
}
html body .nf-pp-exhibit:hover .nf-pp-exhibit__img { transform: translateY(-10px) scale(1.03); }
html body .nf-pp-exhibit__floor {
  position: absolute;
  bottom: 34px;
  left: 50%;
  width: 56%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(21, 40, 44, 0.24), transparent);
}
html body .nf-pp-exhibit__info { display: flex; flex-direction: column; gap: 14px; padding: 44px 48px; justify-content: center; }
html body .nf-pp-exhibit__chips { display: flex; flex-wrap: wrap; gap: 8px; }
html body .nf-pp-chip { padding: 5px 10px; border-radius: 8px; background: rgba(77, 160, 169, 0.12); color: var(--sp-teal-text); font-size: 12px; font-weight: 500; }
html body .nf-pp-chip--order { background: rgba(192, 122, 26, 0.12); color: #9a6214; }
html body .nf-pp-chip--in { background: rgba(46, 140, 90, 0.12); color: #24744a; }
html body .nf-pp-exhibit__name { margin: 4px 0 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 650; letter-spacing: -0.025em; color: var(--rf-text); }
html body .nf-pp-exhibit__desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--rf-muted); }
html body .nf-pp-exhibit__specs { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
html body .nf-pp-exhibit__specs li { position: relative; padding-left: 18px; font-size: 14px; color: var(--rf-text); }
html body .nf-pp-exhibit__specs li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-btn-grad); }
html body .nf-pp-exhibit__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(21, 21, 21, 0.06);
}
html body .nf-pp-exhibit__price { font-size: 15px; font-weight: 600; color: var(--rf-text); }
html body .nf-pp-exhibit__actions { display: flex; gap: 10px; }
html body .nf-pp-exhibit__actions .nf-btn { height: 44px; padding: 0 20px; font-weight: 600; }
html body .nf-pp-empty { margin: 0; padding: 28px; border-radius: 20px; background: #fff; box-shadow: var(--sp-card-shadow); color: var(--rf-muted); }

/* Как работаем: шаги с соединительной линией */
html body .nf-pp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html body .nf-pp-steps::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 160, 169, 0.5), rgba(77, 160, 169, 0.1));
}
html body .nf-pp-step { position: relative; display: flex; flex-direction: column; gap: 10px; }
html body .nf-pp-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sp-btn-grad);
  box-shadow: var(--sp-btn-shadow);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
html body .nf-pp-step__title { margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--rf-text); }
html body .nf-pp-step__text { font-size: 14px; line-height: 1.6; color: var(--rf-muted); }

/* Призыв к действию */
html body .nf-pp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 44px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #5cb0b9, #3f8e97);
  box-shadow: 0 24px 50px -24px rgba(77, 160, 169, 0.75);
  color: #fff;
}
html body .nf-pp-cta h2 { margin: 0 0 8px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 650; letter-spacing: -0.02em; color: #fff; }
html body .nf-pp-cta p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
html body .nf-pp-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
html body .nf-pp-cta .nf-btn { height: 50px; padding: 0 24px; font-weight: 600; }
html body .nf-pp-cta .nf-btn.nf-btn-primary {
  background: #fff !important;
  color: var(--sp-teal-text) !important;
  border-color: #fff !important;
  box-shadow: 0 10px 24px -10px rgba(10, 30, 34, 0.45) !important;
}
html body .nf-pp-cta .nf-btn.nf-btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45) !important;
}

/* Другие партнёры */
html body .nf-pp-others__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
html body .nf-pp-other {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px 14px 14px;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sp-card-shadow);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.35s var(--sp-lift), box-shadow 0.35s var(--sp-lift);
}
html body .nf-pp-other:hover { transform: translateY(-4px); box-shadow: var(--sp-card-shadow-hover); }
html body .nf-pp-other__plate { flex: none; display: flex; align-items: center; justify-content: center; width: 96px; height: 64px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(21, 21, 21, 0.06); }
html body .nf-pp-other__plate img { max-width: 76px; max-height: 46px; object-fit: contain; }
html body .nf-pp-other__text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
html body .nf-pp-other__name { font-size: 16px; font-weight: 600; color: var(--rf-text); }
html body .nf-pp-other__meta { font-size: 13px; color: var(--rf-muted); }
html body .nf-pp-other__arrow { color: var(--rf-accent); font-size: 18px; transition: transform 0.3s var(--sp-lift); }
html body .nf-pp-other:hover .nf-pp-other__arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  html body .nf-pp-hero { grid-template-columns: 1fr; padding: 28px; }
  html body .nf-pp-hero__stage { height: 260px; order: -1; }
  html body .nf-pp-exhibit { grid-template-columns: 1fr; }
  html body .nf-pp-exhibit--flip .nf-pp-exhibit__stage { order: 0; }
  html body .nf-pp-exhibit__stage { min-height: 280px; }
  html body .nf-pp-exhibit__info { padding: 28px; }
  html body .nf-pp-steps { grid-template-columns: 1fr 1fr; }
  html body .nf-pp-steps::before { display: none; }
  html body .nf-pp-fact + .nf-pp-fact { border-left: 0; border-top: 1px solid rgba(21, 21, 21, 0.06); }
}
@media (max-width: 520px) {
  html body .nf-pp-steps { grid-template-columns: 1fr; }
  html body .nf-pp-cta { padding: 28px; }
}

html body .nf-pp-link { cursor: pointer; }
html body .nf-pp-exhibit__name.nf-pp-link:hover { color: var(--rf-accent); }

/* ═════════════ КАТАЛОГ: ОДИНАКОВЫЕ КАРТОЧКИ С ВИТРИНОЙ (заменяет широкие плитки) ═════════════ */
html body .nf-catalog-hub__grid { grid-auto-flow: row !important; }
html body .pfg-card.pfg-card--hub {
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  grid-column: auto !important;
}
html body .pfg-card--hub > .pfg-card__wm,
html body .pfg-card--hub > .pfg-card__head { display: none !important; }
html body .pfg-card--hub > .pfg-card__body { padding: 18px 22px 18px; flex: 1; }

html body .pfg-hub-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 176px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 55%, rgba(77, 160, 169, 0.16), transparent 72%),
    linear-gradient(180deg, #f8fbfb, #edf5f5);
  border-bottom: 1px solid rgba(21, 21, 21, 0.05);
  overflow: hidden;
}
html body .pfg-hub-media__index {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(77, 160, 169, 0.5);
}
html body .pfg-hub-media__img {
  position: relative;
  max-height: 130px;
  max-width: 60%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s var(--sp-lift);
}
html body .pfg-hub-media--n2 .pfg-hub-media__img { max-width: 44%; max-height: 118px; }
html body .pfg-hub-media--n2 .pfg-hub-media__img--1 { margin-left: -6%; }
html body .pfg-hub-media--n3 { gap: 6px; padding: 0 14px; }
html body .pfg-hub-media--n3 .pfg-hub-media__img { max-width: 29%; max-height: 84px; }
html body .pfg-hub-media--n3 .pfg-hub-media__img--1 { max-height: 118px; max-width: 34%; }
html body .pfg-card--hub:hover .pfg-hub-media__img { transform: translateY(-6px) scale(1.04); }

/* Нет товаров — крупная иконка в белом круге с кольцами */
html body .pfg-hub-media__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  color: var(--sp-teal-text, #2f7f88);
  box-shadow: 0 1px 2px rgba(21, 21, 21, 0.05), 0 12px 26px -14px rgba(21, 40, 44, 0.35);
  transition: background 0.35s var(--sp-lift), color 0.35s var(--sp-lift), transform 0.5s var(--sp-lift);
}
html body .pfg-hub-media__icon svg { width: 34px; height: 34px; }
html body .pfg-hub-media__icon::before,
html body .pfg-hub-media__icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(77, 160, 169, 0.22);
  pointer-events: none;
}
html body .pfg-hub-media__icon::before { inset: -18px; }
html body .pfg-hub-media__icon::after { inset: -38px; border-color: rgba(77, 160, 169, 0.12); }
html body .pfg-card--hub:hover .pfg-hub-media__icon {
  background: linear-gradient(180deg, #5cb0b9, #4596a0);
  color: #fff;
  transform: scale(1.05);
}

/* Количество позиций: если в направлении есть товары — бирюзовым */
html body .pfg-card--hub:not(:has(.pfg-hub-media--empty)) .pfg-card__count {
  color: var(--sp-teal-text, #2f7f88) !important;
  font-weight: 600 !important;
}
html body .pfg-card--hub .pfg-card__desc { -webkit-line-clamp: 2 !important; }

/* ═════════════ КАТАЛОГ: КАРТОЧКА-ВИТРИНА НА ВСЮ ПЛОЩАДЬ ═════════════
   Оборудование — фон всей карточки; название, описание и «Открыть» лежат поверх,
   внизу, на светлой подложке, которая плавно растворяется в фото. */
html body .pfg-card.pfg-card--hub {
  position: relative !important;
  display: block !important;
  height: 360px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7fbfb 0%, #e9f3f4 100%) !important;
}
html body .pfg-card--hub .pfg-hub-media {
  position: absolute;
  inset: 0;
  height: auto;
  align-items: flex-start;
  padding: 44px 18px 0;
  border-bottom: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 32%, rgba(77, 160, 169, 0.2), transparent 72%),
    transparent;
}
html body .pfg-card--hub .pfg-hub-media__index { z-index: 3; top: 16px; left: 20px; }

/* фото крупнее — оборудование занимает верхние две трети карточки */
html body .pfg-card--hub .pfg-hub-media__img { max-height: 200px; max-width: 72%; }
html body .pfg-card--hub .pfg-hub-media--n2 .pfg-hub-media__img { max-height: 180px; max-width: 46%; }
html body .pfg-card--hub .pfg-hub-media--n3 { gap: 4px; padding-left: 10px; padding-right: 10px; }
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img { max-height: 132px; max-width: 31%; margin-top: 26px; }
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img--1 { max-height: 176px; max-width: 36%; margin-top: 0; }
html body .pfg-card--hub .pfg-hub-media--empty { padding-top: 58px; }
html body .pfg-card--hub .pfg-hub-media__icon { width: 104px; height: 104px; }
html body .pfg-card--hub .pfg-hub-media__icon svg { width: 42px; height: 42px; }

/* текст поверх фото */
html body .pfg-card--hub > .pfg-card__body {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 64px 22px 18px !important;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 58%, rgba(255, 255, 255, 0) 100%);
  gap: 6px;
}
html body .pfg-card--hub .pfg-card__name { margin: 0 !important; font-size: 1.08rem !important; }
html body .pfg-card--hub .pfg-card__desc { margin: 0 !important; }
html body .pfg-card--hub .pfg-card__footer {
  margin-top: 10px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  align-items: center;
}

/* «Открыть» — настоящая кнопка */
html body .pfg-card--hub .pfg-card__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  height: 38px;
  padding: 0 8px 0 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #5cb0b9 0%, #4596a0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px -8px rgba(77, 160, 169, 0.7);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: box-shadow 0.3s var(--sp-lift), transform 0.3s var(--sp-lift);
}
html body .pfg-card--hub .pfg-card__cta svg {
  padding: 5px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff;
}
html body .pfg-card--hub:hover .pfg-card__cta { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 24px -10px rgba(77, 160, 169, 0.8); }
html body .pfg-card--hub:hover .pfg-card__cta svg { transform: translateX(2px); }

/* пустое направление — кнопка спокойнее, белая */
html body .pfg-card--hub:has(.pfg-hub-media--empty) .pfg-card__cta {
  background: #fff;
  color: var(--sp-teal-text, #2f7f88) !important;
  box-shadow: 0 1px 2px rgba(21, 21, 21, 0.06), 0 0 0 1px rgba(77, 160, 169, 0.3);
}
html body .pfg-card--hub:has(.pfg-hub-media--empty) .pfg-card__cta svg { background: rgba(77, 160, 169, 0.12) !important; color: var(--sp-teal-text, #2f7f88); }

/* наведение: фото приподнимается и чуть увеличивается */
html body .pfg-card--hub:hover .pfg-hub-media__img { transform: translateY(-8px) scale(1.05); }
html body .pfg-card--hub::after { display: none !important; }

@media (max-width: 560px) {
  html body .pfg-card.pfg-card--hub { height: 340px; }
}

/* ═════════════ ПОИСК В ШАПКЕ: ВЫПАДАЮЩИЕ ПОДСКАЗКИ ═════════════ */
/* Поле поиска (со своим backdrop-filter = свой слой) поднимаем над меню навигации */
html body .nf-header--ds .nf-search { z-index: 60 !important; }
html body .nf-header--ds .nf-search-suggestions {
  z-index: 61 !important;
  top: calc(100% + 10px) !important;
  max-height: min(460px, 70vh) !important;
  padding: 8px !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid rgba(21, 21, 21, 0.06) !important;
  box-shadow: 0 2px 6px rgba(21, 21, 21, 0.06), 0 28px 60px -24px rgba(21, 40, 44, 0.4) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  overscroll-behavior: contain;
}
html body .nf-search-suggestions .nf-search-group-label {
  padding: 10px 12px 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: var(--sp-teal-text, #2f7f88) !important;
}
html body .nf-search-suggestions .nf-search-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: background 0.2s;
}
html body .nf-search-suggestions .nf-search-item--product { grid-template-columns: 56px minmax(0, 1fr) auto; }
html body .nf-search-suggestions .nf-search-item:hover { background: rgba(77, 160, 169, 0.07) !important; }
html body .nf-search-suggestions .nf-search-thumb {
  width: 56px !important;
  height: 56px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #f8fbfb, #eef5f5) !important;
  box-shadow: inset 0 0 0 1px rgba(21, 21, 21, 0.06) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
html body .nf-search-suggestions .nf-search-thumb img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
html body .nf-search-suggestions .nf-search-item-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html body .nf-search-suggestions .nf-search-item-title {
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--rf-text, #151515) !important;
}
html body .nf-search-suggestions .nf-search-item-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px !important;
  color: var(--rf-muted, #6f7c79) !important;
}
html body .nf-search-suggestions .nf-search-item-cta {
  display: inline-flex !important;
  align-items: center;
  height: 34px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: rgba(77, 160, 169, 0.12) !important;
  color: var(--sp-teal-text, #2f7f88) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
html body .nf-search-suggestions .nf-search-item-cta:hover {
  background: linear-gradient(180deg, #5cb0b9, #4596a0) !important;
  color: #fff !important;
}

/* ═════════════ КАТАЛОГ: ОБОРУДОВАНИЕ НА ВСЮ КАРТОЧКУ ═════════════
   Фото занимает всю карточку (от верха почти до низа), текст лежит поверх нижней части.
   Несколько товаров в направлении — плавно сменяют друг друга (крупно, по одному). */
html body .pfg-card--hub .pfg-hub-media { padding: 0 !important; }
html body .pfg-card--hub .pfg-hub-media__img,
html body .pfg-card--hub .pfg-hub-media--n2 .pfg-hub-media__img,
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img,
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img--1 {
  position: absolute;
  top: 26px;
  left: 8px;
  right: 8px;
  bottom: 74px;
  width: calc(100% - 16px);
  height: calc(100% - 100px);
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center 40%;
  mix-blend-mode: multiply;
  transform-origin: 50% 45%;
}
html body .pfg-card--hub:hover .pfg-hub-media__img { transform: scale(1.04); }

/* смена фото: 2 товара — по 4 с, 3 товара — по 3 с */
@keyframes nfHubFade2 {
  0% { opacity: 1; transform: scale(1); }
  42% { opacity: 1; transform: scale(1.05); }
  50% { opacity: 0; transform: scale(1.06); }
  92% { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes nfHubFade3 {
  0% { opacity: 1; transform: scale(1); }
  28% { opacity: 1; transform: scale(1.05); }
  34% { opacity: 0; transform: scale(1.06); }
  94% { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
html body .pfg-card--hub .pfg-hub-media--n2 .pfg-hub-media__img { animation: nfHubFade2 8s ease-in-out infinite; }
html body .pfg-card--hub .pfg-hub-media--n2 .pfg-hub-media__img--1 { animation-delay: -4s; }
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img { animation: nfHubFade3 9s ease-in-out infinite; }
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img--1 { animation-delay: -6s; }
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img--2 { animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) {
  html body .pfg-card--hub .pfg-hub-media__img { animation: none !important; }
  html body .pfg-card--hub .pfg-hub-media__img--1,
  html body .pfg-card--hub .pfg-hub-media__img--2 { display: none; }
}

/* текст поверх нижней части фото — подложка начинается выше и мягче */
html body .pfg-card--hub > .pfg-card__body {
  padding-top: 90px !important;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%) !important;
}
html body .pfg-card.pfg-card--hub { height: 400px; }

/* ═════════════ КАТАЛОГ: ВЫРАВНИВАНИЕ И СМЕНА ФОТО БЕЗ УВЕЛИЧЕНИЯ ═════════════ */
/* Фото: одинаковая область во всех карточках, без масштабирования */
html body .pfg-card--hub .pfg-hub-media__img,
html body .pfg-card--hub:hover .pfg-hub-media__img { transform: none !important; }
@keyframes nfHubSwap2 {
  0%, 44% { opacity: 1; }
  50%, 94% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes nfHubSwap3 {
  0%, 28% { opacity: 1; }
  33%, 94% { opacity: 0; }
  100% { opacity: 1; }
}
html body .pfg-card--hub .pfg-hub-media--n2 .pfg-hub-media__img { animation-name: nfHubSwap2 !important; }
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img { animation-name: nfHubSwap3 !important; }

/* Названия на одном уровне: описание всегда занимает ровно 2 строки, название — 1 */
html body .pfg-card--hub .pfg-card__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .pfg-card--hub .pfg-card__desc {
  min-height: calc(2 * 1.55em);
  line-height: 1.55 !important;
}

/* ═════════════ СТРАНИЦА ТОВАРА: КОМПАКТНЕЕ ТЕКСТ ═════════════ */
html body .nf-epdp-title {
  font-size: clamp(28px, 2.8vw, 40px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
}
html body .nf-epdp-lead { font-size: 16.5px !important; line-height: 1.6 !important; }
html body .nf-epdp-price__value { font-size: 24px !important; }
html body .nf-epdp-statement__lead {
  font-size: clamp(17px, 1.4vw, 20px) !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
  max-width: 860px;
}
html body .nf-epdp-h2 { font-size: clamp(24px, 2.2vw, 30px) !important; line-height: 1.2 !important; }
html body .nf-epdp-specrow__k { font-size: 13.5px !important; color: var(--sp-teal-text, #2f7f88) !important; }
html body .nf-epdp-specrow__v { font-size: 14.5px !important; font-weight: 500 !important; line-height: 1.5 !important; }
html body .nf-epdp-relcard__name { font-size: 15px !important; }
html body .nf-epdp-cta,
html body .nf-epdp-cta .nf-add-request__txt { font-size: 15px !important; }

/* Каталог: фото чуть меньше и выше текста — название и описание читаются */
html body .pfg-card--hub .pfg-hub-media__img,
html body .pfg-card--hub .pfg-hub-media--n2 .pfg-hub-media__img,
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img,
html body .pfg-card--hub .pfg-hub-media--n3 .pfg-hub-media__img--1 {
  top: 40px;
  left: 24px;
  right: 24px;
  bottom: 150px;
  width: calc(100% - 48px);
  height: calc(100% - 190px);
  object-position: center;
}
html body .pfg-card--hub > .pfg-card__body {
  padding-top: 40px !important;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 70%, rgba(255, 255, 255, 0) 100%) !important;
}
