.brands-page {
  --brands-blue: #2a66eb;
  --brands-ink: #111827;
  --brands-text: #44526a;
  --brands-muted: #77849a;
  --brands-line: #d8e1ed;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 76px;
  color: var(--brands-ink);
}

.brands-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--brands-muted);
  font-size: 14px;
}

.brands-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.brands-breadcrumb a:hover {
  color: var(--brands-blue);
}
.brands-breadcrumb strong {
  color: var(--brands-text);
}

.brands-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  min-height: 285px;
  overflow: hidden;
  padding: 50px 56px;
  border: 1px solid #cddcf5;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #f2f7ff 62%, #e9f1ff 100%);
}

.brands-kicker,
.brands-section-head > div > span {
  display: block;
  margin-bottom: 8px;
  color: var(--brands-blue);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.brands-hero h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.brands-hero p {
  max-width: 660px;
  margin: 18px 0 24px;
  color: var(--brands-text);
  font-size: 18px;
  line-height: 1.55;
}

.brands-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brands-benefits span {
  padding: 8px 12px;
  border: 1px solid #d4e0f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #314157;
  font-size: 13px;
  font-weight: 700;
}

.brands-hero-mark {
  position: absolute;
  top: 30px;
  right: 42px;
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 10px;
  transform: rotate(-5deg);
  opacity: 0.78;
}

.brands-hero-mark span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(41, 100, 232, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--brands-blue);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(32, 73, 148, 0.08);
}

.brands-search-panel {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: -30px auto 52px;
  padding: 20px 24px 16px;
  border: 1px solid var(--brands-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(26, 48, 84, 0.12);
}

.brands-search-panel > label {
  display: block;
  margin: 0 0 9px;
  font-size: 14px;
  font-weight: 800;
}

.brands-search-box {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 15px;
  border: 2px solid #cbd6e5;
  border-radius: 14px;
  color: #718097;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.brands-search-box:focus-within {
  border-color: var(--brands-blue);
  box-shadow: 0 0 0 4px rgba(41, 100, 232, 0.12);
}

.brands-search-box input {
  width: 100%;
  min-width: 0;
  padding: 15px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--brands-ink);
  font: inherit;
  font-size: 17px;
}

