.hdr {
  position: sticky;
  top: 0;
  z-index: 170;
  height: auto;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.hdr .hdr-in {
  width: 100%;
  max-width: 1240px;
  height: 78px;
  margin: 0 auto;
  padding: 0 32px;
}

.hdr .logo {
  height: 35px;
  width: auto;
}

.hdr .nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hdr .nav a {
  color: #37425c;
  font-size: 16px;
  font-weight: 600;
}

.hdr .hamb {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hdr .hamb span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.hdr .drawer {
  display: none;
}

.dmodal-ov {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 28, 52, 0);
  backdrop-filter: blur(0);
  transition: background 1.1s ease, backdrop-filter 1.1s ease;
}

.dmodal-ov.on {
  display: flex;
}

.dmodal-ov.show {
  background: rgba(11, 28, 52, 0.45);
  backdrop-filter: blur(3px);
}

.dmodal {
  width: 100%;
  max-width: 560px;
  opacity: 0;
  transform: translateY(46px) scale(0.97);
  transition: opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1), transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dmodal-ov.show .dmodal {
  opacity: 1;
  transform: none;
}

.dm-close {
  margin-left: auto;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dmodal .chat {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 20, 38, 0.35);
}

.dmodal .chat-head {
  display: flex;
  align-items: center;
  padding: 15px 22px;
  background: linear-gradient(115deg, var(--navy) 0%, #1c4779 58%, #28658a 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
}

.dmodal .chat-body {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
  max-height: min(58vh, 520px);
  padding: 22px;
}

.dmodal .bub {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.65;
}

.dmodal .bub.bot {
  align-self: flex-start;
  border-top-left-radius: 4px;
  background: var(--bg, #f5f6f8);
  color: var(--ink);
}

.dmodal .bub.me {
  align-self: flex-end;
  border-top-right-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.dmodal .chat-chips {
  display: flex;
  align-self: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 95%;
}

.dmodal .chat-chip {
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: #3d4657;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.dmodal .dq-progress {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.ftr {
  padding: 56px 0 40px;
  background: var(--navy2, #0b1c34);
  color: rgba(255, 255, 255, 0.62);
  font-size: inherit;
}

.ftr > .wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.ftr-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ftr-name {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.ftr-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.ftr-ci {
  display: block;
  width: 180px;
  height: auto;
  padding: 0;
  background: transparent;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.ftr-tag {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.7;
}

.ftr-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.ftr-col-t {
  margin-bottom: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ftr-col a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
}

.ftr-sns {
  display: flex;
  gap: 12px;
  padding-top: 22px;
}

.ftr-sns a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
}

.ftr-sns svg {
  width: 17px;
  height: 17px;
}

.ftr-bot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 26px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.ftr-plus-info {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
}

.float-stack {
  position: fixed;
  right: 22px;
  bottom: 30px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(15, 36, 67, 0.28);
}

.fbtn svg {
  width: 26px;
  height: 26px;
}

.fbtn-tel {
  background: var(--navy);
}

@media (max-width: 1080px) {
  .hdr .nav,
  .hdr .hdr-r > .btn {
    display: none;
  }

  .hdr .hamb {
    display: flex;
  }

  .hdr .drawer {
    position: static;
    inset: auto;
    display: none;
    width: auto;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: #fff;
    transform: none;
    transition: none;
  }

  .hdr .drawer.open {
    display: block;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 18px 32px 40px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .hdr .drawer.open a {
    display: block;
    padding: 11px 0;
    color: #37425c;
    font-size: 16px;
    font-weight: 600;
  }

  .hdr .drawer .dgroup {
    margin: 14px 0 4px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 640px) {
  .hdr .hdr-in {
    height: 64px;
    padding: 0 20px;
  }

  .hdr .logo {
    height: 29px;
  }

  .hdr .drawer.open {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ftr > .wrap {
    padding: 0 20px;
  }

  .ftr-cols {
    gap: 30px;
  }

  .ftr-sns {
    flex-wrap: wrap;
  }

  .float-stack {
    right: 16px;
    bottom: 32px;
  }

  .fbtn {
    width: 48px;
    height: 48px;
  }
}
