﻿:root {
  --sub-rose-50: #fff6f8;
  --sub-rose-100: #fde9ef;
  --sub-rose-300: #e6b8c8;
  --sub-rose-500: #cf6f8f;
  --sub-rose-700: #a84d6d;
  --sub-mint-50: #f3fbf9;
  --sub-mint-100: #e2f2ee;
  --sub-mint-600: #2f7d73;
  --sub-ink: #2b3f53;
  --sub-muted: #5f6f83;
  --sub-line: #d9e4e2;
  --sub-soft-shadow: 0 10px 26px rgba(65, 91, 114, 0.08);
}

.sub-main {
  padding: 0 0 46px;
  background: linear-gradient(180deg, #f9fbfc 0%, #fef8fa 100%);
}

.top-hero-bar {
  min-height: 140px;
  border-bottom: 1px solid #d8e2e1;
  position: relative;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    url("./images/s01.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
}

.top-hero-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.top-hero-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.top-hero-kicker {
  display: none;
}

.top-hero-inner h2 {
  font-size: 25px;
  line-height: 1.38;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(90deg, #1356a6 0%, #4e8fd9 48%, #1356a6 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroTextFlow 6s linear infinite;
}

@keyframes heroTextFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.sub-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-top: 22px;
}

.sub-sidebar {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  position: sticky;
  top: 112px;
}

.sidebar-header {
  padding: 4px 0 12px;
  background: transparent;
  color: #2c4c66;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  border-bottom: 1px solid #d6dfdf;
}

.sidebar-group {
  padding: 8px 0 0;
}

.sidebar-title {
  display: none;
}

.sidebar-links {
  display: grid;
  gap: 6px;
  padding: 0;
}

.sidebar-link {
  display: block;
  border-radius: 0;
  padding: 6px 0;
  color: #577089;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color .2s ease;
}

.sidebar-link:hover {
  background: transparent;
  color: #2d5979;
}

.sidebar-link-current {
  background: transparent;
  color: var(--sub-rose-700);
  font-weight: 800;
}

.sub-content {
  min-width: 0;
  background: transparent;
}

.sub-content-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 1px solid #d7dfdf;
  padding-bottom: 12px;
  margin-bottom: 14px;
  background: transparent;
  box-shadow: none;
}

.sub-title {
  color: #1f3346;
  font-size: clamp(1.75rem, 2.8vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sub-breadcrumb {
  color: #7d8b9a;
  font-size: 0.82rem;
  white-space: nowrap;
}

.sub-panel {
  border: 1px solid var(--sub-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--sub-soft-shadow);
  padding: 24px;
}

.sub-panel + .sub-panel {
  margin-top: 16px;
}

.message-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  align-items: start;
}

.message-text {
  color: #485b71;
  font-size: 0.95rem;
  line-height: 1.74;
  letter-spacing: -0.01em;
}

.message-text p + p {
  margin-top: 14px;
}

.message-lead {
  color: #29435b;
  font-size: 1.56rem;
  letter-spacing: -0.03em;
  line-height: 1.36;
  font-weight: 700;
  margin-bottom: 10px;
}

.message-photo {
  min-height: 390px;
  border: 1px solid #ccd4d7;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(239, 248, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%),
    radial-gradient(circle at 30% 22%, rgba(121, 183, 171, 0.32) 0, transparent 42%),
    radial-gradient(circle at 72% 70%, rgba(227, 125, 156, 0.2) 0, transparent 45%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #6b7f90;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 12px;
  text-align: center;
}

.panel-title {
  color: #243e56;
  font-size: 1.34rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  border: 1px solid #dde7e8;
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 252, 252, 0.74) 100%);
  padding: 14px;
}

.info-card h3 {
  color: #2d5f7b;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.info-card ul {
  display: grid;
  gap: 6px;
  color: #5d6f84;
  font-size: 0.9rem;
}

.info-card li {
  position: relative;
  padding-left: 11px;
}

.info-card li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--sub-rose-500);
}

.location-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
}

.location-panel {
  display: grid;
  gap: 10px;
}

