html {
  overflow-x: clip;
}

:root {
  color-scheme: light;
  --navy: #015068;
  --navy-deep: #003d54;
  --cyan: #00b9e5;
  --cyan-soft: #20d1ed;
  --ink: #07566a;
  --muted: #dcecf0;
  --review: #363636;
  --font-heading: "Poppins", Arial, sans-serif;
  --font-body: "Heebo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffcf4a;
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: 120px;
  background: #fff;
}

.brand {
  position: absolute;
  top: 20px;
  left: max(32px, calc((100vw - 1152px) / 2));
  width: 222px;
  line-height: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.menu-toggle,
.menu-close {
  display: none;
}

.menu-toggle svg,
.menu-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: min(360px, calc(100vw - 30px));
  background: #0b0c10;
}

.menu-brand {
  position: absolute;
  top: 40px;
  left: 25px;
  width: 120px;
  height: 26px;
}

.menu-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-menu .menu-close {
  position: absolute;
  top: 42px;
  right: 32px;
  display: grid;
  width: 45px;
  height: 37px;
  place-items: center;
  border: 1px solid var(--cyan);
  color: #fff;
  background: transparent;
  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
}

.hero {
  min-height: 1049px;
  margin-top: 120px;
  overflow: hidden;
  background-color: #d5e0e9;
  background-image: url("/assets/images/pie-tobillo-b1.jpg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__content {
  width: min(1150px, calc(100% - 64px));
  margin-inline: auto;
  padding-top: 318.6px;
}

.eyebrow {
  max-width: 555px;
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 555px;
  margin: 30px 0 60px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(64px, 5.28vw, 76px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  word-break: break-word;
}

.hero h1 strong {
  font-weight: 900;
}

.hero .outline-button {
  min-width: 0;
  min-height: 0;
  height: 65px;
  padding: 23px 30px;
  font-size: 15px;
  font-weight: 300;
  line-height: 15px;
  letter-spacing: 0.1em;
}

.hero .outline-button span {
  font-weight: 500;
}

.outline-button {
  display: inline-flex;
  min-width: 168px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid var(--cyan);
  color: #fff;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.outline-button:hover {
  color: var(--navy-deep);
  background: var(--cyan);
}

.services {
  display: grid;
  width: min(1152px, calc(100% - 64px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-inline: auto;
}

.service-card {
  min-height: 466px;
  padding: 48px 42px 38px;
  color: #fff;
  background: var(--navy);
}

.service-card--featured {
  outline: 3px solid var(--cyan);
  outline-offset: -3px;
}

.service-card:nth-child(2) {
  outline: 3px solid var(--cyan);
  outline-offset: -3px;
}

.service-card__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.service-card__icon--solid {
  fill: var(--cyan);
  stroke: var(--cyan);
}

.service-card h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.service-card__rule {
  display: block;
  width: 70px;
  height: 2px;
  margin: 24px 0 28px;
  background: var(--cyan);
}

.service-card p {
  margin: 0;
  color: #e3edf0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.section-divider {
  display: flex;
  height: 110px;
  justify-content: center;
  align-items: flex-start;
}

.section-divider span {
  width: 2px;
  height: 32px;
  background: var(--cyan);
}

.conditions {
  padding: 110px 0 4px;
  color: #fff;
  background: #000;
}

.section-heading {
  width: min(1152px, calc(100% - 64px));
  margin-inline: auto;
}

.section-heading h2 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 88px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}

.section-heading h2::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 70px;
  height: 2px;
  content: "";
  background: var(--cyan-soft);
  transform: translateY(-50%);
}

.section-heading--dark h2 {
  color: #f8f8f8;
}

.section-heading--dark .eyebrow {
  padding-left: 4px;
}

.condition-grid {
  display: grid;
  width: calc(100% - 10px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 103px auto 0;
}

.condition-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #171717;
  aspect-ratio: 23 / 38;
}

.condition-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
  transition: filter 200ms ease, transform 200ms ease;
}

.condition-card:hover img {
  filter: grayscale(0.35);
  transform: scale(1.025);
}

.testimonials {
  min-height: 1124px;
  padding: 110px 0 120px;
  background: #fff;
}

.section-heading--light h2 {
  color: var(--navy);
}

.review-grid {
  display: block;
  width: min(1388px, calc(100% - 52px));
  margin: 87px auto 0;
  overflow-x: clip;
  overflow-y: visible;
}

.review-track {
  position: relative;
  display: flex;
  width: max-content;
  align-items: flex-start;
  gap: 40px;
  touch-action: pan-y;
  transition: transform 300ms ease;
  will-change: transform;
}

.review-track.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
  transition: none !important;
}

