/* ==========================================================================
 * СТРАНИЦА «КАК КУПИТЬ» (/faq) — современное оформление
 * --------------------------------------------------------------------------
 * Разметка — pages/faq.php. Раньше блоки собирались из темы (app.css):
 * крупные заголовки «Как это работает?», стрелки-разделители между шагами,
 * список вопросов с линиями и красная плашка .alert--warning. Сейчас это:
 *
 *   1) шапка страницы: надзаголовок, заголовок, пояснение;
 *   2) три карточки-шага с номером и иконкой;
 *   3) аккордеон вопросов — карточки со значком «+»/«−»;
 *   4) блок поддержки с кнопкой Telegram.
 *
 * ВАЖНО: классы faq__item / faq__question / faq__answer сохранены — на них
 * завязан аккордеон в js/main.js (jQuery переключает .faq__item--active
 * и делает slideToggle по .faq__answer). Стили открытого состояния — ниже.
 *
 * Файл подключается в index.php только для маршрута /faq.
 * ========================================================================== */

.swfaq {
  /* Палитра снята с ЖИВОГО /sell (https://sw-shops.ru/css/player-sale.css):
       .ps-market:not(.ps-admin){--ps-panel:rgba(0,0,0,.4);--ps-line:rgba(255,255,255,.12)}
       .ps-panel{background:var(--ps-panel);backdrop-filter:blur(15px);border-radius:16px;
                 box-shadow:0 8px 32px rgba(0,0,0,.28)}
       --ps-text:#f2f3f6, --ps-muted:#b5bac5, --ps-gold:#f3ce75
     Внутренние блоки на /sell — светлая плёнка rgba(255,255,255,.045).
     Меняя значения здесь, вы меняете оформление сразу на /faq, /guarantee,
     /reviews, /news и /contacts. */
  --swfaq-line: rgba(255, 255, 255, .12);
  --swfaq-gold: #f3ce75;
  --swfaq-text: #f2f3f6;
  --swfaq-muted: #b5bac5;
  --swfaq-panel: rgba(0, 0, 0, .4);
  --swfaq-card-border: rgba(255, 255, 255, .12);
  --swfaq-card-bg: rgba(255, 255, 255, .045);
  --swfaq-card-shadow: 0 8px 32px rgba(0, 0, 0, .28);
  font-family: Arial, Helvetica, sans-serif;
  /* Отступ от шапки сайта и по краям — как .ps-wrap на /sell
     (.ps-wrap{max-width:1240px;margin:32px auto 64px;padding:0 20px}) */
  padding: 28px 20px 0;
}