.location-map {
  height: auto;
  border-radius: 12px;
  border: 1px solid #c6d7d4;
  background: #f3f7fa;
  overflow: hidden;
}

.location-map-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.location-list {
  display: grid;
  gap: 8px;
  color: #4d6178;
  font-size: 0.91rem;
  line-height: 1.62;
}

.location-list li {
  border-bottom: 1px dashed #dce5e5;
  padding-bottom: 7px;
}

.location-meta {
  display: grid;
  gap: 8px;
  border: 1px solid #d6e1e8;
  border-radius: 10px;
  background: #f8fcff;
  padding: 12px 14px;
  color: #3f596f;
  font-size: 0.95rem;
  line-height: 1.52;
}

.location-meta li {
  border-bottom: 1px dashed #d3dfe7;
  padding-bottom: 6px;
}

.location-meta li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.leboyer-intro {
  border: 1px solid #d6e2dd;
  border-radius: 24px;
  background: linear-gradient(135deg, #fbfffb, #f4fbf8);
  padding: 18px 20px;
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
}

.leboyer-intro h2 {
  color: #39a437;
  font-size: 1.45rem;
}

.leboyer-intro p {
  color: #4f6071;
  font-size: 0.98rem;
  line-height: 1.68;
}

.leboyer-principles {
  display: grid;
  gap: 12px;
  margin: 4px 0 16px;
  padding-left: 0;
}

.leboyer-principles li {
  list-style: none;
  border: 1px solid #deebdf;
  border-radius: 12px;
  background: #fbfefb;
  padding: 12px 14px;
}

.leboyer-principles h3 {
  color: #48a83f;
  font-size: 1.03rem;
  margin-bottom: 6px;
  line-height: 1.45;
}

.leboyer-principles p {
  color: #495a6d;
  font-size: 0.93rem;
  line-height: 1.65;
}

.leboyer-scenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.scene-card {
  border: 1px solid #d8e0e4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.scene-image {
  min-height: 170px;
  background:
    linear-gradient(140deg, rgba(254, 188, 118, 0.9), rgba(165, 78, 78, 0.88)),
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.22), transparent 42%);
  color: #fff8e9;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.scene-card figcaption {
  padding: 8px 10px;
  color: #4a5b6c;
  font-size: 0.9rem;
  text-align: center;
}

.scene-card-wide {
  grid-column: 1 / -1;
}

.scene-photo {
  width: 100%;
  height: auto;
  display: block;
}

.leboyer-notes {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d7e3f2;
  background: linear-gradient(145deg, #f8fbff, #f3f8ff);
}

.leboyer-notes li {
  position: relative;
  padding-left: 16px;
  color: #3f5799;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
}

.leboyer-notes li::before {
  content: "\25CB";
  position: absolute;
  left: 0;
  top: 0;
  color: #2bb840;
}

.dept-lead {
  color: #51647a;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.dept-list {
  display: grid;
  gap: 7px;
}

.dept-list li {
  position: relative;
  padding-left: 14px;
  color: #4e6278;
}

.dept-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #45ab7d;
}

.dept-page .panel-title {
  font-size: 1.2rem;
}

.infertility-intro {
  font-size: 1.08rem;
  font-weight: 800;
  color: #2f5576;
  margin-bottom: 12px;
}

.infertility-factors {
  display: grid;
  gap: 10px;
}

.infertility-factor {
  border: 1px solid #d9e5ea;
  border-radius: 12px;
  background: #fbfeff;
  padding: 12px 14px;
}

.infertility-factor h3 {
  color: #2f6d9b;
  font-size: 1rem;
  margin-bottom: 6px;
}

.infertility-factor p {
  color: #51667a;
  font-size: 0.93rem;
  line-height: 1.65;
}

.self-check-list {
  margin: 8px 0 10px 20px;
  display: grid;
  gap: 6px;
  color: #4d6177;
  font-size: 0.91rem;
  line-height: 1.58;
}

.service-block + .service-block {
  margin-top: 16px;
}

