/* Brand cards redesign */
.brands {
  padding: 92px 0 70px;
  background: #f7f5f3;
  border: 0;
}

.brands-container {
  max-width: 1420px;
}

.brands-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}

.brands-heading::before,
.brands-heading::after {
  content: '';
  width: 24px;
  height: 2px;
  background: #8a877f;
}

.brands-heading::after {
  content: none;
}

.brands-label {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a877f;
}

.brands-label::before {
  content: none;
}

.brands-title {
  max-width: 760px;
  margin-bottom: 46px;
}

.brands-title span {
  color: var(--accent);
}

.brands + .prices {
  padding-top: 52px;
}

.about-hero + .brands {
  padding-top: 28px;
}

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

.brand-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 0.6;
  overflow: hidden;
  border: 1px solid #e6e2de;
  border-radius: 16px;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transform: translateZ(0);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.88) 35%, rgba(255,255,255,0.22) 58%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.brand-card:hover,
.brand-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-3px);
}

.brand-card:focus-visible {
  outline: 2px solid rgba(249, 110, 16, 0.28);
  outline-offset: 4px;
}

.brand-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.brand-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 98px;
  text-align: center;
}

.brand-logo {
  display: flex;
  width: 220px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 38px;
}

.brand-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-logo--gazon,
.brand-logo--valdai {
  width: 230px;
}

.brand-logo--gazon img {
  filter: contrast(1.18) brightness(0.88);
}

.brand-logo--uaz {
  width: 128px;
  height: 56px;
  margin-bottom: 38px;
}

.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.brand-sub {
  display: block;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.3;
  color: #6d6861;
}

.brand-arrow {
  position: absolute;
  right: 54px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #817d76;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
  transform: none;
  transition: color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.brand-card:hover .brand-arrow,
.brand-card:focus-visible .brand-arrow {
  color: var(--accent);
}

.brand-card:hover .brand-arrow,
.brand-card:focus-visible .brand-arrow {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.brand-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1180px) {
  .brands {
    padding: 80px 0 64px;
  }

  .brands-list {
    gap: 20px;
  }

  .brand-card-body {
    padding: 48px 16px 86px;
  }

  .brand-logo {
    width: 188px;
    height: 50px;
    margin-bottom: 32px;
  }

  .brand-logo--gazon,
  .brand-logo--valdai {
    width: 198px;
  }

  .brand-logo--uaz {
    width: 112px;
    height: 46px;
    margin-bottom: 32px;
  }

  .brand-name {
    font-size: 28px;
  }

  .brand-sub {
    font-size: 15px;
  }
}

@media (max-width: 820px) {
  .brands {
    padding: 72px 0 56px;
  }

  .brands-heading {
    gap: 10px;
    margin-bottom: 12px;
  }

  .brands-heading::before,
  .brands-heading::after {
    width: 24px;
  }

  .brands-label {
    font-size: 11px;
  }

  .brands-title {
    max-width: 640px;
    margin-bottom: 38px;
  }

  .brands + .prices {
    padding-top: 44px;
  }

  .about-hero + .brands {
    padding-top: 24px;
  }

  .brands-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .brand-card {
    aspect-ratio: 0.62;
    border-radius: 12px;
  }

  .brand-card:hover,
  .brand-card:focus-visible {
    transform: none;
  }

  .brand-card-body {
    padding: 38px 14px 24px;
  }

  .brand-logo {
    width: 150px;
    height: 42px;
    margin-bottom: 34px;
  }

  .brand-logo--gazon,
  .brand-logo--valdai {
    width: 154px;
  }

  .brand-logo--uaz {
    width: 86px;
    height: 34px;
    margin-bottom: 34px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-sub {
    margin-top: 9px;
    font-size: 15px;
  }

  .brand-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .brands {
    padding: 58px 0 48px;
  }

  .brands-heading {
    gap: 10px;
    margin-bottom: 12px;
  }

  .brands-heading::before,
  .brands-heading::after {
    width: 24px;
  }

  .brands-label {
    font-size: 11px;
  }

  .brands-title {
    margin-bottom: 30px;
  }

  .brands + .prices {
    padding-top: 36px;
  }

  .about-hero + .brands {
    padding-top: 20px;
  }

  .brands-list {
    gap: 14px 12px;
  }

  .brand-card {
    border-radius: 10px;
  }

  .brand-card-body {
    padding: 30px 12px 18px;
  }

  .brand-logo {
    width: 126px;
    height: 36px;
    margin-bottom: 30px;
  }

  .brand-logo--gazon,
  .brand-logo--valdai {
    width: 132px;
  }

  .brand-logo--uaz {
    width: 74px;
    height: 30px;
    margin-bottom: 30px;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-sub {
    font-size: 14px;
  }
}
