/* ==========
   Страница врача
   ========== */

.doctor-page {
  padding: 36px 0 60px;
background: #ECEDEE;
}

.doctor-page__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.doctor-page .breadcrumbs {
  flex-shrink: 0;
  margin-bottom: 0;
  gap: 10px;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: #283342;
    flex-wrap: wrap;
  row-gap: 6px;
}

.doctor-page .breadcrumbs__item {
  color: #283342;
}

.doctor-page .breadcrumbs__item--current {
  color: rgba(40, 51, 66, 0.6);
}

.doctor-page .breadcrumbs__separator {
  color: rgba(40, 51, 66, 0.2);
}

.doctor-page__layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 62px;
  width: 100%;
}

/* ---------- Карточка врача ---------- */
.doctor-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 410px;
  flex-shrink: 0;
}

.doctor-card__photo-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}

.doctor-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor-card__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 16px 4px 12px;
  gap: 6px;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  border-radius: 30px;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  color: #212836;
}

.doctor-card__badge-icon {
  width: 18px;
  height: 18px;
  background: #fe8629;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2L4 6v6c0 5.55 3.84 10.74 8 12 4.16-1.26 8-6.45 8-12V6l-8-4zm0 10.5l-2 2V15h2v2h2v-2h2v-.5l-2-2V12h-2v.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.doctor-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.doctor-card__name {
  margin: 0;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: #212836;
}

.doctor-card__spec {
  margin: 0;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  letter-spacing: -0.03em;
  color: #212836;
  opacity: 0.6;
}

.doctor-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.doctor-card__meta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.03em;
  color: #212836;
}

.doctor-card__meta-label {
  font-weight: 500;
}

.doctor-card__meta-value {
  font-weight: 400;
  opacity: 0.6;
}

.doctor-card__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 72px;
  padding: 8px 75px 10px;
  background: #fe8629;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  font-family: "Golos Text", system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 20px;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.doctor-card__btn:hover {
  background: #e5761e;
  box-shadow: 0 6px 14px rgba(254, 134, 41, 0.4);
}

/* ---------- Блок «О специалисте» ---------- */
.doctor-about {
background: #F6F6F6;
  flex-shrink: 0;
}

.doctor-about__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 0px;
}

.doctor-about__title {
  margin: 0;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: #212836;
}

.doctor-about__text {
  margin: 0;
  font-family: "Golos Text", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: -0.03em;
  color: #212836;
}

@media (max-width: 1440px) {
  .doctor-about__inner {
    padding: 60px 24px;
  }
}

@media (max-width: 768px) {
  .doctor-about__inner {
    padding: 40px 8px;
    gap: 16px;
    max-width: 344px;
    margin-left: auto;
    margin-right: auto;
  }

  .doctor-about__title {
    font-size: 24px;
    line-height: 120%;
  }

  .doctor-about__text {
    font-size: 14px;
    line-height: 150%;
  }
}

/* ---------- Секция «Информация» ---------- */
.doctor-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.doctor-info__title {
  margin: 0;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: #212836;
}

