/* ===== Подвал (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); }

/* подвал: колонка «Контакты» (functions.php) — пятая колонка; подпись серым над значением */
html body .fantom-footer__grid { grid-template-columns: 1.1fr .8fr 1fr 1.2fr 1.1fr; gap: 32px; }
html body .fantom-footer__contacts li > span { display: block; font-size: 12px; color: var(--dim, #8a93a3); margin-bottom: 1px; }
html body .fantom-footer__contacts li a { white-space: nowrap; }
html body .fantom-footer__req { font-size: 13px; color: var(--dim, #8a93a3); }
@media (max-width: 1100px) { html body .fantom-footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) { html body .fantom-footer__grid { grid-template-columns: 1fr 1fr; } }

/* подвал: блок «Наши каналы» под «Мы на связи» */
html body .fantom-footer__tg .fantom-footer__h-ch { margin-top: 26px; }

/* ===== 2026-10-19: подвал компактнее — заголовки колонок мельче, пункты ещё мельче и бледнее; «Контакты» — ссылка на /kontakty/ ===== */
html body .fantom-footer { padding-top: 34px; }
html body .fantom-footer__grid { padding-bottom: 28px !important; row-gap: 20px; }
html body .fantom-footer__col > summary, html body .fantom-footer__colh {
  font-size: 13px !important; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; color: var(--text) !important; text-decoration: none !important;
}
html body .fantom-footer__colh { display: inline-block; }
html body .fantom-footer__colh::after { content: " →"; opacity: .6; }
html body .fantom-footer__colh:hover { color: var(--blue) !important; }
html body .fantom-footer__col > ul li { margin: 0 0 6px !important; line-height: 1.35; }
html body .fantom-footer .fantom-footer__col > ul a:not(.button) { font-size: 12.5px !important; color: var(--dim, #8a93a3) !important; opacity: .85; }
html body .fantom-footer .fantom-footer__col > ul a:not(.button):hover { opacity: 1; color: var(--text) !important; }
html body .fantom-footer__tg h4 { font-size: 13px !important; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px; }
html body .fantom-footer__tg p { font-size: 12.5px; color: var(--dim, #8a93a3); margin-bottom: 10px; }
html body .fantom-footer__copy { font-size: 12px; padding-top: 16px; padding-bottom: 16px; }
@media (min-width: 1101px) { html body .fantom-footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr .7fr !important; } }
@media (max-width: 767px) {
  html body .fantom-footer__contacts { padding: 14px 2px; border-bottom: 1px solid var(--border); }
  html body .fantom-footer__colh { font-size: 15px !important; margin: 0; text-transform: none; }
}

/* ===== Страница «Контакты» ([fantom_contacts]) ===== */
.fx-contacts { max-width: 900px; margin: 0 auto 40px; }
.fx-contacts__lead { color: var(--dim); font-size: 16px; margin: 0 0 22px; }
.fx-contacts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.fx-contacts__item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  text-decoration: none !important; transition: border-color .2s, transform .2s; }
.fx-contacts__item:hover { border-color: var(--blue); transform: translateY(-2px); }
.fx-contacts__item span { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--dim); }
.fx-contacts__item b { font-size: 16px; color: var(--text); overflow-wrap: anywhere; }
.fx-contacts__req { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--border); display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.fx-contacts__req span { color: var(--dim); } .fx-contacts__req b { color: var(--text); }

/* ===== 2026-10-20: подвал «fx-foot2» — компактный и уже: сверху кнопки-разделы с выпадающими списками, ниже «Мы на связи» | «Наши каналы» ===== */
html body .fantom-footer.fx-foot2 { max-width: 1040px; margin: 0 auto; padding: 26px 0 14px !important; }
.fx-foot2__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.fx-foot2__dd { position: relative; }
html body .fx-foot2__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 40px; cursor: pointer; list-style: none;
  background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid var(--border); color: var(--text) !important;
  font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; text-decoration: none !important; user-select: none; transition: border-color .2s, background .2s;
}
.fx-foot2__btn::-webkit-details-marker { display: none; }
html body .fx-foot2__btn:hover, .fx-foot2__dd[open] > .fx-foot2__btn { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.fx-foot2__btn i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; transition: transform .2s; }
.fx-foot2__dd[open] > .fx-foot2__btn i { transform: rotate(-135deg) translateY(-2px); }
html body .fx-foot2__btn.is-link::after { content: "→"; opacity: .7; }
.fx-foot2__dd > ul {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 50; min-width: 230px; margin: 0 !important; padding: 8px !important; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5);
}
.fx-foot2__dd > ul li { margin: 0 !important; }
html body .fantom-footer .fx-foot2__dd > ul a:not(.button) { display: block; padding: 8px 12px; border-radius: 9px; font-size: 13.5px !important; color: var(--text) !important; opacity: .9; white-space: nowrap; text-decoration: none; }
html body .fantom-footer .fx-foot2__dd > ul a:not(.button):hover { background: color-mix(in srgb, var(--text) 8%, transparent); opacity: 1; }
.fx-foot2__row { display: flex; justify-content: center; gap: 48px; padding: 20px 0 6px; flex-wrap: wrap; }
.fx-foot2__blk h4 { font-size: 13px !important; letter-spacing: .6px; text-transform: uppercase; margin: 0 0 4px !important; }
.fx-foot2__blk p { font-size: 12.5px !important; color: var(--dim) !important; margin: 0 0 10px !important; }
html body .fantom-footer.fx-foot2 .fantom-footer__social { flex-direction: row !important; flex-wrap: wrap; gap: 8px; align-items: center; }
html body .fantom-footer.fx-foot2 .fantom-footer__social a.button { min-width: 0 !important; height: 38px; padding: 0 14px !important; font-size: 13px !important; gap: 7px !important; }
html body .fantom-footer.fx-foot2 .fantom-soc-ico { width: 17px; height: 17px; }
html body .fantom-footer.fx-foot2 .fantom-footer__copy { padding-top: 14px !important; font-size: 12px !important; border-top: 1px solid var(--border); margin-top: 14px; }
@media (max-width: 767px) {
  .fx-foot2__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  html body .fx-foot2__btn { width: 100%; justify-content: center; height: 42px; }
  .fx-foot2__dd > ul { position: static; transform: none; min-width: 0; margin-top: 6px !important; box-shadow: none; }
  .fx-foot2__dd[open] { grid-column: 1 / -1; }
  .fx-foot2__row { flex-direction: column; align-items: center; gap: 18px; text-align: center; }
  html body .fantom-footer.fx-foot2 .fantom-footer__social { justify-content: center; }
  html body .fantom-footer.fx-foot2 { padding-bottom: calc(69px + 16px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* 2026-10-20 (2): сверху «Мы на связи» | «Наши каналы» (подписи по центру над кнопками), ниже кнопки-разделы; «Контакты» — такой же список */
.fx-foot2__row { padding: 0 0 20px !important; border-bottom: 1px solid var(--border); }
.fx-foot2__blk { text-align: center; }
html body .fantom-footer.fx-foot2 .fx-foot2__blk .fantom-footer__social { justify-content: center; }
.fx-foot2__nav { padding: 20px 0 0 !important; border-bottom: 0 !important; }
.fx-foot2__dd:last-child > ul { left: auto; right: 0; transform: none; }   /* у правого края — список не уходит за экран */
/* страница «Контакты»: 9 одинаковых плиток 3×3, в 9-й продавец и ИНН */
.fx-contacts__grid { grid-template-columns: repeat(3, 1fr) !important; }
.fx-contacts__item.is-req { cursor: default; }
.fx-contacts__item.is-req:hover { border-color: var(--border); transform: none; }
@media (max-width: 767px) { .fx-contacts__grid { grid-template-columns: 1fr !important; } }
@media (min-width: 768px) { .fx-foot2__dd > ul { top: auto; bottom: calc(100% + 8px); } }   /* кнопки теперь внизу подвала — список раскрывается вверх */
/* 2026-10-20: копирайт и строка продавца в самом низу подвала — ярче */
html body .fantom-footer.fx-foot2 .fantom-footer__copy { color: #c3cad6 !important; font-size: 13px !important; padding-bottom: 4px !important; }
html body.mode-games:not(.fx-home) .fantom-footer.fx-foot2 .fantom-footer__copy { color: var(--text) !important; }
.fantom-footer__seller { text-align: center; font-size: 13px; color: #c3cad6; padding: 0 0 14px; }
html body.mode-games:not(.fx-home) .fantom-footer__seller { color: var(--text); }
html body .fantom-footer .fantom-footer__seller a:not(.button) { color: var(--blue) !important; font-weight: 600; text-decoration: none; }
html body .fantom-footer .fantom-footer__seller a:not(.button):hover { text-decoration: underline; }
html body.fx-home .fantom-footer .fantom-footer__seller a:not(.button) { color: #d6c2ff !important; }
html body .site-footer .fantom-footer .fantom-footer__seller a:not(.button):not(.components-button) { color: var(--blue) !important; font-weight: 600; text-decoration: none; }
html body.fx-home .site-footer .fantom-footer .fantom-footer__seller a:not(.button):not(.components-button) { color: #d6c2ff !important; }
html body.mode-games:not(.fx-home) .site-footer .fantom-footer .fantom-footer__seller a:not(.button):not(.components-button) { color: var(--accent-text, var(--blue)) !important; }
html body:not(.mode-games) .fantom-footer.fx-foot2 .fantom-footer__copy, html body.fx-home .fantom-footer.fx-foot2 .fantom-footer__copy { color: #e6eaef !important; }
html body:not(.mode-games) .fantom-footer__seller, html body.fx-home .fantom-footer__seller { color: #d3d9e3; }
html body.mode-gsm .site-footer .fantom-footer .fantom-footer__seller a:not(.button):not(.components-button) { color: #6aa5ff !important; }
