@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .mobile-menu > summary {
    width: 3rem;
    height: 3rem;
    display: grid;
    align-content: center;
    gap: 0.34rem;
    padding: 0.65rem;
    border-radius: 50%;
    background: var(--navy);
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu > summary::-webkit-details-marker,
  .mobile-submenu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu > summary span {
    height: 2px;
    border-radius: 3px;
    background: white;
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: min(21rem, calc(100vw - 2rem));
    display: grid;
    padding: 1rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 18px 50px rgb(41 72 120 / 18%);
  }

  .mobile-menu nav a {
    padding: 0.85rem 0.6rem;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
  }

  .mobile-submenu {
    border-bottom: 1px solid #eee;
  }

  .mobile-submenu > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.6rem;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    list-style: none;
  }

  .mobile-submenu > summary span {
    color: var(--blue);
    font-size: 1.2rem;
    transition: rotate 160ms ease;
  }

  .mobile-submenu[open] > summary span {
    rotate: 45deg;
  }

  .mobile-submenu > div {
    display: grid;
    padding: 0 0 0.6rem 0.8rem;
  }

  .mobile-menu nav .mobile-submenu a {
    padding-block: 0.68rem;
    border-bottom: 0;
    color: #4a535d;
    font-size: 0.82rem;
  }

  .hero__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
  }

  .hero__credential {
    left: -5%;
    width: 16rem;
  }

  .treatments__grid {
    grid-template-columns: 1fr 1fr;
  }

  .treatments__intro {
    grid-column: 1 / -1;
  }

  .treatments__intro h2,
  .treatments__intro p {
    max-width: 46rem;
  }

  .footer__contact {
    flex-wrap: wrap;
  }

  .footer__bottom nav {
    gap: 1.3rem;
  }

  .footer__bottom {
    grid-template-columns: minmax(12rem, 0.75fr) minmax(20rem, 1.25fr);
  }

  .footer__seals {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 13rem));
  }
}

@media (max-width: 820px) {
  :root {
    --space-section: 5.5rem;
  }

  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .topbar {
    background: var(--navy);
  }

  .topbar__inner {
    min-height: 2.55rem;
  }

  .topbar__details span:not(:first-child) {
    display: none;
  }

  .topbar__details {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .topbar .socials {
    gap: 0.7rem;
  }

  .topbar .socials span {
    display: none;
  }

  .navbar {
    min-height: 4.6rem;
    gap: 1rem;
  }

  .brand {
    width: 9.5rem;
    flex-basis: 9.5rem;
  }

  .button--nav {
    display: none;
  }

  .hero__grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: none;
    padding-block: 3.7rem 0;
  }

  .hero__copy h1 {
    margin-bottom: 1.8rem;
  }

  .hero__copy > p:not(.section-label) {
    font-size: 1.04rem;
  }

  .hero__visual {
    min-height: 36rem;
  }

  .hero__doctor {
    right: -8%;
    width: 36rem;
  }

  .hero__credential {
    top: 10%;
    left: 0;
    width: min(15rem, 46vw);
    padding: 1.3rem;
  }

  .hero__credential p {
    margin-top: 0.8rem;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .surgery-seal {
    right: 0;
    bottom: 14%;
    width: 5.8rem;
    height: 5.8rem;
  }

  .hero__strip {
    font-size: 0.82rem;
  }

  .about__grid,
  .results__grid,
  .booking-cta-v2 {
    grid-template-columns: 1fr;
    height: auto;
    aspect-ratio: auto;
  }

  .booking-cta-v2__photo {
    min-height: 22rem;
  }

  .booking-cta-v2__copy {
    min-height: 0;
  }

  .about__copy h2 {
    margin-bottom: 2rem;
  }

  .about__copy > p:not(.section-label) {
    font-size: 1.03rem;
  }

  .about__photos {
    padding-right: 3.5rem;
  }

  .about__photos > img {
    height: 13rem;
  }

  .about__decor span {
    width: 4.5rem;
    height: 4.5rem;
  }

  .treatments__grid {
    grid-template-columns: 1fr;
  }

  .treatments__intro {
    grid-column: auto;
    padding-right: 0;
  }

  .treatment-card > div {
    min-height: 0;
  }

  .video-showcase {
    margin-top: 3rem;
    padding: 1.2rem;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
  }

  .testimonial-copy {
    min-height: 10rem;
  }

  .media__grid {
    grid-template-columns: 1fr;
  }

  .media-card {
    min-height: 0;
  }

  .footer__contact,
  .footer__bottom {
    align-items: flex-start;
  }

  .footer__contact {
    gap: 1.3rem;
  }

  .footer__bottom nav {
    flex-wrap: wrap;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
  }

  .footer__seals {
    grid-column: auto;
  }

  .footer__legal {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.5rem, 13vw, 3.2rem);
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 2.7rem);
  }

  .section-label {
    gap: 0.7rem;
    margin-bottom: 1.3rem;
    font-size: 0.98rem;
  }

  .topbar__details span:first-child {
    display: none;
  }

  .hero__visual {
    min-height: 29rem;
    margin-inline: -1rem;
  }

  .hero__doctor {
    right: -10%;
    width: 30rem;
  }

  .hero__credential {
    top: 38%;
    left: 1rem;
    width: 12.7rem;
  }

  .hero__credential p {
    font-size: 0.74rem;
  }

  .surgery-seal {
    right: 0.5rem;
    width: 5rem;
    height: 5rem;
  }

  .location-pill {
    min-height: 0;
    padding: 1.1rem 1.3rem;
    border-radius: 2rem;
  }

  .location-pill strong {
    font-size: 0.9rem;
  }

  .location-icon {
    width: 2.7rem;
    height: 2.7rem;
    flex-basis: 2.7rem;
  }

  .about__photos {
    padding-right: 0;
  }

  .about__decor {
    display: none;
  }

  .treatment-card footer {
    font-size: 0.78rem;
  }

  .treatment-card__link {
    min-height: 5.4rem;
    padding-inline: 1.5rem;
  }

  .testimonial-video {
    min-height: 14rem;
  }

  .rating-card {
    min-height: 24rem;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .media-card__image {
    height: 12rem;
  }

  .booking-cta-v2__photo {
    min-height: 18rem;
  }

  .booking-cta-v2__photo > img {
    object-position: center 22%;
  }

  .booking-cta-v2__copy {
    padding: 2.2rem 1.4rem 2.7rem;
  }

  .footer__bottom nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer__seals {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
