body[data-route="about"] {
  background: #fff;
}

body[data-route="about"] main > .section {
  height: auto;
  min-height: 0;
  margin: 0;
  overflow-x: visible;
  overflow-y: visible;
}

body[data-route="about"] main > .cases--about {
  background: #fff;
  box-shadow: none;
}

body[data-route="about"] .appointment--about .home-appointment__content .section-number {
  right: 0;
  left: auto;
  white-space: nowrap;
}

body[data-route="about"] main > .section > .page-shell {
  height: auto;
}

html:not(.js) body[data-route="about"] :is([data-carousel-controls], .slider-nav--equipment) {
  display: none !important;
}

/* Hero copy stays in normal flow. Only the background wash is an overlay. */
.about-hero {
  position: relative;
  min-height: 800px;
  background: #efefec url("../media/about/hero.webp") left -17px top / 121.15% 146.71% no-repeat;
  overflow: clip;
}

.about-hero::before {
  position: absolute;
  inset: 85px 0 0;
  background: linear-gradient(90deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.2) 100%);
  content: "";
  pointer-events: none;
}

body[data-route="about"] .about-hero__content {
  position: relative;
  display: flex;
  min-height: 800px;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 148px;
  padding-bottom: 34px;
}

body[data-route="about"] .about-hero :where(.breadcrumbs, h1, .about-hero__lead) {
  position: relative;
  inset: auto;
}

.about-hero .breadcrumbs {
  max-width: 100%;
  margin: 0;
  color: #303030;
  font-size: 14px;
  line-height: 17px;
}

.about-hero .breadcrumbs [aria-current="page"] {
  color: #010f77;
}

