:root {
  --ink: #20302d;
  --muted: #65736f;
  --line: #dfe7e3;
  --paper: #fbfaf6;
  --white: #ffffff;
  --green: #7a4a2f;
  --green-dark: #56331f;
  --blue: #326b93;
  --clay: #b76e4a;
  --gold: #c7a35c;
  --shadow: 0 18px 42px rgba(31, 85, 74, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 231, 227, 0.9);
  background: rgba(251, 250, 246, 0.95);
  backdrop-filter: blur(14px);
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand img {
  width: 132px;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 58px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #a25d30;
  font-size: 14px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #344440;
}

.main-nav a:hover,
.main-nav a.active {
  background: #f1e9e1;
  color: var(--green-dark);
}

.cta-button,
.outline-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.cta-button {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47, 117, 103, 0.22);
}

.outline-button {
  border: 1px solid #bfcfc9;
  background: var(--white);
  color: var(--green-dark);
}

.text-link {
  min-height: 0;
  padding: 0;
  color: var(--green-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(88vh - 40px));
  padding: 74px 0;
  overflow: hidden;
  background: #1f2b28;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 33, 30, 0.66) 0%, rgba(20, 33, 30, 0.44) 42%, rgba(20, 33, 30, 0.06) 100%),
    linear-gradient(180deg, rgba(20, 33, 30, 0.04) 0%, rgba(20, 33, 30, 0.16) 100%);
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
}

.hero-content {
  --hero-text-x: -42px;
  max-width: 640px;
  will-change: transform;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 14px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.36;
}

h2 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.5;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero h1,
.hero .lead {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.24);
}

.hero h1 {
  max-width: 600px;
  font-family: inherit;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.46;
}

.hero .eyebrow {
  color: #f2c99b;
  margin-bottom: 24px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
}

.hero .lead {
  line-height: 1.85;
}

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

.hero-actions {
  gap: 14px;
  margin-top: 34px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 22px;
  background: transparent;
}

.status-item {
  min-height: 96px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 32px rgba(86, 51, 31, 0.08);
}

.status-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-value {
  font-size: 17px;
  font-weight: 900;
}

.section {
  padding: 72px 0;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(32, 48, 45, 0.06);
}

.card-body {
  padding: 24px;
}

.image-card {
  overflow: hidden;
}

.image-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card {
  padding: 24px;
}

.reveal-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1100ms ease, transform 1100ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 17px;
}

.clinical-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 42px rgba(86, 51, 31, 0.08);
}

.clinical-panel > div {
  padding: 28px;
  background: var(--white);
}

.clinical-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
}

.stacked-list {
  display: grid;
  gap: 12px;
}

.stacked-list > div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(32, 48, 45, 0.05);
}

.stacked-list b {
  color: var(--green-dark);
}

.stacked-list span {
  color: var(--muted);
}

.space-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.space-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(32, 48, 45, 0.06);
}

.space-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.space-card div {
  padding: 18px;
}

.space-card strong,
.space-card span {
  display: block;
}

.space-card strong {
  margin-bottom: 6px;
  color: var(--green-dark);
}

.space-card span {
  color: var(--muted);
  font-size: 14px;
}

.treatment-visual {
  display: grid;
  gap: 14px;
}

.treatment-visual img {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.fixed-cta {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(32, 26, 21, 0.58), rgba(32, 26, 21, 0.58)),
    url("assets/hanyakroom.png") center / cover fixed;
  color: var(--white);
  text-align: center;
}

.fixed-cta-inner {
  max-width: 760px;
  padding: 80px 0;
}

.fixed-cta .eyebrow {
  color: #f2c99b;
}

.fixed-cta h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.45;
}

.fixed-cta p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.doctor-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 22%;
  filter: blur(0.7px) saturate(0.94) contrast(0.96);
  transform: scale(1.01);
}

.doctor-list {
  display: grid;
  gap: 24px;
}

.doctor-profile {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
}

.doctor-profile .doctor-photo {
  height: 100%;
  min-height: 360px;
  aspect-ratio: auto;
}

.doctor-profile .card-body {
  display: grid;
  align-content: center;
  padding: 34px;
}

