.clients-page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.clients-hero {
  margin-bottom: 34px;
}

.clients-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.clients-title {
  white-space: nowrap;
}

.clients-hero__text {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.9;
}

.logo-group {
  margin-top: 22px;
  padding: 26px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(24, 200, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(15, 31, 58, 0.78), rgba(8, 17, 31, 0.92));
  box-shadow: var(--shadow);
}

.logo-group__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.logo-group__header span {
  color: var(--accent-warm);
  font-size: 1.08rem;
  letter-spacing: 0.14em;
}

.logo-group__header p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.logo-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 164px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
  border: 1px solid rgba(116, 230, 255, 0.12);
  text-align: center;
}

.logo-card img {
  width: min(100%, 180px);
  max-width: 78%;
  max-height: 70px;
  object-fit: contain;
  display: block;
}

.logo-card strong {
  color: #0f223d;
  font-size: 0.96rem;
  line-height: 1.5;
}

.logo-card.placeholder {
  background:
    radial-gradient(circle at top right, rgba(24, 200, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(16, 37, 67, 0.96), rgba(8, 18, 33, 0.96));
  border-color: rgba(116, 230, 255, 0.18);
}

.logo-card.placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 74px;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(116, 230, 255, 0.18);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo-card.placeholder strong {
  color: var(--text);
}

@media (max-width: 1100px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .clients-page {
    width: min(1240px, calc(100% - 20px));
    padding-top: 24px;
  }

  .logo-group__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .logo-grid {
    grid-template-columns: 1fr;
  }
}
