/* Страницы отделения и врача: вкладки, карточки врачей, формы, оценка звёздами. */
.hc-page { padding: 40px 0 70px; }
.hc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.hc-tab { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; border: 0; border-radius: 999px;
  padding: 12px 24px; min-height: 44px; background: #eef3f8; color: #232323; cursor: pointer; transition: background .15s, color .15s; }
.hc-tab:hover { background: #e1ebf4; }
.hc-tab.is-active { background: #0C91D5; color: #fff; box-shadow: 0 6px 16px rgba(12,145,213,.28); }
.hc-panel { display: none; }
.hc-panel.is-active { display: block; }

.hc-btn { display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; border-radius: 999px;
  padding: 13px 26px; border: 2px solid #0C91D5; background: #0C91D5; color: #fff !important; cursor: pointer; line-height: 1.2; }
.hc-btn:hover { background: #0a7fbb; border-color: #0a7fbb; }
.hc-btn--outline { background: #fff; color: #232323 !important; }
.hc-btn--outline:hover { background: #eef7fd; }

.hc-doctors { display: flex; flex-direction: column; gap: 16px; }
.hc-doctor { display: flex; flex-wrap: wrap; border: 1px solid #e7e7e7; border-radius: 28px; padding: 12px;
  box-shadow: 0 6px 20px rgba(16,40,70,.05); background: #fff; }
.hc-doctor__photo { flex: 0 0 220px; width: 220px; height: 260px; object-fit: cover; object-position: center 25%; border-radius: 20px; }
.hc-doctor__body { flex: 1 1 380px; min-width: 0; padding: 18px 24px; display: flex; flex-direction: column; gap: 18px; }
.hc-doctor__name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 22px; line-height: 1.3; color: #232323; }
.hc-doctor__name:hover { color: #0C91D5; }
.hc-doctor__position { margin-top: 4px; font-size: 15px; color: #0C91D5; font-weight: 600; }
.hc-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-fact { display: flex; flex-direction: column; gap: 2px; background: #f2f6fa; border-radius: 16px; padding: 12px 18px; min-width: 150px; }
.hc-fact__label { font-size: 12px; color: #7a8796; text-transform: uppercase; letter-spacing: .04em; }
.hc-fact__value { font-size: 15px; font-weight: 600; color: #232323; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.hc-about::after { content: ""; display: block; clear: both; }
.hc-about__photo { float: right; width: 400px; height: 400px; object-fit: cover; border-radius: 50%;
  margin: 0 0 24px 40px; shape-outside: circle(50%); box-shadow: 0 10px 30px rgba(16,40,70,.08); }

.hc-box { border: 1px solid #e7e7e7; border-radius: 22px; padding: 22px 26px; background: #fff; }
.hc-soft { background: #f2f6fa; border-radius: 22px; padding: 26px; }
.hc-alert { border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; }
.hc-alert--ok { background: #e7f6ec; color: #1e7a3c; }
.hc-alert--err { background: #fdecec; color: #b42318; }

.hc-form { display: flex; flex-direction: column; gap: 14px; }
.hc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #666; font-weight: 400; margin: 0; }
.hc-form input[type=text], .hc-form input[type=email], .hc-form input[type=tel], .hc-form textarea {
  font: inherit; font-size: 16px; color: #232323; padding: 13px 16px; border: 1px solid #ddd; border-radius: 14px; background: #fff; width: 100%; }
.hc-form textarea { resize: vertical; min-height: 110px; }
.hc-form input:focus, .hc-form textarea:focus { outline: none; border-color: #0C91D5; box-shadow: 0 0 0 3px rgba(12,145,213,.15); }
.hc-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hc-row > label { flex: 1 1 260px; }
.hc-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.hc-profile { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 36px; }
.hc-profile__photo { flex: 0 0 300px; width: 300px; height: 380px; object-fit: cover; object-position: center 25%; border-radius: 32px; }
.hc-profile__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hc-profile__name { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 30px; line-height: 1.25; }
.hc-profile__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e7e7e7; }
.hc-profile__facts > div { padding: 12px 0; border-bottom: 1px solid #e7e7e7; }
.hc-profile__facts small { display: block; color: #888; font-size: 13px; }

.hc-rate { max-width: 880px; margin: 0 auto; border: 1px solid #e7e7e7; border-radius: 28px; padding: 36px 40px;
  box-shadow: 0 10px 30px rgba(16,40,70,.06); background: #fff; }
.hc-rate h2 { text-align: center; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 28px; margin: 0 0 6px; }
.hc-stars-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hc-stars { display: flex; gap: 2px; border: 0; margin: 0; padding: 0; }
.hc-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hc-stars label { font-size: 44px; line-height: 1; color: #dcdcdc; cursor: pointer; margin: 0; padding: 0 2px; transition: transform .12s, color .12s; }
.hc-stars label.is-on { color: #f7c948; }
.hc-stars label:hover { transform: scale(1.12); }
.hc-stars input:focus-visible + label { outline: 2px solid #0C91D5; border-radius: 6px; }
.hc-badge { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 17px; padding: 6px 16px; border-radius: 999px; }
.hc-badge[data-r="1"] { background: #D6336C; }
.hc-badge[data-r="2"] { background: #E8590C; }
.hc-badge[data-r="3"] { background: #8A8A3C; }
.hc-badge[data-r="4"] { background: #1C7ED6; }
.hc-badge[data-r="5"] { background: #2F9E44; }
.hc-hint { font-size: 14px; color: #888; }
.hc-note { font-size: 13px; color: #888; text-align: center; margin: 0; }

@media (max-width: 991px) {
  .hc-about__photo { width: 300px; height: 300px; margin-left: 24px; }
}

@media (max-width: 767px) {
  .hc-about__photo { float: none; display: block; width: 260px; height: 260px; margin: 0 auto 20px; }
  .hc-doctor__photo, .hc-profile__photo { flex-basis: 100%; width: 100%; height: 320px; }
  .hc-profile__facts { grid-template-columns: 1fr; }
  .hc-fact { flex: 1 1 100%; }
  .hc-rate { padding: 24px 18px; }
  .hc-stars label { font-size: 38px; }
}
