:root {
  --ink: #2f2729;
  --muted: #796e72;
  --line: #eadfe2;
  --blush: #f4d4dc;
  --blush-soft: #fff8fa;
  --rose: #e78c9d;
  --rose-deep: #c95872;
  --cyan: #dff4f1;
  --mint: #58786f;
  --cream: #faf6f0;
  --paper: #ffffff;
  --shadow: 0 18px 50px rgba(91, 55, 65, 0.12);
  --container: 1250px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.72;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.topbar {
  min-height: 34px;
  background: var(--blush);
  font-size: 13px;
}
.topbar-inner,
.header-inner,
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-links { display: flex; gap: 18px; color: #5f4e53; }

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 34px;
}
.brand-lockup { width: 220px; height: auto; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(22px, 4vw, 58px); font-size: 17px; font-weight: 750; }
.main-nav a { padding: 34px 0 29px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--rose-deep); border-color: var(--rose); }
.menu-button { border: 0; background: transparent; font-size: 24px; cursor: pointer; padding: 12px; }

.home-hero {
  width: min(calc(100% - 40px), 1320px);
  min-height: 610px;
  margin: 18px auto 62px;
  padding: 56px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('/assets/mari-hero-wide.webp') center/cover no-repeat;
  isolation: isolate;
}
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,24,27,.72) 0%, rgba(35,24,27,.28) 50%, rgba(35,24,27,.02) 75%); z-index: -1; }
.hero-panel {
  width: min(620px, 58%);
  padding: 34px;
  color: white;
  background: rgba(43, 31, 35, .75);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: var(--shadow);
}
.eyebrow { margin: 0 0 10px; color: var(--rose-deep); font-size: 13px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero-panel .eyebrow { color: #ffdce4; }
h1 { margin: 0; font-size: clamp(35px, 5vw, 64px); line-height: 1.12; letter-spacing: -.045em; }
.search-thumbnail {
  width: 230px;
  height: 230px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  clip-path: none;
  mask: none;
  transform: none;
  margin: 24px 0 20px;
  border: 8px solid rgba(255,255,255,.86);
}
.hero-panel p { margin: 0; font-size: 17px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill-link { padding: 11px 18px; border-radius: 999px; background: white; color: var(--ink); font-weight: 750; }
.pill-link.secondary { background: var(--rose); color: white; }

.section { padding: 72px 0; }
.section.soft { background: var(--blush-soft); }
.section.cyan { background: #f1fbfa; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.section-head h2, .content-title { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.25; }
.section-head p, [data-section-subtitle] { color: var(--muted); margin: 10px 0 0; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.service-card { background: white; border: 1px solid var(--line); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-body { padding: 18px; }
.service-card h3 { margin: 0 0 8px; font-size: 19px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; color: var(--rose-deep); font-weight: 850; }
.price-line del { color: #a79da0; font-size: 12px; font-weight: 500; }
.sale { display: inline-block; margin-top: 10px; padding: 3px 8px; background: var(--rose-deep); color: white; font-size: 11px; }

.guide-panel { margin: 48px 0; border: 1px solid #f4aabe; background: #fff; }
.guide-title { padding: 24px; text-align: center; background: #f34a94; color: white; }
.guide-title h2 { margin: 0; }
.guide-title p { margin: 4px 0 0; color: rgba(255,255,255,.9); }
.guide-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 20px; }
.guide-step { padding: 22px; text-align: center; background: #fff8fa; border: 1px solid #f3d0da; }
.guide-step b { display: block; margin-bottom: 8px; font-size: 17px; }
.guide-step p { margin: 0; color: var(--muted); }

.region-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.region-card { position: relative; min-height: 275px; overflow: hidden; background: #ddd; color: white; }
.region-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .35s ease; }
.region-card:hover img { transform: scale(1.035); }
.region-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(40,22,28,.78)); }
.region-card-copy { position: absolute; inset: auto 20px 18px; z-index: 2; }
.region-card h3 { margin: 0; font-size: 25px; }
.region-card p { margin: 2px 0 0; color: rgba(255,255,255,.85); }

.page-band { padding: 34px 0; background: var(--cyan); text-align: center; }
.page-band h1 { font-size: clamp(31px, 4.5vw, 52px); }
.page-band .search-thumbnail { margin: 22px auto 0; width: min(600px, 72vw); height: auto; border: 10px solid white; box-shadow: var(--shadow); }
.breadcrumb { width: min(calc(100% - 40px), var(--container)); margin: 18px auto; color: var(--muted); font-size: 14px; }

.region-list { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.region-link { min-height: 88px; padding: 18px; display: flex; align-items: center; justify-content: space-between; background: white; border: 1px solid var(--line); font-weight: 800; }
.region-link:hover { border-color: var(--rose); background: var(--blush-soft); }

.detail-shell { width: min(calc(100% - 40px), 1250px); margin: 34px auto 80px; }
.detail-hero { max-width: 780px; margin: 0 auto 38px; text-align: center; }
.detail-hero h1 { font-size: clamp(34px, 5vw, 60px); }
.detail-hero .search-thumbnail { width: min(600px, 90vw); height: auto; margin: 24px auto 0; border: 0; box-shadow: var(--shadow); }
.story-panel { border: 1px solid var(--line); background: white; }
.story-block { padding: 34px clamp(22px, 4vw, 56px); text-align: center; }
.story-block:nth-child(even) { background: var(--cream); }
.story-block.dark { background: var(--mint); color: white; }
.story-block h2 { margin: 0; font-size: clamp(23px, 3vw, 34px); }
.story-block p { margin: 10px auto 0; max-width: 900px; color: inherit; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 20px; }
.benefit { padding: 20px; background: white; color: var(--ink); border: 1px solid var(--line); }
.benefit h3 { margin: 0 0 7px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; }

.article-hero { width: min(calc(100% - 40px), 1250px); margin: 18px auto 0; position: relative; min-height: 520px; background: url('/assets/mari-interior-wide.webp') center/cover; display: flex; align-items: end; padding: 42px; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(34,21,27,.76)); }
.article-heading { position: relative; z-index: 2; color: white; max-width: 850px; }
.article-heading .search-thumbnail { width: 180px; height: 180px; margin: 18px 0 0; }
.notice-strip { width: min(calc(100% - 40px), 1250px); margin: 14px auto; padding: 12px 18px; background: #ffe86a; font-weight: 800; }
.article-body { width: min(calc(100% - 40px), 1080px); margin: 48px auto 90px; }
.article-body h2 { margin: 48px 0 10px; font-size: 28px; }
.article-body p { margin: 0 0 20px; color: #51474a; }
.feature-pair { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 32px 0; }
.feature-pair img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.waiting-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 32px 0; }
.waiting-grid figure { margin: 0; position: relative; }
.waiting-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.waiting-grid figcaption { position: absolute; inset: auto 0 0; padding: 9px; background: rgba(120,70,145,.75); color: white; text-align: center; font-weight: 800; }

.course-table { display: grid; gap: 12px; }
.course-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); background: white; }
.course-row h3 { margin: 0; }
.course-intro { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.price-options { display: flex; flex-wrap: wrap; gap: 8px; }
.price-chip { padding: 9px 12px; background: var(--blush-soft); border: 1px solid #f0cbd5; white-space: nowrap; }
.price-chip b { color: var(--rose-deep); }

.faq-list { max-width: 940px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary { cursor: pointer; font-weight: 850; }
.faq-list p { margin: 10px 0 0; color: var(--muted); }

.site-footer { padding: 60px 0 34px; background: #f7f4f4; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-logo { width: 220px; margin-bottom: 16px; }
.footer-grid p { color: var(--muted); font-size: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); color: #91878a; font-size: 12px; }

.fixed-phone-cta {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 100;
  min-height: 52px;
  min-width: 132px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: var(--rose-deep);
  box-shadow: 0 12px 34px rgba(145,48,78,.32);
  font-weight: 900;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .region-list { grid-template-columns: repeat(3,1fr); }
  .header-inner { grid-template-columns: 210px 1fr auto; gap: 18px; }
  .main-nav { gap: 20px; font-size: 15px; }
}

@media (max-width: 760px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .top-links { display: none; }
  .header-inner { min-height: 72px; grid-template-columns: 180px 1fr auto; }
  .brand-lockup { width: 170px; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 18px 20px 24px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 9px 0; }
  .home-hero { min-height: 630px; margin-top: 10px; padding: 18px; align-items: end; }
  .home-hero::before { background: linear-gradient(180deg, rgba(35,24,27,.04), rgba(35,24,27,.78)); }
  .hero-panel { width: 100%; padding: 22px; }
  .search-thumbnail { width: 160px; height: 160px; margin: 18px 0 14px; }
  .section { padding: 52px 0; }
  .service-grid, .region-grid { grid-template-columns: 1fr 1fr; }
  .service-card img { aspect-ratio: 1/1; }
  .guide-steps, .benefit-grid, .footer-grid { grid-template-columns: 1fr; }
  .region-list { grid-template-columns: repeat(2,1fr); }
  .region-link { min-height: 72px; padding: 14px; }
  .region-card { min-height: 210px; }
  .article-hero { min-height: 500px; padding: 24px; }
  .article-heading .search-thumbnail { width: 150px; height: 150px; }
  .feature-pair { grid-template-columns: 1fr; }
  .waiting-grid { grid-template-columns: repeat(2,1fr); }
  .course-row { grid-template-columns: 1fr; }
  .fixed-phone-cta { min-height: 48px; padding: 12px 18px; }
}

@media (max-width: 430px) {
  .topbar-inner, .header-inner, .container, .breadcrumb, .detail-shell, .article-body { width: min(calc(100% - 24px), var(--container)); }
  .home-hero, .article-hero, .notice-strip { width: calc(100% - 24px); }
  .service-grid, .region-grid { grid-template-columns: 1fr; }
  .region-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-panel { padding: 18px; }
  h1 { font-size: 34px; }
  .page-band .search-thumbnail { width: calc(100% - 24px); }
}

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