/* ===================== 헤더 ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 300;
  padding: 18px 20px 8px;
  background: transparent;
}
.header__inner {
  max-width: 1842px;
  margin: 0 auto;
  height: 90px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand__logo { height: 50px; width: auto; }
.brand__title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1.3px;
  color: var(--ink);
  white-space: nowrap;
}

.gnb { display: flex; align-items: center; gap: 70px; }
.gnb__item {
  position: relative;
  height: 90px;
  display: flex;
  align-items: center;
}
.gnb__link {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1.1px;
  transition: color 0.15s;
  white-space: nowrap;
}
.gnb__link:hover,
.gnb__item:hover > .gnb__link,
.gnb__link[aria-current="page"] { color: var(--green); }

.gnb__sub {
  position: absolute;
  top: calc(100% - 22px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 148px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 320;
}
.gnb__sub::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.gnb__item:hover > .gnb__sub,
.gnb__item:focus-within > .gnb__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.gnb__sub a {
  display: block;
  padding: 10px 24px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.85px;
  color: var(--ink);
  white-space: nowrap;
  text-align: center;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  border-radius: 0;
}
.gnb__sub a:hover,
.gnb__sub a[aria-current="page"] {
  color: var(--green);
  background: rgba(12, 180, 78, 0.06);
}
.gnb .login-btn--nav { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 210;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__dim {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.header__dim.is-open { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  height: 53px;
  line-height: 1;
  padding: 0 24px 0 6px;
  font-family: var(--font);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1.15px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
}
.login-btn:hover {
  background: #0aa044;
  box-shadow: 0 0 0 2px #0aa044, 0 6px 14px rgba(0, 0, 0, 0.18);
  transform: translateZ(0) translateY(-2px);
}
.login-btn:active { transform: translateZ(0) scale(0.97); }
.login-btn__icon {
  position: relative;
  width: 41px;
  height: 41px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.login-btn__badge { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.login-btn__lock { position: relative; width: 18px; height: auto; display: block; }

/* ===================== 푸터 ===================== */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  padding: 70px 20px 60px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.footer__slogan { font-size: 38px; font-weight: 700; letter-spacing: -1.9px; line-height: 1.4; margin-bottom: 30px; }
.footer__tel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 54px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -1px;
}
.footer__tel-icon { width: 40px; height: 40px; }

.footer__right { display: flex; flex-direction: column; gap: 26px; min-width: 640px; align-items: flex-end; }
.footer__nav { display: flex; gap: 56px; }
.footer__nav a { font-size: 24px; font-weight: 700; letter-spacing: -1.2px; }
.footer__nav a:hover { color: var(--green); }

