/* ================================================================
   partners-page.css — Страница «Партнёры» | Северный город Premium
   Scope: .sgp-scope
   ================================================================ */

.sgp-scope {
  --g:   #c8a84b;
  --gs:  rgba(200,168,75,.11);
  --gb:  rgba(200,168,75,.28);
  --dk:  #07192b;
  --ink: #0f172a;
  --mt:  #64748b;
  --ln:  rgba(2,6,23,.10);
  --sh:  0 4px 20px rgba(2,6,23,.06);
  --sh2: 0 10px 30px rgba(2,6,23,.11);
}

.sgp-scope .sgp-page {
  max-width: 1140px;
  margin: 0 auto;
  color: var(--ink);
  padding: 16px 0 56px;
}
.sgp-scope .sgp-page * { box-sizing: border-box; }

/* ── H1 ───────────────────────────────────────────────────────── */
.sgp-scope .sgp-title {
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 16px;
  padding-bottom: 16px;
  position: relative;
  color: var(--dk);
}
.sgp-scope .sgp-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: clamp(160px, 22vw, 320px); height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--g), #e8c96a);
  opacity: 1;
}

/* ── Подзаголовок ─────────────────────────────────────────────── */
.sgp-scope .sgp-subtitle {
  margin: 0 0 4px;
  color: var(--mt);
  font-size: 15px; line-height: 1.65;
  max-width: 900px;
}
.sgp-scope .sgp-link {
  color: var(--g);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(200,168,75,.4);
  text-underline-offset: 3px;
  border: none;
}
.sgp-scope .sgp-link:hover { text-decoration-color: var(--g); }

/* ── Сетка логотипов ──────────────────────────────────────────── */
.sgp-scope .sgp-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

/* ── Карточка логотипа ────────────────────────────────────────── */
.sgp-scope .sgp-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ln);
  box-shadow: var(--sh);
  min-height: 100px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}

/* Золотая полоска снизу при ховере */
.sgp-scope .sgp-item::after {
  content: "";
  position: absolute; left: 0; bottom: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--g), #e8c96a);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.sgp-scope .sgp-item:hover {
  transform: translateY(-3px);
  border-color: var(--gb);
  box-shadow: var(--sh2);
}
.sgp-scope .sgp-item:hover::after { transform: scaleX(1); }

/* Логотип */
.sgp-scope .sgp-item img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .65;
  transition: filter .22s, opacity .22s;
}
.sgp-scope .sgp-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── Адаптив ──────────────────────────────────────────────────── */
@media (max-width: 1100px) { .sgp-scope .sgp-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .sgp-scope .sgp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .sgp-scope .sgp-grid { grid-template-columns: repeat(2, 1fr); }
  .sgp-scope .sgp-item { min-height: 88px; }
  .sgp-scope .sgp-item img { max-height: 56px; }
}