.nit-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--nit-navy);
  color: #fff;
  font-size: 14px;
}

.nit-skip:focus {
  left: 10px;
}

.nit-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--nit-line-soft);
  transition: box-shadow 0.25s ease;
}

.nit-header.is-stuck {
  box-shadow: 0 6px 24px rgba(11, 43, 92, 0.08);
}

.nit-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.nit-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: 120px;
}

.nit-logo img {
  display: block;
  max-height: 48px;
  width: auto;
}

.nit-logo__fallback {
  display: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nit-navy);
}

.nit-logo img[src=""],
.nit-logo img:not([src]),
.nit-logo.is-fallback .nit-logo__img {
  display: none;
}

.nit-logo.is-fallback .nit-logo__fallback {
  display: block;
}

.nit-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nit-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nit-nav__item {
  position: relative;
}

.nit-nav__item > .nit-nav__link {
  position: relative;
}

.nit-nav__link {
  display: block;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #262b34;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nit-nav__link:hover,
.nit-nav__item:hover > .nit-nav__link,
.nit-nav__item:focus-within > .nit-nav__link,
.nit-nav__item.is-open > .nit-nav__link {
  color: var(--nit-navy);
  background: #f1f4f9;
}

.nit-nav__item.is-active > .nit-nav__link {
  color: var(--nit-navy);
}

.nit-nav__item.is-active > .nit-nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--nit-navy);
}

.nit-nav__link:focus-visible,
.nit-nav__sub a:focus-visible {
  outline: 2px solid var(--nit-navy);
  outline-offset: -2px;
}

.nit-nav__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 4px);
  padding-top: 17px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.nit-nav__item:hover > .nit-nav__panel,
.nit-nav__item:focus-within > .nit-nav__panel,
.nit-nav__item.is-open > .nit-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.nit-nav__sub {
  min-width: 232px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--nit-line);
  border-top: 2px solid var(--nit-navy);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 6px rgba(11, 43, 92, 0.05), 0 16px 36px rgba(11, 43, 92, 0.11);
}

.nit-nav__sub li + li {
  border-top: 1px solid var(--nit-line-soft);
}

.nit-nav__sub a {
  position: relative;
  display: block;
  padding: 12px 40px 12px 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--nit-text);
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nit-nav__sub a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.16s ease, right 0.16s ease;
}

.nit-nav__sub a:hover,
.nit-nav__sub a:focus-visible,
.nit-nav__sub a.is-current {
  color: var(--nit-navy);
  background: #f4f6fa;
}

.nit-nav__sub a:hover::after,
.nit-nav__sub a:focus-visible::after {
  opacity: 0.7;
  right: 16px;
}

.nit-nav__sub a.is-current {
  font-weight: 600;
}

.nit-phone {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nit-navy);
  white-space: nowrap;
}

.nit-phone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f4f9;
  color: var(--nit-navy);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nit-phone__icon svg {
  width: 18px;
  height: 18px;
}

.nit-phone:hover .nit-phone__icon {
  background: var(--nit-navy);
  color: #fff;
}

.nit-phone__body {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nit-phone__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--nit-muted);
}

.nit-phone__number {
  display: inline-flex;
  align-items: center;
  gap: 0.02em;
  margin-top: 3px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.nit-phone__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-40px);
  animation: nit-phone-drop 1.2s linear forwards;
  animation-delay: var(--nit-char-delay, 0s);
  will-change: transform, opacity;
}

@keyframes nit-phone-drop {
  0%   { opacity: 0; transform: translateY(-40px); animation-timing-function: cubic-bezier(0.33, 0, 0.2, 1); }
  12%  { opacity: 1; transform: translateY(-24px); animation-timing-function: cubic-bezier(0.33, 0, 0.2, 1); }
  38%  { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1); }
  52%  { transform: translateY(-8px); animation-timing-function: cubic-bezier(0.33, 0, 0.2, 1); }
  66%  { transform: translateY(0); animation-timing-function: cubic-bezier(0.34, 1.2, 0.64, 1); }
  78%  { transform: translateY(-3px); animation-timing-function: cubic-bezier(0.33, 0, 0.2, 1); }
  90%  { transform: translateY(0); animation-timing-function: ease-out; }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nit-phone__char {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.nit-burger {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--nit-line);
  border-radius: 8px;
  background: #fff;
  position: relative;
}

.nit-burger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: #262b34;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.16s ease;
}

.nit-burger span:nth-child(1) { top: 15px; }
.nit-burger span:nth-child(2) { top: 21px; }
.nit-burger span:nth-child(3) { top: 27px; }