.doctor-info__accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* ---------- Аккордеон ---------- */
.doctor-accordion-item {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.doctor-accordion-item__trigger {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.doctor-accordion-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.doctor-accordion-item__headline {
  flex: 1;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: #212836;
}

.doctor-accordion-item__toggle {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-accordion-item__toggle img {
  position: absolute;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.doctor-accordion-item__toggle-plus {
  display: block;
}

.doctor-accordion-item__toggle-krest {
  display: none;
}

.doctor-accordion-item--open .doctor-accordion-item__toggle-plus {
  display: none;
}

.doctor-accordion-item--open .doctor-accordion-item__toggle-krest {
  display: block;
}

.doctor-accordion-item__content {
  padding: 0 24px 24px;
  padding-left: calc(48px + 12px + 24px);
}

.doctor-accordion-item__content[hidden] {
  display: none;
}

.doctor-accordion-item:not(.doctor-accordion-item--open) .doctor-accordion-item__content {
  display: none;
}

.doctor-accordion-item--open .doctor-accordion-item__content {
  display: block;
}

@media (max-width: 900px) {
  .doctor-accordion-item__content {
    padding-left: 24px;
  }
}

.doctor-accordion-item__text {
  margin: 0;
  font-family: "Golos Text", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 145%;
  letter-spacing: -0.03em;
  color: #212836;
}

.doctor-accordion-item__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.doctor-accordion-item__list-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-family: "Golos Text", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 145%;
  letter-spacing: -0.03em;
  color: #212836;
}

.doctor-accordion-item__check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #fe8629;
  border-radius: 50%;
  position: relative;
  margin-top: 2px;
}

.doctor-accordion-item__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Адаптив (планшет/мобилка) ---------- */
@media (max-width: 1100px) {
  .doctor-page__layout {
    flex-direction: column;
    align-items: stretch;
  }

  .doctor-card {
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .doctor-page {
    padding: 24px 0 48px;
  }

  .doctor-page__inner {
    padding: 0 16px;
    gap: 16px;
  }

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

  .doctor-card {
    width: 100%;
    max-width: 344px;
    margin: 0 auto;
    align-self: stretch;
  }

  .doctor-card__photo-wrap {
    height: 318px;
    border-radius: 24px;
  }

  .doctor-card__badge {
    display: none;
  }

  .doctor-card__name {
    font-size: 24px;
    line-height: 120%;
  }

  .doctor-card__spec {
    font-size: 17px;
    line-height: 18px;
  }

  .doctor-card__meta-row {
    font-family: "Golos Text", system-ui, sans-serif;
    font-size: 17px;
    line-height: 150%;
  }

  .doctor-card__meta-label {
    font-weight: 600;
  }

  .doctor-card__meta {
    gap: 4px;
  }

  .doctor-card__btn {
    height: 60px;
    padding: 8px 32px 10px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 18px;
  }

  .doctor-info__title {
    font-size: 24px;
    line-height: 120%;
  }

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

  .doctor-info__accordion {
    width: 100%;
    max-width: 344px;
  }

  .doctor-accordion-item {
    border-radius: 16px;
  }

  .doctor-accordion-item__trigger {
    padding: 16px 12px;
    gap: 12px;
  }

  .doctor-accordion-item__icon {
    width: 36px;
    height: 36px;
  }

  .doctor-accordion-item__headline {
    font-size: 16px;
    line-height: 120%;
  }

  .doctor-accordion-item__toggle {
    width: 24px;
    height: 24px;
  }

  .doctor-accordion-item__toggle img {
    width: 24px;
    height: 24px;
  }

  .doctor-accordion-item__content {
    padding: 0 12px 24px 12px;
    padding-left: 12px;
  }

  .doctor-accordion-item__content {
    padding-left: calc(36px + 12px + 12px);
  }

  .doctor-accordion-item__text {
    font-size: 14px;
    line-height: 150%;
  }

  .doctor-accordion-item__list {
    gap: 8px;
  }

  .doctor-accordion-item__list-item {
    font-size: 14px;
    line-height: 150%;
  }

  .doctor-accordion-item__check {
    width: 22px;
    height: 22px;
  }

  .doctor-accordion-item__check::after {
    left: 5px;
    top: 3px;
    width: 5px;
    height: 8px;
  }
}

/* ==========
   Services grid (Наши услуги)
   ========== */

.services-grid {
  padding: 40px 0 72px;
  background: #ECEDEE;
}

.services-grid__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, 217px);
  gap: 16px;
  justify-content: center;
}

.service-card {
  height: 200px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.service-card:hover {
  background-color: #ff8a2a;
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 138, 42, 0.2);
}

.service-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card__title {
  margin: 0;
  font-family: Onest, system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: -0.03em;
    min-height: 2.6em;

}

.service-card__icon {
  margin-top: 24px;
  align-self: flex-end;
}

.service-card__icon img {
  width: 80px;
  height: 80px;
    aspect-ratio: 1;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
  transition: filter 0.2s ease-in-out;
}

.service-card:hover .service-card__icon img {
  filter: brightness(0) invert(1);
}

.service-card--soon {
  background-color: #f5f7fa;
  border: 1px dashed #d1d5db;
  box-shadow: none;
  cursor: default;
  position: relative;
}

.service-card--soon:hover {
  background-color: #f5f7fa;
  color: inherit;
  transform: none;
  box-shadow: none;
}

.service-card__soon-badge {
  position: absolute;
  top: 12px;
  background: #0dc267;
  color: #ffffff;
  font-family: Onest, system-ui, sans-serif;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 15px;
  line-height: 100%;
}

.service-card--soon .service-card__title {
  margin-top: 16px;
}

.service-card--all {
  background-color: #fe8629;
  color: #ffffff;
  text-decoration: none;
  display: flex;
}

.service-card--all:hover {
  background-color: #e5751f;
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 138, 42, 0.3);
}

