/* ============================================================
   Rebeauty Builder — Public design system
   .site     : 분양된 에이전시 B2B2C 사이트 (st- prefix, --brand 색상)
   .platform : 플랫폼 마케팅 사이트 (pf- prefix)
   ============================================================ */

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

:root {
  --brand: #5e10a1;
  --fg: #14131a;
  --mut: #6b6a78;
  --line: #e6e5ec;
  --bg: #ffffff;
  --soft: #f7f6fa;
  --danger: #d92d20;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1200px;
}

html { -webkit-text-size-adjust: 100%; }
/* 부드러운 스크롤(앵커 이동)은 모션 최소화를 원하지 않는 사용자에게만 */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: 'Noto Sans', 'Inter', -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased;
  font-size: 15px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--mut); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.3rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .9375rem; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: opacity .15s, box-shadow .15s, background .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { opacity: .92; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { background: var(--soft); }
.btn--block { width: 100%; }
.btn--sm { padding: .45rem .9rem; font-size: .8125rem; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }

/* =========================================================== 테넌트 사이트 */
.st-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.is-rtl { direction: rtl; }

.st-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.st-header-inner { display: flex; align-items: center; gap: 1.25rem; height: 62px; }
.st-brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.05rem; }
.st-brand-logo { height: 30px; width: auto; }
.st-brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .95rem;
}
.st-nav { display: flex; gap: 1.1rem; font-size: .9375rem; font-weight: 600; }
.st-nav a { color: var(--mut); }
.st-nav a:hover { color: var(--accent-text, var(--brand)); }
.st-lang { margin-inline-start: auto; }
.st-lang-select {
  padding: .4rem 2rem .4rem .7rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: .8125rem; font-weight: 600; background: #fff;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6a78' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center;
}
.is-rtl .st-lang-select { background-position: left .6rem center; padding: .4rem .7rem .4rem 2rem; }