.nit-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nit-burger.is-open span:nth-child(2) { opacity: 0; }
.nit-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nit-nav-dim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 20, 38, 0.4);
}

.nit-quickbar {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  width: 76px;
  background: #fff;
  border: 1px solid var(--nit-line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(12, 28, 54, 0.13);
  overflow: hidden;
  text-align: center;
}

.nit-quickbar__head {
  padding: 12px 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--nit-muted);
}

.nit-quickbar__list {
  border-top: 1px solid var(--nit-line-soft);
}

.nit-quickbar__list li + li {
  border-top: 1px solid var(--nit-line-soft);
}

.nit-quickbar__list a,
.nit-quickbar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 13px 4px;
  color: #4a5261;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nit-quickbar__list a:hover {
  background: #f1f4f9;
  color: var(--nit-navy);
}

.nit-quickbar__ic svg {
  width: 21px;
  height: 21px;
}

.nit-quickbar__btn {
  cursor: default;
  user-select: none;
}

.nit-quickbar__btn--talk .nit-quickbar__tx {
  white-space: nowrap;
  letter-spacing: -0.05em;
}

.nit-quickbar__tx {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nit-quickbar__tel {
  padding: 12px 4px;
  background: var(--nit-navy);
  color: #fff;
}

.nit-quickbar__tel span {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.66);
}

.nit-quickbar__tel a {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nit-quickbar__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 11px 4px;
  border: 0;
  border-top: 1px solid var(--nit-line-soft);
  background: #f8fafc;
  color: #5b6473;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nit-quickbar__top:hover {
  background: #eef2f7;
  color: var(--nit-navy);
}

.nit-quickbar__top svg {
  width: 16px;
  height: 16px;
}

.nit-fixedbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  border-top: 1px solid #e6eaf0;
  background: rgba(255, 255, 255, 0.97);
}

.nit-fixedbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-size: 15px;
  font-weight: 600;
}

.nit-fixedbar__tel {
  flex: 1;
  color: var(--nit-navy);
}

.nit-fixedbar__quote {
  flex: 0 0 44%;
  background: var(--nit-point);
  color: #fff;
}

@media (max-width: 1500px) {
  .nit-quickbar {
    width: 56px;
    right: 8px;
  }

  .nit-quickbar__head,
  .nit-quickbar__tx,
  .nit-quickbar__tel span {
    display: none;
  }

  .nit-quickbar__tel {
    padding: 10px 3px;
  }

  .nit-quickbar__tel a {
    margin-top: 0;
    font-size: 11px;
  }

  .nit-quickbar__list a,
  .nit-quickbar__btn {
    padding: 12px 3px;
  }
}

@media (max-width: 1240px) {
  .nit-nav__link {
    padding: 11px 11px;
    font-size: 15px;
  }

  .nit-header__inner {
    gap: 14px;
  }
}

@media (max-width: 1100px) {
  .nit-burger {
    display: block;
  }

  .nit-header__inner {
    gap: 12px;
    min-height: 68px;
  }

  .nit-logo img {
    max-height: 38px;
  }

  .nit-phone {
    margin-left: auto;
  }

  .nit-phone__number {
    font-size: 18px;
  }

  .nit-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 95;
    display: block;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 12px 10px 28px;
    background: #fff;
    border-top: 1px solid var(--nit-line-soft);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nit-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nit-nav__list {
    display: block;
  }

  .nit-nav__item + .nit-nav__item {
    border-top: 1px solid var(--nit-line-soft);
  }

  .nit-nav__link {
    padding: 16px 40px 16px 8px;
    border-radius: 0;
    font-size: 17px;
  }

  .nit-nav__link:hover,
  .nit-nav__item:hover > .nit-nav__link,
  .nit-nav__item:focus-within > .nit-nav__link,
  .nit-nav__item.is-open > .nit-nav__link,
  .nit-nav__item.is-active > .nit-nav__link {
    background: transparent;
  }

  .nit-nav__item:hover > .nit-nav__link,
  .nit-nav__item:focus-within > .nit-nav__link {
    color: #262b34;
  }

  .nit-nav__item.is-active > .nit-nav__link,
  .nit-nav__item.is-open > .nit-nav__link {
    color: var(--nit-navy);
  }

  .nit-nav__item.is-active > .nit-nav__link::after,
  .nit-nav__item > .nit-nav__link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: auto;
    right: 14px;
    bottom: auto;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-radius: 0;
    background: none;
    border-right: 1.5px solid #8a93a3;
    border-bottom: 1.5px solid #8a93a3;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin-top 0.2s ease;
  }

  .nit-nav__item.is-open > .nit-nav__link::after {
    margin-top: -2px;
    border-color: var(--nit-navy);
    transform: rotate(-135deg);
  }

  .nit-nav__panel {
    position: static;
    transform: none;
    padding: 0 0 10px;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nit-nav__item.is-open > .nit-nav__panel {
    display: block;
    transform: none;
  }

  .nit-nav__sub {
    min-width: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 10px;
    background: var(--nit-bg);
    box-shadow: none;
  }

  .nit-nav__sub li + li {
    border-top-color: #e6eaf0;
  }

  .nit-nav__sub a {
    min-height: 48px;
    padding: 13px 40px 13px 18px;
    white-space: normal;
    font-size: 15px;
  }

  .nit-nav__sub a:hover,
  .nit-nav__sub a:focus-visible,
  .nit-nav__sub a.is-current {
    background: #edf1f6;
  }

  .nit-nav__sub a::after {
    opacity: 0.45;
    right: 18px;
  }

  .nit-nav__sub a:hover::after,
  .nit-nav__sub a:focus-visible::after {
    right: 18px;
  }
}