/* Панель страницы — как .ps-panel на /sell */
.swfaq__wrap {
  max-width: 1040px;
  margin: 0 auto 44px;
  padding: 30px 28px 40px;
  border: 1px solid var(--swfaq-line);
  border-radius: 16px;
  background: var(--swfaq-panel);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

/* ---------- 1. Шапка страницы ---------- */
.swfaq__head {
  margin: 0 0 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.swfaq__eyebrow {
  margin: 0 0 8px;
  color: var(--swfaq-gold);
  font: 700 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .9;
}

.swfaq__title {
  margin: 0 0 12px;
  color: var(--swfaq-text);
  font: 700 30px/1.2 Arial, Helvetica, sans-serif;
}

.swfaq__lead {
  max-width: 700px;
  margin: 0;
  color: var(--swfaq-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.swfaq__subtitle {
  margin: 0 0 16px;
  color: var(--swfaq-text);
  font: 700 21px/1.3 Arial, Helvetica, sans-serif;
}

/* ---------- 2. Шаги покупки ---------- */
.swfaq-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  counter-reset: swfaq;
  /* Карточки в ряду одной высоты (иначе короткая карточка выбивается).
     Исключение — сворачиваемые карточки гарантий: им задан align-self: start,
     чтобы раскрытая не растягивала соседей. */
  align-items: stretch;
}

.swfaq-step {
  position: relative;
  box-sizing: border-box;
  padding: 22px 20px 20px;
  border: 1px solid var(--swfaq-card-border);
  border-radius: 18px;
  /* стекло: светлая плёнка поверх размытой панели, без чёрной заливки */
  background: var(--swfaq-card-bg);
  box-shadow: var(--swfaq-card-shadow);
}

/* Стрелка между карточками: только на широком экране */
.swfaq-step + .swfaq-step::before {
  content: "";
  position: absolute;
  top: 46px;
  left: -16px;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(243, 206, 117, .45), transparent);
}

.swfaq-step__num {
  position: absolute;
  top: 16px;
  right: 18px;
  font: 800 26px/1 Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #ffeaad 0%, #ffd35c 45%, #e59f16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: .9;
}

.swfaq-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border: 1px solid rgba(243, 206, 117, .3);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
    linear-gradient(180deg, rgba(46, 44, 34, .85), rgba(24, 22, 18, .9));
  box-shadow: inset 0 1px 0 rgba(255, 238, 190, .2), 0 10px 22px -16px rgba(0, 0, 0, .95);
}

.swfaq-step__icon img { display: block; width: 34px; height: 34px; object-fit: contain; }

.swfaq-step__title {
  margin: 0 0 8px;
  color: var(--swfaq-text);
  font: 700 16px/1.3 Arial, Helvetica, sans-serif;
}

.swfaq-step__text {
  margin: 0;
  color: var(--swfaq-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- 3. Аккордеон вопросов ---------- */
.swfaq-qa { margin-bottom: 30px; }

.swfaq__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.swfaq-item {
  /* В теме (app.css) у .faq__item остались следы старого оформления:
     padding-left: 70px под круглый «плюс» и тёмная текстура topcase.png.
     Из-за этого значок и текст вопроса начинались не по краю карточки.
     Гасим отступ и подложку — свои значения идут ниже. */
  position: relative;
  box-sizing: border-box;
  padding: 0;
  margin-bottom: 10px;
  border: 1px solid var(--swfaq-card-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 10px 22px -18px rgba(0, 0, 0, .85);
  overflow: hidden;
  transition: border-color .18s ease, background-color .18s ease;
}

.swfaq-item:hover {
  border-color: rgba(243, 206, 117, .45);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .03) 100%);
}

.swfaq-item.faq__item--active {
  border-color: rgba(243, 206, 117, .5);
  background: linear-gradient(180deg, rgba(255, 205, 110, .16) 0%, rgba(255, 205, 110, .05) 100%);
}

/* Тема подсвечивает открытый вопрос оранжевым свечением — у нас свой стиль */
.swfaq-item.faq__item--active .swfaq-item__question {
  color: var(--swfaq-gold);
  text-shadow: none;
}

.swfaq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  background: transparent;
  color: var(--swfaq-text);
  font: 700 14.5px/1.45 Arial, Helvetica, sans-serif;
  text-align: left;
  cursor: pointer;
}

/* Тематическая иконка вопроса: золотая плашка слева */
.swfaq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(243, 206, 117, .3);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 198, 7, .16), rgba(255, 198, 7, .04));
  box-shadow: inset 0 1px 0 rgba(255, 238, 190, .18);
  color: var(--swfaq-gold);
}

.swfaq-item__icon svg { display: block; }

.swfaq-item__text { flex: 1 1 auto; min-width: 0; }

.swfaq-item__question:hover { color: var(--swfaq-gold); }

.swfaq-item__question:focus-visible {
  outline: 2px solid var(--swfaq-gold);
  outline-offset: -2px;
}

/* Значок «+», в открытом состоянии превращается в «−» */
.swfaq-item__mark {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 205, 110, .4);
  border-radius: 50%;
  background: rgba(255, 198, 7, .1);
}

.swfaq-item__mark::before,
.swfaq-item__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--swfaq-gold);
  transition: transform .18s ease, opacity .18s ease;
}

