.reference-header-main {
  grid-template-columns: 330px minmax(0, 1fr) max-content 90px 118px;
}
.reference-header-main .search-form,
.reference-header-main .search-form input {
  min-width: 0;
}
.header-contact-actions {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 5px;
}
.header-contact-actions a {
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 851px) and (max-width: 1250px) {
  .reference-header-main {
    grid-template-columns: minmax(185px, 230px) minmax(0, 1fr) max-content 85px;
  }
}
@media (max-width: 850px) {
  .reference-header-main { grid-template-columns: minmax(0, 1fr) auto; }
  .reference-header-main .header-phone {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .header-phone > a, .header-phone > span { display: none; }
  .header-contact-actions { justify-content: flex-end; margin-top: 0; gap: 16px; }
  .header-contact-actions a { display: inline-flex; align-items: center; min-height: 28px; }
}
