.about-benefits {
  padding: 40px 0 72px;
}

.about-benefits__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: stretch;
}

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

.reviews__grid .review-card {
  /* Чтобы не влияли flex-настройки, заданные для слайдера */
  flex: initial;
}

.about-benefits__media {
  border-radius: 32px;
  overflow: hidden;
  background-image: url("../img/catsbg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  min-height: 360px;
   background-position: 0px center;
}

.about-benefits__title {
  margin: 0 0 24px;
  font-family:
    Onest,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: #111827;
}

/* Секция: О нас в цифрах */
.about-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 60px 24px;
  gap: 20px;
  background: #F6F6F6;
}

.about-stats__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.about-stats__title {
  margin: 0;
  width: 100%;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 48px;
  letter-spacing: -0.03em;
  color: #212836;
}

.about-stats__grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  gap: 36px;
  flex: 1;
  min-width: 0;
  height: 320px;
  background: #FFFFFF;
  border-radius: 32px;
}

.stat-card__number {
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 120px;
  line-height: 1.275;
  text-align: center;
  letter-spacing: -0.03em;
  color: #A8C0F8;
  flex: none;
}

.stat-card__number--blue {
  color: #2D71B0;
}

.stat-card__number--muted {
  color: #94A2B1;
}

.stat-card__caption {
  margin: 0;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 120%;
  text-align: center;
  letter-spacing: -0.03em;
  color: #212836;
  flex: none;
}

.stat-card--icon {
  gap: 36px;
}

.stat-card--icon .stat-card__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.stat-card--icon .stat-card__icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .about-stats {
    padding: 48px 24px;
  }

  .about-stats__title {
    font-size: 32px;
    line-height: 40px;
  }

  .stat-card__number {
    font-size: 80px;
  }

  .stat-card__caption {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .about-stats {
    padding: 40px 16px;
    gap: 16px;
  }

  .about-stats__inner {
    gap: 16px;
  }

  .about-stats__title {
    font-size: 24px;
    line-height: 110%;
  }

  .about-stats__grid {
    flex-direction: column;
    gap: 8px;
  }

  .about-stats__grid .stat-card:nth-child(1),
  .about-stats__grid .stat-card:nth-child(2) {
    flex: none;
  }

  .stat-card {
    flex-direction: column;
    padding: 24px 24px 16px;
    gap: 16px;
    height: auto;
    min-height: 100px;
    border-radius: 16px;
  }

  .about-stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .about-stats__grid .stat-card:nth-child(3),
  .about-stats__grid .stat-card:nth-child(4) {
    grid-column: span 2;
  }

  .stat-card__number {
    font-size: 36px;
    line-height: 46px;
  }

  .stat-card__caption {
    font-size: 16px;
    line-height: 120%;
  }

  .stat-card--icon .stat-card__icon {
    width: 80px;
    height: 80px;
  }

  .stat-card--icon .stat-card__icon img {
    width: 48px;
    height: 48px;
  }
}

/* Блок: Главная ценность — наши врачи (макет 1:1, 1920×774) */
.about-doctors {
  position: relative;
  min-height: 774px;
  background: #FFFFFF;
  overflow: hidden;
}

.about-doctors__inner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  min-height: 774px;
  width: 100%;
  
    background: #ECEDEE;
}

