/* 공통 헤더: 상단 안내바, 로고, 내비게이션, 모바일 메뉴 */
.topline {
  background: #f5faf5;
  font-size: 12px;
  color: #587066;
}

.top-inner {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-inner div {
  display: flex;
  gap: 22px;
}

.top-inner a:hover {
  color: var(--green);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  z-index: 100;
  border-bottom: 1px solid rgba(230, 239, 231, 0.8);
}

.nav-wrap {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 62px;
  height: 55px;
  object-fit: contain;
  border-radius: 9px;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.brand small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #7a9184;
  margin-top: 5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav > a:not(.nav-cta):hover {
  color: var(--green);
}

.nav-cta {
  padding: 13px 15px;
  background: var(--green);
  color: #fff;
  border-radius: 9px;
  width: 100%;
  transition:
    transform 0.2s,
    background 0.2s;
}

.nav-cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.nav-cta span {
  margin-left: 7px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 15px;
    font-size: 12px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand img {
    width: 52px;
  }
}

@media (max-width: 760px) {
  .top-inner {
    height: 31px;
  }
  .top-inner > span {
    font-size: 9px;
  }
  .top-inner div {
    gap: 12px;
    font-size: 9px;
  }
  .nav-wrap {
    height: 72px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 47px;
    height: 44px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand small {
    font-size: 7px;
  }
  .menu-toggle {
    display: flex;
    width: 43px;
    height: 43px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 11px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
  }
  .main-nav {
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 22px 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 25px #214b2810;
  }
  .main-nav > a {
    padding: 13px 4px;
    border-bottom: 1px solid #f1f4f0;
  }
  .main-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
    padding: 13px;
  }
  .main-nav.open {
    display: flex;
  }
}
