/* Home (Figma 1:2). Enqueued globally — scope with .page--home. */

.page--home .services {
  padding-block: 48px 56px;
}

.page--home .services__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

.page--home .services__brand {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.28;
  color: #15a3a5;
}

.page--home .services__lead {
  max-width: 928px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.27;
  color: #474747;
}

.page--home .services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-block-start: 40px;
}

.page--home .service-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 12px 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 340px;
  background: linear-gradient(180deg, #9aeee6 0%, #4eded0 100%);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page--home a.service-card:hover,
.page--home a.service-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.page--home .service-card--static,
.page--home .service-card--static:hover {
  transform: none;
  box-shadow: none;
  cursor: default;
}

.page--home .service-card__head {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 8px;
}

.page--home .service-card__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  background-color: #fff;
  border-radius: 16px;
  text-align: center;
  text-wrap: balance;
}

.page--home .service-card__dots {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin-block-start: 10px;
}

.page--home .service-card__dots::before,
.page--home .service-card__dots::after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
}

.page--home .service-card__media {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 72%;
  margin-block-start: auto;
  overflow: hidden;
}

.page--home .service-card__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center bottom;
}

.page--home .services__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 0;
  padding: 12px 14px 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 340px;
  color: #fff;
  background-color: #43a099;
  border-radius: 18px;
  text-align: center;
}

.page--home .services__cta-title {
  flex: none;
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.page--home .services__cta-accent {
  color: #9aeee6;
}

.page--home .services__cta-button {
  flex: none;
  min-width: 148px;
  min-height: 36px;
  margin-block-start: 8px;
  padding-inline: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #262626;
  background-color: #fff;
  border-radius: 8px;
}

.page--home .services__cta-button:hover,
.page--home .services__cta-button:focus-visible {
  color: #262626;
  background-color: #f3f3f3;
}

.page--home .services__cta-media {
  display: flex;
  flex: 1 0 58%;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  min-height: 55%;
  max-height: 62%;
  margin-block-start: auto;
  overflow: hidden;
}

.page--home .services__cta-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center bottom;
}

.page--home .services__note {
  max-width: 920px;
  margin-block-start: 40px;
  margin-inline: auto;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.27;
  color: #474747;
  text-align: center;
}

.page--home .advantages {
  padding-block: 72px 80px;
  background: linear-gradient(90deg, #43a099 0%, #5fe2d5 100%);
}

.page--home .advantages__title {
  margin-block-end: 48px;
  font-size: 42px;
  font-weight: 500;
  color: #fff;
}

.page--home .advantages__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.page--home .adv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-height: 246px;
  padding: 21px 16px 20px;
  background-color: #fff;
  border: 1px solid #dfdfdf;
  border-radius: 12px;
  text-align: center;
}

.page--home .adv-card__icon {
  display: flex;
  flex: 0 0 84px;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  max-width: 84px;
  max-height: 84px;
  color: #0bbfc1;
  border: 2px solid #0bbfc1;
  border-radius: 50%;
}

.page--home .adv-card__icon .icon {
  display: block;
  flex: none;
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
}

.page--home .adv-card__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}

.page--home .team {
  padding-block: 72px;
}

.page--home .team__title {
  margin-block-end: 48px;
  font-size: 42px;
  font-weight: 500;
  color: #15a3a5;
}

.page--home .team .nv-slider__track {
  display: flex;
  gap: 22px;
}

.page--home .team .nv-slider__track > .doctor-card {
  width: 269px;
}

.page--home .team .doctor-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
}

.page--home .team img.doctor-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: var(--nv-photo-pos, center top);
  transform: scale(0.94);
  transform-origin: center bottom;
}

.page--home .team .doctor-card__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: #000;
}

.page--home .team .doctor-card__position {
  margin-block-start: 8px;
  font-size: 16px;
  line-height: 1.25;
  color: #098284;
}

.page--home .nv-slider__prev,
.page--home .nv-slider__next {
  width: 56px;
  height: 56px;
  color: #098284;
  background-color: #f3f3f3;
}