/* Текстовая карточка: 1084×300, left 260, top 267 */
.about-doctors__card {
  position: absolute;
  left: 260px;
  top: 267px;
  width: 1084px;
  max-width: calc(100% - 320px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 36px;
  gap: 20px;
background: linear-gradient(90deg, #FFFFFF 39.31%, #E3E7EB 100%);
  border-radius: 32px;
/*   z-index: 2;
 */}

.about-doctors__title {
  margin: 0;
  max-width: 725px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 48px;
  letter-spacing: -0.03em;
  color: #212836;
}

.about-doctors__text {
  margin: 0;
  max-width: 784px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: -0.03em;
  color: #212836;
  opacity: 0.9;
}

/* Правая часть: фото + декор */
.about-doctors__figure {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 774px;
  pointer-events: none;
}

.about-doctors__figure > * {
  pointer-events: none;
}

/* Размытый эллипс */
.about-doctors__blur {
  position: absolute;
  left: 990px;
  top: 247px;
  width: 806px;
  height: 806px;
  background: #65707B;
  opacity: 0.2;
  filter: blur(200px);
  border-radius: 50%;
}

/* Фото врача с кошкой: 660×740 — крупно по макету (от правого края 184px) */
.about-doctors__img-wrap {
  position: absolute;
  right: 184px;
  top: 34px;
  width: 660px;
  height: 740px;
  z-index: 2;
}

.about-doctors__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Декоративные квадраты 112×112, border-radius 16px */
.about-doctors__deco {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 16px;
  z-index: 0;
}

.about-doctors__deco--1 { left: 1011px; top: 121px; background: #FE862B; opacity: 0.7; }
.about-doctors__deco--2 { left: 1139px; top: 121px; background: #B5C9F6; opacity: 0.7; }
.about-doctors__deco--3 { left: 1011px; top: 249px; background: #B9B9B9; opacity: 0.7; }
.about-doctors__deco--4 { left: 1136px; top: 377px; background: #F4CA8B; opacity: 0.7; }
.about-doctors__deco--5 { left: 1591px; top: 320px; background: #EFD4A9; }
.about-doctors__deco--6 { left: 1719px; top: 192px; background: #CCCAC6; }
.about-doctors__deco--7 { left: 1598px; top: 684px; background: #B5C9F6; opacity: 0.7; }
.about-doctors__deco--8 { left: 1726px; top: 684px; background: #F0F1F2; }

/* При ширине < 1825px — вертикальная раскладка: текст сверху, фото снизу, без наложения */
@media (max-width: 1825px) {
  .about-doctors {
    min-height: auto;
    padding: 60px 0 80px;
  }

  .about-doctors__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 0 24px;
    gap: 40px;
  }

  .about-doctors__card {
    position: static;
    order: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-doctors__figure {
    position: relative;
    order: 2;
    min-height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-doctors__blur {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, 70vw);
    height: min(500px, 70vw);
  }

  .about-doctors__img-wrap {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: min(520px, 85vw);
    aspect-ratio: 660 / 740;
    max-height: 75vh;
    flex-shrink: 0;
    z-index: 1;
  }

  .about-doctors__img {
    width: 100%;
    height: 100%;
  }

  .about-doctors__deco--1 { left: 12%; top: 12%; }
  .about-doctors__deco--2 { left: 28%; top: 8%; }
  .about-doctors__deco--3 { left: 10%; top: 35%; }
  .about-doctors__deco--4 { left: 30%; top: 48%; }
  .about-doctors__deco--5 { left: 68%; top: 38%; }
  .about-doctors__deco--6 { left: 82%; top: 18%; }
  .about-doctors__deco--7 { left: 75%; top: 82%; }
  .about-doctors__deco--8 { left: 88%; top: 80%; }
}

@media (max-width: 1200px) {
  .about-doctors__img-wrap {
    width: min(460px, 85vw);
    height: min(516px, 85vw * 740 / 660);
  }
}

@media (max-width: 768px) {
  .about-doctors {
    min-height: auto;
    padding: 40px 0 60px;
  }
  
  .reviews__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
}

  .about-doctors__inner {
    min-height: auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .about-doctors__card {
    position: static;
    width: 100%;
    max-width: none;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .about-doctors__title {
    font-size: 24px;
    line-height: 32px;
  }

  .about-doctors__text {
    font-size: 16px;
  }

  .about-doctors__figure {
    position: relative;
    min-height: 400px;
    order: -1;
  }

  .about-doctors__blur {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
  }

  .about-doctors__img-wrap {
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, 100%);
    height: 448px;
    top: 0;
  }

  .about-doctors__deco {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .about-doctors__deco--1 { left: 5%; top: 10%; }
  .about-doctors__deco--2 { left: 55%; top: 5%; }
  .about-doctors__deco--3 { left: 10%; top: 35%; }
  .about-doctors__deco--4 { left: 60%; top: 45%; }
  .about-doctors__deco--5 { left: 70%; top: 35%; }
  .about-doctors__deco--6 { left: 80%; top: 15%; }
  .about-doctors__deco--7 { left: 75%; top: 80%; }
  .about-doctors__deco--8 { left: 85%; top: 82%; }
}

.about-benefits__card {
  background-color: #ffffff;
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-benefits__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-benefits-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 4px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.about-benefits-item:first-child {
  border-bottom-color: #fe8629;
}

.about-benefits-item:last-child {
  border-bottom: none;
}

.about-benefits-item__icon {
  grid-row: 1 / span 2;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(254, 134, 43, 0.08);
  align-self: center;
}

.about-benefits-item__icon img {
  max-width: 80%;
  max-height: 80%;
}

.about-benefits-item__title {
  margin: 0;
  font-family:
    Onest,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: #212836;
}

.about-benefits-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-benefits-item__text {
  margin: 0;
  font-family:
    "Golos Text",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: -0.03em;
  color: #212836;
  opacity: 0.9;
}

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

  .about-benefits__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-benefits__media {
    min-height: 260px;
    border-radius: 24px;
    display: none;
  }

  /* На мобильных убираем большую обёртку-карту и делаем каждую запись отдельной карточкой */
  .about-benefits__card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .about-benefits__title {
    font-size: 18px;
    padding-left: 14px;
        padding-right: 14px;
  }

  .about-benefits__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .about-benefits-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border-bottom: none;
  }

  .about-benefits-item__icon {
    grid-row: auto;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(254, 134, 43, 0.08);
    flex: 0 0 48px;
  }

  .about-benefits-item__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .about-benefits-item__title {
    font-size: 16px;
    line-height: 120%;
    margin: 0 0 6px;
  }

  .about-benefits-item__text {
    font-size: 14px;
    margin: 0;
    color: #374151;
    opacity: 0.95;
  }
}

/* Галерея клиники */
.clinic-gallery {
  --gallery-gap: 20px;
  --gallery-edge-w: 175.5px;
  --gallery-edge-h: 400px;
  --gallery-side-w: 473px;
  --gallery-side-h: 440px;
  --gallery-center-w: 543px;
  --gallery-center-h: 480px;
  --gallery-pos-1: calc(
    (var(--gallery-center-w) / 2) + var(--gallery-gap) + (var(--gallery-side-w) / 2)
  );
  --gallery-pos-2: calc(
    var(--gallery-pos-1) + (var(--gallery-side-w) / 2) + var(--gallery-gap) +
      (var(--gallery-edge-w) / 2)
  );
  padding: 60px 0;
  background-color: #f1f3f4;
  overflow: hidden;
}

.clinic-gallery__wrap {
  width: 100%;
  overflow: hidden;
}

.clinic-gallery__viewport {
  position: relative;
  width: 100%;
  height: calc(var(--gallery-center-h) + 120px);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.clinic-gallery__viewport.is-dragging {
  cursor: grabbing;
}

.clinic-gallery__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.clinic-gallery__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--gallery-edge-w);
  height: var(--gallery-edge-h);
  transform: translate(-50%, -50%);
  transition:
    left 0.45s ease,
    width 0.45s ease,
    height 0.45s ease,
    opacity 0.3s ease,
    filter 0.45s ease;
  cursor: pointer;
}

.clinic-gallery__photo {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: border-radius 0.45s ease;
}

.clinic-gallery__slide.is-left-2,
.clinic-gallery__slide.is-right-2 {
  width: var(--gallery-edge-w);
  height: var(--gallery-edge-h);
  opacity: 1;
  z-index: 1;
}

.clinic-gallery__slide.is-left-2 {
  left: calc(50% - var(--gallery-pos-2));
}

.clinic-gallery__slide.is-right-2 {
  left: calc(50% + var(--gallery-pos-2));
}

.clinic-gallery__slide.is-left-1,
.clinic-gallery__slide.is-right-1 {
  width: var(--gallery-side-w);
  height: var(--gallery-side-h);
  opacity: 1;
  z-index: 2;
}

.clinic-gallery__slide.is-left-1 {
  left: calc(50% - var(--gallery-pos-1));
}

.clinic-gallery__slide.is-right-1 {
  left: calc(50% + var(--gallery-pos-1));
}

.clinic-gallery__slide.is-center {
  left: 50%;
  width: var(--gallery-center-w);
  height: var(--gallery-center-h);
  opacity: 1;
  z-index: 3;
}

.clinic-gallery__slide.is-hidden-left,
.clinic-gallery__slide.is-hidden-right {
  width: var(--gallery-edge-w);
  height: var(--gallery-edge-h);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.clinic-gallery__slide.is-hidden-left {
  left: calc(50% - var(--gallery-pos-2) - 240px);
}

.clinic-gallery__slide.is-hidden-right {
  left: calc(50% + var(--gallery-pos-2) + 240px);
}

@media (max-width: 1024px) {
  .clinic-gallery {
    --gallery-edge-w: 120px;
    --gallery-edge-h: 280px;
    --gallery-side-w: 320px;
    --gallery-side-h: 320px;
    --gallery-center-w: 380px;
    --gallery-center-h: 360px;
    padding: 48px 0;
  }

  .clinic-gallery__viewport {
    height: calc(var(--gallery-center-h) + 96px);
  }

  .clinic-gallery__photo {
    border-radius: 24px;
  }
}

@media (max-width: 768px) {
  .clinic-gallery {
    --gallery-edge-w: 90px;
    --gallery-edge-h: 220px;
    --gallery-side-w: 220px;
    --gallery-side-h: 260px;
    --gallery-center-w: 280px;
    --gallery-center-h: 300px;
    padding: 40px 0;
  }

  .clinic-gallery__viewport {
    height: calc(var(--gallery-center-h) + 72px);
  }

  .clinic-gallery__photo {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .clinic-gallery {
    --gallery-gap: 14px;
    --gallery-edge-w: 70px;
    --gallery-edge-h: 180px;
    --gallery-side-w: 160px;
    --gallery-side-h: 200px;
    --gallery-center-w: 200px;
    --gallery-center-h: 240px;
  }

  .clinic-gallery__viewport {
    height: calc(var(--gallery-center-h) + 56px);
  }

  .clinic-gallery__photo {
    border-radius: 16px;
  }
}

/* ========== Services-page-appointment (из main.css / services.html) ========== */
.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;
  }
}

/* ========== Specialists (из style.css / index.html) ========== */
.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;
  }

  .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 (из style.css / index.html) ========== */
.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-hero__title {
            font-family: Onest;
font-weight: 600;
font-style: SemiBold;
font-size: 36px;
leading-trim: NONE;
line-height: 110.00000000000001%;
letter-spacing: -3%;

        }
/*         .services-page-hero__card {
    background-image: none;
} */
        
        .services-page-hero__text {
            margin-top: 0px;
            margin-bottom: 50px;
        }


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

@media (max-width: 768px) {
    .specialist-card {
        display: flex;
        flex-direction: column;
        width: 260px;
        min-width: 225px;
        max-width: 90px;
        height: 309px;
        width: 100%;
        flex-shrink: 0;
    }
}
@media (max-width: 480px) {
    .specialists {
        padding: 32px 0 40px;
    }
    .specialist-card {
        display: flex;
        flex-direction: column;
        width: 168px;
        min-width: 160px;
        max-width: 273px;
        height: 245px;
        flex-shrink: 0;
    }
}

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