@charset "UTF-8";
.where-buy {
  padding: 43px 0 80px;
  background: #ececec;
}

.where-buy h1 {
  margin: 38px 0 7px;
  font-size: 38px;
  font-weight: 500;
}

.where-buy__lead {
  margin: 0 0 32px;
  color: #5A5854;
  font-size: 16px;
}

.city-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.city-filter__select,
.city-filter__button {
  height: 40px;
  padding: 0 20px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: 500 15px Manrope, Arial, sans-serif;
}

.city-filter__select {
  min-width: 158px;
  padding-right: 40px;
  color: #1D1D1B;
  background-color: #fff;
  background-image: url("/images/arrow-bottom.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 10px;
  appearance: none;
}

.city-filter__button.is-active {
  color: #fff;
  background: #1C1C1B;
}

.dealer-map {
  position: relative;
  height: 470px;
  overflow: hidden;
  margin-bottom: 58px;
  background: linear-gradient(25deg, transparent 44%, rgba(190, 197, 202, 0.7) 45%, rgba(190, 197, 202, 0.7) 47%, transparent 48%), linear-gradient(155deg, transparent 42%, rgba(207, 212, 216, 0.8) 43%, rgba(207, 212, 216, 0.8) 45%, transparent 46%), linear-gradient(80deg, transparent 48%, rgba(210, 215, 218, 0.7) 49%, rgba(210, 215, 218, 0.7) 51%, transparent 52%), #e6e9ea;
  border-radius: 10px;
}

.dealer-map::before {
  content: "Москва";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(80, 90, 95, 0.08);
  font-size: 120px;
  font-weight: 600;
  text-transform: uppercase;
}

.map-marker {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.map-marker::before {
  content: "";
  flex: 0 0 19px;
  width: 19px;
  height: 25px;
  margin-top: 9px;
  background: #D02C2F;
  clip-path: polygon(50% 100%, 5% 40%, 8% 20%, 25% 5%, 50% 0, 75% 5%, 92% 20%, 95% 40%);
}

.map-marker__card {
  min-width: 190px;
  padding: 13px 16px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.11);
}

.map-marker__card strong,
.map-marker__card span,
.map-marker__card a {
  display: block;
}

.map-marker__card strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.map-marker__card span {
  color: #999;
  font-size: 12px;
}

.map-marker__card a {
  margin-top: 3px;
  color: #D02C2F;
  font-size: 12px;
}

.map-marker--one {
  top: 20%;
  left: 16%;
}

.map-marker--two {
  top: 11%;
  left: 50%;
}

.map-marker--three {
  top: 30%;
  right: 5%;
}

.map-marker--four {
  bottom: 20%;
  left: 25%;
}

.map-marker--five {
  right: 23%;
  bottom: 13%;
}

.dealer-map::before {
  content: none;
}

.dealer-map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  place-items: center;
  color: #777;
}

.dealer-map [class*=ground-pane] {
  filter: grayscale(1);
}

.dealer-map [class*=balloon__content] {
  min-width: 190px;
  margin: 0 !important;
  padding: 0 !important;
  font-family: Manrope, Arial, sans-serif !important;
  background: #fff !important;
}

.dealer-map [class*=balloon__layout] {
  overflow: hidden;
  border-radius: 10px;
}

.dealer-balloon {
  display: flex;
  min-width: 190px;
  padding: 12px 36px 11px 16px;
  flex-direction: column;
  line-height: 1.35;
}

.dealer-balloon__name {
  color: #1D1D1B;
  font-size: 14px;
  font-weight: 500;
}

.dealer-balloon__phone,
.dealer-balloon__site {
  width: fit-content;
  font-size: 12px;
  text-decoration: none;
}

.dealer-balloon__phone {
  margin-top: 2px;
  color: #999;
}

.dealer-balloon__site {
  margin-top: 4px;
  color: #D02C2F;
}

.dealers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.dealer-card {
  min-height: 250px;
  padding: 24px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.dealer-card.is-active {
  border-color: #D02C2F;
  box-shadow: 0 6px 20px rgba(208, 43, 47, 0.12);
}

.dealer-card[hidden] {
  display: none;
}

.dealer-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.dealer-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #D02C2F;
  background: #F6F6F5;
  border-radius: 10px;
}

.dealer-card__icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.dealer-card__city {
  padding: 7px 12px;
  color: #5A5854;
  background: #f7f7f7;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.dealer-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  color: #1D1D1B;
}

.dealer-card p {
  margin: 0 0 6px;
  color: #767470;
  font-size: 13px;
}

.dealer-card__phone,
.dealer-card__site {
  display: block;
  width: fit-content;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 500;
}

.dealer-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1d1d1b;
}

.dealer-card__phone img {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.dealer-card__site {
  color: #D02C2F;
  padding-left: 22px;
}

@media (hover: hover) {
  .city-filter__button:hover {
    color: #D02C2F;
  }
  .city-filter__button.is-active:hover {
    color: #fff;
  }
  .dealer-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }
}