/* Ссылки и интерактивные элементы отдельных шаблонов сайта. */
.department__content__items__item a {
  display: inline-block;
  padding: 5px 12px !important;
  border: 1px solid #f0dcdc !important;
  border-radius: 999px !important;
  background: #fcf1f1 !important;
  color: #a3171c !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.department__content__items__item a:hover {
  border-color: #b51d22 !important;
  background: #b51d22 !important;
  color: #fff !important;
}

html body .department__head { transition: background-color .15s ease; }
html body .department__head:hover { background: #b51d22 !important; }
html body .department__head:hover .department__head__txt { color: #fff !important; }
html body .department__head__icon .icon {
  width: 0 !important;
  height: 0 !important;
  border-style: solid;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent #e0353b;
  background: none !important;
  transition: border-color .15s ease;
}
html body .department__head:hover .department__head__icon .icon { border-left-color: #fff; }
html body .department__head:focus-visible {
  outline: 3px solid rgb(181 29 34 / .5);
  outline-offset: 2px;
}

a.page-worker__dept-link {
  color: #a3171c !important;
  text-decoration: underline !important;
  text-decoration-color: rgb(181 29 34 / .35) !important;
  text-underline-offset: 3px;
}
a.page-worker__dept-link:hover {
  color: #7d1014 !important;
  text-decoration-color: currentColor !important;
}

.dept-phone a,
.page-contact a[href^="tel:"] {
  color: #1e2428 !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.dept-phone a:hover,
.page-contact a[href^="tel:"]:hover { color: #b51d22 !important; }
.dept-phone a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.wpcf7 a {
  color: #a3171c !important;
  text-decoration-color: rgb(181 29 34 / .35) !important;
  text-underline-offset: 3px;
}

a.specialist__link,
a.useful-links__carousel__items__item {
  color: inherit !important;
  text-decoration: none !important;
}
.pagination a.page-numbers {
  color: #30383c !important;
  text-decoration: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .department__content__items__item a,
  html body .department__head,
  html body .department__head__icon .icon { transition: none; }
}
