/* ============================================================
   FAQ + SOCIAL PROOF + REFERRAL + CALCULATOR
   ============================================================ */

/* ─── FAQ ─────────────────────────────────────── */
.faq {
  padding: clamp(56px, 7.5vw, 112px) 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.faq .section-head { max-width: 720px; }

.faq-list {
  margin-top: clamp(32px, 4vw, 48px);
  max-width: 880px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 18px;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  font-family: var(--ff-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--red-0);
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .25s var(--ease-out);
}
.faq-item[open] summary::before {
  content: "−";
}
.faq-item summary:hover { color: var(--red-0); }
.faq-item .answer {
  padding: 0 0 22px 40px;
  color: var(--ink-1);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}

/* ─── SOCIAL PROOF (wall of love) ────────────── */
.proof {
  padding: clamp(56px, 7.5vw, 112px) 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.proof .section-head { max-width: 720px; }
.proof .section-head .note {
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(40px, 5vw, 56px);
}
@media (max-width: 920px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .proof-grid { grid-template-columns: 1fr; } }

.proof-card {
  padding: 24px 24px 22px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 220px;
  position: relative;
  transition: border-color .25s, transform .25s;
}
.proof-card:hover { border-color: var(--red-line); transform: translateY(-2px); }
.proof-card .q {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-0);
  letter-spacing: -0.005em;
  flex: 1;
}
.proof-card .who {
  margin-top: 18px;
  display: flex; align-items: center; gap: 12px;
}
/* Аватар: <img> элемент. Файлы /static/reviews/{ak,ms,ot,kv,ir,dl}.jpg
   подъедут отдельным features-handoff'ом. Пока их нет, fallback —
   нейтральный bg-2 круг с границей: alt-текст не показывается без
   custom JS, но визуально секция не выглядит сломанной. */
.proof-card .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  display: inline-block;
}
.proof-card .name {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
}
.proof-card .role {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
/* role-context — необязательный второй сегмент роли (компания /
   контекст работы). features-handoff пришлёт текст для каждого ревьюера.
   Пока пуст — bullet-разделитель не рендерится. */
.proof-card .role-context:not(:empty)::before {
  content: " · ";
  color: var(--ink-3);
}

/* ─── REFERRAL ────────────────────────────────── */
.referral {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.referral-card {
  max-width: 1080px;
  margin: 0 auto;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(251,26,38,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--red-line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 720px) {
  .referral-card { grid-template-columns: 1fr; }
}
.referral-card h3 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.referral-card h3 em { color: var(--red-0); }
.referral-card p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 540px;
}
.referral-cta {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* ─── CALCULATOR ──────────────────────────────── */
.calc {
  padding: clamp(56px, 7.5vw, 112px) 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.calc .section-head { max-width: 720px; }

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(40px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 920px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-inputs {
  display: flex; flex-direction: column; gap: 24px;
}
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field label {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.calc-field .row {
  display: flex; align-items: center; gap: 14px;
}
.calc-field input[type=range] {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  background: var(--bg-3);
  border-radius: 999px;
  outline: none;
}
.calc-field input[type=range]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--red-0), var(--red-1));
  box-shadow: 0 4px 12px -2px rgba(251,26,38,0.6);
  cursor: pointer;
  border: 0;
}
.calc-field input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red-0);
  border: 0;
  box-shadow: 0 4px 12px -2px rgba(251,26,38,0.6);
  cursor: pointer;
}
.calc-field .val {
  min-width: 100px;
  text-align: right;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink-0);
}
.calc-field .val .unit {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0;
}

.calc-output {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(500px 280px at 0% 0%, rgba(251,26,38,0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--red-line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-output .lbl {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--red-0);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.calc-output .big {
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-0);
  margin: 14px 0 8px;
}
.calc-output .big .unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  margin-left: 8px;
  letter-spacing: 0;
}
.calc-output .sec {
  font-size: 16px;
  color: var(--ink-1);
}
.calc-output .sec strong { color: var(--ink-0); font-weight: 600; }
.calc-output .foot {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
