.tm-hero {
  padding: 64px 0 72px;
  background: radial-gradient(circle at 90% 10%, #deeee2, transparent 45%), #f3f7f1;
}
.tm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: center;
}
.tm-hero h1 {
  font-size: clamp(2.7rem, 4.3vw, 4.7rem);
  line-height: 1.08;
  margin: 18px 0 24px;
  overflow-wrap: anywhere;
  color: #123f4b;
}
.tm-hero h1 em {
  color: #268573;
  font-style: normal;
}
.tm-hero p {
  color: #536b70;
  line-height: 1.9;
  margin-bottom: 26px;
}
.tm-hero .btn {
  background: #123f4b;
  border-radius: 12px;
}
.tm-hero-panel {
  background: #123f4b;
  color: #fff;
  padding: 42px;
  border-radius: 28px;
  box-shadow: 0 24px 60px #103c4918;
}
.tm-panel-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #ffffff12;
  border: 1px solid #ffffff20;
  border-radius: 18px;
  font-size: 1.8rem;
  color: #b9ddab;
  margin-bottom: 30px;
}
.tm-hero-panel h2 {
  color: #fff;
  font-size: 2.5rem;
  line-height: 1.12;
}
.tm-hero-panel p {
  color: #c2d6d5;
  font-size: 0.9rem;
  margin-top: 20px;
}
.tm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tm-pills span {
  padding: 7px 11px;
  background: #ffffff0c;
  border: 1px solid #ffffff22;
  border-radius: 30px;
  font-size: 0.65rem;
}
.tm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.tm-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #dce7df;
  border-radius: 22px;
  padding: 30px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.tm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px #123f4b12;
}
.tm-card:focus-visible,
.tm-related-grid a:focus-visible {
  outline: 3px solid #268573;
  outline-offset: 4px;
}
.tm-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.tm-number {
  color: #8ba499;
  font-size: 0.8rem;
}
.tm-card h3 {
  font-size: 1.75rem;
  color: #123f4b;
  line-height: 1.2;
}
.tm-card p {
  color: #617477;
  font-size: 0.88rem;
  line-height: 1.85;
  margin: 14px 0 26px;
}
.tm-card-link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #268573;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.73rem;
  color: #536b70;
  margin-bottom: 34px;
}
.tm-breadcrumb a:hover {
  text-decoration: underline;
}
.tm-content {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 65px;
  align-items: start;
}
.tm-side {
  position: sticky;
  top: 148px;
}
.tm-side nav {
  margin: 18px 0 25px;
  display: grid;
  gap: 5px;
}
.tm-side nav a {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e8e2;
  font-size: 0.77rem;
  color: #536b70;
}
.tm-side nav a:hover {
  color: #268573;
}
.tm-side nav a span {
  color: #268573;
  font-weight: 700;
}
.tm-section {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #dce7df;
  padding: 0 0 32px;
  margin-bottom: 32px;
  scroll-margin-top: 155px;
}
.tm-section-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  align-self: flex-start;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #edf4eb;
  color: #268573;
  font-size: 0.78rem;
  font-weight: 700;
}
.tm-section h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 3px 0 15px;
  color: #123f4b;
}
.tm-section p {
  font-size: 0.95rem;
  line-height: 1.95;
  color: #617477;
}
.tm-related {
  background: #f3f7f1;
}
.tm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.tm-related-grid a {
  background: #fff;
  border: 1px solid #dce7df;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tm-related-grid i {
  color: #268573;
  font-size: 1.4rem;
}
.tm-related-grid h3 {
  font-size: 1.45rem;
  line-height: 1.25;
}
.tm-related-grid span {
  font-size: 0.75rem;
  color: #268573;
  margin-top: auto;
}
.nav-group-treatments .nav-dropdown {
  width: 650px;
  left: auto;
  right: -150px;
  max-height: calc(100dvh - 165px);
  overflow-y: auto;
}
.nav-group-treatments[open] .nav-dropdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.nav-group-treatments .dropdown-heading,
.nav-group-treatments .nav-dropdown > a:first-of-type {
  grid-column: 1/-1;
}
.nav-group-treatments .nav-dropdown a {
  font-size: 0.68rem;
}
.nav-group-treatments .dropdown-arrow {
  flex-shrink: 0;
}
@media (min-width: 1081px) and (max-width: 1250px) {
  .modern-header .main-nav > .nav-link,
  .nav-group > summary {
    padding: 12px 8px;
    font-size: 0.7rem;
  }
  .modern-header .nav-appointment {
    margin-left: 4px;
    padding: 12px;
    font-size: 0.65rem;
  }
  .modern-header .nav-wrap {
    gap: 12px;
  }
  .modern-brand .brand-wordmark strong {
    font-size: 1rem;
  }
}
@media (max-width: 1080px) {
  .nav-group-treatments .nav-dropdown {
    width: 100%;
    max-height: none;
    right: auto;
  }
  .nav-group-treatments[open] .nav-dropdown {
    grid-template-columns: 1fr;
  }
  .tm-hero-grid {
    gap: 30px;
  }
  .tm-content {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
  }
  .tm-side {
    position: static;
  }
  .tm-section {
    scroll-margin-top: 145px;
  }
}
@media (max-width: 760px) {
  .tm-hero {
    padding: 38px 0 44px;
  }
  .tm-hero-grid,
  .tm-content,
  .tm-related-grid {
    grid-template-columns: 1fr;
  }
  .tm-hero-panel {
    padding: 28px;
  }
  .tm-hero h1 {
    font-size: 2.8rem;
  }
  .tm-hero-panel h2 {
    font-size: 2rem;
  }
  .tm-grid {
    grid-template-columns: 1fr;
  }
  .tm-card {
    padding: 24px;
  }
  .tm-side {
    padding: 22px;
    background: #f3f7f1;
    border-radius: 18px;
  }
  .tm-section {
    gap: 15px;
  }
  .tm-section h2 {
    font-size: 1.65rem;
  }
  .tm-section-number {
    width: 34px;
    height: 34px;
  }
  .tm-hero .btn {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm-card {
    transition: none;
  }
  .tm-card:hover {
    transform: none;
  }
}
