/* ============ v21: ПРУФЫ (скрины офферов) + FAQ ============ */
/* подключается после style.css, использует его переменные: --paper --ink --gray --hair --rose --display --body --cond --pad --maxw */

.proofs, .faq {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 10vh, 100px);
}

/* ---------- табы: ученики / менторы ---------- */
.proofs-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.ptab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cond);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  background: transparent;
  border: 2px solid var(--hair);
  padding: 8px 14px;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ptab:hover, .ptab:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  outline: none;
}
.ptab.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--hair);
}
.ptab-n { font-size: 12px; opacity: 0.65; }

/* ---------- лента ---------- */
.proofs-track {
  display: none;
  position: relative; /* точка отсчёта offsetLeft для карточек */
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 12px 14px 4px; /* место под жёсткую тень */
  scroll-padding-left: 4px;   /* snap к карточке с учётом этого отступа */
}
.proofs-track.active { display: flex; }
.proofs-track::-webkit-scrollbar { display: none; }
/* если карточки влезают целиком - центрируем; при переполнении auto-отступы обнуляются и скролл работает */
.proofs-track .proof:first-child { margin-left: auto; }
.proofs-track .proof:last-child { margin-right: auto; }
.proofs-nav.hidden { display: none; }

/* ---------- карточка человека ---------- */
.proof {
  position: relative;
  flex: 0 0 clamp(240px, 40vw, 300px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.proof:hover, .proof:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}

/* скрин письма */
.proof-shot {
  position: relative;
  margin: 8px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hair);
  cursor: zoom-in;
}
/* письмо во всю ширину, прижато к верху; длинное - обрезается снизу, широкое - ложится на белый лист */
.proof-img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
/* счётчик офферов, прячется когда выезжают чипы */
.proof-n {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--cond);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--ink);
  padding: 3px 7px;
  transition: opacity 0.2s;
}
.proof:hover .proof-n, .proof:focus-within .proof-n { opacity: 0; }

/* все офферы человека: выезжают снизу при наведении */
.proof-stack {
  list-style: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: rgba(244, 242, 238, 0.96);
  border-top: 2px solid var(--ink);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.proof:hover .proof-stack, .proof:focus-within .proof-stack { transform: none; }
.proof-stack-lbl {
  flex: 1 0 100%;
  font-family: var(--cond);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
}
.proof-chip {
  font-family: var(--cond);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.2;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 4px 8px;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s, color 0.15s;
}
.proof-chip.on, .proof-chip:hover, .proof-chip:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}
/* у кого один оффер: чипы и счётчик не нужны */
.proof.single .proof-stack, .proof.single .proof-n { display: none; }

/* подпись под скрином */
.proof-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 14px 14px;
}
.proof-name {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
}
.proof-uni { font-size: 14px; }
.proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
}
.proof-badge {
  font-family: var(--cond);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 3px 7px;
  border: 2px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}
.proof-badge.full {
  background: var(--ink);
  color: var(--paper);
}
.proof-note {
  font-family: var(--cond);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
}

/* ---------- стрелки + пиксельные индикаторы ---------- */
.proofs-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}
.pf-arrow {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pf-arrow:hover, .pf-arrow:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
  outline: none;
}
.pf-arrow:disabled {
  opacity: 0.35;
  transform: none;
  box-shadow: 4px 4px 0 var(--ink);
}
.pf-arrow::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: translate(-70%, -50%) rotate(45deg);
}
.pf-arrow.prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.pf-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pf-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--ink);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s;
}
.pf-dot.active { background: var(--ink); }

/* ---------- лайтбокс: подпись к открытому офферу ---------- */
.lightbox.lb-proof { padding-bottom: 10vh; }
.lb-cap {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  transform: translateX(-50%);
  max-width: 92vw;
  text-align: center;
  font-family: var(--cond);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--paper);
  padding: 6px 12px;
  pointer-events: none;
}
.lightbox:not(.lb-proof) .lb-cap { display: none; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--hair);
}
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.faq-q {
  font-family: var(--display);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.25;
}
/* переключатель: чёрный квадрат, «−» открыто / «+» закрыто */
.faq-tog {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.faq-item summary:hover .faq-tog {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--hair);
}
.faq-tog::before, .faq-tog::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px;
  height: 2px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.faq-item:not([open]) .faq-tog::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  padding: 0 0 20px;
  max-width: 640px;
}
.faq-a p + p { margin-top: 10px; }
.faq-a a { color: var(--ink); text-underline-offset: 3px; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-item[open] .faq-a { animation: faqIn 0.25s ease; }

/* «спросите у них 4 вещи» - список с красными номерами, как в услугах */
.faq-qs {
  list-style: none;
  counter-reset: fq;
  margin: 8px 0 12px;
}
.faq-qs li {
  counter-increment: fq;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid var(--hair);
  line-height: 1.45;
}
.faq-qs li:last-child { border-bottom: 1px solid var(--hair); }
.faq-qs li::before {
  content: counter(fq);
  font-family: var(--display);
  font-size: 15px;
  color: var(--rose);
}
.faq-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--gray);
  margin-top: 24px;
}
.faq-foot a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- мобилка / тач ---------- */
@media (hover: none) {
  .proof-stack { transform: none; }   /* чипы видны сразу - тапом переключаем оффер */
  .proof-n { display: none; }
}
@media (max-width: 700px) {
  .proof { flex-basis: 78vw; box-shadow: 5px 5px 0 var(--ink); }
  .proofs-track { gap: 16px; }
  .ptab { font-size: 12px; padding: 7px 12px; }
  .faq-item summary { padding: 15px 0; }
  .faq-tog { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .proof, .proof-stack, .proof-n, .pf-arrow, .ptab, .faq-tog, .faq-tog::before, .faq-tog::after { transition: none; }
  .faq-item[open] .faq-a { animation: none; }
}
