:root {
  --teal: #2e9d8d;
  --teal-dark: #17695f;
  --mint: #e6f5f1;
  --mint-strong: #cde9e3;
  --ink: #17211f;
  --muted: #65716e;
  --line: #dbe6e3;
  --paper: #ffffff;
  --soft: #f7faf8;
  --warm: #f6f0e8;
  --amber: #c18a42;
  --shadow: 0 20px 60px rgba(23, 33, 31, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 92px;
  padding: 0 5.4%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 230, 227, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 38px;
  background: linear-gradient(135deg, #2fb8a7, #87ded1);
  border-radius: 58% 42% 58% 42% / 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.72), 0 10px 24px rgba(46, 157, 141, 0.24);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  inset: 7px 12px;
  background: var(--paper);
  border-radius: 50%;
}

.brand-mark::after {
  top: -6px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: #f2bf63;
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
}

.brand-iris {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  background: var(--teal-dark);
  border-radius: 50%;
  box-shadow: inset 4px -3px 0 rgba(255, 255, 255, 0.34);
}

.brand strong {
  display: block;
  font-size: 23px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: #202b28;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--teal);
}

.site-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
}

.admin-link {
  color: var(--muted) !important;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.quick-actions {
  position: fixed;
  top: 36%;
  right: 22px;
  z-index: 15;
  overflow: hidden;
  width: 112px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-actions a {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 17px 10px;
  color: #31413d;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.quick-actions a:last-child {
  border-bottom: 0;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  background: var(--teal);
  border-radius: 50%;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(91%, 1720px);
  min-height: 680px;
  margin: 34px auto 0;
  overflow: hidden;
  background: var(--mint);
  border-radius: 42px;
}

.hero img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}

.hero::after,
.reservation-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 39, 36, 0.72), rgba(10, 39, 36, 0.18) 50%, rgba(10, 39, 36, 0));
  content: "";
}

.hero-copy {
  position: absolute;
  top: 50%;
  left: 5%;
  z-index: 1;
  width: min(560px, 86%);
  color: var(--paper);
  transform: translateY(-50%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.82);
}

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

.hero h1 {
  margin-bottom: 22px;
  font-size: 56px;
  line-height: 1.16;
}

.hero p {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  font-weight: 700;
}

.hero-actions,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary {
  color: var(--paper);
  background: var(--teal);
}

.btn.primary:hover {
  background: var(--teal-dark);
}

.btn.ghost {
  color: var(--teal-dark);
  background: var(--paper);
  border-color: var(--line);
}

.section {
  width: min(80%, 1320px);
  margin: 128px auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: end;
}

.intro-grid h2,
.section-head h2,
.doctor-copy h2,
.clinic-detail h2,
.reservation-info h2,
.support-grid h2 {
  margin-bottom: 0;
  font-size: 40px;
  line-height: 1.24;
}

.intro-grid p {
  color: var(--muted);
  font-size: 19px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: -64px;
}

.service-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  background: var(--mint);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card span {
  color: var(--teal);
  font-weight: 900;
}

.service-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.5;
}

.service-card em {
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.split-value {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
  margin: 128px 0;
  background: var(--teal);
}

.split-value img {
  width: 100%;
  height: 660px;
  object-fit: cover;
}

.value-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8% 10%;
  color: var(--paper);
  background:
    linear-gradient(rgba(46, 157, 141, 0.91), rgba(46, 157, 141, 0.91)),
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.26), transparent 32%);
}

.value-copy strong {
  margin: 56px 0 26px;
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 1;
}

.value-copy h2 {
  margin-bottom: 22px;
  font-size: 40px;
  line-height: 1.32;
}

.value-copy p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 700;
}

.doctor-highlight {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 58px;
  align-items: center;
}

.doctor-photo {
  overflow: hidden;
  border-radius: 34px;
}

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

.doctor-copy p {
  color: var(--muted);
  font-size: 18px;
}

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