.page--home .home-reviews {
  padding-block: 72px 80px;
  background: linear-gradient(90deg, #43a099 0%, #5fe2d5 100%);
}

.page--home .home-reviews__title {
  margin-block-end: 48px;
  font-size: 42px;
  font-weight: 500;
  color: #fff;
}

/* Arrows sit in side gutters, not over review text. */
.page--home .home-reviews .nv-slider {
  padding-inline: 56px;
}

.page--home .home-reviews .nv-slider__prev {
  left: 0;
}

.page--home .home-reviews .nv-slider__next {
  right: 0;
}

@media (max-width: 767px) {
  .page--home .home-reviews .nv-slider {
    padding-inline: 42px;
  }
}

.page--home .home-reviews .nv-slider__track {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.page--home .home-reviews .nv-slider__track > .review-card {
  width: min(340px, 85vw);
}

.page--home .home-reviews .review-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  padding: 24px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 16px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page--home .home-reviews .review-card:hover,
.page--home .home-reviews .review-card:focus-within {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.page--home .home-reviews .review-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.page--home .home-reviews .review-card__head {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.page--home .home-reviews .review-card__author {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: #000;
}

.page--home .home-reviews .review-card__date {
  margin-inline-start: 0;
  font-size: 16px;
  color: #4eded0;
}

.page--home .home-reviews .review-card__text {
  display: -webkit-box;
  flex: none;
  max-height: calc(1.35em * 6);
  margin-block-start: 12px;
  overflow: hidden;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  font-size: 16px;
  line-height: 1.35;
  color: #3e3e3e;
}

.page--home .home-reviews .review-card__more {
  display: none;
  flex: none;
  margin-block-start: auto;
  padding-block-start: 12px;
  font-size: 14px;
  line-height: 1.3;
  color: #15a3a5;
}

.page--home .home-reviews .review-card.is-clamped .review-card__more {
  display: block;
}

.page--home .clinic--home {
  padding-block: 56px 72px;
}

.page--home .clinic--home .clinic__card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: center;
  max-width: 100%;
  padding: 40px 46px;
  overflow: hidden;
  background-color: #bcf2ec;
  border-radius: 22px;
}

.page--home .clinic--home .clinic__paw {
  display: block;
  width: 48px;
  height: 48px;
  margin-block-end: 16px;
  color: #0bbfc1;
}

.page--home .clinic--home .clinic__paw svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page--home .clinic--home .clinic__content p {
  margin-block-start: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #065354;
}

.page--home .clinic--home .clinic__content p + p {
  margin-block-start: 16px;
}

.page--home .clinic--home .clinic__content strong,
.page--home .clinic--home .clinic__content b {
  font-weight: 700;
  color: #065354;
}

.page--home .clinic--home .clinic__statement {
  margin-block-start: 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}

.page--home .clinic--home .clinic__appointment {
  width: 100%;
  max-width: 684px;
  margin-block-start: 28px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(90deg, #43a099 0%, #139086 100%);
  border-radius: 16px;
  text-align: left;
}

.page--home .clinic--home .clinic__book {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
}

.page--home .clinic--home .clinic__book:hover,
.page--home .clinic--home .clinic__book:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.page--home .clinic--home .clinic__appointment-phone {
  margin-block-start: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.page--home .clinic--home .clinic__appointment-phone a {
  color: #fff;
  text-decoration: underline;
}

.page--home .clinic--home .clinic__media {
  align-self: end;
  max-width: 100%;
}

.page--home .clinic--home .clinic__img {
  display: block;
  width: 100%;
  max-height: 480px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 16px;
}

.page--home .patients {
  padding-block: 0 72px;
}

.page--home .patients__title {
  margin-block-end: 40px;
  font-size: 42px;
  font-weight: 500;
  color: #15a3a5;
}

.page--home .patients .nv-slider__track {
  display: flex;
  gap: 20px;
}

.page--home .patients .nv-slider__track > .patients__item {
  width: min(471px, 80vw);
}

.page--home .patients__item {
  overflow: hidden;
  border-radius: 16px;
}

.page--home .patients__img {
  display: block;
  width: 100%;
  aspect-ratio: 471 / 314;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .page--home .advantages__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page--home .clinic--home .clinic__card {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    padding: 32px;
  }
}

@media (max-width: 1100px) {
  .page--home .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .page--home .service-card,
  .page--home .services__cta {
    max-height: none;
  }
}

@media (max-width: 1024px) {
  .page--home .clinic--home .clinic__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .page--home .clinic--home .clinic__img {
    max-height: 360px;
  }
}

@media (max-width: 768px) {
  .page--home .services {
    padding-block: 32px 40px;
  }

  .page--home .services__brand {
    font-size: 32px;
  }

  .page--home .services__lead,
  .page--home .services__note {
    font-size: 18px;
  }

  .page--home .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-block-start: 24px;
  }

  .page--home .service-card,
  .page--home .services__cta {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .page--home .service-card__title {
    font-size: 16px;
    font-weight: 700;
    padding: 6px 8px;
  }

  .page--home .service-card__media {
    height: 66%;
  }

  .page--home .advantages,
  .page--home .home-reviews {
    padding-block: 48px;
  }

  .page--home .advantages__title,
  .page--home .team__title,
  .page--home .home-reviews__title,
  .page--home .patients__title {
    margin-block-end: 28px;
    font-size: 28px;
  }

  .page--home .advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page--home .adv-card {
    min-height: 0;
    gap: 16px;
    padding: 16px 12px;
  }

  .page--home .adv-card__icon {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
  }

  .page--home .adv-card__icon .icon {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
  }

  .page--home .adv-card__title {
    font-size: 16px;
  }

  .page--home .team {
    padding-block: 48px;
  }

  .page--home .clinic--home {
    padding-block: 32px 48px;
  }

  .page--home .clinic--home .clinic__card {
    padding: 24px 20px;
  }

  .page--home .clinic--home .clinic__text,
  .page--home .clinic--home .clinic__statement,
  .page--home .clinic--home .clinic__book,
  .page--home .clinic--home .clinic__appointment-phone {
    font-size: 16px;
  }

  .page--home .clinic--home .clinic__img {
    max-height: 280px;
  }

  .page--home .home-reviews .review-card {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    padding: 20px;
  }

  .page--home .home-reviews .review-card__author {
    font-size: 20px;
  }

  .page--home .services__cta {
    padding: 10px 10px 0;
  }

  .page--home .services__cta-title {
    font-size: 12px;
  }

  .page--home .services__cta-button {
    min-height: 32px;
    margin-block-start: 6px;
    font-size: 14px;
  }

  .page--home .services__cta-media {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .page--home .nv-slider__prev,
  .page--home .nv-slider__next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .page--home .service-card {
    padding: 8px 8px 0;
  }

  .page--home .service-card__head {
    gap: 0;
  }

  .page--home .service-card__dots {
    display: none;
  }

  .page--home .service-card__title {
    font-size: 15px;
    line-height: 1.15;
    padding: 5px 7px;
  }

  .page--home .service-card__media {
    height: 62%;
  }

  .page--home .services__brand {
    font-size: 28px;
  }

  .page--home .services__lead,
  .page--home .services__note {
    font-size: 16px;
  }

  .page--home .advantages__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page--home .services__cta {
    grid-column: 1 / -1;
    aspect-ratio: 1.2 / 1;
    max-height: 280px;
    padding: 12px 12px 0;
  }

  .page--home .services__cta-title {
    font-size: 14px;
  }

  .page--home .services__cta-media {
    flex: 1 0 55%;
    min-height: 50%;
    max-height: 62%;
  }

  .page--home .services__cta-button {
    width: auto;
    min-width: 0;
    padding-inline: 12px;
  }
}
