.doctor-page {
  background: #fff;
}

.doctor-breadcrumbs {
  padding: 16px 0;
}

.doctor-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-breadcrumbs li {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.doctor-breadcrumbs li + li::before {
  margin: 0 4px;
  color: #cbd5e1;
  content: "›";
  font-size: 16px;
}

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

.doctor-breadcrumbs a:hover,
.doctor-breadcrumbs a:focus-visible {
  background: #f0faf5;
  color: var(--smd-blue);
}

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

.doctor-hero {
  padding: 48px 0;
  border-radius: 0 0 24px 24px;
  background: #f7f9fb;
}

.doctor-hero__inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.doctor-hero__photo {
  flex: 0 0 auto;
  width: 220px;
  height: 280px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
  object-fit: cover;
}

.doctor-hero__content {
  flex: 1 1 auto;
  min-width: 0;
}

.doctor-hero__name {
  margin: 0 0 8px;
  color: var(--smd-text);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}

.doctor-hero__specialties {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 17px;
}

.doctor-hero__position {
  margin-bottom: 12px;
  color: var(--smd-blue);
  font-size: 15px;
  font-weight: 600;
}

.doctor-hero__badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--smd-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.doctor-hero__address {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  gap: 6px;
  color: #94a3b8;
  font-size: 14px;
}

.doctor-hero__address svg {
  flex: 0 0 auto;
  fill: currentColor;
}

.doctor-hero__actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 12px;
}

.doctor-hero__appointment,
.doctor-hero__appointment:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 36px;
  border-radius: 14px;
  background: var(--smd-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.doctor-hero__appointment:hover,
.doctor-hero__appointment:focus-visible {
  background: var(--smd-green-hover);
  box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
  color: #fff;
  transform: translateY(-2px);
}

.doctor-hero__phone,
.doctor-hero__phone:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 28px;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
  color: var(--smd-text);
  font-size: 16px;
  font-weight: 700;
}

.doctor-hero__phone:hover,
.doctor-hero__phone:focus-visible {
  border-color: #cfd9e3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
  color: var(--smd-text);
  transform: translateY(-2px);
}

.doctor-anchor-nav {
  position: sticky;
  top: var(--smd-doctor-sticky-header-bottom, var(--header-h));
  z-index: 80;
  border-bottom: 2px solid #e8ecf0;
  background: #fff;
}

.doctor-anchor-nav__inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.doctor-anchor-nav__inner::-webkit-scrollbar {
  display: none;
}

.doctor-anchor-nav__link,
.doctor-anchor-nav__link:visited {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 32px;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.doctor-anchor-nav__link::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--smd-blue);
  content: "";
  transform: scaleX(0);
  transition: transform .2s;
}

.doctor-anchor-nav__link:hover,
.doctor-anchor-nav__link:focus-visible,
.doctor-anchor-nav__link.is-active {
  color: var(--smd-text);
}

.doctor-anchor-nav__link.is-active::after {
  transform: scaleX(1);
}

.doctor-layout {
  display: block;
}

.doctor-layout.has-sidebar {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 30px;
}

.doctor-content {
  min-width: 0;
  max-width: 1000px;
  padding: 48px 0 72px;
}

.doctor-layout.has-sidebar .doctor-content {
  max-width: none;
}

.doctor-section {
  scroll-margin-top: calc(var(--smd-doctor-sticky-header-bottom, var(--header-h)) + 72px);
}

.doctor-section + .doctor-section {
  margin-top: 72px;
}

.doctor-section__title {
  display: inline-block;
  margin: 0 0 28px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--smd-blue);
  color: var(--smd-text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.doctor-about__text {
  color: #475569;
  font-size: 17px;
  line-height: 1.75;
}

.doctor-about__text p {
  margin: 0 0 16px;
}

.doctor-about__text p:last-child {
  margin-bottom: 0;
}

.doctor-about__services-title {
  margin: 28px 0 12px;
  color: var(--smd-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.doctor-about__services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doctor-about__service,
.doctor-about__service:visited {
  padding: 10px 20px;
  border: 1px solid #e8ecf0;
  border-radius: 50px;
  background: #fff;
  color: var(--smd-text);
  font-size: 14px;
  font-weight: 500;
}

.doctor-about__service:hover,
.doctor-about__service:focus-visible {
  border-color: var(--smd-blue);
  background: #f0faf5;
  color: var(--smd-blue);
}

.doctor-timeline {
  position: relative;
  padding-left: 32px;
}

.doctor-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: #e8ecf0;
  content: "";
}

.doctor-timeline__item {
  position: relative;
  display: flex;
  padding-bottom: 28px;
  gap: 20px;
}

.doctor-timeline__item:last-child {
  padding-bottom: 0;
}

.doctor-timeline__item::before {
  position: absolute;
  top: 6px;
  left: -32px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--smd-blue);
  content: "";
}

.doctor-timeline__marker {
  flex: 0 0 auto;
  min-width: 58px;
  color: var(--smd-blue);
  font-size: 16px;
  font-weight: 700;
}

.doctor-timeline__text {
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
}

.doctor-reviews__intro,
.doctor-reviews__note {
  max-width: 760px;
  margin: 0 0 20px;
  color: #475569;
  font-size: 17px;
  line-height: 1.65;
}

.doctor-reviews__slider {
  width: min(100%, 760px);
  margin-bottom: 24px;
  overflow: hidden;
}

.doctor-reviews__controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
  gap: 10px;
}