.review-track.is-instant {
  transition: none;
}

.review-card,
.review-card-clone {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  padding: 30px 41px 65px;
  color: #fff;
  background: var(--review);
  box-shadow: 0 4px 9px rgb(0 0 0 / 28%);
  text-align: center;
}

.review-card[hidden],
.review-card-clone[hidden],
.condition-card[hidden] {
  display: none !important;
}

.review-card[data-review="0"], .review-card-clone[data-review-original="0"] { height: 407px; }
.review-card[data-review="1"], .review-card-clone[data-review-original="1"] { height: 359px; }
.review-card[data-review="2"], .review-card-clone[data-review-original="2"] { height: 479px; }
.review-card[data-review="3"], .review-card-clone[data-review-original="3"] { height: 359px; }
.review-card[data-review="4"], .review-card-clone[data-review-original="4"] { height: 383px; }

.quote-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  position: relative;
  top: 0;
  object-fit: contain;
}

:is(.review-card, .review-card-clone) p {
  width: 100%;
  margin: 14px 0 45px;
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

.review-card__avatar {
  position: absolute;
  bottom: -28px;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  transform: translateX(-50%);
}

.review-card__type {
  position: absolute;
  top: calc(100% + 68.5px);
  left: 1px;
  width: calc(100% - 2px);
  color: var(--navy);
  font-size: 15px;
  line-height: 1.7;
}

.review-card__name {
  position: absolute;
  top: calc(100% + 43.3px);
  left: 1px;
  width: calc(100% - 2px);
  color: #fcfcfc;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.review-pagination {
  display: flex;
  min-height: 18px;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 200px auto 0;
  transform: translateX(-5px);
}

.review-pagination button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #a6e6f6;
  cursor: pointer;
}

.review-pagination button[aria-current="true"] {
  background: var(--cyan);
}

.appointment {
  position: relative;
  display: grid;
  min-height: 636px;
  place-items: center;
  overflow: hidden;
  background-image: linear-gradient(rgb(0 82 101 / 82%), rgb(0 82 101 / 82%)), url("/assets/images/drLongo-PieTobilloGT.jpg");
  background-position: center;
  background-size: cover;
  text-align: center;
}

.appointment__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 20px;
  transform: translateY(-10px);
}

.appointment__rule {
  width: 2px;
  height: 82px;
  margin-bottom: 60px;
  background: var(--cyan);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 66px;
  transform: translateX(1px);
}

