/* ==========================================================================
   11 FAQ — split: sticky title + contact card / numbered accordion
   ========================================================================== */
#faq .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* ---------- left column ---------- */
#faq .faq-side { padding: var(--pad); }
#faq .faq-side-in {
  position: sticky; top: calc(var(--nav-h) + 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
}
#faq .faq-head { display: grid; gap: 22px; justify-items: start; }
#faq .faq-head .lead { max-width: 400px; }

#faq .faq-card {
  position: relative; display: grid; gap: 14px; justify-items: start; padding: 22px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: inset 0 0 0 1px var(--line-2);
  border-radius: 2px;
}
#faq .faq-card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 4px; }
#faq .faq-avatars { display: inline-flex; }
#faq .faq-avatars i {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg-3); margin-left: -9px;
  background: linear-gradient(135deg, #8f8f8f, #3a3a3a);
}
#faq .faq-avatars i:first-child { margin-left: 0; background: linear-gradient(135deg, #5a5a5a, #1f1f1f); }
#faq .faq-avatars i:last-child { background: linear-gradient(135deg, #ededed, #8f8f8f); }
#faq .faq-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
#faq .faq-card-t { font-size: 20px; letter-spacing: -0.035em; line-height: 1.25; color: var(--text); }
#faq .faq-card-t span { color: var(--text-2); }
#faq .faq-mail { font-size: 13px; color: var(--text); border-bottom: 1px dashed var(--line-3); padding-bottom: 2px; transition: color .3s, border-color .3s; }
#faq .faq-mail:hover { border-color: var(--text-2); }
#faq .faq-card .btn { margin-top: 6px; }

/* ---------- accordion ---------- */
#faq .faq-list { display: flex; flex-direction: column; }
#faq .faq-item { position: relative; border-top: 1px solid var(--line); transition: background .5s var(--ease-out); }
#faq .faq-item:first-child { border-top: 0; }
#faq .faq-item::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; z-index: 1;
  background: linear-gradient(90deg, var(--accent), rgba(236,63,42,.45) 28%, transparent 60%);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out);
}
#faq .faq-item.is-open { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 80%); }
#faq .faq-item.is-open::before { transform: scaleX(1); }
#faq .faq-item h3 { font: inherit; }

#faq .faq-q {
  width: 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr) 32px; align-items: center; gap: 12px;
  padding: 26px var(--pad); text-align: left;
}
#faq .faq-n { color: var(--text-3); transition: color .4s; }
#faq .faq-t { font-size: clamp(17px, 1.45vw, 20px); letter-spacing: -0.03em; line-height: 1.3; color: var(--text-2); transition: color .4s; }
#faq .faq-q:hover .faq-t, #faq .faq-item.is-open .faq-t { color: var(--text); }
#faq .faq-item.is-open .faq-n { color: var(--text-2); }
#faq .faq-q:focus-visible { outline-offset: -4px; }

#faq .faq-ic {
  position: relative; width: 32px; height: 32px; border-radius: 6px;
  background: transparent; box-shadow: 0 0 0 1px var(--line-2);
  transition: background .15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .15s cubic-bezier(0.4, 0, 0.2, 1);
}
#faq .faq-ic::before, #faq .faq-ic::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px;
  background: var(--text-2); border-radius: 1px;
  transition: transform .6s var(--ease-out), background .15s;
}
#faq .faq-ic::after { transform: rotate(90deg); }
#faq .faq-item.is-open .faq-ic::before { transform: rotate(45deg); }
#faq .faq-item.is-open .faq-ic::after { transform: rotate(135deg); }
#faq .faq-q:hover .faq-ic { background: #1f1f1f; box-shadow: 0 0 0 1px #2e2e2e; }
#faq .faq-q:hover .faq-ic::before, #faq .faq-q:hover .faq-ic::after { background: var(--text); }
#faq .faq-item.is-open .faq-ic { background: #ededed; box-shadow: 0 0 0 1px #ededed; }
#faq .faq-item.is-open .faq-ic::before, #faq .faq-item.is-open .faq-ic::after { background: #0a0a0a; }

/* height animation: grid-rows 0fr -> 1fr */
#faq .faq-a {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .6s var(--ease-out), visibility 0s .6s;
}
#faq .faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s var(--ease-out), visibility 0s; }
#faq .faq-a-in { overflow: hidden; min-height: 0; }
#faq .faq-a p {
  padding: 0 calc(var(--pad) + 44px) 30px calc(var(--pad) + 88px);
  color: var(--text-2); font-size: 15.5px; line-height: 1.65; max-width: 720px;
  opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .6s var(--ease-out);
}
#faq .faq-item.is-open .faq-a p { opacity: 1; transform: none; transition-delay: .08s; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  #faq .faq-grid { grid-template-columns: 1fr; }
  #faq .faq-side-in { position: static; gap: 36px; }
  #faq .faq-side { padding-block: 36px; }
  #faq .faq-card { max-width: 440px; }
  #faq .faq-item:first-child { border-top: 0; }
}
/* tablet: heading + lead on the left, contact card on the right, so the side cell has no empty half */
@media (min-width: 768px) and (max-width: 991px) {
  #faq .faq-side-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; column-gap: 40px; }
  #faq .faq-card { max-width: none; }
}
@media (max-width: 767px) {
  #faq .faq-side { padding: 28px 20px; }
  #faq .faq-q { grid-template-columns: minmax(0, 1fr) 30px; row-gap: 8px; padding: 22px 20px; }
  #faq .faq-n { grid-column: 1 / -1; }
  #faq .faq-ic { grid-column: 2; grid-row: 2; width: 30px; height: 30px; }
  #faq .faq-t { grid-row: 2; }
  #faq .faq-a p { padding: 0 20px 24px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #faq .faq-a, #faq .faq-item.is-open .faq-a, #faq .faq-a p, #faq .faq-ic::before, #faq .faq-ic::after, #faq .faq-item::before { transition: none; }
}
