/* =========================================================
   Команда - хромированные «пропуска» + FAQ
   ========================================================= */
.team { position: relative; z-index: 2; padding: 22vh var(--gutter) 10vh; }
.team-head { max-width: 760px; margin-bottom: 64px; }
.team-title, .faq-title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(40px, 5.6vw, 92px); line-height: .95; }
.team-title em, .faq-title em { color: var(--accent-ink); }
.team-sub, .faq-sub { color: var(--muted); font-size: 18px; max-width: 520px; margin-top: 20px; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }

/* --- бейдж --- */
.badge {
  --mx: .5; --my: .5;
  position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--fg) 9%, transparent), transparent 40%),
    linear-gradient(200deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 70%, var(--bg)));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 color-mix(in srgb, var(--fg) 18%, transparent), 0 50px 100px -50px rgba(0,0,0,.7);
  transition: transform .6s var(--ease), box-shadow .5s;
  will-change: transform;
}
/* голографическая плёнка по хрому - бегает за курсором */
.badge::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at calc(var(--mx) * 100%) calc(var(--my) * 100%), rgba(255,255,255,.22), transparent 38%),
    linear-gradient(calc(110deg + var(--mx) * 60deg), transparent 20%, rgba(61,107,255,.22) 35%, rgba(37,244,238,.16) 45%, rgba(255,92,200,.14) 55%, transparent 70%);
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, calc(var(--mx) * 100%) calc(var(--my) * 100%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .5s;
}
.badge.is-hover::after { opacity: 1; }
.badge.is-hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 60px 110px -50px rgba(0,0,0,.8); }

.badge-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: var(--muted); font-size: 10px; border-bottom: 1px dashed var(--line); }
.badge-top .slot { width: 46px; height: 9px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 1px 3px rgba(0,0,0,.6), 0 0 0 1px var(--line); }

.badge-photo { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; margin: 14px 14px 0; border-radius: 18px; background: #0d1119; }
.badge-photo img { width: 100%; height: 100%; object-fit: cover; }
/* «проявка»: негатив → цвет */
.badge-photo img, .badge-photo.is-empty b {
  filter: invert(1) grayscale(1) contrast(.7) blur(8px) brightness(1.3);
  transform: scale(1.08);
  transition: filter 2.6s var(--ease), transform 2.6s var(--ease);
}
.badge.is-developed .badge-photo img { filter: none; transform: none; }
.badge.is-developed .badge-photo.is-empty b { filter: none; transform: none; }
.badge.is-hover .badge-photo img { transform: scale(1.04); }
.badge-photo .develop { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.45); color: #fff; font-size: 9px; transition: opacity .6s 2s; }
.badge.is-developed .develop { opacity: 0; }
.badge-photo.is-empty { display: grid; place-items: center;
  background: radial-gradient(70% 60% at 70% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%), linear-gradient(160deg, #1a2030, #090b10); }
.badge-photo.is-empty b { font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 12vw, 190px); line-height: 1; color: transparent;
  background: linear-gradient(170deg, #fff, #9aa6bd 45%, #3a4253 60%, #dfe5ee); -webkit-background-clip: text; background-clip: text; }
.badge-photo.is-empty > span:not(.develop) { position: absolute; right: 12px; top: 12px; color: rgba(255,255,255,.6); font-size: 9px; }

.badge-body { flex: 1; display: grid; align-content: start; gap: 8px; padding: 20px 22px 6px; }
.badge-exp { color: var(--accent-ink); font-size: 10px; }
.badge h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -.03em; font-size: 32px; line-height: 1; }
.badge-role { color: var(--muted); font-size: 14px; }
.badge-label { color: var(--muted); font-size: 9px; margin-top: 8px; }
.badge-access { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.badge-access li { padding: 5px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.badge blockquote { margin-top: 10px; font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.35; color: var(--fg); }
.badge-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 18px; color: var(--muted); font-size: 9px; }
.barcode { width: 110px; height: 22px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--fg) 0 2px, transparent 2px 4px, var(--fg) 4px 5px, transparent 5px 8px, var(--fg) 8px 11px, transparent 11px 12px); }

/* приглашение */
.badge-invite { background: radial-gradient(90% 70% at 80% 10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), var(--bg-2); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.invite-body { flex: 1; display: grid; align-content: center; gap: 16px; padding: 28px 26px; }
.invite-body > p.mono { color: var(--accent-ink); font-size: 10px; }
.invite-body h3 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.invite-body h3 em { color: var(--accent-ink); }
.invite-body > p:not(.mono) { color: var(--muted); }
.invite-body .btn { justify-self: start; }

/* --- FAQ --- */
.faq { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; padding: 16vh var(--gutter) 10vh; align-items: start; }
.faq-side { position: sticky; top: 120px; display: grid; gap: 22px; justify-items: start; }
.faq-side .faq-sub { margin-top: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 12px; padding: 26px 0; text-align: left; transition: color .3s; }
.faq-q span { color: var(--muted); font-size: 10px; transition: color .3s; }
.faq-q strong { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -.02em; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.2; }
/* плюс, который поворачивается в «✕» - символ оси */
.faq-q i { position: relative; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), background .3s, box-shadow .3s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--fg); transition: background .3s; }
.faq-q i::after { transform: rotate(90deg); }
.faq-q:hover strong { color: var(--accent-ink); }
.faq-item.is-open .faq-q i { transform: rotate(45deg); background: var(--accent); box-shadow: none; }
.faq-item.is-open .faq-q i::before, .faq-item.is-open .faq-q i::after { background: var(--on-accent); }
.faq-item.is-open .faq-q span { color: var(--accent-ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 52px 28px 76px; color: var(--muted); font-size: 16px; line-height: 1.6; opacity: 0; transform: translateY(-8px); transition: opacity .5s, transform .6s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; transition-delay: .1s; }

@media (max-width: 1000px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .badge-invite { grid-column: 1 / -1; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .faq-q { grid-template-columns: 44px 1fr 36px; padding: 20px 0; }
  .faq-q i { width: 36px; height: 36px; }
  .faq-a p { padding: 0 0 22px 56px; font-size: 15px; }
}

/* телефон: номер вопроса над вопросом - вся ширина под текст */
@media (max-width: 640px) {
  .faq-q { grid-template-columns: 1fr 36px; row-gap: 6px; }
  .faq-q span { grid-column: 1 / -1; }
  .faq-q i { grid-row: 2; grid-column: 2; width: 36px; height: 36px; }
  .faq-a p { padding: 0 0 22px; }
}