.brands-search-box input::placeholder {
  color: #96a1b2;
}
.brands-search-box button {
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  background: #edf3ff;
  color: var(--brands-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.brands-search-status {
  margin: 10px 2px 0;
  color: var(--brands-muted);
  font-size: 13px;
}

.brands-section {
  margin-top: 50px;
}
.brands-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.brands-section-head h2,
.brands-seo-copy h2 {
  margin: 0;
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.brands-section-head > a {
  color: var(--brands-blue);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.brands-popular-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.brands-popular-card {
  display: flex;
  min-width: 0;
  min-height: 168px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 18px 12px 15px;
  border: 1px solid var(--brands-line);
  border-radius: 18px;
  background: #fff;
  color: var(--brands-ink);
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.brands-popular-card:hover {
  transform: translateY(-3px);
  border-color: #9dbcfb;
  box-shadow: 0 13px 30px rgba(25, 54, 97, 0.09);
}

.brand-logo-frame {
  display: grid;
  width: 100%;
  height: 62px;
  place-items: center;
  margin-bottom: 8px;
}

.brand-logo-frame img {
  max-width: 128px;
  max-height: 54px;
  object-fit: contain;
}
.brand-logo-frame b,
.brands-list-logo b {
  color: #33537d;
  font-size: 19px;
  letter-spacing: 0.03em;
}
.brands-popular-card > strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brands-popular-card small {
  margin-top: 7px;
  color: var(--brands-muted);
  font-size: 12px;
}
.brands-popular-card:hover small {
  color: var(--brands-blue);
}

.brands-all {
  padding: 30px;
  border: 1px solid var(--brands-line);
  border-radius: 24px;
  background: #fff;
}

.brands-alphabet {
  position: sticky;
  top: 112px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 34px;
  padding: 10px;
  border: 1px solid var(--brands-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(23, 43, 77, 0.06);
  backdrop-filter: blur(10px);
}

.brands-alphabet button {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 9px;
  background: #f0f4f9;
  color: #334157;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.brands-alphabet button:hover:not(:disabled) {
  background: var(--brands-blue);
  color: #fff;
}
.brands-alphabet button:disabled {
  color: #bdc5d1;
  cursor: default;
}
.brands-letter-group {
  scroll-margin-top: 180px;
}
.brands-letter-group + .brands-letter-group {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #e4eaf2;
}
.brands-letter-group h3 {
  margin: 0 0 14px;
  color: var(--brands-blue);
  font-size: 26px;
  font-weight: 700;
}
.brands-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.brands-list-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  color: #26344a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.brands-list-card:hover {
  border-color: #a9c1f3;
  background: #f6f9ff;
  color: var(--brands-blue);
}
.brands-list-card > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brands-list-card i {
  color: #a1adbd;
  font-size: 22px;
  font-style: normal;
  text-align: right;
}
.brands-list-logo {
  display: grid;
  width: 64px;
  height: 44px;
  place-items: center;
}
.brands-list-logo img {
  max-width: 60px;
  max-height: 42px;
  object-fit: contain;
}
.brands-list-logo b {
  font-size: 12px;
}

.brands-empty {
  padding: 60px 20px;
  border: 1px dashed #c8d3e2;
  border-radius: 16px;
  text-align: center;
}
.brands-empty strong,
.brands-empty span {
  display: block;
}
.brands-empty strong {
  margin-bottom: 7px;
  font-size: 21px;
}
.brands-empty span {
  color: var(--brands-muted);
}

.brands-seo-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr);
  gap: 28px;
  margin-top: 38px;
  padding: 36px 40px;
  border-radius: 24px;
  background: #edf3fa;
}

.brands-seo-copy p {
  color: var(--brands-text);
  line-height: 1.7;
}
.brands-seo-copy aside {
  padding: 22px 24px;
  border: 1px solid #d3deec;
  border-radius: 16px;
  background: #fff;
}
.brands-seo-copy aside h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.brands-seo-copy aside p {
  margin: 0 0 14px;
  font-size: 14px;
}
.brands-seo-copy aside a {
  color: var(--brands-blue);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.brand-filter-item[hidden],
.brands-letter-group[hidden],
.brands-alphabet[hidden],
.brands-empty[hidden],
#brand-search-clear[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .brands-hero {
    grid-template-columns: 1fr;
  }
  .brands-hero-copy {
    max-width: 68%;
  }
  .brands-popular-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .brands-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .brands-page {
    width: calc(100% - 24px);
    padding: 14px 0 52px;
  }
  .brands-breadcrumb {
    margin-bottom: 12px;
  }
  .brands-hero {
    min-height: 0;
    padding: 28px 22px 58px;
    border-radius: 20px;
  }
  .brands-hero-copy {
    max-width: none;
  }
  .brands-hero h1 {
    font-size: 28px;
  }
  .brands-hero p {
    margin: 13px 0 19px;
    font-size: 15px;
  }
  .brands-hero-mark {
    display: none;
  }
  .brands-benefits {
    gap: 7px;
  }
  .brands-benefits span {
    padding: 7px 9px;
    font-size: 11px;
  }
  .brands-search-panel {
    margin: -32px 10px 38px;
    padding: 16px;
    border-radius: 16px;
  }
  .brands-search-box {
    min-height: 54px;
  }
  .brands-search-box input {
    font-size: 16px;
  }
  .brands-section {
    margin-top: 38px;
  }
  .brands-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brands-section-head > div,
  .brands-hero-copy,
  .brands-seo-copy > div,
  .brands-seo-copy aside {
    min-width: 0;
    max-width: 100%;
  }
  .brands-section-head > a {
    padding-top: 5px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .brands-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .brands-popular-card {
    min-height: 146px;
    padding: 13px 8px;
    border-radius: 14px;
  }
  .brand-logo-frame {
    height: 55px;
  }
  .brand-logo-frame img {
    max-width: 105px;
    max-height: 45px;
  }
  .brands-all {
    padding: 19px 12px;
    border-radius: 19px;
  }
  .brands-alphabet {
    position: static;
    gap: 5px;
    margin-bottom: 26px;
    padding: 8px;
  }
  .brands-alphabet button {
    width: 34px;
    height: 34px;
  }
  .brands-list-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .brands-list-card {
    min-height: 58px;
  }
  .brands-seo-copy {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 22px;
  }
  .brands-seo-copy :is(h2, h3, p, a) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
