/* ===== Подвал (functions.php): колонки «Каталог / Помощь / Документы» — <details>.
   ПК: заголовок + список, раскрывать нечего. Телефон: каждая колонка — строка-аккордеон. ===== */
html body .fantom-footer__col { margin: 0; }
html body .fantom-footer__col > summary {
  list-style: none; cursor: default; margin: 0 0 14px; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
}
html body .fantom-footer__col > summary::-webkit-details-marker { display: none; }
html body .fantom-footer__col > ul li { margin: 0 0 12px; }
html body .fantom-footer__col > ul a { font-size: 16px; }
@media (min-width: 768px) {
  html body .fantom-footer__col > summary { pointer-events: none; } /* на ПК колонки всегда открыты */
}
@media (max-width: 767px) {
  html body .fantom-footer { padding-top: 40px; }
  html body .fantom-footer__grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  html body .fantom-footer__tg { text-align: center; padding-bottom: 22px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
  html body .fantom-footer__tg h4 { font-size: 20px; }
  html body .fantom-footer__tg p { font-size: 14px; }
  html body .fantom-footer__col { border-bottom: 1px solid var(--border); }
  html body .fantom-footer__col > summary {
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 16px 2px;
    font-size: 15px; color: var(--text);
  }
  html body .fantom-footer__col > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--blue); transition: transform .2s; }
  html body .fantom-footer__col[open] > summary::after { transform: rotate(45deg); }
  html body .fantom-footer__col > ul { padding: 0 2px 10px; }
  html body .fantom-footer__col > ul li { margin: 0 0 12px; }
  html body .fantom-footer__col > ul a { font-size: 15px; }
  html body .fantom-footer__copy { font-size: 13px; padding-top: 20px; }
  /* строка «© 2026 — FANTOM …» не прячется под нижней панелью (аккаунт / поиск / корзина, ~69px, закреплена внизу экрана) */
  html body .fantom-footer { padding-bottom: calc(69px + 22px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== «Частые вопросы» ([fantom_faq], faq.php) ===== */
.fx-faq { max-width: 860px; margin: 0 auto 40px; }
.fx-faq__group { margin: 30px 0 12px; font-family: var(--font-head); font-size: 22px; }
.fx-faq__group:first-child { margin-top: 0; }
.fx-faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 0 0 10px; transition: border-color .2s; }
.fx-faq__item[open] { border-color: var(--blue); }
.fx-faq__item > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 18px; font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--text);
}
.fx-faq__item > summary::-webkit-details-marker { display: none; }
.fx-faq__item > summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--accent-text, var(--blue)); transition: transform .2s; }
.fx-faq__item[open] > summary::after { transform: rotate(45deg); }
.fx-faq__a { padding: 0 18px 16px; color: var(--text); font-size: 15px; line-height: 1.6; }
.fx-faq__a p { margin: 0 0 10px; }
.fx-faq__a ol, .fx-faq__a ul { margin: 0 0 10px 20px; }
.fx-faq__a li { margin: 0 0 4px; }
.fx-faq__a code { font-size: 14px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); user-select: all; }
.fx-faq__a a, .fx-faq__more a { color: var(--accent-text, var(--blue)); font-weight: 600; }
.fx-faq__more { margin-top: 22px; color: var(--dim); text-align: center; }
@media (max-width: 767px) {
  .fx-faq__group { font-size: 19px; margin-top: 24px; }
  .fx-faq__item > summary { padding: 14px; font-size: 15px; }
  .fx-faq__a { padding: 0 14px 14px; font-size: 14px; }
}

/* ===== Подвал: кнопки «Наш Telegram», «Написать в ВК», «Написать в WhatsApp» — стопкой одинаковой ширины (колонка ~205px, рядом не помещаются) ===== */
html body .fantom-footer__social { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
html body .fantom-footer .fantom-footer__social a.button { margin: 0 !important; min-width: 236px; white-space: nowrap; justify-content: center; text-align: center; box-sizing: border-box; }
html body .fantom-footer .fantom-footer__social a.button.fantom-vk {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px !important; border-radius: 40px !important;
  background: #0077ff !important; color: #fff !important; font-weight: 600; text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0,119,255,.35) !important; border: 0 !important; filter: none;
}
html body .fantom-footer .fantom-footer__social a.button.fantom-vk:hover { background: #1a85ff !important; transform: translateY(-1px); }
html body .fantom-footer .fantom-footer__social a.button.fantom-wa {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px !important; border-radius: 40px !important;
  background: #25d366 !important; color: #06301a !important; font-weight: 700; text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(37,211,102,.35) !important; border: 0 !important; filter: none;
}
html body .fantom-footer .fantom-footer__social a.button.fantom-wa:hover { background: #3be078 !important; transform: translateY(-1px); }
@media (max-width: 767px) {
  html body .fantom-footer__social { align-items: center; }
}

/* логотипы мессенджеров на кнопках подвала */
html body .fantom-footer .fantom-footer__social a.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
html body .fantom-footer .fantom-soc-ico { flex: none; width: 20px; height: 20px; display: block; }

/* полоса над шапкой: маленькие логотипы Telegram / ВК / WhatsApp (те же ссылки, что в подвале) */
html body .fantom-topbar__right a.fantom-topbar__soc { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
html body .fantom-topbar__soc .fantom-soc-ico { width: 16px; height: 16px; display: block; }

/* «Мы в Telegram» в подвале — синяя на обеих сторонах (на GAMES кнопки салатовые из-за акцента) */
html body .fantom-footer .fantom-footer__social a.button.fantom-login {
  background: linear-gradient(135deg, #216be9, #1a5cd8) !important; color: #fff !important;
  box-shadow: 0 6px 18px rgba(33,107,233,.35) !important; border: 0 !important;
}
html body .fantom-footer .fantom-footer__social a.button.fantom-login:hover { filter: brightness(1.08); }