.service-block h3 {
  color: #2f5e8a;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-block p {
  color: #4f6378;
  font-size: 0.94rem;
  line-height: 1.65;
}

.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-card {
  border: 1px solid #d9e4ea;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px 14px;
}

.service-card h4 {
  color: #2f6d9b;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.service-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.symptom-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tour-viewer {
  margin-top: 12px;
  border: 1px solid #d4dee6;
  border-radius: 12px;
  background: #f9fcff;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
}

.tour-viewer-single {
  grid-template-columns: 1fr;
}

.tour-main {
  position: relative;
  border: 1px solid #d2dde5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.tour-main-image {
  width: 100%;
  height: 540px;
  object-fit: contain;
  display: block;
  background: #f1f4f7;
}

.tour-main-label {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3f5062;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d8dde3;
}

.tour-thumbs {
  border: 1px solid #d3dde5;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  gap: 8px;
  max-height: 540px;
  overflow-y: auto;
}

.tour-thumb {
  border: 1px solid #d0d9e1;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tour-thumb img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
}

.tour-thumb:hover {
  border-color: #7f9fba;
}

.tour-thumb.is-active {
  border-color: #1356a6;
  box-shadow: 0 0 0 1px rgba(19, 86, 166, 0.4);
}

.aesthetic-intro {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d3e0ea;
  background: linear-gradient(130deg, #f8fcff 0%, #edf5fb 100%);
  color: #2f5474;
  font-weight: 700;
  font-size: 0.95rem;
}

.aesthetic-section + .aesthetic-section {
  margin-top: 14px;
}

.aesthetic-section h3 {
  margin-bottom: 10px;
  color: #2f5f88;
  font-size: 1.03rem;
}

.aesthetic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aesthetic-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.aesthetic-card {
  border: 1px solid #d6e2ea;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px 13px;
}

.aesthetic-card h4 {
  color: #2f6b98;
  font-size: 0.97rem;
  margin-bottom: 6px;
}

.aesthetic-card p {
  color: #4f6276;
  font-size: 0.92rem;
  line-height: 1.62;
}

.aesthetic-num {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #a8bfd4;
  background: #eef5fb;
  color: #2c5f8d;
  font-size: 0.8rem;
  font-weight: 800;
}

.co2-heading {
  color: #11a9be;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.co2-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 10px;
}

.co2-divider::before,
.co2-divider::after {
  content: "";
  width: 72px;
  height: 1px;
  background: #c8d8e6;
}

.co2-divider span {
  color: #2ca0bb;
  font-size: 1.24rem;
  font-weight: 800;
}

.co2-indications {
  text-align: center;
  color: #2e5f97;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.6;
}

.vitamin-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 10px;
}

.vitamin-divider::before,
.vitamin-divider::after {
  content: "";
  width: 38%;
  max-width: 230px;
  height: 1px;
  background: #8ad7e5;
}

.vitamin-divider span {
  color: #1aa8bf;
  font-size: 1.3rem;
  font-weight: 800;
}

.vitamin-box {
  border: 2px solid #56c9dd;
  border-radius: 12px;
  background: #f8feff;
  padding: 14px 16px;
}

.vitamin-box p + p {
  margin-top: 8px;
}

.hair-title {
  color: #5f75b3;
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hair-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 10px;
}

.hair-divider::before,
.hair-divider::after {
  content: "";
  width: 36%;
  max-width: 220px;
  height: 1px;
  background: #c6d1ef;
}

.hair-divider span {
  color: #6f86c1;
  font-size: 1.3rem;
  font-weight: 800;
}

.hair-box {
  border: 2px solid #acbde7;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px 14px;
}

.hymen-highlight {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #d7c0d0;
  border-left: 4px solid #b06a8f;
  border-radius: 8px;
  background: #fff8fc;
  color: #7b4f65;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.6;
}

