.profile-related {
  padding-block: 38px 42px;
  border-top: 1px solid var(--line, #ced9e0);
  background: var(--wash, #eef3f6);
}
.profile-related__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 22px;
}
.profile-related__heading h2 { margin: 0; font-size: 32px; line-height: 1.12; }
.profile-related__all {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--blue, #175dab);
  font-size: 13px;
  text-underline-offset: 3px;
}
.profile-related__grid {
  display: grid;
  grid-template-columns: repeat(var(--profile-related-columns, 3), minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}
.profile-related__card {
  position: relative;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 20px 20px 44px;
  gap: 10px;
  min-width: 0;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line, #ced9e0);
  border-radius: 3px;
  background: #fff;
}
.profile-related__card:hover { border-color: #8ca9bf; }
.profile-related__mark { width: 132px; height: 76px; }
.profile-related__mark .company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 8px;
  border: 1px solid #e1e8ed;
  background: #fff;
}
.profile-related__mark .company-logo.dark-logo { background: #18313f; border-color: #18313f; }
.profile-related__mark .company-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.profile-related__mark .company-logo > .name-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  font-size: 24px;
  line-height: 1;
}
.profile-related__title { align-self: start; min-width: 0; margin: 0; font-size: 24px; line-height: 1.15; }
.profile-related__title a { position: static; color: var(--ink, #183c5a); text-decoration: none; overflow-wrap: anywhere; }
.profile-related__title a::after { position: absolute; z-index: 1; inset: 0; border-radius: 3px; content: ''; }
.profile-related__title a:hover { color: var(--blue, #175dab); }
.profile-related__title a:focus-visible { outline: none; }
.profile-related__title a:focus-visible::after { outline: 3px solid #9b690a; outline-offset: 3px; }
.profile-related__reviews { min-width: 0; font-size: 13px; line-height: 20px; }
.profile-related__reviews .rating { font-size: 13px; line-height: 20px; }
.profile-related__reviews a { position: relative; z-index: 2; }
.profile-related__reviews a:focus-visible { outline: 3px solid #9b690a; outline-offset: 3px; }
.profile-related__location { min-width: 0; margin: 0; color: var(--muted, #526572); font-size: 13px; line-height: 20px; }
.profile-related__cta {
  display: flex;
  align-items: center;
  align-self: end;
  gap: 8px;
  color: var(--blue, #175dab);
  font-size: 13px;
  font-weight: 600;
}
.profile-related__cta .icon,
.profile-related__all .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (max-width: 760px) {
  .profile-related { padding-block: 28px 32px; }
  .profile-related__heading { display: block; margin-bottom: 16px; }
  .profile-related__heading h2 { font-size: 28px; }
  .profile-related__all { margin-top: 4px; }
  .profile-related__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .profile-related__card {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto auto 44px;
    column-gap: 14px;
    row-gap: 4px;
    height: auto;
    padding: 16px;
  }
  .profile-related__mark { grid-column: 1; grid-row: 1 / span 4; width: 76px; height: 64px; }
  .profile-related__mark .company-logo { padding: 6px; }
  .profile-related__title { grid-column: 2; grid-row: 1; font-size: 22px; line-height: 1.15; }
  .profile-related__reviews { grid-column: 2; grid-row: 2; }
  .profile-related__location { grid-column: 2; grid-row: 3; }
  .profile-related__cta { grid-column: 2; grid-row: 4; }
  .profile-related__reviews:empty,
  .profile-related__location:empty { display: none; }
}

@media (max-width: 350px) {
  .profile-related__card { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 14px; }
  .profile-related__mark { width: 64px; }
  .profile-related__title { font-size: 21px; }
}
