.hh-faq {
  --hh-faq-surface: rgba(255, 255, 255, 0.88);
  --hh-faq-border: rgba(15, 23, 42, 0.12);
  --hh-faq-text: #0f172a;
  --hh-faq-muted: #5c677a;
  --hh-faq-accent: #162233;
  --hh-faq-highlight: rgba(255, 255, 255, 0.58);
  --hh-faq-section-surface: rgba(255, 255, 255, 0.52);
  --hh-faq-section-border: rgba(15, 23, 42, 0.08);
  --hh-faq-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
  --hh-faq-shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
  --hh-faq-focus: rgba(22, 34, 51, 0.4);
  --hh-faq-surface-max-width: 900px;
  --hh-faq-title-size: 1.7rem;
  --hh-faq-section-title-size: 1.22rem;
  --hh-faq-question-size: 1rem;
  --hh-faq-answer-size: 0.96rem;
  --hh-faq-helper-size: 0.94rem;
  font-family: inherit;
  color: var(--hh-faq-text);
}

.hh-faq__surface {
  background: var(--hh-faq-surface);
  border: 1px solid var(--hh-faq-border);
  border-radius: 26px;
  padding: 36px 34px;
  box-shadow: var(--hh-faq-shadow);
  backdrop-filter: blur(12px);
  max-width: var(--hh-faq-surface-max-width);
  margin: 0 auto;
}

.hh-faq__title {
  margin: 0 0 22px;
  font-size: var(--hh-faq-title-size);
  line-height: 1.2;
}

.hh-faq__section {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--hh-faq-section-surface);
  border: 1px solid var(--hh-faq-section-border);
}

.hh-faq__section-title {
  font-size: var(--hh-faq-section-title-size);
  margin: 0 0 16px;
  color: var(--hh-faq-accent);
  letter-spacing: 0.01em;
}

.hh-faq__item {
  border: 1px solid var(--hh-faq-border);
  border-radius: 18px;
  padding: 0;
  margin-bottom: 12px;
  background: var(--hh-faq-highlight);
  transition: border-color 0.3s ease, box-shadow 0.35s ease,
    transform 0.35s ease;
}

.hh-faq__item[open] {
  border-color: rgba(17, 24, 39, 0.2);
  box-shadow: var(--hh-faq-shadow-soft);
}

.hh-faq__question {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: var(--hh-faq-question-size);
  line-height: 1.35;
  letter-spacing: 0.005em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.35s ease;
}

.hh-faq__question::-webkit-details-marker {
  display: none;
}

.hh-faq__question::after {
  content: '+';
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hh-faq-accent);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(22, 34, 51, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
  transition: transform 0.3s ease, background 0.35s ease,
    border-color 0.35s ease;
}

.hh-faq__item[open] > .hh-faq__question::after {
  content: '–';
  transform: rotate(0deg);
  background: rgba(255, 255, 255, 0.9);
}

.hh-faq__item[open] > .hh-faq__question {
  background: rgba(255, 255, 255, 0.5);
}

.hh-faq__answer {
  padding: 0 22px 20px;
  color: var(--hh-faq-muted);
  font-size: var(--hh-faq-answer-size);
}

.hh-faq__answer p {
  margin: 0;
}

.hh-faq__helper-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.05);
  border: 1px solid rgba(31, 41, 55, 0.07);
  color: var(--hh-faq-accent);
  font-size: var(--hh-faq-helper-size);
}

.hh-faq__helper-note strong {
  display: block;
  margin-bottom: 4px;
}

.hh-faq__item:focus-within,
.hh-faq__question:focus-visible {
  outline: 2px solid var(--hh-faq-focus);
  outline-offset: 2px;
}

.hh-faq__item:hover {
  border-color: rgba(22, 34, 51, 0.24);
  box-shadow: var(--hh-faq-shadow-soft);
  transform: translateY(-1.5px);
}

.hh-faq__question:hover::after,
.hh-faq__question:focus-visible::after {
  border-color: rgba(22, 34, 51, 0.3);
  background: rgba(255, 255, 255, 0.92);
}

.hh-faq--compact .hh-faq__surface {
  padding: 24px 20px;
}

.hh-faq--compact {
  --hh-faq-title-size: 1.45rem;
  --hh-faq-section-title-size: 1.08rem;
  --hh-faq-question-size: 0.96rem;
  --hh-faq-answer-size: 0.92rem;
}

.hh-faq--compact .hh-faq__question {
  padding: 14px 18px;
}

.hh-faq--compact .hh-faq__answer {
  padding: 0 18px 16px;
}

.hh-faq--compact .hh-faq__section {
  padding: 16px 18px;
  margin-bottom: 22px;
}

@media (max-width: 640px) {
  .hh-faq__surface {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .hh-faq__title {
    font-size: 1.4rem;
  }

  .hh-faq__section {
    margin-bottom: 20px;
    padding: 14px 14px;
  }

  .hh-faq__question {
    padding: 16px 18px;
  }

  .hh-faq__answer {
    font-size: 0.91rem;
  }
}

@media (min-width: 1024px) {
  .hh-faq {
    --hh-faq-surface: rgba(255, 255, 255, 0.84);
    --hh-faq-border: rgba(15, 23, 42, 0.16);
    --hh-faq-highlight: rgba(255, 255, 255, 0.66);
    --hh-faq-section-surface: rgba(255, 255, 255, 0.62);
    --hh-faq-section-border: rgba(15, 23, 42, 0.12);
    --hh-faq-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
    --hh-faq-shadow-soft: 0 16px 34px rgba(15, 23, 42, 0.14);
    --hh-faq-surface-max-width: 960px;
    --hh-faq-title-size: 1.95rem;
    --hh-faq-section-title-size: 1.47rem;
    --hh-faq-question-size: 1.25rem;
    --hh-faq-answer-size: 1.21rem;
    --hh-faq-helper-size: 1.19rem;
  }

  .hh-faq--compact {
    --hh-faq-title-size: 1.7rem;
    --hh-faq-section-title-size: 1.33rem;
    --hh-faq-question-size: 1.21rem;
    --hh-faq-answer-size: 1.17rem;
    --hh-faq-helper-size: 1.15rem;
  }
}
