:root {
  --background: #fcf9f4;
  --surface: #ffffff;
  --surface-soft: #f6f3ee;
  --surface-muted: #ebe8e3;
  --primary: #466452;
  --primary-soft: #c9ebd4;
  --secondary: #466271;
  --secondary-soft: #c9e7f8;
  --tertiary: #655c51;
  --tertiary-soft: #ede1d2;
  --coral: #d98f7f;
  --ink: #1c1c19;
  --muted: #424843;
  --line: #c2c8c1;
  --shadow: 0 16px 44px rgba(70, 100, 82, 0.1);
  --container: min(1120px, calc(100% - 48px));
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
  vertical-align: -0.2em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-height);
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(194, 200, 193, 0.38);
  background: rgba(252, 249, 244, 0.82);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(252, 249, 244, 0.95);
  box-shadow: 0 8px 28px rgba(49, 48, 45, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #31483b;
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.brand-name {
  display: inline-block;
  letter-spacing: 0;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a,
.reservation a:not(.button),
.bento a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.top-reserve,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.top-reserve,
.button.primary {
  background: var(--primary);
  color: white;
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  backdrop-filter: blur(12px);
}

.top-reserve:hover,
.button:hover {
  transform: translateY(-1px);
}

.icon-button,
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
}

.hero {
  position: relative;
  min-height: calc(100svh - 70px);
  max-height: 880px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 44px) max(24px, calc((100vw - 1120px) / 2)) 84px;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 28, 25, 0.72) 0%, rgba(28, 28, 25, 0.38) 48%, rgba(28, 28, 25, 0.1) 100%),
    linear-gradient(0deg, rgba(28, 28, 25, 0.28), rgba(28, 28, 25, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 4.2rem, 4.2rem);
  line-height: 1.16;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 2.6rem, 2.6rem);
  line-height: 1.28;
  font-weight: 750;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.35;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-actions,
.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.section-heading p,
.process p,
.bento p,
.treatment-list p,
.reservation p,
.legal-note,
.site-footer p {
  color: var(--muted);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
}

.section.muted {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  background: var(--surface-soft);
}

.section-heading {
  max-width: 690px;
  margin-bottom: 38px;
}

.section-heading.centered {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.heading-link {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.process {
  display: grid;
  gap: 14px;
}

.process article,
.treatment-list article,
.article-card,
.reservation {
  border: 1px solid rgba(194, 200, 193, 0.62);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(70, 100, 82, 0.05);
}

.process article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 18px;
  align-items: start;
  padding: 22px;
}

.process span {
  grid-column: 1;
  grid-row: 1;
  color: var(--coral);
  font-weight: 800;
  font-size: 1.1rem;
}

.process h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.process p {
  grid-column: 2;
  grid-row: 2;
}

.process p {
  margin-bottom: 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento article {
  min-height: 240px;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(194, 200, 193, 0.45);
}

.bento .material-symbols-outlined {
  margin-bottom: 24px;
  font-size: 2.5rem;
}

.bento a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.soft-green {
  background: var(--primary-soft);
}

.soft-blue {
  background: var(--secondary-soft);
}

.soft-tertiary {
  background: var(--tertiary-soft);
}

.dark-card {
  background: var(--tertiary);
  color: white;
}

.dark-card p {
  color: rgba(255, 255, 255, 0.82);
}

.white-card {
  background: white;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 54px;
  align-items: start;
}

.treatment-list {
  display: grid;
  gap: 16px;
}

.treatment-list article {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 22px;
  overflow: hidden;
}

.treatment-list img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.treatment-list div {
  padding: 24px 24px 24px 0;
  align-self: center;
}

.treatment-list p {
  margin-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 260px);
  gap: 18px;
}

.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-muted);
}

.gallery-main {
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.gallery figure:hover img {
  transform: scale(1.03);
}

.gallery figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(28, 28, 25, 0.5);
  color: white;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.articles {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}

.article-grid {
  display: grid;
  gap: 14px;
}

.article-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.article-card span,
.article-card small {
  color: var(--primary);
  font-weight: 800;
}

.article-card strong {
  font-size: 1.1rem;
}

.article-card small {
  color: var(--muted);
}

.reservation,
.legal-note,
.site-footer {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.reservation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 34px;
  background: var(--primary-soft);
}

.reservation h2 {
  margin-bottom: 10px;
}

.reservation p {
  margin-bottom: 0;
}

.legal-note {
  padding: 28px 0 34px;
  font-size: 0.94rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 100px;
  border-top: 1px solid rgba(194, 200, 193, 0.7);
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
}

.site-footer p {
  margin-bottom: 0;
}

.mobile-actions {
  display: none;
}

.page-hero {
  width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-height) + 72px) 0 72px;
}

.page-hero .kicker,
.kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 840px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.3rem, 3.4rem, 3.4rem);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-hero .hero-actions {
  margin-top: 26px;
}

.doctor-page .page-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 2.65rem, 2.65rem);
  font-weight: 650;
  line-height: 1.34;
}

.doctor-page .page-hero p {
  font-size: 1.02rem;
}

.section.alt {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  background: var(--surface-soft);
}

.section-title {
  max-width: 720px;
  margin-bottom: 28px;
}

.steps,
.plain-list,
.list-grid,
.faq-list,
.article-list,
.doctor-profile,
.info-grid {
  display: grid;
  gap: 16px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.list-grid {
  grid-template-columns: repeat(2, 1fr);
}

.plain-list {
  grid-template-columns: repeat(3, 1fr);
}

.steps article,
.plain-list article,
.list-grid article,
.doctor-profile article,
.article-group,
.article-row,
.faq-list details,
.text-block,
.simple-callout,
.info-card {
  border: 1px solid rgba(194, 200, 193, 0.62);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(70, 100, 82, 0.05);
}

.steps article,
.plain-list article,
.list-grid article,
.doctor-profile article,
.article-group,
.text-block,
.simple-callout,
.info-card {
  padding: 24px;
}

.steps span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.simple-callout {
  margin-top: 18px;
  background: var(--primary-soft);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
}

.text-block ul,
.doctor-profile ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.text-block li + li,
.doctor-profile li + li {
  margin-top: 8px;
}

.doctor-profile article {
  padding: 26px 28px;
}

.doctor-profile h2 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.42;
}

.doctor-profile li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--ink);
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.article-group h2 {
  margin-bottom: 22px;
  font-size: 1.45rem;
}

.article-row {
  display: block;
  padding: 20px;
}

.article-list {
  gap: 18px;
}

.article-group + .article-group {
  margin-top: 24px;
}

.article-row a,
.article-placeholder {
  display: grid;
  gap: 4px;
}

.article-row span,
.article-placeholder span {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.info-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.map-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
    --container: min(100% - 36px, 1120px);
  }

  .site-header {
    padding: 0 18px;
  }

  .menu-button {
    display: grid;
    margin-left: auto;
  }

  .site-nav,
  .top-reserve {
    display: none;
  }

  .site-header.is-open .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(252, 249, 244, 0.98);
  }

  .site-header.is-open .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(194, 200, 193, 0.42);
  }

  .hero {
    min-height: 760px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(28, 28, 25, 0.78) 0%, rgba(28, 28, 25, 0.48) 56%, rgba(28, 28, 25, 0.18) 100%);
  }

  .intro-grid,
  .split,
  .articles,
  .reservation,
  .steps,
  .plain-list,
  .list-grid,
  .two-column,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .bento article,
  .span-7,
  .span-5,
  .span-4 {
    grid-column: span 12;
  }

  .reservation-actions {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.25rem, 2.65rem, 2.65rem);
  }

  h2 {
    font-size: clamp(1.7rem, 2.05rem, 2.05rem);
  }

  .brand > .brand-name {
    max-width: 178px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 720px;
    padding-bottom: 72px;
  }

  .hero-actions .button,
  .reservation-actions .button {
    flex: 1 1 100%;
  }

  .section,
  .section.muted {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .process article {
    grid-template-columns: 1fr;
  }

  .process h3,
  .process p {
    grid-column: auto;
    grid-row: auto;
  }

  .process h3 {
    margin-top: 0;
  }

  .bento {
    gap: 12px;
  }

  .bento article {
    min-height: auto;
    padding: 24px;
  }

  .treatment-list article {
    grid-template-columns: 1fr;
  }

  .treatment-list img {
    height: 210px;
  }

  .treatment-list div {
    padding: 0 22px 24px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-main {
    grid-row: auto;
  }

  .gallery figure {
    height: 260px;
  }

  .reservation {
    width: calc(100% - 36px);
    padding: 26px;
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 52px;
  }

  .site-footer {
    flex-direction: column;
  }

  .mobile-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    background: rgba(252, 249, 244, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .mobile-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 800;
  }

  .mobile-actions a:last-child {
    border: 1px solid var(--line);
    background: white;
    color: var(--primary);
  }
}
