.brands-page {
  padding: 8px 0 48px;
}
.brands-page__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.brands-page__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  text-decoration: none;
  color: #000;
  transition: box-shadow 0.2s ease;
}
.brands-page__item:hover {
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #000;
}
.brands-page__item img {
  display: block;
  width: 100%;
  height: 56px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 12px;
}
.brands-page__item span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.brand-page {
  padding-bottom: 48px;
}
.brand-page__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}
.brand-page__logo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  -o-object-fit: contain;
     object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
}
.brand-page__header-text {
  min-width: 0;
}
.brand-page__section-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 16px;
}
.brand-page__categories {
  margin: 28px 0 8px;
}
.brand-page__category-group {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.brand-page__category-group:last-child {
  margin-bottom: 0;
}
.brand-page__category-root {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 14px;
}
.brand-page__category-root a {
  color: #000;
  text-decoration: none;
}
.brand-page__category-root a:hover {
  color: #5CC6FA;
}
.brand-page__category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-page__category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f5f7f8;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
  color: #000;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.brand-page__category-link span {
  color: #8a8a8a;
  font-size: 12px;
}
.brand-page__category-link:hover {
  background: #5CC6FA;
  color: #fff;
  text-decoration: none;
}
.brand-page__category-link:hover span {
  color: rgba(255, 255, 255, 0.85);
}
.brand-page__catalog {
  margin-top: 24px;
}
.brand-page__about {
  margin-top: 40px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.brand-page__description {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}
.brand-page__description h2, .brand-page__description h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 500;
}
.brand-page__description p {
  margin: 0 0 12px;
}
.brand-page__description p:last-child {
  margin-bottom: 0;
}
.brand-page__media {
  flex: 0 0 260px;
  width: 100%;
  max-width: 320px;
}
.brand-page__country {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}
.brand-page__country img {
  width: 28px;
  height: auto;
}
.brand-page__gallery-main {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.brand-page__gallery-main img {
  display: block;
  width: 100%;
  height: auto;
}
.brand-page__gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-page__gallery-thumbs a {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.brand-page__gallery-thumbs a img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

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

  .brand-page__about {
    padding: 20px;
  }
}
@media (max-width: 640px) {
  .brands-page__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .brands-page__item {
    min-height: 100px;
    padding: 16px 12px;
  }

  .brand-page__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-page__logo {
    width: 72px;
    height: 72px;
  }

  .brand-page__category-group {
    padding: 16px;
  }

  .brand-page__media {
    flex-basis: 100%;
    max-width: none;
  }
}