/* ================================================
   MY Tattoo Studio — faq-page.css
   ================================================ */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.faq-page {
  flex: 1;
  padding-top: 48px;
  padding-bottom: 80px;
  max-width: 820px;
}

.faq-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c10000;
  margin-bottom: 8px;
}

.faq-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.faq-subtitle {
  color: #888;
  font-size: 0.95rem;
}

/* Категорії фільтрів */
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.faq-cat-btn {
  padding: 8px 20px;
  border: 1.5px solid #333;
  background: transparent;
  color: #aaa;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.04em;
}

.faq-cat-btn:hover {
  border-color: #b30000;
  color: #fff;
}

.faq-cat-btn.active {
  background: #b30000;
  border-color: #b30000;
  color: #fff;
}

/* Групи питань */
.faq-group {
  margin-bottom: 40px;
}

.faq-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e1e1e;
}

/* Акордеон */
.faq-accordion {
  border: none;
}

.faq-item {
  background: #111;
  border: 1px solid #1e1e1e !important;
  border-radius: 10px !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-button {
  background: #111 !important;
  color: #ddd !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px !important;
  box-shadow: none !important;
  padding: 18px 20px;
}

.faq-button:not(.collapsed) {
  background: #1a1a1a !important;
  color: #fff !important;
}

.faq-button::after {
  filter: invert(1);
}

.faq-body {
  background: #111;
  color: #bbb;
  font-size: 0.92rem;
  line-height: 1.75;
  padding: 0 20px 20px;
}

.faq-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #bbb;
}

.faq-list li {
  margin-bottom: 6px;
}

.faq-link {
  color: #e05555;
  text-decoration: underline;
}

.faq-link:hover {
  color: #ff6b6b;
}

/* CTA блок */
.faq-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px 24px;
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
}

.faq-cta-text {
  color: #888;
  font-size: 1rem;
  margin-bottom: 20px;
}

.btn-red {
  display: inline-block;
  padding: 14px 36px;
  background: #8b0000;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1.5px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-red:hover {
  background: #b30000;
  color: #fff;
}

/* --- Copy link button --- */
.faq-body {
  display: flex;
  flex-direction: column;
}
.faq-body .faq-copy-link,
.faq-body .faq-copy-link:not(:disabled) {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-end;
  gap: 5px;
  margin-top: 16px;
  padding: 5px 14px !important;
  background: #1a1a1a !important;
  border: 1px solid #2e2e2e !important;
  border-radius: 20px !important;
  outline: none !important;
  box-shadow: none !important;
  color: #888 !important;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.faq-copy-link svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.faq-body .faq-copy-link:hover {
  border-color: #444 !important;
  color: #ccc !important;
}
.faq-body .faq-copy-link:hover svg {
  opacity: 0.9;
}
.faq-body .faq-copy-link.faq-copy-link--done,
.faq-body .faq-copy-link.faq-copy-link--done:hover {
  border-color: #2a9d5c !important;
  color: #2a9d5c !important;
}
.faq-body .faq-copy-link.faq-copy-link--done svg {
  opacity: 1;
}

/* ================================================
   АДАПТИВНІСТЬ
   ================================================ */

@media (max-width: 768px) {
  .faq-page {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .faq-cats {
    gap: 8px;
    margin-bottom: 28px;
  }

  .faq-cat-btn {
    padding: 7px 15px;
    font-size: 0.8rem;
  }

  .faq-group {
    margin-bottom: 28px;
  }

  .faq-group-title {
    font-size: 0.88rem;
  }

  .faq-button {
    font-size: 0.88rem !important;
    padding: 14px 16px !important;
  }

  .faq-body {
    padding: 0 14px 16px;
    font-size: 0.88rem;
  }

  .faq-cta {
    margin-top: 36px;
    padding: 28px 16px;
  }

  .btn-red {
    padding: 12px 28px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .faq-cats {
    gap: 6px;
  }

  .faq-cat-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .faq-button {
    font-size: 0.84rem !important;
    padding: 13px 14px !important;
    line-height: 1.4;
  }

  .faq-body .faq-copy-link,
  .faq-body .faq-copy-link:not(:disabled) {
    align-self: flex-start;
    font-size: 0.74rem;
  }
}
