/* Container & sections ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-gap) 0; }
.section--soft { background: var(--c-bg-soft); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section__title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.section__desc { margin-top: 10px; color: var(--c-text-sub); font-size: 15px; }

.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--c-line); margin-bottom: 40px; }
.page-head__title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.02em; }
.page-head__desc { margin-top: 10px; color: var(--c-text-sub); }

.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--c-text-muted); margin-bottom: 12px; }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; }

/* Header ------------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 300;
  background: #fff; border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-header); border-bottom-color: transparent; }

.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h); max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
}

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo img { height: 28px; width: auto; }
.logo:hover { color: inherit; }

/* GNB */
.gnb-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.gnb { display: flex; align-items: center; gap: 4px; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: flex; align-items: center; gap: 6px; height: var(--header-h);
  padding: 0 18px; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
}
.gnb > li > a::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 22px; height: 2px;
  background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.gnb > li:hover > a, .gnb > li > a.is-active { color: var(--c-primary); }
.gnb > li:hover > a::after, .gnb > li > a.is-active::after { transform: scaleX(1); }

.gnb__sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 168px; padding: 10px; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
}
.gnb > li:hover .gnb__sub, .gnb > li.is-open .gnb__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb__sub a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14.5px; color: var(--c-text-sub); }
.gnb__sub a:hover { background: var(--c-primary-soft); color: var(--c-primary); }

.gnb__ico { display: inline-flex; width: 18px; height: 18px; }
.gnb__ico--live { color: var(--c-live); }

.header__util { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header__util .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.header__me { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.header__me strong { font-weight: 700; }

.header__burger {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 8px;
}
.header__burger span { display: block; width: 20px; height: 2px; background: var(--c-text); position: relative; }
.header__burger span::before, .header__burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--c-text);
}
.header__burger span::before { top: -6px; }
.header__burger span::after { top: 6px; }

/* Mobile drawer ----------------------------------------------------------- */
.m-drawer { position: fixed; inset: 0; z-index: 500; visibility: hidden; }
body.drawer-open { overflow: hidden; }
body.drawer-open .m-drawer { visibility: visible; }

.m-drawer__dim {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .25s var(--ease);
}
body.drawer-open .m-drawer__dim { opacity: 1; }

.m-drawer__panel {
  position: absolute; top: 0; right: 0; width: min(88vw, 380px); height: 100%;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s var(--ease);
}
body.drawer-open .m-drawer__panel { transform: translateX(0); }

.m-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h-m); padding: 0 16px; border-bottom: 1px solid var(--c-line);
}
.m-drawer__close { width: 40px; height: 40px; font-size: 22px; line-height: 1; }
.m-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 0 40px; }
.m-drawer__group + .m-drawer__group { border-top: 8px solid var(--c-bg-soft); }
.m-drawer__title { padding: 18px 20px 8px; font-size: 13px; font-weight: 800; color: var(--c-text-muted); letter-spacing: .04em; }

.m-acc__btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 20px; font-size: 16px; font-weight: 700; text-align: left;
}
.m-acc__btn::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--c-text-muted); border-bottom: 2px solid var(--c-text-muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.m-acc.is-open .m-acc__btn::after { transform: rotate(225deg) translate(-2px, -2px); }
.m-acc__panel { display: none; padding: 0 20px 12px; }
.m-acc.is-open .m-acc__panel { display: block; }
.m-acc__panel a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--c-text-sub); }
.m-acc__panel a:hover { background: var(--c-primary-soft); color: var(--c-primary); }

.m-drawer__link { display: block; padding: 14px 20px; font-size: 16px; font-weight: 700; }
.m-drawer__foot { padding: 16px 20px 28px; border-top: 1px solid var(--c-line); display: grid; gap: 10px; }

/* Footer ------------------------------------------------------------------ */
.footer { margin-top: 80px; background: var(--c-bg-soft); border-top: 1px solid var(--c-line); }
.footer__top { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)) 1fr; gap: 40px; padding: 48px 0 36px; }
.footer__col-title { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer__col li + li { margin-top: 9px; }
.footer__col a { font-size: 14px; color: var(--c-text-sub); }
.footer__cs { justify-self: end; text-align: right; }
.footer__tel { display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--c-text); }
.footer__cs-desc { margin-top: 6px; font-size: 13.5px; color: var(--c-text-sub); }

.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.footer__links a { font-size: 13.5px; color: var(--c-text-sub); }
.footer__links a.is-strong { font-weight: 700; color: var(--c-text); }

.footer__bottom { padding: 26px 0 48px; font-size: 13px; color: var(--c-text-muted); }
.footer__bottom p + p { margin-top: 6px; }
.footer__info { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Loader ------------------------------------------------------------------ */
#loader {
  position: fixed; inset: 0; z-index: 900; display: none;
  align-items: center; justify-content: center; background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(2px);
}
body.is-loading #loader { display: flex; }
.loader__spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid var(--c-primary-soft); border-top-color: var(--c-primary);
  animation: loader-spin .8s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header__inner { height: var(--header-h-m); gap: 12px; }
  .gnb-nav, .header__util .btn--login-text { display: none; }
  .header__burger { display: flex; }
  .header__util { margin-left: auto; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .footer__cs { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 560px) {
  .logo { font-size: 17px; }
  .logo img { height: 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 28px; }
  .footer__tel { font-size: 26px; }
  .section__head { flex-direction: column; align-items: flex-start; }
}