.doctor-reviews__arrow {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d8e5ee;
  border-radius: 50%;
  background: #fff;
  color: var(--smd-blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.doctor-reviews__arrow:hover,
.doctor-reviews__arrow:focus-visible {
  border-color: var(--smd-blue);
  background: #f0faf5;
  transform: translateY(-1px);
}

.doctor-reviews__arrow:disabled {
  opacity: .38;
  pointer-events: none;
}

.doctor-reviews__track {
  display: flex;
  overflow-x: auto;
  padding-bottom: 4px;
  gap: 14px;
  cursor: grab;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.doctor-reviews__track::-webkit-scrollbar {
  display: none;
}

.doctor-review-card {
  flex: 0 0 calc((100% - 14px) / 2);
  max-width: calc((100% - 14px) / 2);
  padding: 20px 22px;
  border: 1px solid #e8ecf0;
  border-radius: 18px;
  background: #fff;
  scroll-snap-align: start;
}

.doctor-review-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.doctor-review-card__author {
  margin: 0 0 4px;
  color: var(--smd-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.doctor-review-card__context {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.3;
}

.doctor-review-card__stars {
  flex: 0 0 auto;
  color: #f6b90a;
  font-size: 16px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.doctor-review-card__text {
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

.doctor-reviews__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doctor-reviews__link,
.doctor-reviews__link:visited {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  gap: 10px;
  border: 2px solid var(--smd-blue);
  border-radius: 12px;
  background: transparent;
  color: var(--smd-blue);
  font-size: 15px;
  font-weight: 600;
}

.doctor-reviews__link:hover,
.doctor-reviews__link:focus-visible {
  background: var(--smd-blue);
  color: #fff;
}

.doctor-reviews__link svg,
.doctor-reviews__yandex {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.doctor-reviews__link svg {
  fill: currentColor;
}

.doctor-reviews__yandex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #ff3b30;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.doctor-prices__list {
  max-width: 900px;
}

.doctor-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 20px 24px;
  gap: 16px;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s;
}

.doctor-price-card:hover {
  border-color: var(--smd-blue);
}

.doctor-price-card[hidden] {
  display: none;
}

.doctor-prices.is-expanded .doctor-price-card[data-doctor-price-extra] {
  animation: doctorPriceReveal .3s ease both;
}

@keyframes doctorPriceReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.doctor-price-card__name {
  flex: 1 1 auto;
  color: var(--smd-text);
  font-size: 16px;
  font-weight: 500;
}

.doctor-price-card__value {
  flex: 0 0 auto;
  color: var(--smd-blue);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.doctor-price-card__button,
.doctor-price-card__button:visited {
  flex: 0 0 auto;
  padding: 10px 24px;
  border-radius: 50px;
  background: var(--smd-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

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

.doctor-prices__toggle {
  margin-top: 8px;
  padding: 12px 24px;
  border: 1px solid #e8ecf0;
  border-radius: 50px;
  background: #fff;
  color: var(--smd-text);
  font-size: 15px;
  font-weight: 500;
}

.doctor-prices__toggle:hover,
.doctor-prices__toggle:focus-visible {
  border-color: var(--smd-blue);
  color: var(--smd-blue);
}

.doctor-sidebar {
  position: relative;
  align-self: start;
  min-width: 0;
  padding-top: 48px;
}

.doctor-sidebar__sticky {
  position: static;
}

.doctor-sidebar__title {
  margin: 0 0 14px;
  color: var(--smd-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.doctor-sidebar__list {
  display: flex;
  flex-direction: column;
}

.doctor-sidebar-card {
  display: flex;
  align-items: center;
  padding: 14px 0;
  gap: 12px;
}

.doctor-sidebar-card__photo {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.doctor-sidebar-card__content {
  display: block;
  min-width: 0;
}

.doctor-sidebar-card__name {
  display: block;
  color: var(--smd-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.doctor-sidebar-card__specialties {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.doctor-sidebar-card:hover .doctor-sidebar-card__name,
.doctor-sidebar-card:focus-visible .doctor-sidebar-card__name {
  color: var(--smd-blue);
}

.doctor-sidebar__all,
.doctor-sidebar__all:visited {
  display: inline-block;
  margin-top: 14px;
  color: var(--smd-blue);
  font-size: 14px;
  font-weight: 600;
}

.doctor-sidebar__all:hover,
.doctor-sidebar__all:focus-visible {
  opacity: .7;
}

.doctor-appointment {
  padding: 0 0 64px;
  background: #fff;
  scroll-margin-top: calc(var(--smd-doctor-sticky-header-bottom, var(--header-h)) + 72px);
}

.doctor-appointment__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 64px;
  gap: 40px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    var(--doctor-appointment-start, #54c596) 0%,
    var(--doctor-appointment-end, #176f4e) 100%
  );
  box-shadow: 0 18px 44px rgba(15, 48, 74, .18);
  color: #fff;
}

.doctor-appointment__copy {
  min-width: 0;
}

.doctor-appointment__copy h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.doctor-appointment__copy p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 17px;
  line-height: 1.55;
}

.doctor-appointment__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
}

.doctor-appointment__phone,
.doctor-appointment__phone:visited {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.doctor-appointment__phone--primary {
  font-size: 20px;
}

.doctor-appointment__phone--secondary,
.doctor-appointment__phone--secondary:visited {
  color: rgba(255, 255, 255, .85);
  font-size: 16px;
  font-weight: 600;
}

.doctor-appointment__phone:hover,
.doctor-appointment__phone:focus-visible {
  color: #fff;
  opacity: .82;
}

.doctor-appointment__button,
.doctor-appointment__button:visited {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--doctor-appointment-button, #25d366);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.doctor-appointment__button:hover,
.doctor-appointment__button:focus-visible {
  color: #fff;
  filter: brightness(.92);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .doctor-layout.has-sidebar {
    display: block;
  }

  .doctor-sidebar {
    padding: 0 0 72px;
  }

  .doctor-sidebar__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
}

@media (max-width: 640px) {
  .doctor-breadcrumbs {
    overflow: hidden;
  }

  .doctor-breadcrumbs ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }

  .doctor-hero {
    padding: 36px 0;
  }

  .doctor-hero__inner {
    align-items: center;
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .doctor-hero__photo {
    width: 160px;
    height: 200px;
  }

  .doctor-hero__name {
    font-size: 26px;
  }

  .doctor-hero__address {
    justify-content: center;
  }

  .doctor-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .doctor-hero__appointment,
  .doctor-hero__phone {
    width: 100%;
    text-align: center;
  }

  .doctor-anchor-nav__link,
  .doctor-anchor-nav__link:visited {
    padding: 14px 20px;
    font-size: 14px;
  }

  .doctor-content {
    padding: 36px 0 52px;
  }

  .doctor-section__title {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .doctor-about__text {
    font-size: 16px;
    line-height: 1.7;
  }

  .doctor-section + .doctor-section {
    margin-top: 52px;
  }

  .doctor-timeline {
    padding-left: 28px;
  }

  .doctor-timeline__item {
    display: block;
    padding-bottom: 24px;
  }

  .doctor-timeline__item::before {
    left: -28px;
  }

  .doctor-timeline__marker {
    margin-bottom: 6px;
  }

  .doctor-timeline__text {
    font-size: 15px;
  }

  .doctor-reviews__intro,
  .doctor-reviews__note {
    font-size: 16px;
  }

  .doctor-reviews__controls {
    justify-content: flex-start;
  }

  .doctor-review-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .doctor-reviews__link,
  .doctor-reviews__link:visited {
    justify-content: center;
    width: 100%;
  }

  .doctor-price-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
    gap: 12px;
  }

  .doctor-price-card__button,
  .doctor-price-card__button:visited {
    width: 100%;
    text-align: center;
  }

  .doctor-prices__toggle {
    width: 100%;
  }

  .doctor-sidebar {
    padding-bottom: 52px;
  }

  .doctor-sidebar__list {
    grid-template-columns: 1fr;
  }

  .doctor-appointment {
    padding-bottom: 40px;
  }

  .doctor-appointment__card {
    align-items: center;
    flex-direction: column;
    padding: 32px 24px;
    gap: 28px;
    border-radius: 20px;
    text-align: center;
  }

  .doctor-appointment__copy h2 {
    font-size: 26px;
  }

  .doctor-appointment__copy p {
    font-size: 15px;
  }

  .doctor-appointment__actions {
    align-items: center;
    width: 100%;
  }

  .doctor-appointment__button,
  .doctor-appointment__button:visited {
    width: 100%;
  }
}
