.faq-page {
  min-height: 100vh;
  overflow-x: clip;
  background: #fff;
}

.faq-page #site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.faq-main {
  position: relative;
  z-index: 1;
}

.faq-hero {
  padding: clamp(92px, 10vw, 150px) var(--pad-x) 0;
  text-align: center;
}

.faq-hero__inner,
.faq-list__inner {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.faq-hero h1 {
  margin: 0;
  font-family: Outfit, Pretendard, sans-serif;
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
  color: #111;
  text-wrap: balance;
}

.faq-hero p {
  max-width: 560px;
  margin: 18px auto 0;
  color: #666;
  font-size: 17px;
  line-height: 1.65;
}

.faq-categories {
  padding: 48px var(--pad-x) 0;
}

.faq-categories__inner {
  display: flex;
  width: min(100%, 1040px);
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

.faq-category {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #666;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.faq-category:hover {
  color: #111;
}

.faq-category:active {
  transform: scale(.98);
}

.faq-category.is-active {
  background: #111;
  color: #fff;
}

.faq-list {
  padding: 38px var(--pad-x) var(--sec-y);
}

.faq-list__inner {
  border-top: 1px solid #dedede;
}

.faq-item {
  border-bottom: 1px solid #dedede;
}

.faq-item[hidden] {
  display: none;
}

.faq-item summary {
  display: grid;
  min-height: 88px;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 24px;
  padding: 20px 4px;
  color: #171717;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.02em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #171717;
  font-family: Outfit, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform .3s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 72px 28px 4px;
}

.faq-answer p {
  max-width: 900px;
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

.faq-contact {
  padding: 0 var(--pad-x) var(--sec-y);
}

.faq-contact__box {
  position: relative;
  display: grid;
  width: min(100%, var(--maxw));
  min-height: clamp(460px, 48vw, 760px);
  margin: 0 auto;
  overflow: hidden;
  place-items: center;
  padding: 72px 40px;
  border-radius: 26px;
  background: #161616 url("../../img/home/hero/hero-service-office-locoz.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.faq-contact__video,
.faq-contact__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.faq-contact__video {
  object-fit: cover;
}

.faq-contact__overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .34)),
    radial-gradient(circle at 50% 48%, transparent 0, rgba(0, 0, 0, .1) 58%, rgba(0, 0, 0, .3) 100%);
}

.faq-contact__content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
}

.faq-contact h2 {
  max-width: 680px;
  margin: 0 auto;
  font-family: Outfit, Pretendard, sans-serif;
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.faq-contact p {
  margin: 16px auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.65;
}

.faq-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
  justify-content: center;
}

.faq-contact__button {
  display: inline-flex;
  min-width: 112px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.faq-contact__button--request {
  background: #d64048;
  color: #fff;
}

.faq-contact__button:hover {
  background: #d64048;
  color: #fff;
  transform: translateY(-2px);
}

.faq-contact__button--request:hover {
  background: #fff;
  color: #111;
}

.faq-contact__button:active {
  transform: translateY(0) scale(.98);
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 62px 20px 0;
  }

  .faq-hero h1 {
    font-size: 20px;
    line-height: 1.3;
  }

  .faq-hero p {
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.65;
  }

  .faq-categories {
    padding: 30px 0 0;
    overflow: hidden;
  }

  .faq-categories__inner {
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
    padding: 0 20px 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .faq-categories__inner::-webkit-scrollbar {
    display: none;
  }

  .faq-category {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
  }

  .faq-list {
    padding: 24px 20px 76px;
  }

  .faq-item summary {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 14px;
    padding: 16px 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .faq-item summary::after {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }

  .faq-answer {
    padding: 0 38px 20px 0;
  }

  .faq-answer p {
    font-size: 12.5px;
    line-height: 1.75;
  }

  .faq-contact {
    padding: 0 20px 76px;
  }

  .faq-contact__box {
    min-height: 430px;
    padding: 48px 24px;
    border-radius: 20px;
  }

  .faq-contact h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  .faq-contact p {
    font-size: 12.5px;
  }

  .faq-contact__button {
    min-width: 98px;
    min-height: 40px;
    padding: 0 20px;
    font-size: 12.5px;
  }

  .faq-contact__actions {
    gap: 8px;
    margin-top: 22px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .faq-contact__button {
    transition: none;
  }
}