.stats div {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats dt {
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 900;
}

.stats dd {
  margin: 0;
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 1.1;
}

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

.section-head > a {
  color: var(--teal-dark);
  font-weight: 900;
}

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

.notice-list article {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice-list span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.notice-list strong {
  display: block;
  margin-bottom: 18px;
  font-size: 19px;
  line-height: 1.42;
}

.notice-list time {
  color: var(--muted);
  font-size: 14px;
}

.sub-hero {
  width: min(78%, 1280px);
  margin: 96px auto 72px;
  padding: 80px 0 44px;
  border-bottom: 1px solid var(--line);
}

.sub-hero h1 {
  margin-bottom: 16px;
  font-size: 52px;
  line-height: 1.2;
}

.sub-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.doctors {
  display: grid;
  gap: 24px;
}

.doctor-profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 52px;
  align-items: center;
  padding: 44px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-portrait {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(150deg, rgba(46, 157, 141, 0.18), rgba(246, 240, 232, 0.75)),
    url("../images/hero-doctor.png") center / cover;
  border-radius: 8px;
}

.doctor-profile span {
  color: var(--teal-dark);
  font-weight: 900;
}

.doctor-profile h2 {
  margin: 8px 0 14px;
  font-size: 38px;
}

.doctor-profile p {
  max-width: 820px;
  color: var(--muted);
}

.career-box {
  padding: 18px 20px;
  color: #34423f;
  background: var(--paper);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.clinic-layout {
  margin-top: 0;
}

.clinic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.clinic-tabs a {
  padding: 12px 18px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.clinic-tabs a.is-active {
  color: var(--paper);
  background: var(--teal);
  border-color: var(--teal);
}

.clinic-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.clinic-detail img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 34px;
}

.clinic-detail p {
  color: var(--muted);
  font-size: 18px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #31413d;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
  content: "";
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  margin-top: 0;
}

.section-head.compact {
  margin-bottom: 18px;
}

.notice-list.stacked {
  grid-template-columns: 1fr;
}

.notice-list.stacked article {
  min-height: auto;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.faq-list summary {
  padding: 18px 20px;
  font-weight: 900;
  cursor: pointer;
}

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

.reservation-hero {
  position: relative;
  width: min(78%, 1440px);
  min-height: 430px;
  margin: 94px auto 0;
  overflow: hidden;
  border-radius: 34px;
}

.reservation-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.reservation-form {
  position: absolute;
  top: 50%;
  left: 7%;
  z-index: 1;
  width: min(620px, 86%);
  color: var(--paper);
  transform: translateY(-50%);
}

.reservation-form h1 {
  margin-bottom: 20px;
  font-size: 40px;
}

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

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  outline: none;
}

.reservation-form textarea {
  min-height: 92px;
  padding-top: 14px;
  resize: vertical;
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 157, 141, 0.24);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-weight: 800;
}

.check input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--teal);
}

.reservation-form .btn {
  min-width: 160px;
  margin-top: 12px;
  border: 0;
}

.alert {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.alert p {
  margin: 0;
}

.alert.success {
  color: #103f38;
  background: #d9fff3;
}

.alert.error {
  color: #661b1b;
  background: #ffe1df;
}

.reservation-info {
  display: grid;
  grid-template-columns: 1fr 260px 260px;
  gap: 24px;
  align-items: stretch;
}

.reservation-info p {
  color: var(--muted);
}

.contact-card {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 26px;
  text-align: center;
  background: var(--mint);
  border-radius: 8px;
}

.contact-card.green {
  color: var(--paper);
  background: var(--teal);
}

.contact-card span {
  color: var(--muted);
  font-weight: 900;
}

.contact-card.green span {
  color: rgba(255, 255, 255, 0.8);
}

.contact-card strong {
  font-size: 24px;
}

.admin-section {
  margin-top: 0;
}

.admin-toolbar {
  justify-content: flex-end;
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 14px;
}

td {
  color: #31413d;
}

.status {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.empty {
  padding: 42px;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 46px 5.4%;
  color: rgba(255, 255, 255, 0.78);
  background: #17211f;
}

.site-footer strong {
  color: var(--paper);
}

.site-footer p {
  margin: 4px 0;
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 24px;
  }

  .quick-actions {
    display: none;
  }

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

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

  .reservation-info > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 76px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 5.4%;
    left: 5.4%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    width: 92%;
    min-height: 570px;
    border-radius: 28px;
  }

  .hero img {
    height: 570px;
  }

  .hero h1,
  .sub-hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 17px;
  }

  .section,
  .sub-hero {
    width: 88%;
    margin: 84px auto;
  }

  .intro-grid,
  .split-value,
  .doctor-highlight,
  .clinic-detail,
  .support-grid,
  .doctor-profile {
    grid-template-columns: 1fr;
  }

  .split-value {
    margin: 84px 0;
  }

  .split-value img {
    height: 420px;
  }

  .doctor-photo img,
  .clinic-detail img {
    height: 360px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }

  .reservation-hero {
    width: 92%;
    min-height: auto;
  }

  .reservation-hero img {
    height: 720px;
  }

  .reservation-form {
    left: 6%;
  }
}

@media (max-width: 620px) {
  .brand strong {
    font-size: 19px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 46px;
    height: 32px;
  }

  .hero-copy {
    left: 8%;
  }

  .hero h1,
  .sub-hero h1 {
    font-size: 32px;
  }

  .intro-grid h2,
  .section-head h2,
  .doctor-copy h2,
  .clinic-detail h2,
  .reservation-info h2,
  .support-grid h2,
  .value-copy h2 {
    font-size: 30px;
  }

  .service-grid,
  .notice-list,
  .reservation-info,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 210px;
  }

  .doctor-profile {
    padding: 24px;
  }

  .profile-portrait {
    width: 100%;
  }

  .reservation-form {
    width: 88%;
  }

  .reservation-form h1 {
    font-size: 32px;
  }

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