.top-line {
  height: 4px;
  background: #000000;
}

.mobile-first-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas: "logo quick contact";
  gap: clamp(8px, 2vw, 18px);
  justify-items: start;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line, #e7e7e7);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 clamp(12px, 3vw, 18px);
  backdrop-filter: blur(16px);
}

.logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: auto;
  min-width: 0;
  color: #111111;
  font-size: clamp(21px, 5.5vw, 27px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.logo span {
  display: block;
}

.header-contact {
  grid-area: contact;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.header-quick-nav {
  grid-area: quick;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0;
}

.header-quick-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #111111;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.header-quick-link:hover,
.header-quick-link:focus-visible,
.header-quick-link[aria-current="page"] {
  border-color: rgba(0, 0, 0, 0.12);
  background: #f5f7f6;
  outline: 0;
}

.header-quick-link:hover {
  transform: translateY(-1px);
}

.header-quick-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.header-quick-illustration {
  width: 34px;
  height: 34px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line, #e7e7e7);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
}

.contact-phone {
  min-width: auto;
  width: auto;
  padding: 0 14px;
  gap: 8px;
}

.contact-phone strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.contact-phone-desktop {
  display: none;
}

.contact-action .lucide {
  width: 19px;
  height: 19px;
  stroke-width: 2.3;
}

.contact-kakao span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 901px) {
  .top-line {
    height: 2px;
  }

  .mobile-first-header {
    gap: 24px;
    min-height: 64px;
    padding: 0 max(28px, calc((100vw - 1120px) / 2));
  }

  .logo {
    justify-self: start;
    font-size: 25px;
  }

  .header-quick-link {
    width: 44px;
    height: 44px;
  }

  .header-quick-illustration {
    width: 36px;
    height: 36px;
  }

  .contact-phone {
    gap: 8px;
    width: auto;
    min-width: 0;
    padding: 0 14px;
  }

  .contact-phone-mobile {
    display: none;
  }

  .contact-phone-desktop {
    display: inline-flex;
    cursor: pointer;
  }

  .contact-phone strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
  }
}

@media (max-width: 760px) {
  .mobile-first-header {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 7px;
  }

  .logo {
    font-size: 20px;
  }

  .contact-phone {
    padding: 0 10px;
  }

  .contact-phone strong {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .mobile-first-header {
    gap: 6px;
    min-height: 58px;
    padding: 0 10px;
  }

  .logo {
    font-size: 18px;
  }

  .header-contact {
    gap: 6px;
  }

  .contact-action {
    min-width: 36px;
    height: 36px;
  }

  .contact-phone {
    width: 36px;
    padding: 0;
    gap: 0;
  }

  .contact-phone strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .contact-action .lucide {
    width: 17px;
    height: 17px;
  }

  .header-quick-nav {
    gap: 0;
  }

  .header-quick-link {
    width: 38px;
    height: 38px;
  }

  .header-quick-illustration {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 390px) {
  .mobile-first-header {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 5px;
    padding: 0 8px;
  }

  .logo {
    font-size: 16px;
  }

  .header-quick-nav {
    gap: 0;
  }

  .header-quick-link {
    width: 34px;
    height: 34px;
  }

  .header-quick-illustration {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 340px) {
  .logo {
    font-size: 15px;
  }

  .contact-kakao {
    display: none;
  }
}