.fracxel-title {
  color: #6c7db8;
  font-size: 1.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.lotus-brand {
  margin: 6px 0 12px;
  color: #4c5a66;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.2px;
}

.table-scroll {
  border: 1px solid #d3dde3;
  border-radius: 10px;
  overflow: auto;
  margin-top: 10px;
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.service-table th,
.service-table td {
  border: 1px solid #ced9df;
  padding: 8px 9px;
  text-align: left;
  font-size: 0.9rem;
  color: #4b5f74;
}

.service-table thead th {
  background: #e7f1f5;
  color: #2f556f;
  font-weight: 700;
}

.phone-directory {
  display: grid;
  gap: 12px;
}

.phone-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d6e2ea;
  border-radius: 10px;
  background: linear-gradient(140deg, #f9fcff, #f4f8ff);
}

.phone-summary p {
  color: #374f66;
  font-size: 1.08rem;
  font-weight: 700;
}

.phone-highlight {
  color: #3558de;
}

.phone-direct-tip {
  color: #4f6277;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 4px 2px;
}

.phone-table-wrap {
  border: 1px solid #c8d6dd;
  border-radius: 8px;
  overflow: auto;
  background: #ffffff;
}

.phone-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.phone-table th,
.phone-table td {
  border: 1px solid #b8c5cc;
  text-align: center;
  padding: 7px 8px;
  color: #344b5f;
}

.phone-table thead th {
  background: #d9e7ef;
  color: #244661;
  font-size: 0.95rem;
}

.phone-table tbody td:first-child {
  background: #edf4e3;
  color: #35526b;
  font-weight: 700;
  white-space: nowrap;
}

.phone-table tbody td:nth-child(2),
.phone-table tbody td:nth-child(4) {
  background: #f1edf7;
}

.phone-table tbody td:nth-child(3),
.phone-table tbody td:nth-child(5) {
  background: #f8fbff;
  font-weight: 600;
}

.staff-list {
  display: grid;
  gap: 14px;
}

.staff-card {
  border: 1px solid #dce6e5;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.78) 0%, rgba(251, 251, 253, 0.74) 100%);
  padding: 14px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
}

.staff-photo {
  min-height: 240px;
  border-radius: 8px;
  border: 1px solid #cfd9db;
  background: linear-gradient(145deg, #dfe7ea, #eef2f4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #607589;
  font-weight: 700;
  padding: 10px;
  text-align: center;
}

.staff-body {
  min-width: 0;
}

.staff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.staff-head h3 {
  color: #263f55;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}

.staff-role {
  color: #3f78c2;
  font-weight: 700;
  font-size: 0.95rem;
}

.staff-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.staff-block h4 {
  color: var(--sub-mint-600);
  margin-bottom: 6px;
}

.staff-block ul {
  display: grid;
  gap: 4px;
  color: #51647a;
  font-size: 0.89rem;
}

.staff-block li {
  position: relative;
  padding-left: 11px;
  line-height: 1.45;
}

.staff-block li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--sub-rose-500);
}

#overview,
#phones,
#location,
#doctors,
#history {
  scroll-margin-top: 120px;
}

@media (max-width: 1180px) {
  .sub-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .message-layout,
  .location-wrap {
    grid-template-columns: 1fr;
  }

  .message-photo {
    min-height: 300px;
  }

  .info-grid,
  .staff-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .sub-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sub-sidebar {
    position: static;
  }

  .sub-content-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sub-breadcrumb {
    white-space: normal;
  }

  .sidebar-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sidebar-link {
    padding: 7px 0;
  }

  .phone-summary {
    gap: 8px;
  }

  .phone-summary p {
    width: 100%;
    font-size: 0.98rem;
  }

  .phone-direct-tip {
    font-size: 0.9rem;
  }

  .service-columns,
  .service-grid-two,
  .symptom-list,
  .aesthetic-grid,
  .aesthetic-grid-three {
    grid-template-columns: 1fr;
  }

  .tour-viewer {
    grid-template-columns: 1fr;
  }

  .tour-main-image {
    height: 360px;
  }

  .tour-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .leboyer-scenes {
    grid-template-columns: 1fr;
  }

  .scene-image {
    min-height: 140px;
  }

  .info-grid,
  .staff-columns {
    grid-template-columns: 1fr;
  }

  .staff-card {
    grid-template-columns: 1fr;
  }

  .staff-photo {
    min-height: 180px;
  }
}

.medical-page {
  background: #ececec;
}

.medical-page .sub-layout {
  padding-top: 18px;
  gap: 24px;
}

.medical-page .sub-content-head {
  margin-bottom: 10px;
}

.medical-page .sub-title {
  font-size: clamp(1.38rem, 2.1vw, 1.9rem);
}

.medical-page .sub-content {
  background: transparent;
}

.medical-page .legacy-staff-section + .legacy-staff-section {
  margin-top: 12px;
}

.medical-page .legacy-section-title {
  color: #303846;
  font-size: 1.24rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.medical-page .legacy-history-title {
  font-size: 1.6rem;
  color: #313742;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.medical-page .legacy-history-title::before {
  content: "\2022";
  margin-right: 8px;
  color: #2f343d;
}

.medical-page .legacy-staff-list {
  display: grid;
  gap: 14px;
}

.medical-page .legacy-card {
  position: relative;
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #d4d6db;
  background: #f2f2f2;
  padding: 10px;
  overflow: hidden;
}

.medical-page .legacy-card::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 36px;
  width: 58px;
  height: 8px;
  background: #dddde1;
}

.medical-page .legacy-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 150px;
  border-top: 8px solid #d772b9;
  border-right: 8px solid #d772b9;
}

