:root {
  --white: #ffffff;
  --bg: #fafaf8;
  --dark: #0e0e1a;
  --dark-2: #1a1a2e;
  --border: #e6e4e0;
  --text: #1a1a2e;
  --text-2: #5c5c7a;
  --text-3: #9e9eb8;
  --accent: #6C5CE7;
  --accent-light: #F0EEFF;
  --accent-hover: #5A4BD1;
  --accent-glow: rgba(108,92,231,0.12);
  --font: 'DM Sans', sans-serif;
  --serif: 'Instrument Serif', serif;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --max-width: 1140px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ═══ NAVBAR (match index.php) ═══ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-current { color: var(--accent); font-weight: 600; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-ghost {
  padding: 9px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--text); }
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-solid:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }

/* ═══ FAQ PAGE ═══ */
.faq-page-hero {
  padding: 120px 24px 40px;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: var(--accent-light);
  border: 1px solid rgba(108,92,231,0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.faq-page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
}
.faq-page-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.faq-page-hero > p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.search-wrap {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}
.search-count {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3);
  min-height: 1.2em;
}

.faq-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.cat-sidebar { position: sticky; top: 96px; }
.cat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.cat-list { list-style: none; }
.cat-list li { margin-bottom: 4px; }
.cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.cat-btn:hover { background: var(--white); color: var(--text); }
.cat-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.cat-btn .cat-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-3);
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}
.cat-btn.active .cat-count {
  background: rgba(108,92,231,0.15);
  color: var(--accent);
}

.faq-list-main { display: flex; flex-direction: column; gap: 12px; }
.faq-group-label {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
  margin-top: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.faq-group-label:first-child { margin-top: 0; }
.faq-group-label em { font-style: italic; color: var(--accent); }

.faq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-card:hover { border-color: #d4d0c8; }
.faq-card.open {
  border-color: rgba(108,92,231,0.35);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.06);
}
.faq-card .faq-q {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-card.open .faq-q { color: var(--accent); }
.faq-chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--text-3);
}
.faq-card.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-a-inner {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}
.faq-a-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.popular-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}
.faq-no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  display: none;
}
.faq-no-results a{ 
  color: var(--accent);
}
.faq-no-results .no-icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.5; }

.contact-cta {
  max-width: 640px;
  margin: 0 auto 64px;
  padding: 0 24px;
  text-align: center;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}
.contact-card h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 10px;
}
.contact-card h2 em { font-style: italic; color: var(--accent); }
.contact-card p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.6;
}
.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--text-3); background: var(--bg); }

/* ═══ FOOTER (match index.php) ═══ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 64px 48px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto 48px;
}
.footer-brand .f-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: white; }

@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .faq-layout { grid-template-columns: 1fr; gap: 0; }
  .cat-sidebar {
    position: relative;
    top: 0;
    display: flex;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .cat-label { display: none; }
  .cat-list { display: flex; gap: 6px; }
  .cat-list li { margin: 0; }
  .cat-btn {
    white-space: nowrap;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
  }
  .cat-btn.active { border-color: var(--accent); }
  .cat-btn .cat-count { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer { padding: 48px 24px 24px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .contact-card { padding: 36px 24px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
}