.swfaq-item__mark::before {
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.swfaq-item__mark::after {
  width: 2px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.faq__item--active .swfaq-item__mark::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.swfaq-item__answer {
  padding: 0 20px 18px;
  color: var(--swfaq-muted);
  font-size: 14px;
  line-height: 1.7;
}

.swfaq-item__answer a { color: var(--swfaq-gold); text-decoration: underline; }
.swfaq-item__answer b, .swfaq-item__answer strong { color: var(--swfaq-text); }

/* ---------- 4. Блок поддержки ---------- */
.swfaq-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  padding: 20px 22px;
  border: 1px solid var(--swfaq-card-border);
  border-radius: 18px;
  /* та же поверхность, что у остальных блоков */
  background: var(--swfaq-card-bg);
  box-shadow: var(--swfaq-card-shadow);
}

.swfaq-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(243, 206, 117, .34);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 198, 7, .16), rgba(255, 198, 7, .05));
  color: var(--swfaq-gold);
}

.swfaq-help__icon svg { display: block; }

.swfaq-help__body { flex: 1 1 260px; min-width: 0; }

.swfaq-help__title {
  margin: 0 0 6px;
  color: var(--swfaq-text);
  font: 700 16px/1.3 Arial, Helvetica, sans-serif;
}

.swfaq-help__text {
  margin: 0;
  color: var(--swfaq-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.swfaq-help__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 238, 158, .9);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff0bd 0%, #ffd75f 30%, #f0a81c 72%, #d08c0d 100%);
  color: #2b1d04;
  font: 700 13.5px/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .85),
    inset 0 -7px 12px -8px rgba(140, 84, 0, .55),
    0 10px 24px -12px rgba(255, 175, 45, .85);
  transition: transform .16s ease, filter .16s ease;
}

.swfaq-help__btn svg { display: block; }

.swfaq-help__btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.swfaq-help__btn:focus-visible { outline: 2px solid var(--swfaq-gold); outline-offset: 3px; }

/* ==========================================================================
 * СВОРАЧИВАЕМЫЕ КАРТОЧКИ (страница гарантий)
 * --------------------------------------------------------------------------
 * В карточках много текста, поэтому каждая сворачивается нативным <details>:
 * заголовок с иконкой виден всегда, подробности — по клику. JavaScript не
 * нужен, состояние работает и с клавиатуры, и на телефоне.
 * ========================================================================== */
.swfaq-step--acc {
  padding: 0;
  overflow: hidden;
  /* сворачиваемая карточка держит собственную высоту */
  align-self: start;
}

.swfaq-acc { display: block; }

.swfaq-acc__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  transition: background-color .16s ease;
}

.swfaq-acc__head::-webkit-details-marker { display: none; }
.swfaq-acc__head::marker { content: ""; }

.swfaq-acc__head:hover { background: rgba(255, 205, 110, .06); }

.swfaq-acc__head:focus-visible { outline: 2px solid var(--swfaq-gold); outline-offset: -2px; }

.swfaq-acc__head .swfaq-step__icon { margin-bottom: 0; flex: 0 0 56px; }

.swfaq-acc__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--swfaq-text);
  font: 700 16px/1.3 Arial, Helvetica, sans-serif;
}

.swfaq-acc__head:hover .swfaq-acc__title { color: var(--swfaq-gold); }

.swfaq-acc[open] .swfaq-acc__title { color: var(--swfaq-gold); }

.swfaq-acc[open] .swfaq-item__mark::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.swfaq-acc__body { padding: 0 20px 18px; }

.swfaq-acc__body .swfaq-step__text { margin: 0 0 10px; }
.swfaq-acc__body .swfaq-step__text:last-child { margin-bottom: 0; }

/* На телефоне карточка со свёрнутым текстом должна быть компактной.
   Отдельное правило для сворачиваемых: общий .swfaq-step ниже по файлу
   добавляет padding 18px 16px 16px, а у аккордеона он не нужен — иначе
   отступы удваиваются. */
@media (max-width: 900px) {
  .swfaq-acc__head { padding: 14px 16px; gap: 12px; }
  .swfaq-acc__body { padding: 0 16px 16px; }
  .swfaq-acc__head .swfaq-step__icon { flex-basis: 48px; }
  .swfaq-step--acc { padding: 0 !important; }
}

