/* Вопросы и ответы (faq) — tshop_3. Ручки на корне блока: --faq-width, --faq-gap, шапка блока. */
@layer modules {
  .t3-faq { --faq-width: 880px; --faq-gap: var(--s-2); }
  .t3-faq__list { display: grid; gap: var(--faq-gap); max-width: var(--faq-width); }
  .t3-faq .t3-head { max-width: var(--faq-width); }

  .t3-faq__item { border-radius: var(--radius-m); background: var(--surface); box-shadow: var(--shadow-1); scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
  [data-style="quiet"] .t3-faq__item, [data-style="editorial"] .t3-faq__item { background: none; box-shadow: none; border-radius: 0; border-bottom: var(--line-w) solid var(--line); }
  [data-style="quiet"] .t3-faq__list, [data-style="editorial"] .t3-faq__list { gap: 0; border-top: var(--line-w) solid var(--line); }

  .t3-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    min-height: 64px; padding: var(--s-4) var(--s-5); list-style: none; cursor: pointer; border-radius: inherit;
  }
  [data-style="quiet"] .t3-faq__q, [data-style="editorial"] .t3-faq__q { padding-inline: 0; }
  .t3-faq__q::-webkit-details-marker { display: none; }
  .t3-faq__title { font-size: var(--fs-l); font-weight: 600; line-height: 1.35; transition: color var(--dur) var(--ease); }
  .t3-faq__q:hover .t3-faq__title, .t3-faq__item[open] .t3-faq__title { color: var(--brand-text); }

  /* «плюс», превращающийся в «минус» */
  .t3-faq__sign { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); transition: background-color var(--dur) var(--ease); }
  .t3-faq__sign::before, .t3-faq__sign::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease); }
  .t3-faq__sign::after { transform: rotate(90deg); }
  .t3-faq__item[open] .t3-faq__sign { background: var(--brand); color: var(--brand-ink); }
  .t3-faq__item[open] .t3-faq__sign::after { transform: rotate(0deg); }
  [data-style="editorial"] .t3-faq__sign { border-radius: 0; }

  .t3-faq__a { display: grid; gap: var(--s-4); padding: 0 var(--s-5) var(--s-5); color: var(--text-2); }
  [data-style="quiet"] .t3-faq__a, [data-style="editorial"] .t3-faq__a { padding-inline: 0; }
  .t3-faq__text { max-width: 72ch; }
  .t3-faq__img { display: block; max-width: 520px; overflow: hidden; border-radius: var(--radius-m); }
  .t3-faq__img img { width: 100%; }

  /* плавное раскрытие там, где браузер умеет анимировать <details> */
  @supports (interpolate-size: allow-keywords) {
    .t3-faq__item { interpolate-size: allow-keywords; }
    .t3-faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
    .t3-faq__item[open]::details-content { block-size: auto; }
    @media (prefers-reduced-motion: reduce) { .t3-faq__item::details-content { transition: none; } }
  }
}
