/* ==========================================================
BRANDS
========================================================== */

#brands {
  background: #fffdf9;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.brand-card {
  min-height: 150px;
  padding: 28px 20px;
  border: 1px solid #f0ddcc;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.045);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .28s ease;
  cursor: default;
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: #e67e3a;
  box-shadow: 0 22px 45px rgba(0,0,0,.075);
}

.brand-card img {
  display: block;
  max-width: 170px;
  max-height: 58px;
  object-fit: contain;
}

.brand-card span {
  display: none;
}

.brands-footer {
  margin: 48px auto 0;
  max-width: 980px;
  padding: 28px 34px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff7ee 0%, #fffdf9 55%, #fff3e5 100%);
  border: 1px solid #f0ddcc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: 0 12px 34px rgba(0,0,0,.05);
}

.brands-footer p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #303846;
}

.brands-footer .button {
  min-width: 250px;
  min-height: 54px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: #e67e3a;
  border-color: #e67e3a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  box-shadow: none;
}

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

@media (max-width: 760px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-footer {
    flex-direction: column;
    text-align: center;
    padding: 26px 22px;
  }

  .brands-footer .button {
    width: auto;
    min-width: 250px;
  }
}

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

  .brands-footer .button {
    width: 100%;
    min-width: 0;
  }
}

/* базовый размер */
.brand-card img {
  display: block;
  max-width: 170px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* индивидуальная подгонка */
.brand-card--apple img {
  max-width: 158px;
}

.brand-card--samsung img {
  max-width: 165px;
}

.brand-card--xiaomi img {
  max-width: 172px;
}

.brand-card--realme img {
  max-width: 170px;
}

.brand-card--honor img {
  max-width: 165px;
}

.brand-card--huawei img {
  max-width: 108px;
  max-height: 74px;
}

.brand-card--tecno img {
  max-width: 165px;
}

.brand-card--infinix img {
  max-width: 160px;
}

.brand-card--remax img {
  max-width: 155px;
}

.brand-card--hoco img {
  max-width: 132px;
}

.brand-card--borofone img {
  max-width: 158px;
}

.brand-card--faison img {
  max-width: 165px;
}