﻿/* ============ FAQ ============================= */
/* ============================================= */

.faq-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.faq-layout--full { grid-template-columns: 1fr; }

.faq-hero {
  background: linear-gradient(135deg, rgba(43,58,39,.95), rgba(26,36,22,.95));
  color: var(--cream);
  padding: 28px 32px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(201,169,97,.2);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 90% 10%, rgba(201,169,97,.18), transparent 50%);
}
.faq-hero-content { position: relative; z-index: 1; }
.faq-hero h3 {
  font-family: 'Lora', serif;
  font-size: 24px;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.faq-hero p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--parchment);
  margin-bottom: 16px;
}
.faq-search { position: relative; }
.faq-search input {
  width: 100%;
  background: rgba(244,232,208,.95);
  border: 1px solid rgba(201,169,97,.3);
  border-radius: 8px;
  padding: 11px 16px 11px 42px;
  font-size: 13px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  transition: border-color .15s, background .15s;
}
.faq-search input:focus { outline: none; border-color: var(--gold); background: #fff; }
.faq-search::before {
  content: '⌕';
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--brown-wood); font-size: 18px;
}

.faq-categories {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.faq-cat {
  padding: 8px 14px;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 12px;
  color: var(--brown-wood);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .3px;
  transition: all .15s;
}
.faq-cat:hover { border-color: var(--gold); color: var(--green-deep); }
.faq-cat.active { background: var(--green-deep); color: var(--gold); border-color: var(--gold); }

.faq-section { margin-bottom: 22px; }
.faq-section-title {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--green-deep);
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.faq-item {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq-item:hover { border-color: var(--gold); }
.faq-item.open {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.faq-q {
  padding: 14px 18px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  transition: background .15s;
}
.faq-q:hover { background: var(--cream); }
.faq-item.open .faq-q { background: var(--cream); }
.faq-q .toggle-ic {
  width: 26px; height: 26px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brown-wood);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all .2s;
  border: 1px solid var(--border);
}
.faq-item.open .faq-q .toggle-ic {
  background: var(--green-deep);
  color: var(--gold);
  border-color: var(--gold);
  transform: rotate(45deg);
}
.faq-a img{
  max-width: 100%;
}
.faq-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
  transition: max-height .3s ease, padding .2s ease;
}
.faq-item.open .faq-a {
  padding: 4px 18px 18px;
  max-height: 500px;
}
.faq-a p + p { margin-top: 8px; }
.faq-a strong { color: var(--ink); font-weight: 600; }
.faq-a ul { margin: 6px 0 0 18px; }
.faq-a li { margin-bottom: 3px; }

.faq-side-card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.faq-side-card h4 {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--green-deep);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.faq-contact-card { text-align: center; padding: 24px 18px; }
.faq-contact-ico {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brown-leather), var(--brown-dark));
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.faq-contact-card p {
  font-size: 12px;
  color: var(--brown-wood);
  line-height: 1.55;
  margin-bottom: 14px;
}
.faq-popular-list { display: flex; flex-direction: column; gap: 10px; }
.faq-popular-item {
  padding: 8px 12px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}
.faq-popular-item:hover { background: var(--parchment); }
.faq-popular-item .num {
  font-family: 'Lora', serif;
  font-weight: 800;
  color: var(--gold-dark);
  margin-right: 6px;
}

.faq-action-row   { margin-top: 10px; display: flex; gap: 8px; }
.faq-del-link     { color: var(--red-deep); }
.faq-submit-btn   { width: 100%; justify-content: center; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side-card { width: 100%; box-sizing: border-box; }
}
@media (max-width: 700px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side-card { width: 100%; box-sizing: border-box; }
  .faq-q { align-items: flex-start; font-size: 13px; padding: 12px 14px; }
  .faq-q .toggle-ic { margin-top: 1px; }
  .faq-a { padding: 0 14px; }
  .faq-item.open .faq-a { padding: 4px 14px 14px; max-height: 1000px; }
}