/* ==========================================================================
 * ОБЩИЕ БЛОКИ ДЛЯ СТРАНИЦ «КАК КУПИТЬ» (/faq) И «ГАРАНТИИ» (/guarantee)
 * --------------------------------------------------------------------------
 * Файл подключается на обоих маршрутах: классы .swfaq* — общий язык оформления
 * (шапка, карточки, аккордеон, блок поддержки). Ниже — то, что нужно только
 * странице гарантий: врезка-подсказка, кнопка-ссылка и аккордеон на <details>.
 * ========================================================================== */

/* Несколько абзацев внутри карточки-шага */
.swfaq-step__text + .swfaq-step__text { margin-top: 8px; }

.swfaq-step__text a,
.swfaq-item__answer a { color: var(--swfaq-gold); text-decoration: underline; }
.swfaq-step__text a:hover,
.swfaq-item__answer a:hover { color: var(--swfaq-gold); }

/* Врезка-подсказка (например, «Хотите посмотреть аккаунт в игре?») */
.swfaq-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-sizing: border-box;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 205, 110, .28);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% -30%, rgba(255, 206, 112, .14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.swfaq-callout__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 206, 117, .34);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 198, 7, .16), rgba(255, 198, 7, .05));
  color: var(--swfaq-gold);
}

.swfaq-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--swfaq-text);
  font: 700 15px/1.35 Arial, Helvetica, sans-serif;
}

.swfaq-callout p {
  margin: 0;
  color: var(--swfaq-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Кнопки-ссылки внутри страницы (например, «Подробная инструкция по покупке») */
.swfaq__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.swfaq__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font: 700 13.5px/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  transition: transform .16s ease, filter .16s ease, border-color .16s ease, color .16s ease;
}

.swfaq__btn--ghost {
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  color: var(--swfaq-text);
}

.swfaq__btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 205, 110, .5);
  color: var(--swfaq-gold);
}

.swfaq__btn--primary {
  border: 1px solid rgba(255, 238, 158, .9);
  background: linear-gradient(180deg, #fff0bd 0%, #ffd75f 30%, #f0a81c 72%, #d08c0d 100%);
  color: #2b1d04;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.swfaq__btn:focus-visible { outline: 2px solid var(--swfaq-gold); outline-offset: 3px; }

/* Аккордеон на <details>: выглядит как вопросы на /faq, но раскрывается без JS */
.swfaq__items--details details { margin: 0; }

.swfaq__items--details summary {
  list-style: none;
  cursor: pointer;
}

.swfaq__items--details summary::-webkit-details-marker { display: none; }
.swfaq__items--details summary::marker { content: ""; }

.swfaq__items--details details[open] > summary {
  color: var(--swfaq-gold);
}

.swfaq__items--details details[open] .swfaq-item__mark::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.swfaq__items--details .swfaq-item__answer p { margin: 0 0 10px; }
.swfaq__items--details .swfaq-item__answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
 * КОНТАКТЫ (/contacts)
 * Мессенджеры карточками и слайды комьюнити — в той же стеклянной логике.
 * Карусель остаётся рабочей: data-атрибуты разметки не менялись, здесь только
 * оформление (свои классы .swfaq-community* на карточках).
 * ========================================================================== */
.swfaq-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.swfaq-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--swfaq-card-border);
  border-radius: 18px;
  background: var(--swfaq-card-bg);
  box-shadow: var(--swfaq-card-shadow);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.swfaq-contact:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 205, 110, .5);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .18), 0 20px 38px -22px rgba(255, 180, 60, .5);
}

.swfaq-contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(243, 206, 117, .3);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 198, 7, .16), rgba(255, 198, 7, .05));
  overflow: hidden;
}

.swfaq-contact__icon img { display: block; width: 40px; height: 40px; object-fit: contain; }

.swfaq-contact__body { flex: 1 1 auto; min-width: 0; }

.swfaq-contact__body strong {
  display: block;
  color: var(--swfaq-text);
  font: 700 15.5px/1.3 Arial, Helvetica, sans-serif;
}

