/* ═══════════════════════════════════════════════════════════════════════
   NanoFarm · СТРАНИЦА ПАРТНЁРА — ПРОСТАЯ ВЕРСИЯ
   Шапка бренда → ровная сетка оборудования → другие производители.
   Подключается после refined-showroom.css. Стиль «мягкий премиум».
   ═══════════════════════════════════════════════════════════════════════ */

html body .nf-partners-page.nf-pp-mode { padding-bottom: 48px; }
html body .nf-ps2 { display: flex; flex-direction: column; gap: 40px; padding-top: 24px; }

html body .nf-ps2__crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--rf-muted, #6f7c79); margin-bottom: -16px; }
html body .nf-ps2__crumbs a { color: var(--sp-teal-text, #2f7f88); text-decoration: none; }
html body .nf-ps2__crumbs a:hover { text-decoration: underline; }

/* ── Шапка бренда ── */
html body .nf-ps2-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.06);
  box-shadow: var(--sp-card-shadow);
}
html body .nf-ps2-head__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 110px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(21, 21, 21, 0.07);
}
html body .nf-ps2-head__logo img { max-width: 124px; max-height: 76px; object-fit: contain; }
html body .nf-ps2-head__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
html body .nf-ps2-head__meta { margin: 0; font-size: 13px; font-weight: 500; color: var(--sp-teal-text, #2f7f88); }
html body .nf-ps2-head__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--rf-text, #151515);
}
html body .nf-ps2-head__desc { margin: 0; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--rf-muted, #6f7c79); }
html body .nf-ps2-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
html body .nf-ps2-head__side .nf-btn { height: 48px; padding: 0 24px; font-weight: 600; white-space: nowrap; }
html body .nf-ps2-head__count { font-size: 13px; color: var(--rf-muted, #6f7c79); }

/* ── Сетка оборудования ── */
html body .nf-ps2-h2 {
  margin: 0 0 18px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--rf-text, #151515);
}
html body .nf-ps2-h2--small { font-size: 18px; }
html body .nf-ps2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
html body .nf-ps2-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.06);
  box-shadow: var(--sp-card-shadow);
  overflow: hidden;
  transition: transform 0.3s var(--sp-lift), box-shadow 0.3s var(--sp-lift);
}
html body .nf-ps2-card:hover { transform: translateY(-4px); box-shadow: var(--sp-card-shadow-hover); }
html body .nf-ps2-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid rgba(21, 21, 21, 0.06);
  cursor: pointer;
}
html body .nf-ps2-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--sp-lift);
}
html body .nf-ps2-card:hover .nf-ps2-card__media img { transform: scale(1.04); }
html body .nf-ps2-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
html body .nf-ps2-card__cat {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(77, 160, 169, 0.12);
  color: var(--sp-teal-text, #2f7f88);
  font-size: 12px;
  font-weight: 500;
}
html body .nf-ps2-card__name {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--rf-text, #151515);
  cursor: pointer;
  transition: color 0.2s;
}
html body .nf-ps2-card__name:hover { color: var(--rf-accent, #4da0a9); }
html body .nf-ps2-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rf-muted, #6f7c79);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html body .nf-ps2-card__foot {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
html body .nf-ps2-card__foot .nf-btn { flex: 1; height: 42px; padding: 0 14px; font-weight: 600; font-size: 13.5px; }
html body .nf-ps2-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sp-card-shadow);
  color: var(--rf-muted, #6f7c79);
}

/* ── Другие производители ── */
html body .nf-ps2-others__list { display: flex; flex-wrap: wrap; gap: 12px; }
html body .nf-ps2-other {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sp-soft-ring);
  font: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--sp-lift), box-shadow 0.25s var(--sp-lift);
}
html body .nf-ps2-other:hover { transform: translateY(-2px); box-shadow: var(--sp-soft-ring-hover); }
html body .nf-ps2-other__logo { display: flex; align-items: center; justify-content: center; width: 64px; height: 40px; }
html body .nf-ps2-other__logo img { max-width: 60px; max-height: 36px; object-fit: contain; }
html body .nf-ps2-other__name { font-size: 15px; font-weight: 600; color: var(--rf-text, #151515); }
html body .nf-ps2-other__arrow { color: var(--rf-accent, #4da0a9); }

@media (max-width: 860px) {
  html body .nf-ps2-head { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  html body .nf-ps2-head__side { align-items: flex-start; }
}

/* Длинные описания партнёров в карточках списка — до 4 строк (полный текст на странице партнёра) */
html body .nf-prt__desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
