/* ============================
   Вопросы-ответы — редизайн (T35)
   ============================ */

/* ---------- Hero ---------- */
.fq-hero {
  position: relative; overflow: hidden; color: #fff;
  display: flex; align-items: flex-end; min-height: 400px;
}
.fq-hero__bg { position: absolute; inset: 0; }
.fq-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fq-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 24, 40, .88) 15%, rgba(6, 24, 40, .55) 55%, rgba(6, 24, 40, .25));
}
.fq-hero__inner { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 44px; }
.fq-hero .breadcrumbs a, .fq-hero .breadcrumbs .sep { color: rgba(255, 255, 255, .75); }
.fq-hero .breadcrumbs .current { color: #fff; }
.fq-hero h1 { color: #fff; margin: 10px 0 12px; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.fq-hero h1 em { font-style: normal; color: #f0b63f; }
.fq-hero__lead { max-width: 560px; margin: 0 0 22px; font-size: 1.05rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.fq-hero__search { max-width: 560px; }
.fq-hero__search input {
  width: 100%; font-size: 1.05rem; padding: 15px 18px 15px 48px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .96); color: var(--c-ink, #16293c);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}
.fq-hero__search input:focus { outline: 3px solid rgba(240, 182, 63, .55); outline-offset: 1px; }

/* ---------- Плитки категорий ---------- */
.fq-cats {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px;
  margin: 22px 0 26px;
}
.fq-cat {
  --fq: #55627a;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px 16px 14px; border-radius: 16px; text-align: left;
  background: #fff; border: 1px solid var(--c-line, #dfe4ec);
  border-top: 3px solid var(--fq);
  box-shadow: 0 8px 20px rgba(8, 33, 54, .07);
  font: inherit; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.fq-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(8, 33, 54, .13); }
.fq-cat.active {
  background: color-mix(in srgb, var(--fq) 10%, #fff);
  border-color: color-mix(in srgb, var(--fq) 55%, #fff);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--fq) 22%, transparent);
}
.fq-cat__icon {
  width: 40px; height: 40px; border-radius: 11px; font-size: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--fq) 12%, #fff); color: var(--fq);
}
.fq-cat__name { font-weight: 800; font-size: .95rem; color: var(--c-ink, #16293c); }
.fq-cat__n { font-size: .78rem; font-weight: 700; color: var(--fq); }
.fq-cat--all { --fq: #082136; }
.fq-cat--prizyv { --fq: #1f5590; }
.fq-cat--otsrochka { --fq: #b8741a; }
.fq-cat--contract { --fq: #b8291f; }
.fq-cat--uchet { --fq: #4a7a3f; }
.fq-cat--ags { --fq: #1f8278; }
.fq-cat--other { --fq: #55627a; }
@media (max-width: 1100px) { .fq-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fq-cats > :first-child { grid-column: span 2; } }
@media (max-width: 560px) { .fq-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fq-cats > :first-child { grid-column: span 2; } }

/* ---------- Раскладка: вопросы + боковая панель ---------- */
.fq-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px;
  align-items: start;
}
@media (max-width: 1100px) { .fq-layout { grid-template-columns: 1fr; } }

/* ---------- Аккордеон ---------- */
.fq-layout .accordion { display: grid; gap: 12px; counter-reset: fq; }
.fq-layout .accordion__item { counter-increment: fq; }
.fq-layout .accordion__btn::before {
  content: counter(fq);
  flex: 0 0 auto; min-width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800; color: var(--fq);
  background: color-mix(in srgb, var(--fq) 11%, #fff);
}
.fq-layout .accordion__item {
  --fq: #55627a;
  background: #fff; border: 1px solid var(--c-line, #dfe4ec);
  border-left: 4px solid var(--fq); border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(8, 33, 54, .06);
  transition: box-shadow .18s ease, transform .18s ease;
}
.fq-layout .accordion__item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8, 33, 54, .11); }
.fq-layout .accordion__item.open {
  border-color: color-mix(in srgb, var(--fq) 40%, #dfe4ec);
  background: color-mix(in srgb, var(--fq) 5%, #fff);
  box-shadow: 0 14px 30px rgba(8, 33, 54, .12);
}
.accordion__item[data-cat="prizyv"] { --fq: #1f5590; }
.accordion__item[data-cat="otsrochka"] { --fq: #b8741a; }
.accordion__item[data-cat="contract"] { --fq: #b8291f; }
.accordion__item[data-cat="uchet"] { --fq: #4a7a3f; }
.accordion__item[data-cat="ags"] { --fq: #1f8278; }
.accordion__item[data-cat="other"] { --fq: #55627a; }
.fq-layout .accordion__btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; background: none; border: 0; cursor: pointer;
  text-align: left; font: inherit;
}
.fq-layout .accordion__q { font-size: 1.04rem; font-weight: 700; line-height: 1.35; color: var(--c-ink, #16293c); flex: 1 1 auto; }
.fq-layout .accordion__panel-inner { padding: 2px 20px 18px 66px; font-size: .96rem; line-height: 1.6; color: var(--c-ink-2, #2c3d4f); }
.fq-layout .accordion__panel-inner a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 8px; font-weight: 700;
  background: color-mix(in srgb, var(--fq) 10%, #fff); color: var(--fq);
  border: 1px solid color-mix(in srgb, var(--fq) 30%, #fff);
  text-decoration: none;
}
.fq-layout .accordion__panel-inner a:hover { background: var(--fq); color: #fff; }
@media (max-width: 560px) {
  .fq-layout .accordion__panel-inner { padding-left: 18px; }
}

/* ---------- Боковая панель «Не нашли ответ?» ---------- */
.fq-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.fq-help {
  border-radius: 18px; overflow: hidden; background: #fff;
  border: 1px solid var(--c-line, #dfe4ec);
  box-shadow: 0 14px 34px rgba(8, 33, 54, .12);
}
.fq-help__photo { position: relative; height: 170px; }
.fq-help__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fq-help__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 24, 40, .55));
}
.fq-help__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.fq-help__body h2 { margin: 0; font-size: 1.2rem; }
.fq-help__body p { margin: 0; font-size: .9rem; color: var(--c-muted, #5a6a7e); line-height: 1.5; }
.fq-help__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 16px; border-radius: 12px; font-weight: 800; font-size: .98rem;
  text-decoration: none; transition: transform .18s ease, background .18s ease;
}
.fq-help__btn--tel { background: #1f5590; color: #fff; }
.fq-help__btn--tel:hover { background: #16406e; transform: translateY(-2px); }
.fq-help__btn--ghost { background: #fff; color: #1f5590; border: 1px solid #b9c8dd; }
.fq-help__btn--ghost:hover { border-color: #1f5590; transform: translateY(-2px); }
.fq-help__hours {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: .85rem; color: var(--c-muted, #5a6a7e); line-height: 1.5;
}
.fq-help__hours .ico { color: var(--c-primary, #1f5590); margin-top: 2px; flex: 0 0 auto; }
@media (max-width: 1100px) { .fq-side { position: static; } }
