/* ===========================================================
   PHARMATAC — FAQ page (Figma 2935-50977, extends styles.css)
   =========================================================== */

.faq-section { display: flex; justify-content: center; padding: 52px 32px 100px; }
.faq-wrap { width: 100%; max-width: 916px; }

.faq-title {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.faq-search input {
  width: 100%;
  height: 52px;
  border: 1px solid #A9A9A9;
  background: #EBEBEB;
  border-radius: 200px;
  padding: 0 24px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.faq-search input::placeholder { color: #666866; }

.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.faq-cat {
  border: 1px solid #A9A9A9;
  background: #fff;
  color: #666866;
  border-radius: 200px;
  padding: 9px 17px;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
}
.faq-cat.is-active { background: #161616; border-color: #161616; color: #fff; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: #fff;
  border: 1px solid #A9A9A9;
  border-radius: 8px;
  padding: 21px 25px;
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
}
.faq-item__q svg { flex: none; color: var(--ink); transition: transform .2s ease; }
.faq-item.is-open .faq-item__q svg { transform: rotate(180deg); }

.faq-item__a { padding: 8px 32px 0 0; }
.faq-item__a-text { font-size: 16px; line-height: 1.3; color: #666866; }
.faq-item__a-text p { margin: 0 0 8px; }
.faq-item__a-text p:last-child { margin-bottom: 0; }
.faq-item__tag {
  display: inline-block;
  margin-top: 8px;
  background: #EBEBEB;
  border-radius: 200px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
  color: #666866;
}

.faq-empty { text-align: center; color: var(--text-gray); font-size: 16px; padding: 24px 0; }

.faq-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding-top: 12px; }
.faq-pagination button {
  width: 40px;
  height: 40px;
  border-radius: 200px;
  border: 1px solid #A9A9A9;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.faq-pagination button.is-active { background: #004120; border-color: #004120; color: #fff; }
.faq-pagination button:disabled { opacity: .4; cursor: default; }

@media (max-width: 640px) {
  .faq-section { padding: 32px 20px 64px; }
  .faq-title { font-size: 24px; }
  .faq-cat { font-size: 14px; padding: 8px 14px; }
  .faq-item { padding: 16px 18px; }
}
