/* ============================================================
   채움 치과 / Chaeum Dental — Fixed Left Sidebar Template
   Pure static CSS. System fonts only.
   ============================================================ */

:root {
  --primary: #10b6a0;
  --primary-deep: #0c7d70;
  --mint-bg: #eafaf6;
  --mint-bg-2: #f4fdfb;
  --charcoal: #12332f;
  --charcoal-soft: #3a5651;
  --muted: #6b8580;
  --accent: #f2a65a;
  --white: #ffffff;
  --line: #d6ece7;
  --shadow-sm: 0 2px 8px rgba(12, 125, 112, 0.08);
  --shadow-md: 0 8px 24px rgba(12, 125, 112, 0.12);
  --shadow-lg: 0 18px 44px rgba(12, 125, 112, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --rail-w: 250px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic",
    "Apple SD Gothic Neo", "Noto Sans KR", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
  letter-spacing: -0.01em;
}

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

svg {
  max-width: 100%;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

/* ============================================================
   LAYOUT: fixed left sidebar rail + main content
   ============================================================ */

.app {
  min-height: 100vh;
}

/* ---- Sidebar rail (desktop) ---- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  background: linear-gradient(180deg, #ffffff 0%, var(--mint-bg-2) 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 20px 24px;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-deep) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.brand__mark svg {
  width: 26px;
  height: 26px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--charcoal);
}

.brand__sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* ---- vertical nav ---- */
.railnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.railnav__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0 12px 6px;
}

.railnav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--charcoal-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.railnav a svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: var(--primary-deep);
  transition: transform 0.2s var(--ease);
}

.railnav a:hover {
  background: var(--mint-bg);
  color: var(--primary-deep);
}

.railnav a:hover svg {
  transform: scale(1.12);
}

.railnav a.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.railnav a.is-active svg {
  color: #fff;
}

/* ---- hours mini widget ---- */
.hours-widget {
  background: var(--mint-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 15px 13px;
}

.hours-widget h4 {
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-deep);
  margin-bottom: 10px;
}

.hours-widget h4 svg {
  width: 17px;
  height: 17px;
}

.hours-widget dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  font-size: 0.78rem;
}

.hours-widget dt {
  color: var(--muted);
  font-weight: 600;
}

.hours-widget dd {
  text-align: right;
  color: var(--charcoal);
  font-weight: 600;
}

.hours-widget dd.closed {
  color: var(--accent);
}

.rail__spacer {
  flex: 1 1 auto;
  min-height: 8px;
}

/* ---- rail CTA ---- */
.rail__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent) 0%, #e8934a 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.rail__cta svg {
  width: 19px;
  height: 19px;
}

.rail__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rail__tel {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.rail__tel strong {
  display: block;
  font-size: 1.02rem;
  color: var(--primary-deep);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ============================================================
   TOP BAR (mobile/tablet only)
   ============================================================ */
.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 55;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(16px, 5vw, 28px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar .brand__name {
  font-size: 1.05rem;
}

.hamburger {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}

.hamburger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.hamburger span:nth-child(1) {
  transform: translate(-50%, -7px);
}

.hamburger span:nth-child(3) {
  transform: translate(-50%, 5px);
}

.hamburger.is-open span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* backdrop (below drawer) */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 51, 47, 0.42);
  z-index: 58;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  margin-left: var(--rail-w);
  min-width: 0;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 40px);
}

.section {
  padding-block: clamp(56px, 8vw, 100px);
}

.section--tint {
  background: var(--mint-bg-2);
}

.section--mint {
  background: var(--mint-bg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
  background: var(--mint-bg);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow svg {
  width: 15px;
  height: 15px;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section__head.center {
  margin-inline: auto;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-bottom: 14px;
}

.section__head p {
  color: var(--charcoal-soft);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(1000px 500px at 100% -10%, rgba(16, 182, 160, 0.12), transparent 60%),
    linear-gradient(180deg, var(--mint-bg) 0%, #ffffff 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero__badge {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.16;
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-deep);
}

.hero__lead {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--charcoal-soft);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal-soft);
}

.hero__trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex: 0 0 auto;
}

.hero__art {
  position: relative;
}

.hero__art-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  display: grid;
  place-items: center;
}

.hero__art-card svg {
  width: 100%;
  height: auto;
}

.hero__float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero__float svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.hero__float--tl {
  top: 8px;
  left: -14px;
  color: var(--primary-deep);
}

.hero__float--br {
  bottom: 14px;
  right: -10px;
  color: var(--accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  font-family: inherit;
}

.btn svg {
  width: 19px;
  height: 19px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: linear-gradient(135deg, var(--accent) 0%, #e8934a 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: #fff;
  color: var(--primary-deep);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--mint-bg);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 30px;
  font-size: 1.06rem;
}

.btn--block {
  width: 100%;
}

/* ============================================================
   CARD GRIDS
   ============================================================ */
.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
}

.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* service card */
.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.svc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.svc__icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: var(--mint-bg);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: background 0.25s var(--ease);
}

.svc__icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-deep);
}

.svc:hover .svc__icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
}

.svc:hover .svc__icon svg {
  color: #fff;
}

.svc h3 {
  font-size: 1.16rem;
  margin-bottom: 9px;
}

.svc p {
  color: var(--charcoal-soft);
  font-size: 0.94rem;
}

.svc__tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-deep);
}

/* trust / reason card */
.reason {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.reason:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.reason__icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--mint-bg);
  display: grid;
  place-items: center;
}

.reason__icon svg {
  width: 34px;
  height: 34px;
  color: var(--primary-deep);
}

.reason h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}

.reason p {
  font-size: 0.93rem;
  color: var(--charcoal-soft);
}

/* ============================================================
   STATS (count-up)
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
}

.stat {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat__num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1;
}

.stat__num .suf {
  font-size: 0.55em;
  color: var(--accent);
}

.stat__label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.timeline__track {
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.timeline__track::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-deep) 100%);
  transition: width 1.4s var(--ease);
}

.timeline.is-drawn .timeline__track::after {
  width: 100%;
}

.step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.step__dot {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.step__dot svg {
  width: 32px;
  height: 32px;
  color: var(--primary-deep);
}

.timeline.is-drawn .step__dot {
  border-color: var(--primary);
}

.step__n {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

/* ============================================================
   STAFF PREVIEW / CARDS
   ============================================================ */
.staff-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.staff-card__photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--mint-bg) 0%, #d6f2ec 100%);
  display: grid;
  place-items: center;
  position: relative;
}

.staff-card__photo svg {
  width: 96px;
  height: 96px;
  color: var(--primary-deep);
  opacity: 0.85;
}

.staff-card__body {
  padding: 22px;
}

.staff-card__role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.staff-card__name {
  font-size: 1.28rem;
  margin: 4px 0 12px;
}

.staff-card__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mint-bg);
  color: var(--primary-deep);
  border: 1px solid var(--line);
}

.staff-card ul.cv {
  display: grid;
  gap: 7px;
}

.staff-card ul.cv li {
  display: flex;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
}

.staff-card ul.cv li svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
  flex: 0 0 auto;
  margin-top: 3px;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.review__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.review__stars svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
}

.review__text {
  font-size: 0.98rem;
  color: var(--charcoal);
  margin-bottom: 18px;
  line-height: 1.7;
}

.review__by {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.review__meta strong {
  display: block;
  font-size: 0.95rem;
}

.review__meta span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================================
   HOURS + MAP
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

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

.info-card h3 {
  font-size: 1.24rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3 svg {
  width: 24px;
  height: 24px;
  color: var(--primary-deep);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.hours-table th {
  color: var(--muted);
  font-weight: 600;
  width: 40%;
}

.hours-table td {
  text-align: right;
  font-weight: 700;
}

.hours-table td.closed {
  color: var(--accent);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mint-bg);
}

.map svg {
  width: 100%;
  height: auto;
  display: block;
}

.map__addr {
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.map__addr strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-deep);
  margin-bottom: 5px;
}

.map__addr strong svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.ctaband {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ctaband::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.ctaband::after {
  content: "";
  position: absolute;
  bottom: -70px;
  left: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.ctaband h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
  position: relative;
}

.ctaband p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.06rem;
  margin-bottom: 28px;
  position: relative;
}

.ctaband .btn--ghost {
  background: #fff;
  color: var(--primary-deep);
}

.ctaband__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   TREATMENTS DETAIL
   ============================================================ */
.treat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  align-items: start;
}