.doctor-meta {
  color: var(--clay);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list b {
  color: var(--green-dark);
}

.page-hero {
  padding: 58px 0 38px;
  border-bottom: 1px solid var(--line);
  background: #f6f1e5;
}

.page-hero .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.page-hero img {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.82;
  filter: blur(0.8px) saturate(0.92) contrast(0.96);
}

.page-hero h1 {
  font-size: clamp(29px, 4vw, 46px);
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.notice-date {
  color: var(--blue);
  font-weight: 900;
}

.reservation-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.reservation-box {
  padding: 28px;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--white);
}

.reservation-box.secondary {
  background: #f1eee6;
  color: var(--ink);
  border: 1px solid var(--line);
}

.naver-reservation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(86, 51, 31, 0.08);
}

.naver-reservation-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 38px 0;
  background: #1f2b28;
  color: #d9e4df;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-grid p {
  margin: 4px 0 0;
  color: #aebdb7;
}

.kakao-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.kakao-float a {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 76px;
  min-height: 64px;
  padding: 8px 6px;
  border: 1px solid rgba(86, 51, 31, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green-dark);
  box-shadow: 0 14px 34px rgba(32, 48, 45, 0.16);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.kakao-float span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  line-height: 1;
}

.kakao-float img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.kakao-float .naver-img {
  width: 30px;
  height: 30px;
}

.kakao-float b {
  font: inherit;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 860px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .home-main {
    display: flex;
    flex-direction: column;
  }

  .home-main > .container:has(.status-strip) {
    order: 1;
  }

  .home-fixed-cta {
    order: 3;
  }

  .home-services-section {
    order: 2;
  }

  .home-modern-section {
    order: 4;
  }

  .home-about-section {
    order: 5;
  }

  .home-doctors-section {
    order: 6;
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    left: auto;
    right: 14px;
    width: min(70vw, 300px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 40px rgba(32, 48, 45, 0.16);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 400px;
    padding: 34px 0;
  }

  .kakao-float {
    display: none;
  }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 68px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--green-dark);
    box-shadow: 0 -12px 30px rgba(32, 48, 45, 0.22);
  }

  .mobile-action-bar a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    min-width: 0;
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mobile-action-bar a:last-child {
    border-right: 0;
  }

  .mobile-action-bar span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
    line-height: 1;
  }

  .mobile-action-bar img {
    width: 29px;
    height: 29px;
    object-fit: contain;
  }

  .mobile-action-bar .naver-img {
    width: 25px;
    height: 25px;
  }

  .mobile-action-bar b {
    font: inherit;
  }

  .hero-content {
    --hero-text-x: 0px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(20, 33, 30, 0.58) 0%, rgba(20, 33, 30, 0.44) 58%, rgba(20, 33, 30, 0.22) 100%),
      linear-gradient(90deg, rgba(20, 33, 30, 0.12) 0%, rgba(20, 33, 30, 0.04) 100%);
  }

  .fixed-cta {
    min-height: 360px;
    background-attachment: scroll;
  }

  .fixed-cta-inner {
    padding: 64px 0;
  }

  .split,
  .page-hero .container,
  .reservation-panel,
  .doctor-profile,
  .space-gallery,
  .naver-reservation-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: grid;
    align-items: center;
    background:
      linear-gradient(180deg, rgba(32, 26, 21, 0.74), rgba(32, 26, 21, 0.58)),
      var(--page-hero-bg) center / cover no-repeat;
    color: var(--white);
  }

  .page-hero .container {
    position: relative;
    z-index: 1;
  }

  .page-hero img {
    display: none;
  }

  .page-hero .eyebrow {
    color: #f2c99b;
  }

  .page-hero .lead {
    color: rgba(255, 255, 255, 0.9);
  }

  .modern-section .container {
    width: min(100% - 56px, 1120px);
  }

  .naver-reservation-card {
    display: grid;
  }

  .doctor-profile .doctor-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .grid-3,
  .grid-2,
  .clinical-panel,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 8px;
  }

  .status-item {
    min-height: 74px;
    padding: 13px 12px;
  }

  .status-label {
    margin-bottom: 2px;
    font-size: 12px;
  }

  .status-value {
    font-size: 14px;
    line-height: 1.35;
  }

  .section-head {
    display: block;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .container {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 35px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.54;
  }

  .hero {
    min-height: 352px;
    padding: 22px 0;
  }

  .hero .eyebrow {
    margin-bottom: 18px;
  }

  .hero .lead {
    display: none;
  }

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

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-item:last-child {
    grid-column: 1 / -1;
  }

  h2 {
    font-size: 22px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .section {
    padding: 54px 0;
  }

  .info-list li,
  .notice-item,
  .stacked-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

}
