:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --line: #e5e7eb;
  --ink: #111827;
  --muted: #667085;
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", Arial, sans-serif;
  overflow-y: scroll;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.global-header .container {
  max-width: 1280px;
  padding: 0 20px;
}

.global-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1300;
}

.global-header__inner {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "menu logo util";
  align-items: center;
  gap: 16px;
}

.global-menu {
  grid-area: menu;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 700;
}

.global-logo {
  grid-area: logo;
  text-align: center;
  font-family: "Cormorant Garamond", "Noto Serif KR", serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1;
}

.global-util {
  grid-area: util;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  position: relative;
}

.global-util-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.global-util-dropdown__trigger {
  display: inline-block;
}

.global-util-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 162px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  display: none;
  z-index: 1600;
  overflow: hidden;
}

.global-util-dropdown__menu a {
  display: block;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.global-util-dropdown__menu a + a {
  border-top: 1px solid #e5e7eb;
}

.global-util-dropdown__menu a:hover {
  background: #f8fafc;
  color: #0f172a;
}

.global-util-dropdown:hover .global-util-dropdown__menu {
  display: block;
}

.global-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.global-menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: #111827;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-form {
  display: inline;
}

.global-link-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.site-main {
  padding: 24px 0 36px;
  min-height: calc(100vh - 74px);
}

.flash-wrap {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.flash-message {
  min-width: 240px;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.2);
  animation: flash-fadeout 2.4s ease forwards;
}

.flash-message.flash-success {
  background: #065f46;
}

@keyframes flash-fadeout {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  12%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.muted {
  color: var(--muted);
}

.errorlist {
  color: #b42318;
}

.global-help {
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 36px;
}

.global-help__inner {
  padding: 54px 20px 62px;
  text-align: center;
}

.global-help__title {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.global-help__desc {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.8;
  color: #1f2937;
}

.global-help__hours {
  margin: 12px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: #111827;
}

.global-help__content {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
  color: #111827;
}

.global-help__content h1,
.global-help__content h2,
.global-help__content h3,
.global-help__content h4 {
  margin: 0 0 16px;
  line-height: 1.2;
}

.global-help__content p {
  margin: 12px 0;
}

.global-help__content img {
  max-width: 100%;
  height: auto;
}

.site-popup-layer {
  position: relative;
  z-index: 1400;
}

.site-popup {
  position: fixed;
  background: #fff;
  border: 1px solid #d8dde6;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.site-popup__x {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  width: 28px;
  height: 28px;
  font-size: 20px;
  line-height: 1;
  color: #374151;
  cursor: pointer;
}

.site-popup__image-link,
.site-popup__image {
  display: block;
  width: 100%;
}

.site-popup__image {
  height: auto;
}

.site-popup__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #e5e7eb;
}

.site-popup__actions button {
  border: 0;
  background: #fff;
  padding: 14px 8px;
  font-size: 18px;
  color: #111827;
  cursor: pointer;
}

.site-popup__actions button + button {
  border-left: 1px solid #e5e7eb;
}

.talk-consult {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 1450;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.talk-consult__button {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.18));
}

.talk-consult__button img {
  display: block;
  width: min(176px, 38vw);
  height: auto;
}

.talk-consult__toast {
  max-width: min(260px, calc(100vw - 48px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.global-help__business {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.global-help__business p {
  margin: 0;
}

.global-help__business strong {
  margin-right: 8px;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .global-header__inner {
    position: relative;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas: "menu-btn logo util-btn";
    height: 68px;
    padding: 12px 0;
    gap: 10px;
  }

  .global-menu-toggle--left {
    grid-area: menu-btn;
    justify-self: start;
  }

  .global-menu-toggle--right {
    grid-area: util-btn;
    justify-self: end;
  }

  .global-logo {
    justify-self: center;
    text-align: center;
    font-size: 34px;
    white-space: nowrap;
  }

  .flash-wrap {
    top: 86px;
  }

  .global-menu-toggle {
    display: inline-flex;
  }

  .global-menu,
  .global-util {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    z-index: 1400;
    width: min(240px, calc(100vw - 28px));
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
  }

  .global-header.is-mobile-menu-open .global-menu,
  .global-header.is-mobile-util-open .global-util {
    display: flex;
  }

  .global-menu {
    left: 0;
  }

  .global-util {
    right: 0;
  }

  .global-menu a,
  .global-util > a,
  .global-link-btn,
  .global-util-dropdown__trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 8px;
    font-size: 15px;
    border-radius: 10px;
  }

  .inline-form {
    display: block;
    width: 100%;
  }

  .global-util {
    justify-self: stretch;
    gap: 6px;
    font-size: 15px;
  }

  .global-util-dropdown {
    display: block;
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .global-util-dropdown__menu {
    position: static;
    display: grid;
    margin-top: 6px;
    min-width: 0;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    overflow: hidden;
  }

  .global-util-dropdown__menu a {
    padding: 12px 14px;
    font-size: 14px;
    min-height: 0;
  }

  .site-main {
    padding-top: 18px;
    min-height: auto;
  }

  .global-help__inner {
    padding: 38px 20px 44px;
  }

  .global-help__business {
    font-size: 13px;
    gap: 6px;
  }

  .global-help__title {
    font-size: 28px;
  }

  .global-help__desc {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.7;
  }

  .global-help__hours {
    font-size: 16px;
  }

  .site-popup {
    top: max(88px, calc(env(safe-area-inset-top) + 16px)) !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: min(calc(100vw - 24px), 420px) !important;
    max-height: calc(100svh - 112px);
    overflow: auto;
  }

  .site-popup__actions button {
    padding: 12px 8px;
    font-size: 15px;
  }

  .talk-consult {
    right: 14px;
    bottom: 18px;
  }

  .talk-consult__button img {
    width: min(156px, 42vw);
  }
}

@media (max-width: 480px) {
  .container,
  .global-header .container {
    padding: 0 14px;
  }

  .global-logo {
    font-size: 28px;
    letter-spacing: 1.1px;
  }

  .flash-message {
    min-width: 0;
    font-size: 13px;
  }

  .global-help__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .talk-consult__button img {
    width: min(142px, 44vw);
  }

  .talk-consult__toast {
    max-width: min(220px, calc(100vw - 28px));
    font-size: 12px;
  }
}