body[data-route="about"] .about-hero h1 {
  width: min(845px, 100%);
  margin: 37px 0 0;
  color: #303030;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

body[data-route="about"] .about-hero__lead {
  width: min(625px, 100%);
  margin: auto 0 0;
  color: #303030;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.about-hero__lead--phone {
  display: none;
}

/* Route-owned headings follow the local Figma typography, without offsets. */
body[data-route="about"] .about-section-heading {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  height: auto !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin: 0;
  padding-top: 21px;
  pointer-events: auto;
}

body[data-route="about"] .about-section-heading :is(.section-kicker, .section-number) {
  position: relative !important;
  inset: auto !important;
  margin: 0;
  color: #5f5f5f;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 350;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

body[data-route="about"] .about-section-heading .section-number {
  justify-self: end;
}

/* Values, history and licenses place their order marker against the section shell,
   independently of the narrower copy column. */
body[data-route="about"] .about-values .about-section-heading,
body[data-route="about"] .about-history .about-section-heading,
body[data-route="about"] .licenses--about .about-section-heading {
  position: static !important;
}

body[data-route="about"] .about-values .about-section-heading .section-number,
body[data-route="about"] .about-history .about-section-heading .section-number,
body[data-route="about"] .licenses--about .about-section-heading .section-number {
  position: absolute !important;
  top: 21px !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
}

body[data-route="about"] .about-section-heading h2 {
  position: relative !important;
  inset: auto !important;
  width: min(950px, 100%) !important;
  max-width: none;
  grid-column: 1 / -1;
  margin: 60px 0 0 !important;
  color: #232742;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

body[data-route="about"] .about-section-heading h2 > span {
  color: #c0c1cc;
}

/* Values: the cards themselves are the canonical Service feature component. */
.about-values {
  margin-top: 60px !important;
  background: #fff;
}

.about-values > .page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 650px);
  grid-template-areas:
    "heading intro"
    "stats stats"
    "cards cards";
  column-gap: 40px;
  padding-bottom: 60px;
}

.about-values .about-section-heading {
  grid-area: heading;
}

.about-values__intro {
  position: relative;
  inset: auto;
  width: 100%;
  grid-area: intro;
  margin: 105px 0 0;
  color: #7c7c7c;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.about-stats {
  position: relative;
  inset: auto;
  display: grid;
  grid-area: stats;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 100px;
}

.about-stats > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.about-stats strong {
  color: #010f77;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

.about-stats span {
  margin-top: 10px;
  color: #303030;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
}

.about-values__viewport {
  position: relative;
  inset: auto;
  width: 100%;
  grid-area: cards;
  margin-top: 112px;
  overflow: visible;
}

body[data-route="about"] .about-values .service-feature-grid {
  position: relative;
  inset: auto;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* History is a semantic grid: copy can grow, while artwork keeps its ratio. */
.about-history {
  background: #fff;
}

.about-history > .page-shell {
  display: grid;
  grid-template-columns: minmax(0, 538px) minmax(0, 1fr) 335px;
  grid-template-rows: minmax(229px, auto) minmax(306px, auto) auto;
  column-gap: 20px;
  padding-bottom: 120px;
}

.about-history .about-section-heading {
  grid-column: 1;
  grid-row: 1;
}

.about-history__copy {
  position: relative;
  inset: auto;
  width: auto;
  grid-column: 1;
  grid-row: 2;
  color: #7c7c7c;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.about-history__copy p {
  margin: 0 0 14px;
}

.about-history__copy ul {
  margin: 0;
  padding-left: 21px;
  list-style: disc;
}

.about-history__image {
  position: relative;
  inset: auto;
  display: block;
  width: 335px;
  max-width: 100%;
  height: auto;
  margin-top: 95px;
  justify-self: end;
  object-fit: cover;
}

.about-history__image--top {
  grid-column: 2;
  grid-row: 1 / 3;
  aspect-ratio: 335 / 230;
}

.about-history__image--tall {
  grid-column: 3;
  grid-row: 1 / 4;
  aspect-ratio: 335 / 500;
}

.about-history__year {
  position: relative;
  inset: auto;
  display: flex;
  width: 335px;
  max-width: 100%;
  grid-column: 2;
  grid-row: 3;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
}

.about-history__year strong {
  color: #c0c1cc;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}

.about-history__year span {
  margin-top: 4px;
  color: #7c7c7c;
  font-size: 14px;
  line-height: 1;
}

.about-history__action {
  position: relative;
  inset: auto;
  width: 360px;
  max-width: 100%;
  height: 60px;
  grid-column: 1;
  grid-row: 3;
}

/* The license controller is the same service-licenses controller as Service. */
.licenses--about {
  background: #fff;
}

.licenses--about > .page-shell {
  display: grid;
  grid-template-columns: minmax(0, 456px) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 101px;
  padding-bottom: 120px;
}

.licenses--about .about-section-heading {
  grid-column: 1;
  grid-row: 1;
}

.licenses--about .section-intro {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  grid-column: 1;
  grid-row: 2;
  margin: 35px 0 0;
  color: #303030;
  font-size: 14px;
  line-height: 17px;
}

.licenses--about .certificate-carousel {
  position: relative;
  inset: auto;
  width: calc(100% + max(var(--gutter), calc((100vw - var(--shell)) / 2)));
  max-width: none !important;
  grid-column: 2;
  grid-row: 1 / 4;
  margin-top: 95px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.licenses--about .certificate-carousel::-webkit-scrollbar {
  display: none;
}

.licenses--about .certificate-carousel.is-dragging {
  cursor: grabbing;
}

.licenses--about .certificate-track {
  display: flex;
  width: max-content;
  gap: 24px;
  will-change: transform;
}

.licenses--about .certificate-track > img {
  width: 238px;
  height: auto;
  aspect-ratio: 238 / 349;
  flex: 0 0 238px;
  object-fit: cover;
}

body[data-route="about"] .licenses--about .slider-nav--certificates {
  position: relative;
  inset: auto;
  display: flex;
  width: 214px;
  height: 60px;
  grid-column: 1;
  grid-row: 3;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 99px;
  transform: none;
}

.licenses--about .slider-nav--certificates button {
  width: 60px;
  height: 60px;
  background: #fafafa;
}

/* The Gallery keeps the reference rhythm without item-index geometry. */
.about-gallery {
  background: #fff;
}

.about-gallery > .page-shell {
  padding-bottom: 119px;
}

.about-gallery .about-section-heading h2 {
  width: min(860px, 100%) !important;
}

.about-gallery__carousel {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  margin-top: 60px;
  overflow: visible;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.about-gallery__carousel.is-dragging {
  cursor: grabbing;
}

.about-gallery__track {
  display: grid;
  width: 100%;
  height: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-gallery__panel {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-gallery__panel[aria-hidden="true"] {
  display: none;
}

.about-gallery__column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.about-gallery__image {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
}

.about-gallery__image--short {
  aspect-ratio: 3 / 2;
}

.about-gallery__image--tall {
  aspect-ratio: 2 / 3;
}

body[data-route="about"] .about-gallery .slider-nav--gallery {
  display: none;
}

@media (min-width: 768px) and (max-width: 1359px) {
  body[data-route="about"] .appointment--about .home-appointment__media {
    height: auto;
    min-height: 380px;
    align-self: stretch;
  }

  .about-hero {
    min-height: 760px;
    background-position: center;
    background-size: cover;
  }

  .about-hero::before {
    inset: 76px 0 0;
  }

  body[data-route="about"] .about-hero__content {
    min-height: 760px;
    padding-top: 125px;
    padding-bottom: 48px;
  }

  body[data-route="about"] .about-hero h1 {
    width: min(820px, 88vw);
    margin-top: 33px;
    font-size: clamp(48px, 6vw, 60px);
  }

  body[data-route="about"] .about-hero__lead {
    width: min(625px, 75vw);
  }

  .about-values > .page-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body[data-route="about"] .about-values .service-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-route="about"] .about-values .feature-card--technology {
    grid-column: 1 / -1;
  }

  .about-history > .page-shell {
    grid-template-columns:
      repeat(2, minmax(0, min(335px, calc((100% - 20px) / 2))));
    grid-template-rows: auto auto auto auto;
    column-gap: 20px;
    row-gap: 30px;
    justify-content: center;
  }

  .about-history .about-section-heading,
  .about-history__copy {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .about-history__image--top {
    width: 100%;
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    justify-self: stretch;
  }

  .about-history__image--tall {
    width: 100%;
    grid-column: 2;
    grid-row: 3;
    margin-top: 0;
    justify-self: stretch;
  }

  .about-history__action {
    grid-column: 1;
    grid-row: 4;
  }

  .about-history__year {
    grid-column: 2;
    grid-row: 4;
  }

  .licenses--about > .page-shell {
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    column-gap: 40px;
  }

  .licenses--about .certificate-carousel {
    width: calc(100% + var(--tablet-side));
    overflow-x: auto;
  }

}

@media (min-width: 880px) and (max-width: 1359px) {
  .about-gallery__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none !important;
  }
}

@media (min-width: 1360px) {
  .about-history__action { margin-top: 40px; }

  .about-gallery__track {
    transform: none !important;
  }
}

/* The gallery becomes a carousel only when four image columns no longer fit. */
@media (max-width: 879px) {
  .about-gallery > .page-shell {
    padding-bottom: 0;
  }

  .about-gallery__carousel {
    --carousel-peek: 0px;
    overflow: hidden;
  }

  html:not(.js) body[data-route="about"] .about-gallery__carousel {
    overflow-x: auto;
  }

  .about-gallery__track {
    display: flex;
    width: auto;
    gap: 20px;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .about-gallery__panel,
  .about-gallery__panel[aria-hidden="true"] {
    display: grid;
    width: 100%;
    flex: 0 0 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  body[data-route="about"] .about-gallery .slider-nav--gallery {
    position: relative;
    inset: auto;
    display: flex;
    width: 90px;
    height: 40px;
    justify-content: space-between;
    gap: 10px;
    margin: 35px auto 0;
    transform: none;
  }

  body[data-route="about"] .about-gallery .slider-nav--gallery button {
    width: 40px;
    height: 40px;
    color: #2a2a2a;
    background: #fff;
  }

  body[data-route="about"] .about-gallery .slider-nav--gallery button::before {
    width: 6px;
    height: 12px;
    background: currentColor;
    border: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 12'%3E%3Cpath d='M1 1l4 5-4 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 12'%3E%3Cpath d='M1 1l4 5-4 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: translate(-50%, -50%) scaleX(-1);
  }

  body[data-route="about"] .about-gallery .slider-nav--gallery button:last-child::before {
    transform: translate(-50%, -50%);
  }

  body[data-route="about"] .about-gallery .slider-nav--gallery button:hover,
  body[data-route="about"] .about-gallery .slider-nav--gallery button:focus-visible {
    color: #fff;
    background: #010f77;
  }

}

body[data-route="about"] main > .contacts--about {
  padding-top: 60px;
  background: #fafafa;
}

body[data-route="about"] main > .contacts--about::before {
  content: none !important;
}

body[data-route="about"] main > .contacts--about > .page-shell {
  background: linear-gradient(#eaeaea, #eaeaea) top / 100% 1px no-repeat;
}

@media (max-width: 767px) {
  .about-hero {
    min-height: 614px;
    background-position: center;
    background-size: cover;
  }

  .about-hero::before {
    inset: 70px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.2) 100%);
  }

  body[data-route="about"] .about-hero__content {
    min-height: 614px;
    padding-top: 122px;
    padding-bottom: 0;
  }

  .about-hero .breadcrumbs {
    margin-left: 4px;
  }

  body[data-route="about"] .about-hero h1 {
    width: calc(100% + 4px);
    margin-top: 20px;
    font-size: 35px;
  }

  body[data-route="about"] .about-hero__lead {
    width: calc(100% + 4px);
    margin-top: 20px;
    font-size: 14px;
    line-height: 17px;
  }

  .about-hero__lead--desktop {
    display: none;
  }

  .about-hero__lead--phone {
    display: block;
  }

  body[data-route="about"] main > .section {
    margin-top: 80px;
  }

  body[data-route="about"] main > .about-values {
    margin-top: 40px !important;
  }

  body[data-route="about"] main > .contacts--about {
    margin-top: 40px !important;
    margin-bottom: 0 !important;
    padding-top: 40px;
    padding-bottom: 80px;
  }

  body[data-route="about"] main > .appointment--about {
    margin-top: 0 !important;
  }

  body[data-page="home"][data-route="about"] main .doctors .section-action {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body[data-page="home"][data-route="about"] main > .equipment--about > .page-shell {
    padding-bottom: 20px !important;
  }

  body[data-route="about"] .about-section-heading {
    padding-top: 11px;
  }

  body[data-route="about"] .about-section-heading :is(.section-kicker, .section-number) {
    font-size: 12px;
  }

  body[data-route="about"] .about-section-heading h2 {
    margin-top: 35px !important;
    font-size: 32px;
    font-weight: 500;
  }

  body[data-route="about"] .about-values .about-section-heading .section-number,
  body[data-route="about"] .licenses--about .about-section-heading .section-number {
    top: 11px !important;
  }

  .about-values > .page-shell {
    display: block;
    padding-bottom: 0;
  }

  .about-values__intro {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
    margin-top: 45px;
  }

  .about-stats strong {
    font-size: 64px;
  }

  .about-values__viewport {
    margin-top: 60px;
  }

  body[data-route="about"] .about-values .service-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body[data-route="about"] .about-values .feature-card--technology {
    grid-column: auto;
  }

  .about-history > .page-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: 20px;
    padding-bottom: 0;
  }

  .about-history .about-section-heading {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .about-history__copy {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1;
  }

  .about-history__image {
    width: 100%;
    grid-row: 3;
    margin-top: 35px;
    justify-self: stretch;
  }

  .about-history__image--top {
    grid-column: 1;
    aspect-ratio: 185 / 192;
  }

  .about-history__image--tall {
    grid-column: 2;
    aspect-ratio: 185 / 290;
  }

  .about-history__year {
    width: 100%;
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    justify-self: stretch;
  }

  .about-history__action {
    display: flex;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 30px;
  }

  .licenses--about > .page-shell {
    display: block;
    padding-bottom: 0;
  }

  .licenses--about .section-intro {
    margin-top: 30px;
    line-height: 17px;
  }

  .licenses--about .certificate-carousel {
    --carousel-peek: 0px;
    margin-top: 35px;
    margin-left: 0;
  }

  .licenses--about .certificate-track > img {
    width: 238px;
    flex-basis: 238px;
  }

  body[data-route="about"] .licenses--about .slider-nav--certificates {
    margin: 35px auto 0;
  }

  .about-gallery > .page-shell {
    padding-bottom: 0;
  }

  .about-gallery__carousel {
    --carousel-peek: 0px;
    margin-top: 35px;
    overflow: hidden;
  }

  .about-gallery__track {
    display: flex;
    width: auto;
    gap: 10px;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .about-gallery__panel,
  .about-gallery__panel[inert][aria-hidden="true"] {
    display: grid;
    width: 100%;
    flex: 0 0 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .about-gallery__column {
    gap: 15px;
  }

  .about-gallery__image--short {
    aspect-ratio: 9 / 7;
  }

  .about-gallery__image--tall {
    aspect-ratio: 4 / 7;
  }

  body[data-route="about"] .appointment--about {
    height: auto;
    min-height: 0;
  }

  body[data-route="about"] .appointment--about .home-appointment__grid {
    padding-bottom: 40px;
  }
}

/* Owner correction: content-control chevrons sit on the edge and stay grey. */
body[data-route="about"] :is(
  .button:not(.about-history__action):not(.equipment-cta):not(.contacts-card__info .button):not(.home-appointment .button):not(.section-action):not(.footer-management .button)
) {
  --corner-color: #c4c4c1 !important;
  --corner-hover-color: #c4c4c1 !important;
  --corner-inset: -1px !important;
}

body[data-route="about"] .about-history__action { --corner-inset: 10px; }

@media (min-width: 1360px) {
  body[data-route="about"] .doctors .section-action {
    --corner-color: #c4c4c1;
    --corner-hover-color: #c4c4c1;
    --corner-inset: -1px;
  }
}

@media (max-width: 389px) {
  body[data-route="about"] .about-hero h1 {
    font-size: 31px;
  }

  .about-stats strong {
    font-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-gallery__track,
  .licenses--about .certificate-track {
    transition: none !important;
  }
}
