/* ========== ДОВЕРИЕ ========== */

.trust {
  background: var(--greige-light);
  border-top: none;
  border-bottom: none;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.trust .lead {
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  margin-top: 16px;
}

.trust-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 28px);
}

.fact {
  background: var(--white);
  border: 1.5px solid var(--greige);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.fact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(43, 38, 34, .12);
}

.fact b {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.fact span {
  font-size: clamp(12.5px, 1.4vw, 14px);
  color: var(--muted);
  line-height: 1.4;
}

.fact b em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

/* ========== FAQ ========== */

.faq {
  background: var(--greige-light);
  text-align: center;
}

.faq .section-eyebrow {
  justify-content: center;
}

.faq h2 {
  display: none;
}

.faq-list {
  margin: 32px auto 0;
  max-width: 820px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--greige);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 22px);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 15.5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px, 2vw, 16px);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: 'Tenor Sans', serif;
  font-size: 22px;
  color: var(--accent);
  transition: transform .2s ease;
}

/* Плюс превращается в крестик, когда вопрос раскрыт */
.faq details.is-open summary::after {
  transform: rotate(45deg);
}

/* Плавное выдвижение ответа.
   Высота анимируется через grid: 0fr (свёрнуто) → 1fr (раскрыто).
   Так работает с текстом любой длины — высоту не нужно знать заранее.
   Длительность продублирована в js/7-faq.js — меняйте в обоих местах. */
.faq .answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1);
}

.faq details.is-open .answer-wrap {
  grid-template-rows: 1fr;
}

.faq .answer {
  /* Отступы только по бокам: вертикальный padding не даёт блоку
     свернуться в ноль — он всегда добавляет высоту строке сетки. */
  padding: 0 clamp(16px, 3vw, 22px);
  font-size: clamp(13px, 1.5vw, 14.5px);
  color: var(--muted);
  min-height: 0;
  overflow: hidden;
}

/* Отступ снизу — частью содержимого, поэтому сворачивается вместе с ним */
.faq .answer::after {
  content: "";
  display: block;
  height: clamp(14px, 2.5vw, 18px);
}

/* ========== ФИНАЛЬНЫЙ CTA ========== */

.final {
  background: var(--ink);
  color: rgba(255, 255, 255, .85);
}

.final h2 {
  color: var(--white);
}

.final-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.final ul {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.final li {
  display: flex;
  gap: clamp(10px, 1.5vw, 12px);
  align-items: flex-start;
  font-size: clamp(13.5px, 1.5vw, 15px);
}

.final li::before {
  content: "—";
  color: var(--accent);
  font-weight: 700;
}

.final .cta-row {
  margin-top: 0;
  flex-direction: column;
  align-items: stretch;
}

.final .btn {
  justify-content: center;
}

/* ========== FOOTER ========== */

footer {
  background: #221E1B;
  color: rgba(255, 255, 255, .8);
  padding: clamp(24px, 4vh, 34px) clamp(20px, 5vw, 64px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 18px);
  align-items: center;
  justify-content: space-between;
  font-size: clamp(12px, 1.4vw, 13.5px);
}

.footer-inner a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
}

.counter b {
  color: var(--white);
  font-weight: 700;
}

/* ========== АДАПТИВ ========== */

@media (max-width: 980px) {
  .trust-grid,
  .final-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .trust-facts {
    grid-template-columns: 1fr 1fr;
  }
}