.swfaq-contact__body small {
  display: block;
  margin-top: 3px;
  color: var(--swfaq-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.swfaq-contact__arrow { flex: 0 0 auto; color: var(--swfaq-gold); font-size: 18px; line-height: 1; }

/* Игровое комьюнити: две карточки «картинка слева — текст справа».
   Раньше под этим блоком лежала карусель темы (классы .home-about-carousel /
   .guarantee-item-m1 / .home-about-slide*), и её стили перебивали наши —
   карточка становилась узкой и высокой, а текст обрезался. Скрипта у той
   карусели нет вообще (стрелки и точки декоративные), поэтому блок переведён
   на собственные классы .swfaq-community*: теме здесь не за что зацепиться,
   ни одного !important не требуется. */
.swfaq-community {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
}

.swfaq-community-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 0;
  /* картинка прижата к левому краю: небольшой отступ 8px */
  padding: 14px 18px 14px 8px;
  border: 1px solid var(--swfaq-card-border);
  border-radius: 18px;
  background: var(--swfaq-card-bg);
  box-shadow: var(--swfaq-card-shadow);
}

/* Картинка задаётся по ВЫСОТЕ, ширина считается сама по пропорциям файла —
   так спрайты не растягиваются. Соотношение берут атрибуты width/height
   в разметке (реальные размеры файлов: 400×702 и 806×1200). */
.swfaq-community-card__art {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 180px;
  max-width: 200px;
  max-height: 180px;
  margin: 0;
  object-fit: contain;
}

.swfaq-community-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.swfaq-community-card__title {
  margin: 0 0 6px;
  color: var(--swfaq-text);
  font: 700 16px/1.3 Arial, Helvetica, sans-serif;
}

.swfaq-community-card__text {
  margin: 0 0 12px;
  color: var(--swfaq-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ==========================================================================
 * НОВОСТИ (/news)
 * ========================================================================== */
/* На странице новостей общей панели нет вообще: ни рамки, ни подложки.
   Каждая новость и шапка — самостоятельные панели в стиле /sell
   (.ps-panel: rgba(0,0,0,.4) + blur(15px)), поэтому «обводки в обводке»
   не возникает.
   Разметка: <section class="swfaq swfaq--flat">. */
.swfaq--flat .swfaq__wrap {
  max-width: 1040px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

/* Шапка — своя панель */
.swfaq--flat .swfaq__head {
  margin: 0 0 18px;
  padding: 24px 26px;
  border: 1px solid var(--swfaq-line);
  border-radius: 16px;
  background: var(--swfaq-panel);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

/* Каждая новость — своя панель */
.swfaq--flat .swfaq-news-card {
  border: 1px solid var(--swfaq-line);
  border-radius: 16px;
  background: var(--swfaq-panel);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

/* Смысловые разделы страницы (например, «Как получить данные аккаунта» и
   «Подробности перед покупкой» на /guarantee) — тоже самостоятельные панели,
   а не один общий фон на всю страницу. */
.swfaq--flat .swfaq-qa {
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 22px 24px 24px;
  border: 1px solid var(--swfaq-line);
  border-radius: 16px;
  background: var(--swfaq-panel);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

/* Внутри такой панели карточки-шаги и подробности уже лежат на панели,
   поэтому их собственная плёнка чуть плотнее — как на /faq.
   Селектор точнее правила ниже, иначе карточка внутри раздела получила бы
   вторую панель (панель в панели). */
.swfaq--flat .swfaq-qa .swfaq-steps > .swfaq-step,
.swfaq--flat .swfaq-qa .swfaq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .025) 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

/* Карточки, которые лежат прямо на странице (девять сворачиваемых гарантий),
   и блок поддержки — самостоятельные панели, а не плёнка: на светлом фоне
   сайта плёнка выглядела бы бледной. */
.swfaq--flat .swfaq-steps > .swfaq-step,
.swfaq--flat .swfaq-help {
  border: 1px solid var(--swfaq-line);
  border-radius: 16px;
  background: var(--swfaq-panel);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

.swfaq--flat .swfaq-help { margin-bottom: 0; }

.swfaq-news { display: block; }

/* Отзывы (/reviews): блок Disqus внутри общей панели */
.swfaq-reviews {
  box-sizing: border-box;
  padding: 20px 22px;
  border: 1px solid var(--swfaq-card-border);
  border-radius: 18px;
  background: var(--swfaq-card-bg);
  box-shadow: var(--swfaq-card-shadow);
}

.swfaq-reviews iframe { max-width: 100%; }

.swfaq-news-card {
  margin-bottom: 18px;
  border: 1px solid var(--swfaq-card-border);
  border-radius: 18px;
  background: var(--swfaq-card-bg);
  box-shadow: var(--swfaq-card-shadow);
  overflow: hidden;
}

.swfaq-news-card__inner { padding: 22px 24px; }

.swfaq-news-card__title {
  margin: 0 0 12px;
  color: var(--swfaq-text);
  font: 700 19px/1.3 Arial, Helvetica, sans-serif;
}

.swfaq-news-card__text {
  color: var(--swfaq-muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.swfaq-news-card__text p { margin: 0 0 12px; }
.swfaq-news-card__text a { color: var(--swfaq-gold); text-decoration: underline; }
.swfaq-news-card__text strong, .swfaq-news-card__text b { color: var(--swfaq-text); }
.swfaq-news-card__text h2, .swfaq-news-card__text h3 {
  margin: 18px 0 10px;
  color: var(--swfaq-text);
  font: 700 16px/1.35 Arial, Helvetica, sans-serif;
}
.swfaq-news-card__text img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.swfaq-news-card__text table {
  width: 100%;
  margin: 0 0 12px;
  border-collapse: collapse;
  font-size: 13px;
}
.swfaq-news-card__text td, .swfaq-news-card__text th {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--swfaq-muted);
  vertical-align: top;
}
.swfaq-news-card__text hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* Дата новости */
.swfaq-news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--swfaq-muted);
  font: 600 12px/1 Arial, Helvetica, sans-serif;
}

.swfaq-news-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--swfaq-gold);
}

.swfaq-news-card__media { margin: 16px 0 0; }

.swfaq-news-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
}

/* «Показать ещё» — кнопка в общем стиле */
.swfaq__btn.buttonmore,
.swfaq__btn.news-more {
  box-sizing: border-box;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  color: var(--swfaq-text);
  font: 700 13.5px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.swfaq__btn.buttonmore:hover,
.swfaq__btn.news-more:hover {
  border-color: rgba(255, 205, 110, .5);
  color: var(--swfaq-gold);
}

/* Адаптив для новых блоков */
@media (max-width: 900px) {
  .swfaq-contacts { grid-template-columns: 1fr; gap: 12px; }
  .swfaq-contact { padding: 16px; }
  .swfaq-contact__icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 13px; }
  .swfaq-contact__icon img { width: 34px; height: 34px; }
  /* Карточки комьюнити на телефоне: картинка мельче, отступы компактнее */
  .swfaq-community-card { padding: 14px 16px 14px 8px; gap: 12px; }
  .swfaq-community-card__art {
    height: 130px;
    max-height: 130px;
    max-width: 150px;
  }
  .swfaq-news-card__inner { padding: 18px 16px; }
  .swfaq-news-card__title { font-size: 17px; }
}

/* ==========================================================================
 * ПЕРЕБИВАЕМ МОБИЛЬНУЮ ТЕМУ
 * --------------------------------------------------------------------------
 * На телефоне сразу три файла темы задают карточке вопроса своё оформление
 * И ВСЁ ЭТО С !important:
 *   sw_mobile_unified.css — background: var(--sw-surface) (тёмная плашка),
 *                           border/radius по своим переменным, margin-bottom 12px;
 *   mobile-premium.css    — padding-left: 52px (отступ под старый кружок «+»);
 *   requested-fixes.css   — body .faq__item со своими фоном и рамкой.
 * Поэтому здесь те же свойства заданы с !important и более точным селектором:
 * padding: 0 убирает отступ (значок и текст встают по краю карточки), а фон
 * снова стеклянный, как на ПК.
 * ========================================================================== */
body .swfaq-item.faq__item {
  box-sizing: border-box;
  padding: 0 !important;
  margin-bottom: 10px !important;
  border: 1px solid var(--swfaq-card-border) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 10px 22px -18px rgba(0, 0, 0, .85) !important;
}

body .swfaq-item.faq__item:hover {
  border-color: rgba(243, 206, 117, .45) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .03) 100%) !important;
}

body .swfaq-item.faq__item.faq__item--active {
  border-color: rgba(243, 206, 117, .5) !important;
  background: linear-gradient(180deg, rgba(255, 205, 110, .16) 0%, rgba(255, 205, 110, .05) 100%) !important;
}

body .swfaq-item.faq__item .swfaq-item__question {
  padding: 17px 20px !important;
  font-size: 14.5px !important;
  text-align: left !important;
}

body .swfaq-item.faq__item .swfaq-item__answer {
  padding: 0 20px 18px !important;
  font-size: 14px !important;
}

/* ==========================================================================
 * АДАПТИВ
 * ========================================================================== */
@media (max-width: 1400px) {
  /* Карточки комьюнити: одна колонка на всю ширину, иначе картинка и текст
     не помещаются рядом и заголовки с кнопками переносятся по слогам. */
  .swfaq-community { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  /* Отступ от шапки и по краям на телефоне — как на /sell
     (@media(max-width:600px){.ps-wrap{padding:0 14px}}) */
  .swfaq { padding: 16px 14px 0 !important; }

  /* Тона здесь больше НЕ переопределяются: раньше стояли свои «мобильные»
     градиенты (rgba(62,64,76,.82) и плёнки 11–12% белого) — из-за них на
     телефоне панель и карточки не совпадали с палитрой /sell, хотя на ПК
     выглядели правильно. Теперь и на мобильной всё берётся из переменных
     .swfaq (--swfaq-panel / --swfaq-card-bg), меняются только размеры. */

  /* Раскрытый вопрос — золотая подсветка, как на ПК */
  body .swfaq-item.faq__item.faq__item--active {
    background: rgba(243, 206, 117, .16) !important;
  }

  /* Размер текста вопроса оставляем как в мобильной теме (15px) — он читается */
  body .swfaq-item.faq__item .swfaq-item__question { font-size: 15px !important; }
  body .swfaq-item.faq__item .swfaq-item__answer { font-size: 14.5px !important; }
  body .swfaq-item.faq__item .swfaq-item__question { padding: 15px 16px !important; }
  body .swfaq-item.faq__item .swfaq-item__answer { padding: 0 16px 16px !important; }

  .swfaq-steps { grid-template-columns: 1fr; gap: 12px; align-items: stretch; }
  .swfaq-step + .swfaq-step::before { display: none; }
  .swfaq-step { padding: 18px 16px 16px; }
  .swfaq-step__icon { width: 48px; height: 48px; border-radius: 14px; }
  .swfaq-step__icon img { width: 28px; height: 28px; }
  .swfaq-step__num { font-size: 22px; top: 14px; right: 16px; }
}

@media (max-width: 700px) {
  .swfaq__wrap { margin-bottom: 28px; padding: 18px 14px 26px; }
  .swfaq__title { font-size: 23px; }
  .swfaq__lead { font-size: 13.5px; }
  .swfaq__subtitle { font-size: 18px; }
  .swfaq-item__question { padding: 15px 16px; font-size: 13.5px; gap: 11px; }
  .swfaq-item__icon { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; }
  .swfaq-item__answer { padding: 0 16px 16px; font-size: 13.5px; }
  .swfaq-help { padding: 16px; gap: 12px; }
  .swfaq-help__icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 13px; }
  .swfaq-help__btn { width: 100%; }
}

/* Щадящий режим: без анимаций */
@media (prefers-reduced-motion: reduce) {
  .swfaq-item,
  .swfaq-item__mark::before,
  .swfaq-item__mark::after,
  .swfaq-help__btn {
    transition: none;
  }
  .swfaq-help__btn:hover { transform: none; }
}
