

.doctors-page-main,
.doctor-page-main {
  padding-bottom: 0;
  color: var(--color-primary);
}

.page-breadcrumbs {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px;
  border-radius: 24px;
  color: var(--color-accent);
  background: var(--color-surface);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.page-breadcrumbs__separator {
  color: var(--color-primary);
}

.page-back {
  display: none;
}

.page-heading {
  display: flex;
  min-height: 102px;
  align-items: center;
  justify-content: center;
  margin: 32px 0 0;
  padding: 24px;
  border-radius: 32px;
  color: var(--color-primary);
  background: #d1fff7;
  font-size: 46px;
  font-weight: 900;
  line-height: 54px;
  text-align: center;
}

.doctor-page-main .page-heading {
  min-height: 112px;
  font-size: 54px;
  line-height: 64px;
}

.doctors-directory {
  padding-bottom: 32px;
}

.doctors-category {
  margin-top: 24px;
}

.doctors-category__title {
  position: relative;
  z-index: 0;
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  margin: 0 0 24px 32px;
  color: var(--color-primary);
  font-size: 40px;
  font-weight: 900;
  line-height: 48px;
}

.doctors-category__title::before {
  position: absolute;
  z-index: -1;
  left: -32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d1fff7;
  content: "";
}

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

.doctors-card.specialists__card {
  width: 100%;
}

.doctors-card .specialists__photo {
  width: 100%;
}

.doctor-page {
  padding: 24px 0 0;
}

.doctor-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 576px) minmax(0, 1184px);
  gap: 32px;
}

.doctor-page__photo {
  grid-row: 1 / 3;
  width: 100%;
  height: 576px;
  padding: 16px;
  overflow: hidden;
  border-radius: 32px;
  background: rgb(106 91 233 / 10%);
}

.doctor-page__photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.doctor-page__photo img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

.doctor-page__content {
  display: contents;
  min-width: 0;
}

.doctor-page__facts {
  display: flex;
  min-height: 448px;
  grid-column: 2;
  flex-direction: column;
  gap: 24px;
}

.doctor-page__fact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doctor-page__fact-title {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-primary);
  font-size: 32px;
  font-weight: 900;
  line-height: 40px;
}

.doctor-page__fact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
}

.doctor-page__fact-icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.doctor-page__fact-icon--book {
  border-radius: 50%;
  background: var(--color-mint);
}

.doctor-page__fact-value,
.doctor-page__bio {
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 400;
}

.doctor-page__fact-value {
  font-size: 28px;
  line-height: 34px;
}

.doctor-page__bio {
  font-size: 18px;
  line-height: 26px;
}

.doctor-page__form {
  width: 100%;
  grid-column: 2;
  margin: 0;
}

.doctor-contacts {
  padding: 32px 0;
}

.doctor-contacts .contacts__details {
  width: 100%;
  margin-top: 32px;
}

