:root {
  --red: #e60012;
  --red-dark: #c41c14;
  --navy: #191919;
  --navy2: #1b2030;
  --ink: #191919;
  --gray: #6b6f76;
  --line: #e1e1e1;
  --line-light: #e1e1e1;
  --bg-soft: #f6f6f8;
  --pink: #fbeaf0;
  --title-h2: 40px;
  --white: #fff;
}

/* ==================== RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-break: keep-all;
  
}

body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
  color: var(--ink);
  line-height: 1.5;
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==================== LAYOUT UTIL ==================== */
.wrap {
  max-width: 1420px;
  margin: 0 auto;
}

.accent {
  color: var(--red);
  font-weight: 800;
}

/* 섹션 공통 여백 (서브페이지 콘텐츠 블록에도 재사용) */
section {
  padding: 80px 20px;
}

/* 섹션 대제목 (pain/solutions/stats/solved/checklist 등에서 공통 사용) */
.sec-title {
  font-size: var(--title-h2);
  font-weight: 600;
  line-height: 1.4;
}

/* ==================== HEADER ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  padding: 0 20px;
  background: #171717 !important;
  z-index: 1000;
  box-sizing: border-box;
}

header.scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.header-inner {
  width: 100%;
  max-width: 1420px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==================== LOGO ==================== */

.logo {
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==================== PC GNB ==================== */

.gnb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  width: 1050px;
  height: 100%;
  margin: 0;
}

.gnb-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;
  gap: 0;

  list-style: none;
}

.gnb-list > li {
  position: relative;
  font-family: 'pretendard';
  display: flex;
  align-items: center;
  width: 100%;
}

.gnb-list > li > a {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  padding: 0 15px;

  color: #fff;
  font-family: 'pretendard';
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;

  box-sizing: border-box;
}

/* 활성 메뉴 빨간 밑줄 */
.gnb-list > li > a::after {
  content: "";
  position: absolute;
  /* left: 15px;
  right: 15px; */
  bottom: 0;

  height: 3px;
  width: 100%;

  background: #e60023;

  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.gnb-list > li:hover > a::after,
.gnb-list > li > a.active::after {
  transform: scaleX(1);
}

/* 기존 hover 배경 제거 */
.gnb-list > li > a:hover,
.gnb-list > li:hover > a {
  background: transparent;
  color: #fff;
}

/* ==================== MEGA MENU ==================== */

.mega-menu {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.82),
      rgba(0, 0, 0, 0.82)
    ),
    url("/images/main/main-bg.jpg") center / cover no-repeat;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  font-family: 'pretendard';
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;

  z-index: 999;
}