.footer__contacts { display: flex; gap: 16px; }
.fcontact {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
  color: #fff;
  border-radius: 12px;
  padding: 16px 22px;
  min-width: 200px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.fcontact span { display: block; font-size: 15px; color: rgba(255, 255, 255, 0.75); letter-spacing: -0.75px; margin-bottom: 6px; }
.fcontact strong { display: flex; align-items: center; gap: 8px; font-size: 23px; font-weight: 800; letter-spacing: -1.15px; white-space: nowrap; }
.fcontact__icon { width: 22px; height: 22px; flex-shrink: 0; }

.footer__bottom { display: flex; align-items: center; gap: 40px; }
.footer__policy { color: var(--green); font-weight: 800; font-size: 17px; letter-spacing: -0.85px; }
.footer__terms { color: var(--ink); font-size: 17px; letter-spacing: -0.85px; }
.footer__copy { color: var(--gray); font-size: 16px; letter-spacing: -0.8px; }

/* ===================== 우측 플로팅 위젯 ===================== */
.floating {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 160px;
}
.fwidget {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  padding: 7px;
  transition: transform 0.12s;
}
.fwidget:hover { transform: translateX(-3px); }
.fwidget__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.85px;
  border-radius: 50px;
  padding: 10px 12px 10px 16px;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.fwidget--green .fwidget__pill { background: var(--green); }
.fwidget--orange .fwidget__pill { background: var(--orange); }
.fwidget--blue .fwidget__pill { background: var(--blue); }
.fwidget__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.fwidget__hint img { width: 14px; height: 14px; object-fit: contain; }
.fwidget__caret { width: 7px; height: auto; flex-shrink: 0; transform: scaleX(-1); }

.floating__top {
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 66px;
  height: 66px;
  align-self: center;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.1;
  transition: transform 0.12s;
}
.floating__top-icon { width: 11px; height: auto; transform: rotate(90deg); }
.floating__top:hover { transform: translateY(-3px); }

/* ===================== 반응형 (레이아웃) ===================== */
@media (max-width: 1280px) {
  .header__inner { padding: 16px 24px; gap: 16px; }
  .gnb { gap: 40px; }
  .gnb__link { font-size: 18px; }
  .gnb__sub a { font-size: 15px; padding: 9px 28px; }
  .brand__title { font-size: 22px; }
  .footer__right { min-width: 0; align-items: flex-start; }
  .floating { display: none; }
}

/* 1024~1332px: 푸터를 한 줄(행) 레이아웃으로 유지하며 크기 축소 대응 */
@media (max-width: 1332px) {
  .footer__inner { flex-wrap: nowrap; gap: 40px; }
  .footer__slogan { font-size: 30px; margin-bottom: 22px; }
  .footer__tel { font-size: 42px; gap: 10px; white-space: nowrap; }
  .footer__tel-icon { width: 32px; height: 32px; }
  .footer__right { min-width: 0; align-items: flex-start; gap: 20px; }
  .footer__nav { gap: 28px; }
  .footer__nav a { font-size: 18px; }
  .footer__contacts { gap: 12px; }
  .fcontact { min-width: 0; padding: 14px 16px; }
  .fcontact span { font-size: 14px; }
  .fcontact strong { font-size: 20px; }
  .footer__bottom { gap: 28px; }
}

/* 1190px 이하: 푸터를 세로 스택(일자정렬) + 모바일형 레이아웃으로 전환 */
@media (max-width: 1190px) {
  .footer__inner { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 44px; }
  .footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }
  .footer__nav a {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  .footer__nav a:nth-child(odd) { border-right: 1px solid var(--line); }
  .footer__nav a:nth-last-child(-n+2) { border-bottom: none; }
  .footer__right { width: 100%; align-items: stretch; }
  .footer__contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }
  .fcontact { min-width: 0; width: 100%; padding: 16px 20px; }
  .fcontact span { font-size: 14px; margin-bottom: 4px; }
  .fcontact strong { font-size: 20px; gap: 8px; }
  .fcontact__icon { width: 20px; height: 20px; }
  .footer__bottom { flex-wrap: wrap; gap: 12px 24px; }
  .footer__tel { font-size: 34px; }
  .footer__slogan { font-size: 28px; }
}

@media (max-width: 1024px) {
  .gnb { gap: 26px; }
  .gnb__link { font-size: 17px; }
  .login-btn--header { height: 46px; font-size: 19px; padding: 0 18px 0 5px; }
  .login-btn--header .login-btn__icon { width: 34px; height: 34px; }
}

@media (max-width: 768px) {
  .header__inner { height: 74px; padding: 0 16px; }
  .nav-toggle { display: flex; }
  .login-btn--header { display: none; }
  .gnb {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 100px 28px 32px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 200;
    overflow-y: auto;
  }
  .gnb.is-open { transform: translateX(0); }
  .gnb__item {
    height: auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .gnb__link {
    width: 100%;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 19px;
  }
  .gnb__sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    width: 100%;
    padding: 0 0 8px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .gnb__sub::before { display: none; }
  .gnb__item:hover > .gnb__sub,
  .gnb__item:focus-within > .gnb__sub {
    transform: none;
  }
  .gnb__sub a {
    text-align: left;
    padding: 12px 4px 12px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }
  .gnb__sub a:hover,
  .gnb__sub a[aria-current="page"] {
    background: transparent;
  }
  .gnb .login-btn--nav { display: inline-flex; width: 100%; justify-content: center; margin-top: 20px; }
  .login-btn { font-size: 18px; }
}

@media (max-width: 480px) {
  .header__inner { height: 64px; padding: 0 14px; }
  .brand__logo { height: 36px; }
  .brand__title { font-size: 18px; white-space: normal; }
  .footer__tel { font-size: 28px; }
  .footer__slogan { font-size: 24px; }
  .footer__inner { gap: 40px; }
  .footer__nav a { font-size: 20px; }
  .footer__bottom { gap: 10px 20px; }
  .footer__copy { flex-basis: 100%; }
}

@media (max-width: 360px) {
  .brand__logo { height: 32px; }
  .gnb { width: 86vw; padding: 90px 22px 28px; }
}
