.faq-main {
  max-width: 1120px;
  align-self: center;
}

.faq-header {
  max-width: 760px;
  margin-bottom: 30px;
}

.faq-eyebrow {
  margin: 0 0 11px;
  color: var(--ui-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.faq-eyebrow span {
  margin: 0 7px;
  color: var(--ui-disabled);
}

.faq-header h1 {
  margin: 0;
  color: var(--ui-text);
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.faq-header p:last-child {
  margin: 12px 0 0;
  color: var(--ui-muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ui-border);
}

.faq-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ui-border);
  border-radius: 5px;
  background: transparent;
  color: var(--ui-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.faq-tab:hover,
.faq-tab:focus-visible {
  border-color: var(--ui-muted);
  color: var(--ui-text);
}

.faq-tab.is-active {
  border-color: var(--ui-accent);
  background: var(--ui-accent);
  color: var(--ui-accent-ink);
}

.faq-tab:focus-visible,
.faq-contact a:focus-visible {
  outline: 2px solid var(--ui-muted);
  outline-offset: 3px;
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-item {
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  background: var(--ui-surface);
  transition: border-color 180ms ease, background-color 280ms ease;
}

.faq-item[open] {
  border-color: var(--ui-muted);
  background: var(--ui-hover);
}

.faq-item.is-expanded summary b { transform: rotate(45deg); }

.faq-item summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  color: var(--ui-text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary b {
  flex: 0 0 auto;
  color: var(--ui-muted);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

.faq-item[open] summary b {
  color: var(--ui-text);
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 900px;
  margin: 0;
  padding: 0 56px 22px 20px;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.8;
  animation: faq-answer-in 260ms ease both;
}

.faq-item.is-hidden {
  display: none;
}

.faq-contact {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 0 20px;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  color: var(--ui-muted);
  font-size: 13px;
}

.faq-contact a {
  color: var(--ui-text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .faq-main {
    max-width: none;
  }

  .faq-header h1 {
    font-size: 34px;
  }

  .faq-header p:last-child {
    font-size: 13px;
  }

  .faq-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .faq-tab {
    flex: 0 0 auto;
  }

  .faq-item summary {
    min-height: 58px;
    padding: 14px 15px;
    font-size: 13px;
  }

  .faq-item p {
    padding: 0 15px 18px;
    font-size: 13px;
  }

  .faq-contact {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 14px;
  }
}

@keyframes faq-answer-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }