/* 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; }
}

/* ===================== БЛОГ 2.0: обложки, содержание, FAQ ===================== */
.post-card__cover[data-cat="about"] { background: linear-gradient(145deg,#2a3350,#161a26); }
.post-card__cover[data-cat="howto"] { background: linear-gradient(145deg,#1f3a37,#14201f); }
.post-card__cover[data-cat="ai"]    { background: linear-gradient(145deg,#36284a,#1a1422); }
.post-card__cover[data-cat="grief"] { background: linear-gradient(145deg,#46303a,#1f1518); }
.post-card__cover[data-cat="ideas"] { background: linear-gradient(145deg,#473b22,#1f1a10); }
.cover-motif { position: absolute; right: -10px; bottom: -18px; width: 150px; height: 150px; opacity: .22; pointer-events: none; }
.cover-motif svg { width: 100%; height: 100%; }
.post-card__cover[data-cat="about"] .cover-motif { color: #cdbfff; }
.post-card__cover[data-cat="howto"] .cover-motif { color: #8fd4c0; }
.post-card__cover[data-cat="ai"] .cover-motif { color: #e6a9a0; }
.post-card__cover[data-cat="grief"] .cover-motif { color: #f0b894; }
.post-card__cover[data-cat="ideas"] .cover-motif { color: #f0d488; }
.post-card__cover .spark { position: absolute; top: 26px; right: 34px; width: 30px; height: 30px; opacity: .5; color: #fff; }

/* статья: герой-обложка */
.article__hero { position: relative; height: clamp(180px, 30vw, 260px); border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; display: grid; place-items: center; }
.article__hero[data-cat="about"] { background: linear-gradient(145deg,#2a3350,#161a26); }
.article__hero[data-cat="howto"] { background: linear-gradient(145deg,#1f3a37,#14201f); }
.article__hero[data-cat="ai"]    { background: linear-gradient(145deg,#36284a,#1a1422); }
.article__hero[data-cat="grief"] { background: linear-gradient(145deg,#46303a,#1f1518); }
.article__hero[data-cat="ideas"] { background: linear-gradient(145deg,#473b22,#1f1a10); }
.article__hero .cover-motif { width: 220px; height: 220px; right: 4%; bottom: -30px; opacity: .26; }
.article__hero .hero-ic { width: 64px; height: 64px; color: rgba(255,255,255,.85); }

/* содержание (мини-TOC) */
.toc { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 22px; margin: 6px 0 32px; }
.toc b { font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--faint); }
.toc ol { counter-reset: t; margin: 12px 0 0; padding: 0; list-style: none; }
.toc li { counter-increment: t; margin: 7px 0; }
.toc li::before { content: counter(t); color: var(--gold); font-family: var(--serif); font-weight: 600; margin-right: 10px; }
.toc a { color: var(--text); } .toc a:hover { color: var(--gold); }
.prose h2 { scroll-margin-top: 80px; }

/* буквица */
.prose > p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.3em; line-height: .82; float: left; padding: 6px 12px 0 0; color: var(--gold); }

/* FAQ в статье */
.afaq { margin: 40px 0 8px; }
.afaq h2 { margin-bottom: 6px; }
.afaq__q { font-weight: 650; font-size: 17.5px; margin: 20px 0 6px; }
.afaq__a { color: var(--muted); font-size: 16px; line-height: 1.72; }

/* связанные статьи карточками */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 720px){ .related-grid { grid-template-columns: 1fr; } }

/* отзывы на странице историй */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin: 18px 0 8px; }
.rv-card { margin: 0; padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.rv-card blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--text); font-style: italic; }
.rv-card figcaption { font-size: 13px; color: var(--gold); }

/* блог: поиск и фильтры */
.blog-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 8px 0 26px; }
.blog-search { flex: 1; min-width: 220px; padding: 12px 16px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: 15px; }
.blog-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,177,115,0.12); }
.blog-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bchip { font-size: 13px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: .2s; }
.bchip:hover { color: var(--text); border-color: var(--gold); }
.bchip.is-on { background: linear-gradient(90deg,var(--gold),var(--rose)); color: #1a1308; border-color: transparent; font-weight: 600; }
.blog-empty { color: var(--faint); padding: 30px 0; }

/* статья: линия помощи + блок автора (E-E-A-T) */
.help-callout { display: flex; gap: 14px; padding: 18px 22px; margin: 30px 0 8px; border-radius: 14px; background: rgba(230,169,160,0.08); border: 1px solid rgba(230,169,160,0.3); font-size: 14.5px; color: var(--text); }
.help-callout svg { width: 24px; height: 24px; color: var(--rose); flex: none; margin-top: 2px; }
.help-callout a { color: var(--gold); }
.author-box { display: flex; gap: 16px; padding: 22px 24px; margin: 34px 0 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-soft); }
.author-box__mark { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(224,177,115,0.12); border: 1px solid rgba(224,177,115,0.25); }
.author-box__mark svg { width: 22px; height: 22px; }
.author-box b { font-size: 15px; } .author-box p { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.author-box a { color: var(--gold); }

/* лендинг: превью продукта («скриншоты») */
#preview { padding: 30px 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 860px){ .shots { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }
.shot { display: block; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-soft); transition: transform .35s var(--ease), border-color .35s; }
.shot:hover { transform: translateY(-6px); border-color: rgba(224,177,115,0.35); }
.shot__bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.shot__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot__bar span:first-child { background: #e6a9a0; } .shot__bar span:nth-child(2){ background: #f0d488; } .shot__bar span:nth-child(3){ background: #8fd4a3; }
.shot__body { position: relative; height: 230px; padding: 22px; overflow: hidden; }
.shot__body[data-k="memorial"] { background: linear-gradient(160deg,#222a3d,#14171f); }
.shot__body[data-k="editor"] { background: linear-gradient(160deg,#1f3330,#14201d); }
.shot__body[data-k="chat"] { background: linear-gradient(160deg,#322647,#1a1422); display: grid; place-items: center; align-content: center; gap: 10px; }
.shot__cap { display: block; padding: 14px 18px; font-size: 14.5px; color: var(--text); border-top: 1px solid var(--line-soft); }
.sh-ava { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--rose)); margin-bottom: 14px; }
.sh-name { width: 130px; height: 14px; border-radius: 6px; background: rgba(255,255,255,.5); margin-bottom: 14px; }
.sh-line { height: 9px; border-radius: 5px; background: rgba(255,255,255,.16); margin-bottom: 9px; }
.sh-line.w70{width:70%} .sh-line.w50{width:50%} .sh-line.w60{width:60%}
.sh-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 16px; }
.sh-grid i { aspect-ratio: 1; border-radius: 8px; background: rgba(224,177,115,.22); }
.sh-rows { display: flex; gap: 8px; margin-bottom: 18px; }
.sh-rows b { width: 46px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.1); }
.sh-rows b:first-child { background: rgba(224,177,115,.3); }
.sh-field { height: 30px; border-radius: 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.sh-field.w60 { width: 60%; }
.sh-btn { width: 120px; height: 34px; border-radius: 9px; background: linear-gradient(90deg,var(--gold),var(--rose)); margin-top: 4px; }
.sh-orb { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe6a8, #e0b173 55%, #b07b46); box-shadow: 0 0 36px rgba(224,177,115,.45); margin-bottom: 6px; }
.sh-bub { height: 24px; border-radius: 13px; width: 78%; }
.sh-bub.l { background: rgba(255,255,255,.1); align-self: flex-start; }
.sh-bub.r { background: rgba(224,177,115,.25); align-self: flex-end; }
.sh-bub.w60 { width: 55%; }

/* мобильная адаптация статей/контент-страниц */
@media (max-width: 760px) {
  .article { padding: 26px 18px 70px; }
  .article h1 { font-size: 27px; }
  .article__lead { font-size: 18px; line-height: 1.5; margin-bottom: 22px; }
  .article__meta { gap: 12px; font-size: 12.5px; flex-wrap: wrap; }
  .article__hero { height: 150px; margin-bottom: 22px; }
  .prose p { font-size: 16px; line-height: 1.7; }
  .prose h2 { font-size: 22px; margin: 28px 0 12px; }
  .prose h3 { font-size: 19px; }
  .prose blockquote { font-size: 18px; padding: 14px 18px; margin: 20px 0; }
  .prose ul, .prose ol { padding-left: 2px; }
  .toc { padding: 16px 18px; }
  .res-list .res { flex-direction: column; gap: 10px; }
  .cta-card { padding: 22px 20px; }
  .blog-cat { font-size: 22px; margin: 28px 0 14px; }
}

/* лендинг: промо семейного древа */
.fam { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .fam { grid-template-columns: 1fr; gap: 28px; } }
.fam__list { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 28px; }
.fam__list li { display: flex; gap: 11px; font-size: 15px; color: var(--text); align-items: flex-start; }
.fam__list svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.fam__viz { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; }
.fam__viz svg { width: 100%; height: auto; }
.fam-node { transition: transform .4s var(--ease); transform-origin: center; }
.fam__viz:hover .fam-node { transform: translateY(-2px); }

/* фото в герое статьи */
.article__hero { position: relative; }
.article__hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; z-index: 0; }
.article__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,19,.25), rgba(12,14,19,.6)); z-index: 1; }
.article__hero .hero-ic, .article__hero .cover-motif { position: relative; z-index: 2; }
.post-card__cover img { z-index: 0; }
.post-card__cover .cover-motif, .post-card__cover .post-card__tag { z-index: 2; }

/* переключатель языка RU/EN */
.lang-switch { display: inline-flex; gap: 2px; background: var(--ink-2, #14171f); border: 1px solid var(--line); border-radius: 9px; padding: 3px; margin-bottom: 10px; }
.lang-switch a, .lang-switch span { font-size: 12px; font-weight: 600; letter-spacing: .5px; padding: 4px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; line-height: 1; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-on { background: var(--panel-2, #1c212d); color: var(--gold); }
.lang-switch__off { opacity: .4; cursor: default; }
