.ph-contacts,
.ph-contacts-hours {
  --ph-c-text: #1b2430;
  --ph-c-muted: #5b6775;
  --ph-c-line: #dee5ed;
  --ph-c-bg: #f6f8fb;
  --ph-c-white: #ffffff;
  --ph-c-accent: #2e68c3;
  --ph-c-online: #1aa35a;
  --ph-c-offline: #8a93a0;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--ph-c-text);
  box-sizing: border-box;
}

.ph-contacts *,
.ph-contacts *::before,
.ph-contacts *::after,
.ph-contacts-hours *,
.ph-contacts-hours *::before,
.ph-contacts-hours *::after {
  box-sizing: border-box;
}

.ph-contacts-hours {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  background: #fff8e8;
  color: #5c4a1f;
  font-size: 15px;
  line-height: 1.5;
}

.ph-contacts-hours[hidden] {
  display: none !important;
}

.ph-contacts-hours p {
  margin: 0;
}

.ph-contacts-hours a {
  color: var(--ph-c-accent);
  text-decoration: underline;
}

.ph-contacts__dept {
  margin: 0 0 36px;
}

.ph-contacts__dept:last-child {
  margin-bottom: 0;
}

.ph-contacts__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ph-c-text);
}

.ph-contacts__shared {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
}

.ph-contacts__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.ph-contacts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ph-c-accent);
}

.ph-contacts__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.ph-contacts__phone-text {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.ph-contacts__phone-num {
  color: var(--ph-c-text);
  text-decoration: none;
  font-weight: 600;
}

.ph-contacts__phone-num:hover {
  color: var(--ph-c-accent);
}

.ph-contacts__phone-label {
  color: var(--ph-c-muted);
  font-size: 14px;
  font-weight: 500;
}

.ph-contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.ph-contacts__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--ph-c-line);
  border-radius: 16px;
  background: var(--ph-c-white);
}

.ph-contacts__avatar {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8eef5;
  overflow: visible;
}

.ph-contacts__avatar img {
  display: block;
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  margin: 0;
  float: none;
  object-fit: cover;
  border-radius: 50%;
}

.ph-contacts a,
.ph-contacts-hours a {
  text-shadow: none;
  font-weight: inherit;
}

.ph-contacts__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #d9e4f2;
  color: #3d5673;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ph-contacts__badge {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  white-space: nowrap;
  color: #fff;
}

.ph-contacts__badge.is-online {
  background: var(--ph-c-online);
}

.ph-contacts__badge.is-offline {
  background: var(--ph-c-offline);
}

.ph-contacts__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ph-contacts__person {
  min-width: 0;
}

.ph-contacts__fio {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.ph-contacts__role {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ph-c-muted);
}

.ph-contacts__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.ph-contacts__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ph-contacts__meta a {
  color: var(--ph-c-accent);
  text-decoration: none;
}

.ph-contacts__meta a:hover {
  text-decoration: underline;
}

.ph-contacts button.ph-email-mask__btn,
.ph-contacts .ph-email-mask button.ph-email-mask__btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 2px 8px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  height: auto !important;
  width: auto !important;
  border: 1px solid #2e68c3 !important;
  border-color: #2e68c3 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  color: #2e68c3 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  opacity: 1 !important;
}

.ph-contacts button.ph-email-mask__btn:hover,
.ph-contacts button.ph-email-mask__btn:focus-visible,
.ph-contacts .ph-email-mask button.ph-email-mask__btn:hover,
.ph-contacts .ph-email-mask button.ph-email-mask__btn:focus-visible {
  background: #ffffff !important;
  border-color: #2458a8 !important;
  color: #2458a8 !important;
}

.ph-contacts__phone-text .ph-email-mask {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 767px) {
  .ph-contacts button.ph-email-mask__btn,
  .ph-contacts .ph-email-mask button.ph-email-mask__btn {
    font-size: 12px !important;
    padding: 1px 6px !important;
  }
}

@media (max-width: 640px) {
  .ph-contacts__title {
    font-size: 20px;
  }

  .ph-contacts__grid {
    grid-template-columns: 1fr;
  }
}
