:root {
  color-scheme: light;
  --ink: #22302f;
  --jade: #2c887c;
  --rose: #c77778;
  --gold: #b8915f;
  --mist: #edf5f1;
  --paper: #ffffff;
  --soft: #f8fbf8;
  --muted: #687674;
  --line: rgba(34, 48, 47, 0.14);
  --shadow: 0 22px 54px rgba(34, 48, 47, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.clinic-menu {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(248, 251, 248, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: var(--jade);
  color: #ffffff;
  font-size: 25px;
  font-weight: 950;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.brand span span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-links {
  display: grid;
  gap: 8px;
}

.menu-links a,
.button,
.gallery-lock {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(44, 136, 124, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--jade);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.menu-links a {
  justify-content: flex-start;
}

.menu-links a[aria-current="page"] {
  background: var(--jade);
  color: #ffffff;
}

.menu-note {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.content {
  min-width: 0;
}

.button {
  border-color: var(--rose);
  background: var(--rose);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.button.quiet {
  border-color: rgba(44, 136, 124, 0.26);
  background: #ffffff;
  color: var(--jade);
}

.gallery-lock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(34, 48, 47, 0.24);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: grid;
  align-items: end;
  padding: 110px max(24px, calc((100vw - 1260px) / 2)) 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(34, 48, 47, 0.9), rgba(44, 136, 124, 0.56) 48%, rgba(34, 48, 47, 0.12)),
    var(--hero-image, url("https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?auto=format&fit=crop&w=1800&q=80")) center / cover;
  color: #ffffff;
}

.content .hero:not(.clinic-hero) {
  min-height: 520px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.content .hero:not(.clinic-hero) .hero-copy {
  padding: 24px;
  border-left: 8px solid var(--jade);
  border-radius: 8px;
  background: rgba(248, 251, 248, 0.9);
  box-shadow: var(--shadow);
}

.content .hero:not(.clinic-hero) h1 {
  color: var(--ink);
}

.content .hero:not(.clinic-hero) .eyebrow {
  color: var(--jade);
}

.content .hero:not(.clinic-hero) p:not(.eyebrow) {
  color: var(--muted);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(34, 48, 47, 0.84), transparent);
}

.hero-copy {
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: #f2d29f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 780px;
  font-size: 72px;
  line-height: 0.96;
}

h2 {
  color: var(--ink);
  font-size: 50px;
  line-height: 1.05;
}

h3 {
  font-size: 22px;
}

.hero p:not(.eyebrow),
.lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 76px max(24px, calc((100vw - 1260px) / 2));
}

.section.white {
  background: var(--paper);
}

.section.ink {
  background: var(--ink);
  color: #ffffff;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.section-heading p,
.card p,
.treatment p,
.result p,
.step p,
.plan p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.ink h2,
.ink h3 {
  color: #ffffff;
}

.ink .section-heading p,
.ink .card p {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: 32px;
  align-items: center;
}

.photo-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.card-grid,
.treatment-grid,
.result-grid,
.step-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.treatment,
.result,
.step,
.plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 22px;
}

.ink .card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.card strong,
.treatment strong,
.result strong,
.step strong,
.plan strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}

.ink .card strong {
  color: #ffffff;
}

.treatment {
  display: grid;
  gap: 12px;
}

.treatment code {
  display: inline-grid;
  width: 64px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--jade);
  color: #ffffff;
  font-family: inherit;
  font-weight: 950;
}

.plan {
  border-top: 7px solid var(--jade);
}

.plan:nth-child(2) {
  border-top-color: var(--rose);
}

.plan:nth-child(3) {
  border-top-color: var(--gold);
}

.result {
  padding: 0;
  overflow: hidden;
}

.result img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.result div {
  padding: 20px;
}

.consult-box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.56fr);
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.consult-box .step-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid rgba(34, 48, 47, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px max(24px, calc((100vw - 1260px) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer a {
  color: #ffffff;
  font-weight: 900;
}

.clinic-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.78fr);
  gap: 34px;
  align-items: center;
  padding: 74px max(24px, calc((100vw - 1260px) / 2));
  background:
    linear-gradient(135deg, rgba(44, 136, 124, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(199, 119, 120, 0.12), transparent 38%),
    var(--soft);
}

.clinic-copy h1 {
  color: var(--ink);
  font-size: 68px;
}

.clinic-copy .eyebrow {
  color: var(--jade);
}

.clinic-copy p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.skin-console {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
}

.skin-console img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.console-main {
  height: 520px;
}

.console-stack {
  display: grid;
  gap: 12px;
}

.console-stack img {
  height: 254px;
}

.console-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 6px;
  max-width: 370px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.console-card strong {
  color: var(--jade);
  font-size: 17px;
}

.console-card span {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1040px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .clinic-menu {
    position: static;
    height: auto;
  }

  .menu-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-links a {
    justify-content: center;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  .split,
  .clinic-hero,
  .consult-box {
    grid-template-columns: 1fr;
  }

  .clinic-copy h1 {
    font-size: 54px;
  }

  .card-grid,
  .treatment-grid,
  .result-grid,
  .step-grid,
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .menu-links {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 560px;
    padding-top: 84px;
  }

  h1 {
    font-size: 40px;
  }

  .clinic-copy h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 33px;
  }

  .card-grid,
  .treatment-grid,
  .result-grid,
  .step-grid,
  .plan-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .photo-panel img,
  .result img {
    height: 290px;
  }

  .skin-console {
    grid-template-columns: 1fr;
  }

  .console-main,
  .console-stack img {
    height: 280px;
  }

  .console-card {
    position: static;
    max-width: none;
  }
}

body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(237, 245, 241, 0.76)),
    var(--mist);
}

.clinic-menu {
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 245, 241, 0.9)),
    var(--soft);
  box-shadow: 18px 0 46px rgba(44, 136, 124, 0.1);
}

.brand-mark {
  background: linear-gradient(135deg, var(--jade), #66b8aa);
  box-shadow: 0 16px 34px rgba(44, 136, 124, 0.22);
}

.menu-links {
  position: relative;
}

.menu-links a {
  position: relative;
  z-index: 1;
  border-color: rgba(44, 136, 124, 0.16);
  background: rgba(255, 255, 255, 0.76);
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.menu-links a:hover {
  transform: translateX(4px);
}

.menu-links a[aria-current="page"] {
  background: linear-gradient(135deg, var(--jade), #66b8aa);
  color: #ffffff;
}

.menu-aura {
  position: absolute;
  left: -8px;
  right: -8px;
  top: 0;
  z-index: 0;
  border-radius: 8px;
  background: rgba(199, 119, 120, 0.12);
  opacity: 0;
  transition: transform 260ms ease, height 260ms ease, opacity 180ms ease;
  pointer-events: none;
}

.content .hero:not(.clinic-hero) .hero-copy {
  border-left-color: var(--rose);
  background: rgba(255, 255, 255, 0.9);
}

.treatment,
.card,
.result,
.step,
.plan,
.consult-box {
  border-color: rgba(44, 136, 124, 0.13);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 44px rgba(44, 136, 124, 0.09);
}

.radiant-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease var(--delay, 0ms), transform 560ms ease var(--delay, 0ms), box-shadow 180ms ease;
}

.radiant-reveal.radiant-in {
  opacity: 1;
  transform: translateY(0);
}

.radiant-reveal:hover {
  box-shadow: 0 26px 54px rgba(44, 136, 124, 0.14);
}

@media (max-width: 640px) {
  .gallery-lock {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-indent: -999px;
  }

  .gallery-lock::before {
    content: "<";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 20px;
    text-indent: 0;
  }
}