/* hero */
.st-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 92%, #000) 0%, var(--brand) 60%, color-mix(in srgb, var(--brand) 70%, #ff7ab8) 100%);
  color: #fff; padding: 3.5rem 0 3rem; text-align: center;
}
.st-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.st-hero p { margin-top: .7rem; font-size: 1rem; opacity: .9; }
.st-hero .btn { margin-top: 1.5rem; background: #fff; color: var(--brand); }

/* 섹션 */
.st-section { padding: 2.5rem 0; }
.st-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.st-section-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.st-section-more { font-size: .875rem; font-weight: 700; color: var(--brand); }

/* 카테고리 칩 */
.st-cats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; }
.st-cat {
  flex: none; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .8125rem; font-weight: 600; background: #fff; white-space: nowrap;
}
.st-cat:hover { border-color: var(--brand); color: var(--accent-text, var(--brand)); }
.st-cat.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 카드 그리드 */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.st-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.st-card:hover { box-shadow: 0 8px 24px rgba(20,19,26,.10); transform: translateY(-2px); }
.st-card-img { aspect-ratio: 1/1; width: 100%; object-fit: cover; background: var(--soft); }
.st-card-body { padding: .8rem .9rem 1rem; }
.st-card-cat { font-size: .6875rem; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
.st-card-title {
  font-size: .9375rem; font-weight: 700; line-height: 1.4; margin: .25rem 0 .4rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-card-meta { font-size: .75rem; color: var(--mut); display: flex; gap: .4rem; flex-wrap: wrap; }
.st-card-price { margin-top: .55rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.st-card-rate { font-size: .95rem; font-weight: 800; color: var(--danger); }
.st-card-now  { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.st-card-was  { font-size: .75rem; color: var(--mut); text-decoration: line-through; }

/* 필터 바 */
.st-filters {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
  padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft);
  margin-bottom: 1.25rem;
}
.st-filters select, .st-filters input {
  padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .875rem; background: #fff; min-height: 2.4rem;
}
.st-filters input[type=search] { min-width: 200px; flex: 1; }
.st-count { font-size: .875rem; color: var(--mut); font-weight: 600; }

/* 상세 */
.st-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 2rem; padding: 2rem 0; align-items: start; }
.st-detail-media img { width: 100%; border-radius: var(--radius); background: var(--soft); }
.st-detail-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.st-detail-cat { font-size: .8125rem; font-weight: 700; color: var(--brand); }
.st-detail-hospital { margin-top: .6rem; font-size: .9375rem; font-weight: 600; }
.st-detail-region { font-size: .8125rem; color: var(--mut); }
.st-price-box { margin-top: 1.1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.st-price-now { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.st-price-line { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.st-price-was { font-size: .875rem; color: var(--mut); text-decoration: line-through; }
.st-price-rate { font-size: 1.1rem; font-weight: 800; color: var(--danger); }
.st-price-vat { font-size: .75rem; color: var(--mut); margin-top: .25rem; }
.st-facts { margin-top: 1.1rem; display: grid; gap: .6rem; }
.st-fact { display: grid; grid-template-columns: 7.5rem 1fr; gap: .6rem; font-size: .875rem; align-items: start; }
.st-fact dt { color: var(--mut); font-weight: 600; }
.st-sections { margin-top: 2rem; display: grid; gap: 0; }
.st-sections img { width: 100%; border-radius: 0; }
.st-sections img:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.st-sections img:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

/* 상담 폼 */
.st-form { display: grid; gap: .75rem; }
.st-form label { font-size: .8125rem; font-weight: 700; }
/* 체크박스·라디오는 제외 — 텍스트 입력처럼 폭 100%·배경을 받아 44px 상자로 떠 있었다 */
.st-form input:not([type=checkbox]):not([type=radio]), .st-form select, .st-form textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9375rem; background: #fff;
}
.st-form textarea { min-height: 7rem; resize: vertical; }
.st-form .check { display: flex; align-items: flex-start; gap: .5rem; font-size: .8125rem; font-weight: 400; color: var(--mut); }
.st-note { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--soft); font-size: .8125rem; color: var(--mut); }
.st-ok { padding: .8rem 1rem; border-radius: var(--radius-sm); background: #ecfdf3; color: #027a48; font-size: .875rem; font-weight: 600; }
.st-err { padding: .8rem 1rem; border-radius: var(--radius-sm); background: #fef3f2; color: var(--danger); font-size: .875rem; font-weight: 600; }

/* 페이지네이션 */
.st-pager { display: flex; gap: .3rem; justify-content: center; padding: 2rem 0; flex-wrap: wrap; }
.st-pager a, .st-pager span {
  min-width: 2.25rem; height: 2.25rem; padding: 0 .6rem; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .875rem;
}
.st-pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.st-empty { padding: 4rem 1rem; text-align: center; color: var(--mut); }

.st-footer { margin-top: 3rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); background: var(--soft); }
.st-footer-brand { font-weight: 800; }
.st-footer-line { font-size: .8125rem; color: var(--mut); margin-top: .2rem; }
.st-footer-note { font-size: .75rem; color: var(--mut); margin-top: .8rem; line-height: 1.5; }

@media (max-width: 860px) {
  .st-detail { grid-template-columns: 1fr; }
  .st-nav { display: none; }
}

/* =========================================================== 플랫폼 사이트 */
.pf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.pf-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pf-header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.pf-logo { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: 1rem; }
.pf-logo b { font-weight: 800; }
.pf-logo-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #5e10a1, #8b3fd4); color: #fff; font-weight: 800; font-size: .75rem;
}
.pf-nav { display: flex; gap: 1.25rem; font-size: .9375rem; font-weight: 600; color: var(--mut); }
.pf-nav a:hover { color: #5e10a1; }
.pf-header-cta { margin-left: auto; display: flex; gap: .5rem; }

.pf-hero {
  background: linear-gradient(140deg, #2a0745 0%, #5e10a1 45%, #a13fd4 100%);
  color: #fff; padding: 5rem 0 4.5rem; position: relative; overflow: hidden;
}
.pf-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(255,122,184,.28) 0%, transparent 45%),
              radial-gradient(circle at 80% 20%, rgba(120,180,255,.20) 0%, transparent 45%);
}
.pf-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.pf-eyebrow {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.16); font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.pf-hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.2; margin-top: 1rem; }
.pf-hero p { margin-top: 1.1rem; font-size: 1.0625rem; opacity: .88; line-height: 1.7; }
.pf-hero-cta { margin-top: 2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.pf-hero-cta .btn--primary { background: #fff; color: #5e10a1; }
.pf-hero-cta .btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }

.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 3rem; position: relative; z-index: 1; }
.pf-stat { padding: 1rem 1.15rem; border-radius: var(--radius); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); }
.pf-stat-v { font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; }
.pf-stat-l { font-size: .8125rem; opacity: .8; margin-top: .1rem; }

.pf-section { padding: 4rem 0; }
.pf-section--soft { background: var(--soft); }
.pf-section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.pf-section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.pf-section-sub { margin-top: .7rem; color: var(--mut); font-size: 1rem; line-height: 1.7; }

.pf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.pf-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pf-card-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(94,16,161,.09); color: #5e10a1; font-weight: 800; margin-bottom: .9rem;
}
.pf-card-title { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
.pf-card-desc { margin-top: .5rem; font-size: .9375rem; color: var(--mut); line-height: 1.65; }

.pf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; counter-reset: s; }
.pf-step { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; position: relative; }
.pf-step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  background: #5e10a1; color: #fff; font-size: .8125rem; font-weight: 800; margin-bottom: .8rem;
}
.pf-step-title { font-weight: 800; font-size: .9375rem; }
.pf-step-desc { margin-top: .35rem; font-size: .875rem; color: var(--mut); line-height: 1.6; }