.treat:nth-child(even) {
  background: var(--mint-bg-2);
}

.treat__badge {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-deep) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.treat__badge svg {
  width: 50px;
  height: 50px;
  color: #fff;
}

.treat h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 6px;
}

.treat__sub {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.treat__desc {
  color: var(--charcoal-soft);
  margin-bottom: 20px;
  max-width: 640px;
}

.treat__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.treat:nth-child(even) .fact {
  background: #fff;
}

.fact__k {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.fact__k svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.fact__v {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--charcoal);
}

.treat__steps {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.treat__steps .pstep {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  background: var(--mint-bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

.treat__steps .pstep b {
  color: var(--primary-deep);
}

/* ============================================================
   FACILITY (staff page)
   ============================================================ */
.facility {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.facility__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.facility__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.facility__item .svc__icon {
  margin-inline: auto;
}

.facility__item h4 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.facility__item p {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

/* ============================================================
   BOOKING FORM
   ============================================================ */
.booking-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.field label .req {
  color: var(--accent);
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--charcoal);
  background: var(--mint-bg-2);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 182, 160, 0.14);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #e5623f;
  background: #fdf2ee;
}

.field__err {
  display: none;
  color: #d1502f;
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 600;
}

.field__err.show {
  display: block;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.time-slots label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--mint-bg-2);
  transition: all 0.2s var(--ease);
  margin: 0;
}

.time-slots label:hover {
  border-color: var(--primary);
}

.time-slots input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.time-slots input:checked + label,
.time-slots label.checked {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-color: var(--primary-deep);
}

.slot-wrap {
  position: relative;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.form-success.show {
  display: block;
  animation: pop 0.5s var(--ease);
}

@keyframes pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.form-success__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--mint-bg);
  display: grid;
  place-items: center;
}

.form-success__icon svg {
  width: 46px;
  height: 46px;
  color: var(--primary-deep);
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--charcoal-soft);
  margin-bottom: 22px;
}

.booking-aside {
  display: grid;
  gap: 18px;
}

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

.aside-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.aside-card h3 svg {
  width: 20px;
  height: 20px;
  color: var(--primary-deep);
}

.aside-card.tint {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
}

.aside-card.tint h3,
.aside-card.tint h3 svg {
  color: #fff;
}

.aside-card.tint p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.94rem;
}

.aside-card.tint .big-tel {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* page hero (subpages) */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(16, 182, 160, 0.14), transparent 60%),
    linear-gradient(180deg, var(--mint-bg) 0%, #fff 100%);
  padding-block: clamp(44px, 6vw, 72px);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--charcoal-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 620px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--primary-deep);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
  padding-block: clamp(44px, 6vw, 64px) 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: 34px;
}

.footer .brand__name {
  color: #fff;
}

.footer .brand__sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer .brand__mark {
  box-shadow: none;
}

.footer__about {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.62);
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__contact {
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
}

.footer__contact li {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.footer__contact li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: 0 0 auto;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .rail {
    transform: none;
    width: min(320px, 84vw);
    left: 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease),
      transform 0.32s var(--ease);
    transform: translateX(-16px);
  }

  .rail.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .topbar {
    display: flex;
  }

  .main {
    margin-left: 0;
  }
}

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

  .hero__art {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline__track {
    top: 34px;
    bottom: 34px;
    left: 34px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .timeline__track::after {
    width: 100% !important;
    height: 0;
    transition: height 1.4s var(--ease);
  }

  .timeline.is-drawn .timeline__track::after {
    height: 100%;
  }

  .step {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    text-align: left;
    align-items: start;
    padding: 10px 0;
  }

  .step__dot {
    margin: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .step h4,
  .step p { grid-column: 2; }

  .step h4 { align-self: end; margin-bottom: 2px; }

  .treat {
    grid-template-columns: 1fr;
  }

  .treat__badge {
    margin-bottom: 4px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero__float--tl {
    left: 4px;
  }

  .hero__float--br {
    right: 4px;
  }

  .hero__trust {
    gap: 14px;
  }

  .footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