.service-card--all .service-card__content {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card--all .service-card__title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
}

.service-card--all .service-card__arrow {
  font-size: 28px;
  color: #ffffff;
}

.service-card--soon .service-card__icon img {
  filter: grayscale(1) brightness(0.7);
}

.service-card--soon:hover .service-card__icon img {
  filter: grayscale(1) brightness(0.7);
}

.service-cost__title {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
}

@media (max-width: 768px) {
  .services-grid {
    padding: 24px 0 40px;
  }

  .services-grid__inner {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }

  .service-card {
    height: auto;
    min-height: 100px;
    padding: 12px 8px;
  }

  .service-card__content {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }

  .service-card__title {
    order: 2;
    font-size: 12px;
    font-weight: 500;
        min-height: 2.4em;

  }

  .service-card__icon {
    order: 1;
    margin-top: 0;
    margin-bottom: 8px;
    align-self: center;
  }

  .service-card__icon img {
    width: 32px;
    height: 32px;
  }

  .service-card--soon .service-card__title {
    margin-top: 0;
  }

  .service-card__soon-badge {
    font-size: 9px;
    padding: 2px 6px;
    top: 8px;
  }
}

/* ==========
   Specialists (Наши специалисты)
   ========== */
.specialists {
  padding: 60px 0 80px;
  background-image: url("../img/specialistsbg.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.specialists__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.specialists__title {
  margin: 0;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 100%;
  letter-spacing: -0.03em;
  color: #111827;
}

.specialists__link {
  color: #2d71b0;
  text-decoration: none;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.specialists__link:hover {
  color: #ff8a2a;
}

.specialists__nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.specialists__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #d1d5db;
  background-color: #ffffff;
  color: #111827;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.specialists__nav-btn:hover {
  border-color: #2d71b0;
  color: #2d71b0;
}

.specialists__slider {
  overflow: hidden;
}

.specialists__track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.specialist-card {
    display: flex;
    flex-direction: column;
    width: 335px;
    min-width: 335px;
    max-width: 335px;
    height: 400px;
    flex-shrink: 0;
}

.specialist-card__photo {
    position: relative;
    background-color: #e8eaed;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    max-height: 275px;
}

.specialist-card__photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.specialist-card__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.specialist-card__name {
  margin: 0 0 4px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: #111827;
}

.specialist-card__role {
  margin: 0 0 8px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: #6b7280;
}

.specialist-card__link {
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -0.03em;
  color: #2d71b0;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.specialist-card__link:hover {
  color: #ff8a2a;
}

@media (max-width: 992px) {
  .specialists {
    padding: 40px 0 48px;
            background-size: cover;
  }

  .specialists .container {
    padding: 0 8px;
  }

  .specialists__header {
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .specialists__title {
    font-size: 24px;
  }

  .specialists__link {
    font-size: 14px;
  }

  .specialists__nav {
    display: none;
  }

  .specialists__slider {
    overflow: visible;
  }

  .specialists__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    transition: none;
    transform: none !important;
  }

  .specialist-card {
    min-width: 0;
  }

  .specialist-card__photo {
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .specialist-card__badge {
    font-size: 11px;
    padding: 4px 8px;
    bottom: 8px;
    left: 8px;
    display: none;
  }

  .specialist-card__name {
    font-size: 15px;
    line-height: 120%;
  }

  .specialist-card__role {
    font-size: 12px;
    line-height: 120%;
  }

  .specialist-card__link {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .specialists {
    padding: 32px 0 40px;
  }

  .specialists__title {
    font-size: 22px;
  }

  .specialists__track {
    gap: 10px;
  }

  .specialist-card__name {
    font-size: 14px;
  }

  .specialist-card__role {
    font-size: 11px;
  }

  .specialist-card__link {
    font-size: 12px;
  }
}

/* ==========
   Reviews (Отзывы)
   ========== */
.reviews {
  padding: 60px 0;
  background: #ECEDEE;

}

.reviews__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.reviews__title {
  margin: 0;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 100%;
  letter-spacing: -0.03em;
  color: #111827;
}

.reviews__link {
  color: #2d71b0;
  text-decoration: none;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.reviews__link:hover {
  color: #ff8a2a;
}

.reviews__slider {
  overflow: hidden;
  width: 100%;
}

.reviews__track {
  display: flex;
  gap: 24px;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.review-card__stars {
  color: #facc15;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card__name {
  margin: 0 0 4px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: #111827;
}

.review-card__service {
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: #9ca3af;
  margin-bottom: 14px;
}

.review-card__text {
  margin: 0 0 16px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 150%;
  letter-spacing: -0.02em;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.review-card__link {
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -0.03em;
  color: #2d71b0;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
  margin-top: auto;
}

.review-card__link:hover {
  color: #ff8a2a;
}

@media (max-width: 768px) {
  .reviews {
    padding: 40px 0;
  }

  .reviews .container {
    padding: 0 8px;
  }

  .reviews__header {
    margin-bottom: 20px;
  }

  .reviews__title {
    font-size: 24px;
  }

  .reviews__link {
    font-size: 14px;
  }

  .reviews__track {
    gap: 16px;
  }

  .review-card {
    flex: 0 0 100%;
    padding: 24px 20px;
  }

  .review-card__name {
    font-size: 18px;
  }

  .review-card__text {
    font-size: 14px;
    -webkit-line-clamp: 7;
    line-clamp: 7;
  }
}

@media (max-width: 480px) {
  .reviews {
    padding: 32px 0;
  }

  .review-card {
    flex: 0 0 100%;
    padding: 20px 16px;
  }

  .review-card__name {
    font-size: 16px;
  }

  .review-card__text {
    font-size: 13px;
  }
}

/* ==========
   Services-page-appointment (форма записи)
   ========== */
.services-page-appointment {
  padding: 40px 0 72px;
}

.services-page-appointment .container {
  padding: 0;
}

.services-page-appointment__card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  border-radius: 24px;
  overflow: hidden;
}

.services-page-appointment__image {
  background-position: center;
  background-size: cover;
  min-height: 260px;
}

.services-page-appointment__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-page-appointment__form {
  background-color: #1e64b5;
  color: #ffffff;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  border-radius: 32px;
}

.services-page-appointment__title {
  margin: 0 0 12px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 100%;
  letter-spacing: -0.03em;
}

.services-page-appointment__subtitle {
  margin: 0 0 20px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: -0.03em;
}

.services-page-appointment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-page-appointment-form__field {
  width: 100%;
}

.services-page-appointment-form__input {
  width: 100%;
  border-radius: 6px;
  border: none;
  padding: 12px 20px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  outline: none;
}

.services-page-appointment-form__input--textarea {
  resize: vertical;
  min-height: 80px;
}

.services-page-appointment-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  margin-top: 4px;
}

.services-page-appointment-form__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.services-page-appointment-form__checkmark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background-color: #ffffff;
  position: relative;
  flex-shrink: 0;
}

.services-page-appointment-form__checkbox:checked + .services-page-appointment-form__checkmark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border-right: 2px solid #1e64b5;
  border-bottom: 2px solid #1e64b5;
  transform: rotate(40deg);
}

.services-page-appointment-form__consent-text {
  line-height: 1.4;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 140%;
  letter-spacing: 0;
}

.services-page-appointment-form__submit {
  margin-top: 10px;
  align-self: flex-start;
  padding: 10px 32px;
  border-radius: 999px;
  border: none;
  background-color: #ff8a2a;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.services-page-appointment-form__submit:hover {
  background-color: #fb7a0f;
}

@media (max-width: 768px) {
  .services-page-appointment {
    padding: 24px 0 48px;
  }

  .services-page-appointment__card {
    grid-template-columns: 1fr;
  }

  .services-page-appointment__form {
    padding: 24px 20px 28px;
  }
}

@media (max-width: 480px) {

  .specialist-card {
    display: flex;
    flex-direction: column;
    width: 168px;
        min-width: 160px;
    max-width: 273px;
    height: 245px;
    flex-shrink: 0;
}
    .specialist-card__photo img {
        max-height: 137px;
    }
}

@media (max-width: 768px) {
      .services-grid__inner {
        display: grid;
        grid-template-columns: repeat(auto-fill, 160px);
        gap: 16px;
}
}
