/* ═══════════════════════════════════════════════
   MYteam - faq.css (сторінка «Запитання та відповіді», page-faq.php)
═══════════════════════════════════════════════ */

/* ── Hero (як на внутрішніх сторінках) ── */
.inner-hero {
  position:    relative;
  min-height:  320px;
  display:     flex;
  align-items: flex-end;
  overflow:    hidden;
  padding:     0 48px;
}
.inner-hero .fp-orb--main { right: -300px; opacity: .6; }
.inner-hero .fp-ring--1   { right: -200px; opacity: .5; }
.inner-hero__inner {
  position:       relative;
  z-index:        2;
  padding-top:    calc(68px + 52px);
  padding-bottom: 40px;
}
.inner-hero__title {
  font-family:    var(--font-display);
  font-size:      clamp(32px, 5vw, 60px);
  font-weight:    800;
  color:          var(--white);
  letter-spacing: -.03em;
  margin:         14px 0 12px;
  background:     linear-gradient(110deg, #a8c4ff, var(--azure) 40%, var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.inner-hero__sub { color: var(--sub); font-size: 16px; max-width: 640px; }
.faqp-lead p     { margin: 0 0 8px; color: rgb(200 205 230 / 85%); font-size: 16px; line-height: 1.7; }
.faqp-lead p:last-child { margin-bottom: 0; }
.faqp-lead a     { color: var(--azure); text-decoration: underline; text-underline-offset: 2px; }
.faqp-lead a:hover { color: var(--aqua); }

/* ── Фільтр розділів (не липкий: у три рядки він закривав би пів екрана) ── */
.faqp-nav {
  position:      relative;
  z-index:       2;
  padding:       16px 48px;
  border-top:    1px solid var(--rim);
  border-bottom: 1px solid var(--rim);
}
.faqp-nav[hidden] { display: none; }
.faqp-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.faqp-search__label { font-size: 14px; font-weight: 700; color: var(--text); }
.faqp-search__input {
  flex:          1 1 320px;
  max-width:     520px;
  min-height:    44px;
  padding:       10px 16px;
  border-radius: var(--r-sm);
  border:        1px solid var(--rim2);
  background:    rgba(255,255,255,.05);
  color:         var(--white);
  font:          500 16px/1.3 var(--font-body);
}
.faqp-search__input::placeholder { color: rgb(200 205 230 / 55%); }
.faqp-search__input:focus { outline: 2px solid var(--azure); outline-offset: 1px; border-color: transparent; }
.faqp-search__status { margin: 0; font-size: 14px; color: var(--aqua); min-height: 1em; }
.faqp-search__status:empty { display: none; }
.faqp-item[hidden] { display: none; }
.faqp-empty { padding: 32px 0 8px; color: rgb(200 205 230 / 90%); font-size: 16px; }
.faqp-empty[hidden] { display: none; }
.faqp-empty a { color: var(--azure); text-decoration: underline; }
.faqp-nav__inner {
  display:   flex;
  flex-wrap: wrap;
  gap:       8px;
}
.faqp-nav__item {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  min-height:    40px;
  padding:       8px 14px;
  border-radius: 999px;
  border:        1px solid var(--rim2);
  background:    var(--glass);
  color:         var(--text);
  font:          600 14px/1.2 var(--font-body);
  cursor:        pointer;
  white-space:   nowrap;
  transition:    border-color var(--transition), background var(--transition), color var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .faqp-nav__item:hover { border-color: rgba(77,138,255,.45); }
  .faqp-item:hover      { border-color: rgba(77,138,255,.3); }
}
.faqp-nav__item.is-active {
  background:   linear-gradient(120deg, rgba(77,138,255,.28), rgba(139,92,246,.24));
  border-color: rgba(77,138,255,.55);
  color:        var(--white);
}
.faqp-nav__item:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.faqp-nav__count {
  min-width:     22px;
  padding:       2px 7px;
  border-radius: 999px;
  background:    rgba(255,255,255,.08);
  color:         rgb(200 205 230 / 85%);
  font-size:     12px;
  font-weight:   700;
  text-align:    center;
}

/* ── Розділи ── */
.faqp-body    { position: relative; z-index: 2; padding: 0 48px; scroll-margin-top: 90px; }
.faqp-section { padding: 56px 0 0; scroll-margin-top: 90px; }
.faqp-section[hidden] { display: none; }
.faqp-section__head {
  display:       flex;
  align-items:   center;
  gap:           14px;
  margin-bottom: 22px;
}
.faqp-section__icon {
  width:           44px; height: 44px;
  flex-shrink:     0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-radius:   var(--r-sm);
  background:      linear-gradient(135deg, rgba(77,138,255,.18), rgba(6,214,199,.12));
  border:          1px solid rgba(77,138,255,.3);
  color:           var(--azure);
}
.faqp-section__icon .icon,
.faqp-section__icon svg { width: 22px; height: 22px; }
.faqp-section__title {
  font-family:    var(--font-display);
  font-size:      clamp(22px, 2.6vw, 30px);
  font-weight:    800;
  color:          var(--white);
  letter-spacing: -.02em;
  margin:         0;
}

/* Питання: картки у дві колонки, кожна розкривається окремо */
.faqp-list {
  display:               grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:                   12px;
  align-items:           start;
}
.faqp-item {
  background:    rgba(255,255,255,.04);
  border:        1px solid var(--rim);
  border-radius: var(--r-sm);
  transition:    border-color var(--transition), background var(--transition);
}
.faqp-item[open]    { border-color: rgba(77,138,255,.4); background: rgba(77,138,255,.06); }
.faqp-item__q {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             14px;
  padding:         18px 20px;
  cursor:          pointer;
  list-style:      none;
}
.faqp-item__q::-webkit-details-marker { display: none; }
.faqp-item__q:focus-visible { outline: 2px solid var(--azure); outline-offset: -2px; border-radius: var(--r-sm); }
.faqp-item__title {
  margin:      0;
  font-family: var(--font-body);
  font-size:   16px;
  font-weight: 700;
  line-height: 1.4;
  color:       var(--text);
  text-wrap:   balance;
}
.faqp-item__toggle {
  position:      relative;
  width:         28px; height: 28px;
  flex-shrink:   0;
  border-radius: 50%;
  background:    rgba(255,255,255,.06);
  border:        1px solid var(--rim);
  transition:    background var(--transition), border-color var(--transition), transform var(--transition);
}
.faqp-item__toggle::before,
.faqp-item__toggle::after {
  content:    '';
  position:   absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  margin: -1px 0 0 -5.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--transition);
}
.faqp-item__toggle::after { transform: rotate(90deg); }
.faqp-item[open] .faqp-item__toggle { background: rgba(77,138,255,.18); border-color: rgba(77,138,255,.4); }
.faqp-item[open] .faqp-item__toggle::after { transform: rotate(0deg); }
.faqp-item__a {
  padding:     0 20px 18px;
  color:       rgb(221 224 240 / 92%);
  font-size:   15px;
  line-height: 1.75;
}
.faqp-item__a p  { margin: 0 0 10px; }
.faqp-item__a p:last-child { margin-bottom: 0; }
.faqp-item__a ul,
.faqp-item__a ol { margin: 6px 0 10px 20px; }
.faqp-item__a li { margin-bottom: 4px; }
.faqp-item__a a  { color: var(--azure); text-decoration: underline; text-underline-offset: 2px; }
.faqp-item__a a:hover { color: var(--aqua); }
.faqp-item__a strong { color: var(--white); }

/* ── Банери між розділами ── */
.faqp-cta-wrap { padding: 48px 0 0; }
.faqp-cta-wrap[hidden] { display: none; }
.faqp-cta {
  position:        relative;
  overflow:        hidden;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             24px;
  flex-wrap:       wrap;
  padding:         28px 36px;
  border-radius:   var(--r-lg);
  background:      linear-gradient(120deg, rgba(77,138,255,.14), rgba(139,92,246,.12));
  border:          1px solid rgba(77,138,255,.25);
}
/* Кожен другий банер - інший акцент, щоб вони не зливались в одне */
.faqp-cta-wrap:nth-of-type(even) .faqp-cta {
  background:   linear-gradient(120deg, rgba(6,214,199,.12), rgba(77,138,255,.1));
  border-color: rgba(6,214,199,.3);
}
.faqp-cta__body  { position: relative; z-index: 1; max-width: 640px; }
.faqp-cta__title {
  margin:         0 0 6px;
  font-family:    var(--font-display);
  font-size:      22px;
  font-weight:    800;
  color:          var(--white);
  letter-spacing: -.02em;
}
.faqp-section__title, .faqp-cta__title, .faqp-final__title { text-wrap: balance; }
.faqp-cta__text { margin: 0; color: rgb(200 205 230 / 90%); font-size: 16px; line-height: 1.6; }
.faqp-cta__btn  { position: relative; z-index: 1; flex-shrink: 0; }

/* ── Фінальний блок ── */
.faqp-final { position: relative; z-index: 2; padding: 72px 48px 96px; }
.faqp-final__box {
  max-width:     760px;
  margin:        0 auto;
  padding:       44px 40px;
  text-align:    center;
  border-radius: var(--r-lg);
  background:    rgba(255,255,255,.04);
  border:        1px solid var(--rim2);
}
.faqp-final__title {
  margin:         0 0 10px;
  font-family:    var(--font-display);
  font-size:      clamp(24px, 3vw, 32px);
  font-weight:    800;
  color:          var(--white);
  letter-spacing: -.02em;
}
.faqp-final__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.faqp-final__link { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faqp-final__link:hover { color: var(--aqua); }
.faqp-final__text { margin: 0 auto 24px; max-width: 520px; color: rgb(200 205 230 / 85%); font-size: 16px; line-height: 1.7; }

.faqp-raw { padding: 40px 0 64px; }

/* ── Адаптив ── */
@media (max-width: 1024px) {
  .inner-hero  { padding: 0 28px; }
  .faqp-nav    { padding: 10px 28px; }
  .faqp-body   { padding: 0 28px; }
  .faqp-final  { padding: 56px 28px 80px; }
}
@media (max-width: 860px) {
  .faqp-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .inner-hero        { padding: 0 20px; min-height: 260px; }
  /* на телефоні hero без запасу під шапку зверху - було забагато порожнечі (лише ця сторінка) */
  .faqp-hero .inner-hero__inner { padding-top: calc(68px + 16px); padding-bottom: 28px; }
  /* На телефоні розділи - одна смуга з горизонтальною прокруткою */
  .faqp-nav          { padding: 10px 0; }
  .faqp-search       { padding: 0 20px; }
  /* смуга розділів прокручується вбік; правий край згасає - видно, що далі є ще */
  .faqp-nav__inner   { flex-wrap: nowrap; overflow-x: auto; padding: 0 20px; scrollbar-width: none;
                       -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .faqp-nav__inner::-webkit-scrollbar { display: none; }
  .faqp-body         { padding: 0 20px; }
  .faqp-section      { padding: 40px 0 0; }
  .faqp-cta-wrap     { padding: 32px 0 0; }
  .faqp-section__title { font-size: 24px; }
  .faqp-cta__title   { font-size: 18px; }
  .faqp-item__q      { padding: 16px; }
  .faqp-item__a      { padding: 0 16px 16px; }
  .faqp-cta          { padding: 24px 20px; }
  .faqp-cta__btn     { width: 100%; justify-content: center; }
  .faqp-final        { padding: 48px 20px 64px; }
  .faqp-final__box   { padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .faqp-item, .faqp-item__toggle, .faqp-item__toggle::before, .faqp-item__toggle::after, .faqp-nav__item { transition: none; }
}
