.contact-section {
  padding: 28px 0 28px;
  background: #f3f4f6;
}

.hq-panel {
  background: #fff;
  padding: 28px 36px 40px;
  box-shadow: 0 0 0 1px #ececec;
}

.hq-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 22px;
}

.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.location-photo {
  overflow: hidden;
}

.location-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.location h2 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.location-meta {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 10px 12px;
  color: #8a8a8a;
  font-size: 14px;
}

.location-meta span {
  flex: 1;
  min-width: 0;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.map-btn:hover {
  background: var(--blue-dark);
}

.branch-panel {
  margin-top: 16px;
  padding-bottom: 28px;
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px 32px;
}

.branch h2 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.branch-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.branch-row p {
  flex: 1;
  min-width: 0;
}

.branch-row p:has(.map-btn) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.branch-row p:has(.map-btn) span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.branch-row .map-btn {
  flex: 0 0 auto;
  align-self: flex-start;
  margin: 2px 0 0;
}

.icon-pin,
.icon-phone {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  background: currentColor;
}

.icon-pin {
  color: #ff5a8a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-phone {
  color: #5a5a5a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.62 10.79a15.15 15.15 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24 11.36 11.36 0 0 0 3.56.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.56 1 1 0 0 1-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.62 10.79a15.15 15.15 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24 11.36 11.36 0 0 0 3.56.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.56 1 1 0 0 1-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.branch .map-btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hq-panel {
    padding: 20px 16px 28px;
  }

  .locations {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .location-photo img {
    height: 200px;
  }

  .branch-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .branch-grid {
    grid-template-columns: 1fr 1fr;
  }
}