@media (max-width: 1024px) {
  .nit-quickbar {
    display: none;
  }

  .nit-fixedbar {
    display: flex;
  }

  /* 하단 고정 요소가 푸터 글자를 가리지 않도록 푸터 안쪽에 여백을 둡니다 (푸터 아래 빈 공간 없음) */
  body .nit_footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body.nit-has-fixedbar .nit_footer {
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 460px) {
  .nit-phone__label {
    display: none;
  }

  .nit-phone__number {
    font-size: 17px;
  }

  .nit-logo img {
    max-height: 32px;
  }
}


/* 모바일 상담 배지: 카카오톡 옆 네이버 톡톡은 시각 요소입니다. */
.nit-chatpair { display: none; }

@media (max-width: 1024px) {
  .nit-chatpair {
    position: fixed;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 75;
    display: flex;
    gap: 6px;
  }
  .nit-chatpair__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #dfe5e2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(12, 28, 54, 0.1);
    color: #4a5261;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
  }
  .nit-has-fixedbar .nit-chatpair {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .nit-chatpair__item svg { width: 20px; height: 20px; flex: 0 0 20px; }
  .nit-chatpair__item--talk { cursor: default; user-select: none; }
  .nit-chatpair__item--talk svg { color: #03c75a; }
}

/* 카카오톡 · 네이버 톡톡: 같은 크기의 상담 타일 */
.nit-quickbar__list li.nit-quickbar__chat {
  padding: 6px;
}

.nit-quickbar__list li.nit-quickbar__chat + li.nit-quickbar__chat {
  padding-top: 0;
  border-top: 0;
}

.nit-quickbar__list .nit-quickbar__chat > a,
.nit-quickbar__list .nit-quickbar__chat > .nit-quickbar__btn {
  gap: 2px;
  padding: 10px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.nit-quickbar__list .nit-quickbar__chat > a.nit-quickbar__kakao {
  border-color: #fee500;
  background: #fee500;
  color: #191919;
}

.nit-quickbar__list .nit-quickbar__chat > a.nit-quickbar__kakao:hover {
  border-color: #f5dc00;
  background: #f5dc00;
  color: #191919;
}

.nit-quickbar__list .nit-quickbar__chat > .nit-quickbar__btn--talk {
  border-color: #d6e3dc;
  background: #fff;
}

.nit-quickbar__chat .nit-quickbar__tx {
  font-weight: 700;
}

@media (max-width: 1500px) {
  .nit-quickbar__list li.nit-quickbar__chat {
    padding: 5px;
  }

  .nit-quickbar__list .nit-quickbar__chat > a,
  .nit-quickbar__list .nit-quickbar__chat > .nit-quickbar__btn {
    padding: 9px 2px;
  }
}

@media (max-width: 1024px) {
  .nit-chatpair__item {
    font-weight: 700;
  }

  .nit-chatpair__item--kakao {
    border-color: #fee500;
    background: #fee500;
    color: #191919;
  }

  .nit-chatpair__item--kakao:active {
    background: #f5dc00;
  }
}

/* ---------------------------------------------------------------
   데스크톱 퀵메뉴가 본문을 가리지 않도록 컨테이너 오른쪽 여백 (2026-11-23 fix2)
   퀵메뉴 자체 디자인은 그대로 두고, 폭+우측 간격+16px 여유만 확보합니다.
--------------------------------------------------------------- */
@media (min-width: 1025px) {
  .nit-container {
    padding-right: 106px; /* right 14 + width 76 + 16 */
  }
}

@media (min-width: 1025px) and (max-width: 1500px) {
  .nit-container {
    padding-right: 80px; /* right 8 + width 56 + 16 */
  }
}