/* 열기 */
.gnb:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.mega-menu-inner {
 width: 1050px;
 max-width: none;
  margin: 0 auto;
  padding: 20px 0;
  font-family: 'pretendard';
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;

  box-sizing: border-box;
}
.mega-menu-inner .mega-title {
  margin-bottom: 20px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

/* 각 메뉴 컬럼 */
.mega-menu-inner > ul {
  margin: 0;
  padding: 0 24px;

  list-style: none;

  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.mega-menu-inner > ul:first-child {
  display: grid;
  /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
  column-gap: 20px;
  align-content: start;
  gap: 10px;
}
.mega-menu-inner > ul:not(:first-child){
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mega-menu-inner > ul:first-child .mega-title {
  grid-column: 1 / -1;
    margin-bottom: 20px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}
/* 기존 li 간격 조정 */

.mega-menu-inner > ul:last-child {
  border-right: 0;
}

.mega-menu-inner > ul > li {
  margin: 0;

}

.mega-menu-inner > ul > li:last-child {
  margin-bottom: 0;
}

.mega-menu-inner > ul > li > a {
  color: #d1d1d1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;

  text-decoration: none;

  transition: color 0.2s ease;
}

.mega-menu-inner > ul > li > a:hover {
  color: #fff;
}

/* ==================== HEADER RIGHT ==================== */

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;

  flex-shrink: 0;
}

.phone-badge {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #fff;

  font-size: 26px;
  font-weight: 800;

  text-decoration: none;
  white-space: nowrap;
  /* width: 180px; */
}
.phone-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--white);
  fill: currentColor;
}
.burger {
  display: none;
}
.mobile-nav{
  display: none;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 1240px) {

  header {
    height: 72px;
    padding: 0 18px;
  }

  .header-inner {
    max-width: none;
  }

  /* PC 메뉴 숨김 */
  .gnb {
    display: none;
  }

  /* 로고 */
  .logo img {
    width: 155px;
  }

  .header-right {
    gap: 18px;
  }

  .phone-badge {
    font-size: 25px;
    font-weight: 800;
  }

  /* 햄버거 */
  .burger {
    position: relative;

    display: block;

    width: 24px;
    height: 24px;

    padding: 0;
    border: 0;

    background: transparent;

    cursor: pointer;
  }

  .burger span {
    position: absolute;
    left: 0;

    width: 24px;
    height: 2px;

    background: #fff;
  }

  .burger span:nth-child(1) {
    top: 4px;
  }

  .burger span:nth-child(2) {
    top: 11px;
  }

  .burger span:nth-child(3) {
    top: 18px;
  }


  /* ================= MOBILE MENU ================= */

  .mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;

    display: none;

    background:
      linear-gradient(
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.78)
      ),
      url("/images/main/main-bg.jpg") center top / cover no-repeat;

    overflow-y: auto;

    z-index: 999;
  }

  .mobile-nav.open {
    display: block;
  }

  .mobile-nav-panel {
    position: static;

    width: 100%;
    max-width: none;
    height: auto;
    min-height: 100%;

    padding: 35px 18px 60px;

    background: transparent;

    box-shadow: none;

    box-sizing: border-box;
  }

  /* 기존 패널 X 버튼 숨김
     상단 burger를 X로 변경해서 사용 */
  .mobile-nav-close {
    display: none;
  }


  /* ================= 2열 메뉴 ================= */

  .mobile-gnb {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 38px 30px;

    margin: 0;
    padding: 0;

    list-style: none;
  }

  .mobile-gnb > li {
    border: 0;
  }

  /* 메뉴 제목 */
  .mobile-gnb-title {
    display: block;

    width: 100%;

    padding: 0 0 22px;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 21px;
    font-weight: 800;

    text-align: left;

    cursor: default;
  }

  /* 화살표 제거 */
  .mobile-gnb-arrow {
    display: none;
  }


  /* ================= 2DEPTH 항상 노출 ================= */

  .mobile-depth2,
  .mobile-gnb > li.on > .mobile-depth2 {
    display: block;

    margin: 0;
    padding: 0;

    list-style: none;
  }


  .mobile-depth2 li {
    margin: 0 0 10px;
  }

  .mobile-depth2 a {
    display: block;

    padding: 0;

    color: #d0d0d0;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    text-decoration: none;
  }

  .mobile-depth2 a:hover {
    color: #fff;
  }

  /* 하단 전화버튼 제거 */
  .mobile-phone {
    display: none;
  }


  /* ================= 메뉴 열린 상태 ================= */

  body:has(.mobile-nav.open) .burger span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
  }

  body:has(.mobile-nav.open) .burger span:nth-child(2) {
    opacity: 0;
  }

  body:has(.mobile-nav.open) .burger span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
  }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 767px) {

  header {
    padding: 0 18px;
  }

  .logo img {
    width: 140px;
  }

  .phone-badge {
    font-size: 18px;
  }
  .phone-badge svg {
    display: none;
  }

  .mobile-nav-panel {
    padding: 40px 18px 60px;
  }

  .mobile-gnb {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px 28px;
  }
 .mobile-gnb > li:first-child > .mobile-depth2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* gap: 18px 15px; */
  }
   .mobile-gnb > li + li{
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
   }
  .mobile-gnb-title {
    font-size: 20px;
    padding-bottom: 22px;
  }


  .mobile-depth2 a {
    font-size: 14px;
  }
}

/* ==================== 맨 위로 버튼 ==================== */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 18px;
  cursor: pointer;
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

#toTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#toTop:hover {
  background: var(--red);
}

/* ==================== 버튼 컴포넌트 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 24px;
  border: none;
  cursor: pointer;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  font-family: inherit;
}

.btn-phone {
  background: var(--bg-soft);
  color: var(--red);
  font-family: inherit;
}

.btn-yellow {
  background: #f4d43a;
  color: #1a1a1f;
}

/* ==================== 공통 애니메이션 / 인터랙션 컴포넌트 ==================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal:nth-child(1) {
  transition-delay: .05s;
}

.reveal-group .reveal:nth-child(2) {
  transition-delay: .15s;
}

.reveal-group .reveal:nth-child(3) {
  transition-delay: .25s;
}

.reveal-group .reveal:nth-child(4) {
  transition-delay: .35s;
}

.reveal-group .reveal:nth-child(5) {
  transition-delay: .45s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (max-width: 1240px) {
  #tel-header-shell .mobile-nav {
    position: fixed;
    inset: 72px 0 0;
    width: 100%;
    height: calc(100dvh - 72px);
    background: #171717;
    z-index: 9999;
    overflow-y: auto;
  }

  #tel-header-shell .mobile-nav.open {
    display: block;
  }

  #tel-header-shell .mobile-nav-panel {
    min-height: 100%;
    background: #171717;
  }
}
/* 기존 헤더의 ::after 가상 요소 제거 */
#tel-header-shell #siteHeader::after {
  content: none !important;
  display: none !important;
}