.pf-langs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pf-lang { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 600; }

.pf-cta {
  margin: 0 auto; max-width: 900px; text-align: center; padding: 3rem 2rem;
  border-radius: 20px; background: linear-gradient(135deg, #2a0745, #5e10a1); color: #fff;
}
.pf-cta h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.pf-cta p { margin-top: .7rem; opacity: .85; }
.pf-cta .btn { margin-top: 1.5rem; background: #fff; color: #5e10a1; }

.pf-form-wrap { max-width: 720px; margin: 0 auto; }
.pf-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.pf-form .full { grid-column: 1 / -1; }
.pf-form label { display: block; font-size: .8125rem; font-weight: 700; margin-bottom: .35rem; }
.pf-form input, .pf-form select, .pf-form textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9375rem; background: #fff;
}
.pf-form textarea { min-height: 8rem; resize: vertical; }
.pf-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
/* .pf-form label / .pf-form input 보다 특이도가 높아야 칩 UI 가 유지된다 */
.pf-form .pf-check,
.pf-check { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; font-weight: 400; cursor: pointer; background: #fff; margin-bottom: 0; }
.pf-form .pf-check input[type=checkbox],
.pf-form .pf-check input[type=radio] { width: auto; min-width: 0; padding: 0; margin: 0; accent-color: #5e10a1; }
.pf-form .pf-check:has(input:checked) { border-color: #5e10a1; color: #5e10a1; background: rgba(94,16,161,.06); }

.pf-table-wrap { overflow-x: auto; }
.pf-table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: #fff; }
.pf-table th, .pf-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.pf-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); background: var(--soft); }

.pf-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 3rem 0 2rem; }
.pf-footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.pf-footer-desc { margin-top: .8rem; font-size: .875rem; color: var(--mut); line-height: 1.7; }
.pf-footer-links { display: grid; gap: .5rem; font-size: .875rem; font-weight: 600; }
.pf-footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .75rem; color: var(--mut);
}

@media (max-width: 720px) {
  .pf-nav { display: none; }
}

/* 바닥 링크: 사이트 메뉴 + 언어 */
.st-footer-links, .st-footer-langs { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: .9rem 0 .2rem; }
.st-footer-links a, .st-footer-langs a { color: inherit; text-decoration: none; font-size: .875rem; opacity: .85; }
.st-footer-langs a { font-size: .8125rem; }
.st-footer-links a:hover, .st-footer-langs a:hover { opacity: 1; text-decoration: underline; }
.st-footer-langs a[aria-current] { opacity: 1; font-weight: 700; }