@media (max-width: 1879px) and (min-width: 1200px) {
  .doctors-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(16px, 1.7vw, 32px);
  }

  .doctors-card.specialists__card {
    height: auto;
    min-height: 276px;
    padding: clamp(10px, 1vw, 16px);
    border-radius: clamp(24px, 1.7vw, 32px);
  }

  .doctors-card .specialists__photo {
    height: auto;
    aspect-ratio: 1;
    flex-basis: auto;
    border-radius: clamp(18px, 1.3vw, 24px);
  }

  .doctors-card .specialists__name {
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.22;
  }

  .doctor-page__layout {
    grid-template-columns: minmax(360px, 32.15fr) minmax(0, 67.85fr);
    gap: clamp(24px, 1.7vw, 32px);
  }

  .doctor-page__photo {
    grid-row: 1 / 3;
    height: auto;
    aspect-ratio: 1;
  }

  .doctor-page__facts {
    gap: clamp(16px, 1.25vw, 24px);
  }

  .doctor-page__fact-title {
    font-size: clamp(24px, 1.7vw, 32px);
    line-height: 1.25;
  }

  .doctor-page__fact-value {
    font-size: clamp(21px, 1.5vw, 28px);
  }

  .doctor-page__bio {
    font-size: clamp(14px, 0.96vw, 18px);
    line-height: 1.42;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .page-breadcrumbs {
    margin-top: 24px;
  }

  .page-heading,
  .doctor-page-main .page-heading {
    min-height: 88px;
    margin-top: 24px;
    padding: 20px;
    border-radius: 28px;
    font-size: clamp(38px, 4vw, 46px);
    line-height: 1.18;
  }

  .doctors-directory {
    padding-bottom: 56px;
  }

  .doctors-category__title {
    min-height: 56px;
    margin-left: 28px;
    font-size: 34px;
    line-height: 42px;
  }

  .doctors-category__title::before {
    left: -28px;
    width: 56px;
    height: 56px;
  }

  .doctors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .doctors-card.specialists__card {
    width: 100%;
    height: auto;
    padding: 12px;
    border-radius: 24px;
  }

  .doctors-card .specialists__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    flex-basis: auto;
    border-radius: 18px;
  }

  .doctors-card .specialists__name {
    font-size: 16px;
    line-height: 21px;
  }

  .doctor-page {
    padding-top: 24px;
  }

  .doctor-page__layout {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 24px;
  }

  .doctor-page__photo {
    grid-row: 1;
    height: auto;
    aspect-ratio: 1;
    padding: 12px;
    border-radius: 28px;
  }

  .doctor-page__photo-inner {
    border-radius: 20px;
  }

  .doctor-page__fact-title {
    font-size: clamp(23px, 2.7vw, 28px);
    line-height: 1.2;
  }

  .doctor-page__fact-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .doctor-page__fact-value {
    font-size: 22px;
    line-height: 28px;
  }

  .doctor-page__bio {
    font-size: 15px;
    line-height: 22px;
  }

  .doctor-page__facts {
    min-height: 0;
    gap: 18px;
  }

  .doctor-page__fact {
    gap: 8px;
  }

  .doctor-page__form {
    grid-column: 1 / -1;
  }

  .doctor-page__layout {
    align-items: start;
  }

  .doctor-page__form.lead-form {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .page-breadcrumbs {
    display: none;
  }

  .page-back {
    display: inline-flex;
    height: 48px;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 100px;
    color: var(--color-danger);
    background: #ffdbdb;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
  }

  .page-back::before {
    width: 24px;
    height: 24px;
    background: currentColor;
    content: "";
    mask: url("../icons/banner-back.svg") center / 24px 24px no-repeat;
  }

  .page-heading,
  .doctor-page-main .page-heading {
    min-height: 80px;
    margin-top: 16px;
    padding: 16px 8px;
    border-radius: 24px;
    font-size: 40px;
    line-height: 48px;
  }

  .doctor-page-main .page-heading {
    min-height: 176px;
  }

  .doctors-directory {
    padding-bottom: 32px;
  }

  .doctors-category {
    margin-top: 10px;
  }

  .doctors-category__title {
    min-height: 64px;
    margin: 0 0 10px 0;
    font-size: 30px;
    line-height: 36px;
  }

  .doctors-category__title::before {
    left: -32px;
    width: 64px;
    height: 64px;
  }

  .doctors-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .doctors-card.specialists__card {
    width: 100%;
    height: 110px;
    padding: 4px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
  }

  .doctors-card .specialists__photo {
    width: 94px;
    height: 102px;
    flex: 0 0 94px;
    border-radius: 12px;
  }

  .doctors-card .specialists__name {
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    padding-right: 8px;
    font-size: 16px;
    line-height: 22px;
    text-align: left;
  }

  .doctor-page {
    padding-top: 16px;
  }

  .doctor-page__layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .doctor-page__photo {
    height: auto;
    aspect-ratio: 1;
    padding: 8px;
    border-radius: 24px;
  }

  .doctor-page__photo-inner {
    border-radius: 16px;
  }

  .doctor-page__facts {
    min-height: 0;
    gap: 24px;
  }

  .doctor-page__fact {
    gap: 8px;
  }

  .doctor-page__fact-title {
    min-height: 32px;
    align-items: flex-start;
    font-size: 26px;
    line-height: 32px;
  }

  .doctor-page__fact-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .doctor-page__fact-value {
    font-size: 22px;
    line-height: 26px;
  }

  .doctor-page__bio {
    font-size: 16px;
    letter-spacing: -0.12px;
    line-height: 26px;
  }

  .doctor-page__form {
    margin-top: 0;
  }

  .doctor-contacts {
    padding: 16px 0 44px;
  }

  .doctor-contacts .contacts__title {
    min-height: 72px;
    padding: 16px 8px;
    font-size: 36px;
    line-height: 40px;
    white-space: nowrap;
  }

  .doctor-contacts .contacts__details {
    gap: 32px;
    margin-top: 16px;
  }

  .doctor-contacts .contacts__group-title {
    min-height: 44px;
    font-size: 26px;
    line-height: 32px;
  }
}

@media (max-width: 479px) {
  .page-heading,
  .doctor-page-main .page-heading {
    font-size: clamp(32px, 12.5vw, 40px);
    line-height: 1.2;
  }

  .doctor-page__fact-title {
    font-size: clamp(22px, 8.1vw, 26px);
  }
}