.social-links a {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.social-links a:hover {
  background: rgb(0 185 229 / 30%);
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.social-links a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.appointment h2 {
  margin: 0 0 56px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.appointment .outline-button {
  width: 188px;
  height: 65px;
}

.site-footer {
  min-height: 0;
  padding: 100px max(32px, calc((100vw - 1152px) / 2)) 25px;
  color: #fff;
  background: var(--navy);
}

.footer-main {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 96px;
  align-items: start;
}

.footer-brand img {
  width: 179px;
  height: auto;
  margin-bottom: 38px;
}

.footer-brand p {
  width: 325px;
  max-width: none;
  margin: 0;
  color: #e1edf0;
  font-size: 15px;
  line-height: 1.7;
}

.footer-brand__rule {
  display: block;
  width: 76px;
  height: 2px;
  margin-top: 28px;
  background: var(--cyan);
}

.footer-contact h4 {
  margin: 8px 0 30px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.footer-contact ul {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  color: #e5f0f2;
  font-size: 16px;
  line-height: 1.7;
}

.footer-contact li svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-contact li:first-child svg {
  fill: var(--cyan);
  stroke: var(--cyan);
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  margin: 114px 0 0;
  color: #d6e6e9;
  font-size: 14px;
  line-height: 1.7;
}

@media (min-width: 901px) {
  .footer-brand img,
  .footer-brand p,
  .footer-brand__rule {
    margin-left: 11px;
  }

  .copyright {
    width: 565px;
    margin-left: 11px;
  }
}

@media (max-width: 1100px) {
  .brand {
    left: 7%;
    width: 205px;
  }

  .hero__content,
  .services,
  .section-heading,
  .condition-grid {
    width: calc(100% - 64px);
  }

  .hero {
    min-height: 1044px;
    background-position: 58% center;
  }

  .hero__content {
    padding-top: 303px;
  }

  .hero h1 {
    max-width: 46%;
    font-size: clamp(54px, 7.3vw, 72px);
  }

  .service-card {
    min-height: 560px;
    padding: 44px 30px 32px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .service-card p {
    font-size: 14px;
  }

  .review-track {
    gap: 24px;
  }

  .review-card,
  .review-card-clone {
    min-height: 0;
    padding-inline: 20px;
  }

  :is(.review-card, .review-card-clone) p {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-main {
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 0;
    background: transparent;
  }

  .brand {
    top: 20px;
    left: 20px;
    width: 103px;
  }

  .menu-toggle {
    position: absolute;
    top: 53px;
    right: 20px;
    display: grid;
    width: 46px;
    height: 39px;
    place-items: center;
    border: 1px solid var(--cyan);
    color: #fff;
    background: rgb(3 61 84 / 28%);
    cursor: pointer;
  }

  .menu-toggle svg,
  .menu-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
  }

  .mobile-menu {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(360px, calc(100vw - 30px));
    background: #0b0c10;
  }

  .menu-brand {
    position: absolute;
    top: 40px;
    left: 25px;
    width: 120px;
    height: 26px;
  }

  .menu-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .menu-close {
    position: absolute;
    top: 42px;
    right: 32px;
    display: grid;
    width: 45px;
    height: 37px;
    place-items: center;
    border: 1px solid var(--cyan);
    color: #fff;
    background: transparent;
    cursor: pointer;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    min-height: 577px;
    height: 577px;
    margin-top: 0;
    background-position: 50% calc(50% + 5px);
    background-size: cover;
  }

  .hero__content {
    width: calc(100% - 40px);
    padding-top: 195.5px;
  }

  .eyebrow {
    max-width: 350px;
    font-size: 14px;
    line-height: 1.3;
    margin: 8px 0 16px;
  }

  .hero h1 {
    width: 100%;
    max-width: 350px;
    margin: 30px 0 30px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
  }

  .hero .outline-button {
    height: 52px;
    padding: 18px 20px;
    border-width: 2px;
    font-size: 15px;
    line-height: 12px;
  }

  .hero .outline-button span {
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 0.075em;
  }

  .services {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    min-height: 423px;
    padding: 48px 42px 40px;
  }

  .service-card:nth-child(2) {
    min-height: 448px;
  }

  .service-card:nth-child(3) {
    min-height: 395px;
  }

  .service-card__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 43px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .service-card__rule {
    width: 68px;
    margin: 24px 0 42px;
  }

  .service-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  .section-divider {
    height: 71px;
    padding-top: 18px;
  }

  .section-divider span {
    height: 24px;
  }

  .conditions {
    padding: 50px 0 2px;
  }

  .conditions .section-heading--dark {
    visibility: hidden;
  }

  .section-heading {
    width: calc(100% - 40px);
  }

  .section-heading h2 {
    margin-bottom: 12px;
    padding-left: 62px;
    font-size: 30px;
  }

  .section-heading h2::before {
    width: 40px;
  }

  .section-heading--light h2 {
    padding-left: 54px;
  }

  .section-heading--dark .eyebrow {
    padding-left: 0;
  }

  .condition-grid {
    width: calc(100% - 30px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 52px;
  }

  .condition-card {
    aspect-ratio: 7 / 8;
  }

  .testimonials {
    min-height: 703px;
    padding: 50px 0 48px;
  }

  .review-grid {
    display: block;
    width: calc(100% - 30px);
    margin-top: 74px;
  }

  .review-track {
    gap: 0;
  }

  .review-card,
  .review-card-clone {
    display: flex;
    flex-basis: calc(100vw - 30px);
    min-height: 0;
    height: auto;
    width: calc(100vw - 30px);
    margin-inline: 0;
    padding: 26px 26px 34px;
    background: transparent;
  }

  :is(.review-card, .review-card-clone)[data-review] {
    height: auto;
    box-shadow: none;
  }

  :is(.review-card, .review-card-clone)[data-review]::before {
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    height: 290px;
    background: var(--review);
    box-shadow: 0 4px 9px rgb(0 0 0 / 28%);
    content: "";
  }

  :is(.review-card, .review-card-clone)[data-review] > * {
    z-index: 1;
  }

  .quote-mark {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    top: 0;
  }

  :is(.review-card, .review-card-clone) p {
    margin: 17px 0 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .review-card__avatar {
    position: static;
    bottom: auto;
    left: auto;
    width: 70px;
    height: 70px;
    margin-top: 8px;
    transform: none;
  }

  .review-card__name {
    top: calc(100% - 80px);
  }

  .review-card__type {
    position: static;
    margin-top: 41px;
    font-size: 15px;
    line-height: 18.2px;
    transform: translateY(25px);
  }

  .review-pagination {
    gap: 15px;
    margin-top: 20px;
    transform: translateX(-5px);
  }

  .review-pagination button {
    width: 6px;
    height: 6px;
  }

  .appointment {
    min-height: 451px;
    background-position: 50% center;
  }

  .appointment__content {
    padding: 38px 16px;
    transform: translateY(-4.5px);
  }

  .appointment__rule {
    height: 54px;
    margin-bottom: 36px;
  }

  .social-links {
    gap: 20px;
    margin-bottom: 67px;
    transform: none;
  }

  .social-links a {
    width: 39px;
    height: 39px;
  }

  .appointment h2 {
    margin-bottom: 36px;
    font-size: 30px;
    line-height: 1.2;
  }

  .appointment .outline-button {
    width: 143px;
    height: 52px;
    min-width: 0;
    min-height: 0;
    transform: translateX(-1px);
  }

  .site-footer {
    min-height: 0;
    padding: 61px 26px 34px;
  }

  .footer-main {
    display: block;
  }

  .footer-brand img {
    width: 193px;
    margin-bottom: 38px;
  }

  .footer-brand p {
    width: auto;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.7;
  }

  .footer-brand__rule {
    margin-top: 26px;
  }

  .footer-contact {
    margin-top: 33px;
  }

  .footer-contact h4 {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.7;
  }

  .footer-contact ul {
    gap: 26px;
  }

  .footer-contact li {
    grid-template-columns: 20px 1fr;
    gap: 12px;
    font-size: 14px;
    line-height: 1.7;
  }

  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .copyright {
    width: calc(100vw - 20px);
    margin-top: 51px;
    margin-left: -10px;
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .site-header {
    height: 113px;
  }

  .brand {
    top: 20px;
    left: 20px;
    width: 228px;
  }

  .menu-toggle {
    position: absolute;
    top: 97px;
    right: 20px;
    display: grid;
    width: 56px;
    height: 49px;
    place-items: center;
    border: 1px solid var(--cyan);
    color: #fff;
    background: rgb(3 61 84 / 28%);
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
  }

  .hero {
    min-height: 1273px;
    height: 1273px;
    margin-top: 113px;
    background-position: 0 0;
  }

  .hero__content {
    width: calc(100% - 40px);
    padding-top: 238px;
  }

  .eyebrow {
    max-width: 409px;
  }

  .hero h1 {
    width: 409px;
    max-width: 409px;
    margin: 30px 0 60px;
    font-size: 76px;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
  }

  .services {
    width: calc(100% - 20px);
    gap: 13px;
  }

  .service-card {
    min-height: 618px;
    padding: 52px 42px 38px;
  }

  .service-card__icon {
    margin-bottom: 36px;
  }

  .service-card h3 {
    font-size: 28px;
  }

  .service-card p {
    font-size: 16px;
  }

  .section-divider {
    height: 111px;
  }

  .conditions {
    padding: 100px 0 4px;
  }

  .section-heading--dark {
    width: 364px;
    margin-left: 20px;
    margin-right: 0;
  }

  .section-heading h2 {
    padding-left: 55px;
    font-size: 48px;
  }

  .section-heading h2::before {
    width: 35px;
  }

  .section-heading--dark .eyebrow {
    width: 364px;
    font-size: 16px;
  }

  .condition-grid {
    width: calc(100% - 30px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 62px;
  }

  .condition-card {
    aspect-ratio: 364 / 380;
  }

  .testimonials {
    min-height: 885px;
    padding: 90px 0 0;
  }

  .section-heading--light {
    width: 442px;
    margin-left: 11px;
    margin-right: 0;
  }

  .section-heading--light h2 {
    padding-left: 73px;
  }

  .section-heading--light h2::before {
    width: 53px;
  }

  .condition-grid {
    margin-top: 56px;
  }

  .review-grid {
    width: calc(100% - 30px);
    margin-top: 67px;
  }

  .review-track {
    gap: 30px;
  }

  .review-card,
  .review-card-clone {
    flex-basis: 349px;
    width: 349px;
    min-height: 0;
    padding-inline: 39px;
  }

  .review-card[data-review="0"], .review-card-clone[data-review-original="0"] { height: 338px; }
  .review-card[data-review="1"], .review-card-clone[data-review-original="1"] { height: 296px; }
  .review-card[data-review="2"], .review-card-clone[data-review-original="2"] { height: 380px; }
  .review-card[data-review="3"], .review-card-clone[data-review-original="3"] { height: 296px; }
  .review-card[data-review="4"], .review-card-clone[data-review-original="4"] { height: 338px; }

  .review-card__avatar {
    width: 70px;
    height: 70px;
  }

  .review-pagination {
    margin-top: 140px;
  }

  .appointment {
    min-height: 576px;
  }

  .appointment__content {
    transform: translateY(-20px);
  }

  .social-links {
    margin-bottom: 67px;
    transform: translateX(1px);
  }

  .appointment h2 {
    margin-bottom: 56px;
  }

  .site-footer {
    padding: 90px 20px 34px;
  }

  .footer-main {
    grid-template-columns: 160px 1fr;
    gap: 64px;
  }

  .footer-brand img {
    width: 112px;
    height: 96px;
    margin-top: 10px;
    margin-bottom: 37px;
  }

  .footer-brand {
    padding-bottom: 11px;
  }

  .footer-brand p {
    width: 204px;
    max-width: none;
    font-size: 15px;
    line-height: 1.7;
  }

  .footer-brand__rule {
    margin-top: 32px;
  }

  .footer-contact {
    padding-left: 40px;
  }

  .footer-contact h4 {
    margin-bottom: 40px;
    font-size: 18px;
    font-weight: 600;
  }

  .copyright {
    width: 364px;
    margin-top: 101px;
    margin-left: 0;
  }

  .review-pagination {
    margin-top: 140px;
  }

  .condition-grid {
    margin-top: 52px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .site-header {
    height: 186px;
  }

  .brand {
    top: 20px;
    left: 20px;
    width: 315px;
  }

  .menu-toggle {
    position: absolute;
    top: 134px;
    right: 20px;
    display: grid;
    width: 56px;
    height: 49px;
    place-items: center;
    border: 2px solid #00b2f3;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }

  .hero {
    min-height: 909px;
    height: 909px;
    margin-top: 186px;
    background-position: left center;
  }

  .hero__content {
    width: calc(100% - 40px);
    padding-top: 237px;
  }

  .hero h1 {
    width: 583px;
    max-width: 583px;
    font-size: 76px;
  }

  .services {
    width: calc(100vw - 86px);
    max-width: 938px;
    grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr);
    gap: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .service-card {
    min-height: 491px;
    height: 491px;
    padding: 52px 52px 38px;
  }

  .service-card:nth-child(3) {
    padding-top: 56px;
    padding-right: 32px;
  }

  .service-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 45px;
  }

  .service-card:first-child .service-card__icon {
    width: 45px;
    height: 45px;
    margin-bottom: 44px;
  }

  .service-card:nth-child(3) .service-card__icon {
    margin-bottom: 41px;
  }

  .service-card h3 {
    margin-top: 0;
    font-size: 28px;
    line-height: 1.2;
  }

  .section-divider {
    height: 140px;
    margin-top: -30px;
  }

  .conditions {
    padding-top: 90px;
  }

  .section-heading {
    width: calc(100% - 40px);
  }

  .section-heading h2 {
    padding-left: 79px;
  }

  .condition-grid {
    width: calc(100% - 30px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 63px;
  }

  .condition-card {
    aspect-ratio: 492 / 380;
  }

  .testimonials {
    height: 822px;
    min-height: 822px;
    padding-top: 90px;
  }

  .review-grid {
    width: 100%;
    margin-top: 52px;
    margin-left: 5px;
    margin-right: 0;
  }

  .review-track {
    gap: 10px;
  }

  .review-card,
  .review-card-clone {
    flex-basis: 477px;
    width: 477px;
    margin-inline: 10px;
    padding: 30px 41px 65px;
  }

  .review-card[data-review="0"], .review-card-clone[data-review-original="0"] { height: 296px; }
  .review-card[data-review="1"], .review-card-clone[data-review-original="1"] { height: 254px; }
  .review-card[data-review="2"], .review-card-clone[data-review-original="2"] { height: 317px; }
  .review-card[data-review="3"], .review-card-clone[data-review-original="3"] { height: 275px; }
  .review-card[data-review="4"], .review-card-clone[data-review-original="4"] { height: 296px; }

  :is(.review-card, .review-card-clone) p {
    font-size: 16px;
    line-height: 1.5;
  }

  .review-pagination {
    width: 1004px;
    margin: 140px 0 0 10px;
    transform: none;
  }

  .appointment {
    height: 576px;
    min-height: 576px;
  }

  .appointment__content {
    transform: translateY(-5px);
  }

  .site-footer {
    min-height: 549px;
    padding-bottom: 40px;
  }

  .footer-brand img,
  .footer-brand p,
  .footer-brand__rule {
    margin-left: 0;
  }

  .footer-brand img {
    width: 155px;
  }
}

@media (min-width: 1101px) {
  .review-grid {
    width: 1380px;
    margin-left: 25px;
    margin-right: 0;
  }

  .review-track {
    gap: 40px;
  }

  .review-card,
  .review-card-clone {
    flex-basis: 315px;
    width: 315px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .site-footer {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .review-track {
    /* The published carousel keeps its autoplay even when the OS reduces motion. */
    transition-duration: 300ms !important;
  }
}

/* Match the published review carousel's card sizing at its three breakpoints. */
@media (min-width: 1025px) {
  .review-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .review-track {
    gap: 0;
  }

  .review-card,
  .review-card-clone {
    flex-basis: calc((100vw - 20px) / 4 - 40px);
    width: calc((100vw - 20px) / 4 - 40px);
    margin-left: 25px;
    margin-right: 15px;
    padding: 40px 41px 38px;
  }

  :is(.review-card, .review-card-clone)[data-review] {
    height: auto;
  }

  .quote-mark {
    height: 50px;
    flex-basis: 50px;
    top: 0;
    margin-bottom: 4px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .review-grid {
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 0;
  }

  .review-track {
    gap: 10px;
  }

  .review-card,
  .review-card-clone {
    flex-basis: calc((100vw - 10px) / 2 - 30px);
    width: calc((100vw - 10px) / 2 - 30px);
    margin-inline: 10px;
    padding: 40px 41px 38px;
  }

  :is(.review-card, .review-card-clone)[data-review] {
    height: auto;
  }

  :is(.review-card, .review-card-clone) p {
    font-size: 14px;
    line-height: 1.5;
  }

  .quote-mark {
    height: 50px;
    flex-basis: 50px;
    top: 0;
    margin-bottom: 4px;
  }
}

/* Production moves María's profile 19 px upward at narrow four-card widths. */
@media (min-width: 1025px) and (max-width: 1037px) {
  .review-card[data-review="2"] .review-card__avatar {
    bottom: -9px;
  }

  .review-card[data-review="2"] .review-card__name {
    top: calc(100% + 24px);
  }
}

@media (max-width: 767px) {
  .review-grid {
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 0;
  }

  .review-card,
  .review-card-clone {
    flex-basis: calc(100vw - 10px);
    width: calc(100vw - 10px);
    padding: 26px 36px 171px;
  }

  .review-card__avatar {
    position: absolute;
    top: calc(100% - 142px);
    bottom: auto;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
  }

  .review-card__name {
    top: calc(100% - 57px);
    left: 11px;
    width: calc(100% - 22px);
  }

  .review-card__type {
    position: absolute;
    top: calc(100% - 31.5px);
    left: 11px;
    width: calc(100% - 22px);
    margin: 0;
    line-height: 1.7;
    transform: none;
  }

  :is(.review-card, .review-card-clone)[data-review]::before {
    inset: 0 10px 100px;
    height: auto;
  }
}

@media (min-width: 1101px) {
  .review-grid {
    margin-top: 88px;
  }
}

@media (min-width: 1025px) and (max-width: 1100px) {
  .testimonials {
    height: auto;
    min-height: 703px;
    padding-bottom: 132px;
  }

  .review-grid {
    margin-top: 88px;
  }

  .review-pagination {
    margin-top: 200px;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .review-grid {
    margin-top: 68px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .review-grid {
    margin-top: 68px;
  }
}
