:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --line: #e5e7eb;
  --line-soft: #eef0f2;
  --text: #111827;
  --text-muted: #6b7280;
  --green: #7bbf3a;
  --green-deep: #2f7d1f;
  --green-soft: #f0f8e8;
  --red: #dc2626;
  --red-soft: #fff4f4;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  width: 120px;
}

.desktop-nav {
  display: none;
  gap: 24px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 calc(104px + env(safe-area-inset-bottom));
}

.section,
.footer {
  margin-top: 16px;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(17,24,39,0.22) 45%, rgba(17,24,39,0.64) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  color: #fff;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow.green {
  color: var(--green);
}

.hero h1 {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 32rem;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
}

.button-primary {
  background: #72c837;
  color: #fff;
}

.button-secondary {
  background: rgba(255,255,255,0.92);
  color: var(--text);
}

.button-soft {
  background: var(--green-soft);
  color: var(--green-deep);
}

.button-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 14px 0 0;
  color: #475569;
  font-size: 15px;
}

.map-card {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.visit-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.info-card {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.info-card h3,
.info-card h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.notice {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  font-size: 15px;
}

.notice p,
.notice strong {
  display: block;
}

.notice-green {
  background: var(--green-soft);
  color: #2f6f1e;
}

.notice-red {
  background: var(--red-soft);
  color: #e54848;
}

.time-table {
  margin-top: 20px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
}

.time-row:last-child {
  border-bottom: 0;
}

.time-row strong {
  color: var(--text);
}

.time-row span {
  color: #374151;
  text-align: right;
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  font-size: 15px;
  color: #374151;
}

.stack strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.inline-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #2563eb;
  font-size: 13px;
}

.card-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.visit-badges {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg);
  color: #374151;
  font-size: 14px;
}

.prose p {
  margin: 0 0 14px;
}

.doctor-card {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

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

.doctor-body {
  padding: 24px;
}

.doctor-title {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.doctor-body h3 {
  margin: 8px 0 0;
  font-size: 28px;
}

.doctor-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.doctor-list li {
  position: relative;
  padding-left: 16px;
  margin-top: 10px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.doctor-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.gallery-layout {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.gallery-layout img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.gallery-hero img {
  aspect-ratio: 4 / 3;
}

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

.gallery-grid img {
  aspect-ratio: 1 / 1;
}

.footer-logo {
  width: 144px;
}

.footer-body {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}

.footer-body p {
  margin: 0;
}

.footer-copy {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eef0f2;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease;
}

.floating-cta.is-hidden {
  transform: translateY(100%);
}

.floating-cta .button {
  flex: 1;
  border-radius: 14px;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .page {
    padding-bottom: 40px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    min-height: 560px;
    padding: 40px;
  }

  .hero-actions {
    flex-direction: row;
  }

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

  .doctor-card {
    grid-template-columns: 0.42fr 0.58fr;
  }

  .doctor-photo img {
    height: 100%;
    min-height: 100%;
  }

  .gallery-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 1024px) {
  .map-card iframe {
    height: 420px;
  }
}