.medical-page .legacy-photo-wrap {
  border: 1px solid #b9bcc2;
  background: #ffffff;
  padding: 2px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.medical-page .legacy-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.medical-page .legacy-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.medical-page .legacy-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 10px;
  flex-wrap: wrap;
}

.medical-page .legacy-head-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #ef9ca5;
  flex: 0 0 auto;
}

.medical-page .legacy-headline h3 {
  color: #3c4047;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.medical-page .legacy-role {
  color: #4477d6;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1;
}

.medical-page .legacy-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  padding-right: 56px;
}

.medical-page .legacy-block h4 {
  color: #3d4045;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.medical-page .legacy-block h4::before {
  content: "\203a";
  color: #d74d4d;
  margin-right: 6px;
  font-weight: 700;
}

.medical-page .legacy-list {
  display: grid;
  gap: 2px;
}

.medical-page .legacy-list li {
  color: #5c5f65;
  font-size: 0.84rem;
  line-height: 1.46;
  position: relative;
  padding-left: 12px;
}

.medical-page .legacy-list li::before {
  content: "\00b7";
  position: absolute;
  left: 0;
}

.medical-page .legacy-card-history .legacy-columns {
  grid-template-columns: 1fr;
}

.medical-page .legacy-card-history .legacy-role {
  font-size: 1.08rem;
}

.medical-page .legacy-card-history.compact-history .legacy-photo {
  min-height: 0;
}

.medical-page .history-section .legacy-card::after {
  height: 90px;
}

@media (max-width: 1480px) {
  .medical-page .legacy-headline h3 {
    font-size: 1.35rem;
  }

  .medical-page .legacy-role {
    font-size: 1.02rem;
  }

  .medical-page .legacy-block h4 {
    font-size: 0.92rem;
  }

  .medical-page .legacy-list li {
    font-size: 0.8rem;
  }
}

@media (max-width: 1180px) {
  .medical-page .legacy-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .medical-page .legacy-columns {
    grid-template-columns: 1fr 1fr;
  }

  .medical-page .legacy-block:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .medical-page .legacy-card {
    grid-template-columns: 1fr;
  }

  .medical-page .legacy-photo-wrap {
    max-width: 300px;
  }

  .medical-page .legacy-headline h3 {
    font-size: 1.26rem;
  }

  .medical-page .legacy-role {
    font-size: 0.95rem;
  }

  .medical-page .legacy-columns {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .medical-page .legacy-card::after {
    height: 60px;
  }

  .medical-page .legacy-history-title {
    font-size: 1.3rem;
  }
}
