/* Rehab landing: Figma 180:4096. Scoped to .rehab */

.rehab {
  --rehab-teal: #15a3a5;
  --rehab-teal-dark: #13706f;
  --rehab-mint: #e7f6f4;
  --rehab-card: #ffffff;
  --rehab-radius: 20px;
  background: var(--rehab-mint);
  color: var(--color-text);
}

.rehab section,
.rehab .rehab-dirs {
  scroll-margin-top: 96px;
}

.rehab a:not(.button):not(.rehab-dirs__chip) {
  color: var(--rehab-teal-dark);
}

.rehab a:not(.button):not(.rehab-dirs__chip):hover {
  color: var(--rehab-teal);
}

/* Hero */

.rehab-hero {
  padding-block: 28px 12px;
}

.rehab-hero__breadcrumbs {
  margin-block-end: 28px;
}

.rehab-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 48px;
  align-items: center;
}

.rehab-hero__title {
  max-width: 18ch;
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--rehab-teal);
}

.rehab-hero__lead {
  max-width: 54ch;
  margin-block-start: 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
}

.rehab-hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-block-start: 28px;
}

.rehab-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--rehab-teal);
}

.rehab-feature__icon .icon {
  width: 28px;
  height: 28px;
}

.rehab-feature__title {
  margin-block-start: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rehab-teal-dark);
}

.rehab-feature__text {
  margin-block-start: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.rehab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 28px;
}

.rehab-hero__media {
  display: flex;
  margin: 0;
  overflow: hidden;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  border-radius: var(--rehab-radius);
  background: linear-gradient(160deg, #bfe6e2 0%, #7ecfc8 100%);
}

.rehab-hero__img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Direction chips */

.rehab-dirs {
  padding-block: 28px 8px;
}

.rehab-dirs__slider {
  padding-inline: 8px;
}

.rehab-dirs .nv-slider__viewport {
  margin-inline: 52px;
}

.rehab-dirs__track {
  align-items: stretch;
  gap: 16px;
}

.rehab-dirs .nv-slider__track > li {
  flex: 1 0 min(280px, 70vw);
  width: min(420px, 70vw);
}

.rehab-dirs__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: var(--rehab-teal-dark);
  background: var(--rehab-card);
  border-radius: var(--rehab-radius);
  box-shadow: 0 8px 24px rgba(19, 112, 111, 0.06);
}

.rehab-dirs__chip:hover,
.rehab-dirs__chip.is-active,
.rehab-dirs__chip:focus-visible {
  color: var(--rehab-teal-dark);
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 163, 165, 0.18);
  outline: 2px solid var(--rehab-teal);
  outline-offset: 0;
}

.rehab-dirs .nv-slider__prev,
.rehab-dirs .nv-slider__next {
  width: 44px;
  height: 44px;
  color: var(--rehab-teal-dark);
  background: var(--rehab-card);
}

/* Advantages */

.rehab-adv {
  padding-block: 28px 12px;
}

.rehab-adv__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 48px;
  align-items: center;
  padding: 28px;
  background: var(--rehab-card);
  border-radius: 28px;
}

.rehab-adv__media {
  display: flex;
  margin: 0;
  overflow: hidden;
  min-height: 280px;
  aspect-ratio: 4 / 3;
  border-radius: var(--rehab-radius);
  background: linear-gradient(160deg, #d7f3ef 0%, #9ed9d3 100%);
}

.rehab-adv__img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rehab-adv__title {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 600;
  color: var(--rehab-teal-dark);
}

.rehab-adv__lead {
  margin-block-start: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
}

.rehab-adv__list {
  display: grid;
  gap: 10px;
  margin-block-start: 20px;
}

.rehab-adv__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.rehab-adv__check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-block-start: 1px;
  color: var(--rehab-teal);
}

.rehab-adv__check svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Doctors */

.rehab-team {
  padding-block: 28px 40px;
}

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

.rehab-doc {
  text-align: center;
}

.rehab-doc__media {
  display: flex;
  margin: 0;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background-color: #fff;
}

