/* EVERMIRA — контент-маркетинг: блог, статьи, FAQ, доверие, отзывы. Дополняет style.css */

/* блог: категории и сетка карточек */
.blog-cat { font-family: var(--serif); font-size: clamp(22px,3vw,28px); margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ===================== TRUST / БЕЗОПАСНОСТЬ ===================== */
.trust { background: linear-gradient(180deg, transparent, rgba(143,176,212,0.04), transparent); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card { padding: 26px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.trust-card__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--ink-2); border: 1px solid var(--line); margin-bottom: 16px; }
.trust-card__ic svg { width: 21px; height: 21px; color: var(--azure); }
.trust-card h3 { font-size: 18px; margin-bottom: 8px; }
.trust-card p { font-size: 13.8px; color: var(--muted); }

/* ===================== ОТЗЫВЫ ===================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { padding: 28px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); position: relative; }
.quote__mark { font-family: var(--serif); font-size: 60px; line-height: 0.8; color: var(--gold); opacity: .5; }
.quote p { font-size: 15px; color: var(--text); margin: 8px 0 18px; font-style: italic; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; color: var(--ink); background: linear-gradient(150deg, var(--gold), var(--gold-soft)); }
.quote__name { font-size: 14px; font-weight: 650; }
.quote__role { font-size: 12.5px; color: var(--faint); }

/* ===================== FAQ ===================== */
.faq { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; padding: 22px 4px; font-size: 17px; font-weight: 600; color: var(--text); cursor: pointer; }
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--gold); transition: transform .3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 4px 22px; color: var(--muted); font-size: 15px; max-width: 680px; }

/* ===================== БЛОГ: индекс ===================== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line-soft); transition: transform .35s var(--ease), border-color .35s; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(224,177,115,0.3); }
.post-card__cover { height: 168px; position: relative; background: linear-gradient(150deg, #283041, #14171f); overflow: hidden; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s var(--ease); }
.post-card:hover .post-card__cover img { transform: scale(1.05); }
.post-card__tag { position: absolute; top: 12px; left: 12px; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 11px; border-radius: 20px; background: rgba(12,14,19,0.75); backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--gold); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 21px; line-height: 1.18; margin-bottom: 10px; }
.post-card p { font-size: 14px; color: var(--muted); flex: 1; }
.post-card__meta { margin-top: 16px; font-size: 12.5px; color: var(--faint); display: flex; gap: 14px; }

/* ===================== СТАТЬЯ ===================== */
.article { max-width: 740px; margin: 0 auto; padding: 48px 0 90px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.article__tag { color: var(--gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.article h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin: 14px 0 18px; }
.article__meta { display: flex; gap: 18px; font-size: 13.5px; color: var(--faint); padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line-soft); }
.article__lead { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--muted); margin-bottom: 30px; }
.article__cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; aspect-ratio: 16/8; object-fit: cover; }
.prose h2 { font-size: 28px; margin: 40px 0 14px; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; font-family: var(--sans); font-weight: 650; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--text); margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 4px; }
.prose li { font-size: 16.5px; line-height: 1.7; color: var(--text); margin-bottom: 11px; display: flex; gap: 11px; }
.prose ul li::before { content: ""; width: 7px; height: 7px; margin-top: 11px; border-radius: 50%; background: var(--gold); flex: none; }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n); font-family: var(--serif); color: var(--gold); font-weight: 600; flex: none; min-width: 18px; }
.prose blockquote { margin: 26px 0; padding: 18px 24px; border-left: 3px solid var(--gold); background: var(--panel); border-radius: 0 12px 12px 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

/* CTA-карточка внутри статьи */
.cta-card { margin: 40px 0; padding: 30px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(224,177,115,0.12), var(--ink-2)); border: 1px solid rgba(224,177,115,0.3); text-align: center; }
.cta-card h3 { font-size: 24px; margin-bottom: 8px; }
.cta-card p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }

/* блок ресурсов (поддержка) */
.res-list { display: grid; gap: 12px; margin: 24px 0; }
.res { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft); }
.res__ic { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ink-2); border: 1px solid var(--line); }
.res__ic svg { width: 20px; height: 20px; color: var(--gold); }
.res h4 { font-family: var(--sans); font-size: 16px; font-weight: 650; margin-bottom: 3px; }
.res p { font-size: 13.8px; color: var(--muted); }
.res b { color: var(--text); }

/* связанные статьи */
.related { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line-soft); }
.related h3 { font-size: 22px; margin-bottom: 20px; }

/* форма раннего доступа */
.wait { display: flex; gap: 10px; max-width: 460px; margin: 6px auto 0; position: relative; }
.wait input { flex: 1; padding: 14px 16px; border-radius: 13px; background: var(--ink-2); border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: 15px; }
.wait input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,177,115,0.12); }
.wait-ok { position: relative; color: var(--gold); margin-top: 16px; font-size: 15px; }
@media (max-width: 480px) { .wait { flex-direction: column; } }

@media (max-width: 980px) {
  .trust-grid, .posts { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .trust-grid, .posts { grid-template-columns: 1fr; }
}
