.doctors-catalog {
  min-height: 60vh;
  padding: 0 0 64px;
  background: #fafbfc;
}

.doctors-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 0;
  gap: 4px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.doctors-breadcrumbs a,
.doctors-breadcrumbs a:visited {
  padding: 6px 12px;
  border-radius: 8px;
  color: #94a3b8;
}

.doctors-breadcrumbs a:hover,
.doctors-breadcrumbs a:focus-visible {
  background: var(--smd-primary-soft);
  color: var(--smd-blue);
}

.doctors-breadcrumbs span:last-child {
  color: var(--smd-text);
  font-weight: 600;
}

.doctors-catalog__title {
  margin: 0 0 32px;
  color: var(--smd-text);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

.doctors-toolbar {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 16px;
}

.doctors-search {
  position: relative;
  flex: 1 1 auto;
}

.doctors-search__icon,
.doctors-select__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transform: translateY(-50%);
}

.doctors-search__icon circle,
.doctors-search__icon path,
.doctors-select__icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.doctors-search__input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 48px;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--smd-text);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}

.doctors-search__input::placeholder {
  color: #94a3b8;
}

.doctors-search__input:focus {
  border-color: var(--smd-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--smd-primary) 8%, transparent);
}

.doctors-select {
  position: relative;
  z-index: 1;
  flex: 0 0 340px;
  max-width: 340px;
  min-width: 280px;
}

.doctors-select.is-open {
  z-index: 120;
}

.doctors-select__icon {
  left: 18px;
  z-index: 2;
  width: 16px;
  height: 16px;
}

.doctors-select__trigger {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 18px 0 52px;
  gap: 14px;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: #94a3b8;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.doctors-select.is-open .doctors-select__trigger,
.doctors-select__trigger:focus-visible {
  border-color: var(--smd-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--smd-primary) 8%, transparent);
}

.doctors-select.is-open .doctors-select__trigger {
  border-radius: 12px 12px 0 0;
}

.doctors-select.has-selection .doctors-select__trigger {
  color: var(--smd-text);
}

.doctors-select__value {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doctors-select__arrow {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
  transition: transform .2s;
}

.doctors-select.is-open .doctors-select__arrow {
  transform: rotate(180deg);
}

.doctors-select__dropdown {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  z-index: 30;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px 0;
  border: 1px solid #e8ecf0;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
}

.doctors-select.is-open .doctors-select__dropdown {
  display: block;
}

.doctors-select__option {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border: 0;
  background: transparent;
  color: var(--smd-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.doctors-select__option:hover,
.doctors-select__option:focus-visible {
  outline: 0;
  background: var(--smd-primary-soft);
  color: var(--smd-blue);
}

.doctors-select__option.is-selected {
  color: var(--smd-blue);
  font-weight: 700;
}

.doctors-catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.doctors-catalog-card {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 100%;
  padding: 32px 24px;
  border: 1px solid #e8ecf0;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.doctors-catalog-card__profile-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.doctors-catalog-card:hover {
  border-color: var(--smd-blue);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--smd-primary) 10%, transparent);
  transform: translateY(-2px);
}

.doctors-catalog-card[hidden] {
  display: none;
}

.doctors-catalog-card__photo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  border-radius: 50%;
  object-fit: cover;
}

.doctors-catalog-card__badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--smd-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.doctors-catalog-card__name {
  width: 100%;
  min-height: 2.6em;
  margin: 0 0 6px;
  color: var(--smd-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.doctors-catalog-card__specialties {
  width: 100%;
  min-height: 2.8em;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.doctors-catalog-card__price {
  margin-top: auto;
  margin-bottom: 16px;
  color: var(--smd-blue);
  font-size: 18px;
  font-weight: 800;
}

.doctors-catalog-card__button,
.doctors-catalog-card__button:visited {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--smd-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.doctors-catalog-card__button:hover,
.doctors-catalog-card__button:focus-visible {
  background: var(--smd-green-hover);
  color: #fff;
  transform: translateY(-1px);
}

.doctors-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 280px;
  padding: 36px 16px 12px;
  text-align: center;
}

.doctors-empty[hidden] {
  display: none;
}

.doctors-catalog.has-empty-result {
  min-height: 0;
  padding-bottom: 310px;
}

.doctors-empty__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 18px;
  color: var(--smd-blue);
}

.doctors-empty__icon circle,
.doctors-empty__icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 3;
}

.doctors-empty__text {
  color: #94a3b8;
  font-size: 16px;
}

@media (max-width: 1050px) {
  .doctors-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .doctors-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .doctors-catalog {
    padding-bottom: 48px;
  }

  .doctors-catalog__title {
    margin-bottom: 24px;
    font-size: 32px;
  }

  .doctors-toolbar {
    flex-direction: column;
    margin-bottom: 28px;
    gap: 12px;
  }

  .doctors-search,
  .doctors-select {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex-basis: auto;
  }

  .doctors-catalog__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

}