/* Studio portraits on white: show the whole figure, never crop the head. */
.rehab-doc__img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rehab-doc__name {
  margin-block-start: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.rehab-doc__position {
  margin-block-start: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Reviews */

.rehab-reviews {
  padding-block: 48px 40px;
  background: linear-gradient(105deg, #2f9ba0 0%, #1fa8a6 45%, #4fd6c6 100%);
}

.rehab-reviews__title {
  margin-block-end: 28px;
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.rehab-reviews .nv-slider {
  padding-inline: 8px;
}

.rehab-reviews .nv-slider__viewport {
  margin-inline: 8px;
}

.rehab-reviews__track {
  gap: 16px;
}

.rehab-reviews .nv-slider__track > .review-card {
  width: min(420px, 82vw);
  padding: 20px 22px 22px;
  background: #fff;
  border-radius: 16px;
}

.rehab-reviews .review-card__service {
  display: none;
}

.rehab-reviews .review-card__author {
  font-size: 16px;
}

.rehab-reviews .review-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  line-clamp: 5;
  overflow: hidden;
  margin-block-start: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
}

.rehab-reviews .nv-slider__prev,
.rehab-reviews .nv-slider__next {
  width: 44px;
  height: 44px;
  color: var(--rehab-teal-dark);
  background: #fff;
}

.rehab-reviews__action {
  display: flex;
  justify-content: center;
  margin-block-start: 28px;
}

.rehab-reviews__action .button {
  min-width: 200px;
}

/* Plans */

.rehab-plans {
  padding-block: 48px 24px;
}

.rehab-plans__title {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  color: var(--rehab-teal-dark);
  text-align: center;
}

.rehab-plans__lead {
  margin-block-start: 8px;
  margin-block-end: 28px;
  font-size: 16px;
  color: var(--rehab-teal);
  text-align: center;
}

.rehab-plans__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rehab-plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 22px 18px 24px;
  text-align: center;
  background: var(--rehab-card);
  border-radius: var(--rehab-radius);
  box-shadow: 0 8px 24px rgba(19, 112, 111, 0.06);
}

.rehab-plan__cat {
  min-height: 3.2em;
  margin-block-end: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.rehab-plan__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 12px;
}

.rehab-plan__item + .rehab-plan__item {
  border-top: 1px solid #e4f1f0;
}

.rehab-plan__num {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rehab-teal);
}

.rehab-plan__sessions {
  font-size: 14px;
  color: var(--color-text-muted);
}

.rehab-plan__old {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.rehab-plan__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--rehab-teal);
}

/* When needed */

.rehab-when {
  padding-block: 36px 16px;
}

.rehab-when__title {
  margin-block-end: 28px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  color: var(--rehab-teal-dark);
  text-align: center;
}

.rehab-when__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
}

.rehab-when__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.rehab-when__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--rehab-teal);
}

.rehab-when__icon .icon {
  width: 40px;
  height: 40px;
}

.rehab-when__text {
  max-width: 18ch;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text);
}

/* Contacts + map */

.rehab-contacts {
  padding-block: 36px 16px;
}

.rehab-contacts__grid,
.rehab-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px 40px;
  align-items: stretch;
}

.rehab-location {
  margin-block-start: 36px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.rehab-contacts__title,
.rehab-location__title {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 600;
  color: var(--rehab-teal-dark);
}

.rehab-contacts__name {
  margin-block-start: 10px;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text);
}

.rehab-contacts__list {
  display: grid;
  gap: 12px;
  margin-block-start: 20px;
}

.rehab-contacts__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.rehab-contacts__icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--rehab-teal);
}

.rehab-contacts__hours-title {
  margin-block-start: 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.rehab-contacts__hours {
  display: grid;
  gap: 6px;
  margin-block-start: 10px;
  max-width: 320px;
}

.rehab-contacts__hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.rehab-contacts__hours li span:first-child {
  color: var(--color-text-muted);
}

.rehab-map {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  min-height: 340px;
}

.rehab-map__frame {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  border: 0;
  border-radius: var(--rehab-radius);
  background: #dceeee;
}

.rehab-map__open {
  font-size: 14px;
  font-weight: 500;
}

.rehab-location__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
}

/* CTA */

.rehab-cta {
  padding-block: 28px 56px;
}

.rehab-cta__banner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  overflow: hidden;
  min-height: 240px;
  background: linear-gradient(90deg, #1b9a95 0%, #2bb5a7 55%, #7ee0cd 100%);
  border-radius: var(--rehab-radius);
}

.rehab-cta__content {
  padding: 36px 40px;
  color: #fff;
}

.rehab-cta__title {
  max-width: 18ch;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 600;
  line-height: 1.2;
}

.rehab-cta__text {
  margin-block-start: 12px;
  font-size: 16px;
  line-height: 1.45;
}

.rehab-cta__button {
  margin-block-start: 22px;
}

.rehab-cta__media {
  display: flex;
  align-self: stretch;
  min-height: 200px;
}

.rehab-cta__img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  background: none;
}

/* Mobile */

@media (max-width: 1100px) {
  .rehab-plans__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rehab-when__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rehab-hero__grid,
  .rehab-adv__card,
  .rehab-team__grid,
  .rehab-contacts__grid,
  .rehab-location,
  .rehab-cta__banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .rehab-hero__title {
    max-width: none;
  }

  .rehab-hero__features {
    grid-template-columns: 1fr;
  }

  .rehab-hero__media,
  .rehab-hero__img,
  .rehab-adv__media,
  .rehab-adv__img {
    min-height: 240px;
  }

  .rehab-dirs .nv-slider__viewport {
    margin-inline: 44px;
  }

  .rehab-cta__content {
    padding: 28px 24px;
  }

  .rehab-cta__media {
    min-height: 180px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .rehab-hero,
  .rehab-dirs,
  .rehab-adv,
  .rehab-team {
    padding-block: 20px;
  }

  .rehab-adv__card {
    padding: 16px;
  }

  .rehab-plans__grid,
  .rehab-when__grid {
    grid-template-columns: 1fr;
  }

  .rehab-hero__actions,
  .rehab-hero__actions .button {
    width: 100%;
  }

  .rehab-plan__cat {
    min-height: 0;
  }

  .rehab-when__text {
    max-width: none;
  }

  .rehab-reviews .nv-slider__track > .review-card {
    width: min(100%, 82vw);
  }
}
