/* Центр сопровождения контрактов — единый логотип и контакты */
.brand {
  min-width: 0;
}
.brand-logo {
  display: block;
  width: clamp(170px, 19vw, 250px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}
.centr-logo {
  width: auto;
  max-width: min(100%, 260px);
  height: auto;
  max-height: 90px;
  object-fit: contain;
}
.header__logo.centr-logo,
.component-logo-img.centr-logo {
  max-width: 230px;
  max-height: 64px;
}
.footer__legal-logo.centr-logo {
  max-width: 240px;
  max-height: 80px;
}
.contact-pair {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
  max-width: 100%;
}
.contact-pair > a {
  overflow-wrap: anywhere;
}
.telegram-contact {
  white-space: nowrap;
}
.footer-grid {
  grid-template-columns: minmax(0, 1fr);
}
.footer-grid .telegram-contact {
  display: inline-block;
  white-space: normal;
}
.header-contact.contact-pair {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}
.header-contact.contact-pair:hover {
  background: none;
}
.header-contact .header-phone {
  font-weight: 650;
}
.header-contact .header-telegram {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
@media (max-width: 1180px) {
  .brand-logo {
    width: clamp(160px, 20vw, 220px);
  }
  .header-contact.contact-pair {
    gap: 11px;
    font-size: 10px;
  }
}
@media (max-width: 950px) {
  .site-header,
  .site-header.scrolled {
    flex-wrap: wrap;
    height: 124px;
    min-height: 124px;
    padding-block: 12px;
  }
  .header-contact.contact-pair {
    order: 10;
    flex-basis: 100%;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #d6dedb;
  }
  main#content {
    padding-top: 124px;
  }
}
@media (max-width: 700px) {
  .brand-logo {
    width: min(180px, 47vw);
    max-height: 44px;
  }
  .contact-pair {
    gap: 4px 10px;
  }
  .header-contact.contact-pair {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
  }
  .main-nav {
    top: 123px;
    max-height: calc(100dvh - 124px);
  }
  .telegram-contact {
    white-space: normal;
  }
  .header-contact .telegram-contact {
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .brand-logo {
    width: min(154px, 46vw);
  }
}
